Re: Repacking files on ext3?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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-----

_______________________________________________

Ext3-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux