converting file system from ext3 to ext4
Posted 02-04-2010 at 04:22 AM by raju.mopidevi
ext4 filesystem supports large volumes of files, backward compatibility with ext2 and ext3, persistent pre-allocation of on-disk space for a file, delayed allocation, journal checksumming, online defragmentation and many more such things. If that isn't enough for you, Jaunty Jackalope has been a very fast, powerful and beautiful distro version of Ubuntu that everyone is appreciating.
1. boot the computer from the Ubuntu 9.* Desktop CD
2. Once you are booted into the live environment, run the following command replacing /dev/DEV with the drive partition that you want to upgrade.
[NOTE : the -O is the capital letter O, not zero]
3. You then need to run fsck to fix up some on-disk structures that tune2fs has modified.
4. Next, mount the drive
5. Edit fstab and change ext3 to ext4 on the drive you upgraded
UUID=xxxx / ext4 relatime,errors=remount-ro 0 1
6. Finally, you need to run grub-install on your new partition. The version of grub that shipped with Ubuntu 8.10 cannot boot from ext4 partitions so if you skip this step, your computer won't boot.
7. Now reboot the computer and enjoy your new ext4 filesystem
1. boot the computer from the Ubuntu 9.* Desktop CD
2. Once you are booted into the live environment, run the following command replacing /dev/DEV with the drive partition that you want to upgrade.
Code:
tune2fs -O extents,uninit_bg,dir_index /dev/DEV
3. You then need to run fsck to fix up some on-disk structures that tune2fs has modified.
Code:
e2fsck -fD /dev/DEV
Code:
mount -t ext4 /dev/DEV /mnt
UUID=xxxx / ext4 relatime,errors=remount-ro 0 1
6. Finally, you need to run grub-install on your new partition. The version of grub that shipped with Ubuntu 8.10 cannot boot from ext4 partitions so if you skip this step, your computer won't boot.
Code:
grub-install /dev/DEV –root-directory=/mnt –recheck
Total Comments 0