Latest LQ Deal: Latest LQ Deals
Go Back > Blogs > raju.mopidevi
User Name


Rate this Entry

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.

tune2fs -O extents,uninit_bg,dir_index /dev/DEV
[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.

e2fsck -fD /dev/DEV
4. Next, mount the drive
mount -t ext4 /dev/DEV /mnt
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.

grub-install /dev/DEV –root-directory=/mnt –recheck
7. Now reboot the computer and enjoy your new ext4 filesystem
Posted in Uncategorized
Views 2266 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 12:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration