-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Carles Xavier Munyoz Bald? schrieb:
| Hi,
| I have a 1 GigaByte size file and want to remove some bytes from it.
| For this I must follow the next steps:
| (1) Create a new file.
| (2) Copy into it the bytes I will left from the original file.
| (3) Remove the original file.
| (4) Move the new file to be the original file.
|
| The problem with this process is that it uses lot of disk I/O.
| Actually only one disk block of the file is modified.
| Is there any other way to do that using an ext3 file system ?
um, use and editor for doing things like this? *gg*
you'll need a proper editor and lots of RAM anyway....
or try "dd". it can seek to a given block number and then copy out the
bits you want to have.
Christian.
- --
BOFH excuse #120:
we just switched to FDDI.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFArmupC/PVm5+NVoYRAiStAJ9eSTbBXu8MyRdlzeWyz6ZETUjnlACcDoR3
2YJ7UdicqEjRtlVGrRbyb14=Eg3T
-----END PGP SIGNATURE-----