Repacking files on ext3?
evilninja
evilninja at gmx.net
Sat Dec 17 18:43:42 UTC 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Phillip Susi schrieb:
> I am looking for a way to defragment the disk such that the files needed
> for boot are all packed sequentially at the beginning of the disk, so
> that readahead-list can read them in much faster.
i've never used ext2fs defrag-programs so i don't know how "safe" they
are. but if they're working on ext2 - why not tune2fs' an existing ext3
into a ext2, run the defrag program and tune2fs' into ext3 again:
% umount /dev/sdX
% tune2fs -O ^has_journal /dev/sdX
% <run magic defrag program on sdX>
% tune2fs -O has_journal /dev/sdX
% mount /dev/sdX
obviously this has to be done while the device is offline and i'd
recommend having backups of course. i've never tried it though...
- --
BOFH excuse #86:
Runt packets
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDpFxeC/PVm5+NVoYRA4yYAKC8q6yKJHWaO54bq/97j6P8n4+GtgCfXE0O
lmTPqGcJINRW0zNjaxYdpOI=
=iFbD
-----END PGP SIGNATURE-----
More information about the Ext3-users
mailing list