2
After upgrading a Debian system from 5.0 to 6.0 (Lenny to Sqeeze), how do I go about upgrading the root filesystem (which in this case is also boot) from ext3 to ext4?
2
After upgrading a Debian system from 5.0 to 6.0 (Lenny to Sqeeze), how do I go about upgrading the root filesystem (which in this case is also boot) from ext3 to ext4?
5
This was no big deal at all, here's what I did:
/etc/fstab
, replacing "ext3" with "ext4" for my root filesystem. (I also removed "barrier=1", which is now the default on ext4.)tune2fs -O extents,uninit_bg,dir_index /dev/DEV
e2fsck -fDC0 /dev/DEV
to patch up the filesystem.Most of this was taken from here.
0
additionaly to pauldoo's answer
rootfstype=ext4
to kernel boot optionsfsck -f
hides it automatically. Sadly it canot do the same to / mount point - you need live cd or any other running system to hide this .journal
node PS still actual for wheezy
FYI the EXT4 Howto URL is now https://ext4.wiki.kernel.org/articles/e/x/t/Ext4_Howto_d00b.html
– zarkdav – 2011-11-11T10:04:39.3572You'll probably want to convert the files and directories on the filesystem to use "extents" too, by using
chattr +e file
on everything. – Legooolas – 2012-07-20T22:16:26.397