PDA

View Full Version : [ubuntu] Upgrade from ext3 to ext4



hesjnet
April 18th, 2009, 01:43 PM
Is it possible to upgrade from ext3 to ext4 without formating the partition first?

Partyboi2
April 18th, 2009, 01:50 PM
You can convert to ext4 from ext3 without formatting and loosing data.

hesjnet
April 18th, 2009, 01:52 PM
Is this choice availiable in the jaunty install?

dksite
April 18th, 2009, 01:57 PM
You can convert to ext4 from ext3 without formatting and loosing data.

Are you sure? Someone in IRC told me you need to do a clean install to get ext4 w/o losing any data.

Partyboi2
April 18th, 2009, 02:46 PM
Are you sure? Someone in IRC told me you need to do a clean install to get ext4 w/o losing any data.
I converted my ext3 to ext4 without loosing any data.

@hesjnet
You have to convert it manually, Jaunty does not come automatically with it.

CheesyD
April 18th, 2009, 05:53 PM
I converted my ext3 to ext4 without loosing any data.

May I ask how you accomplished this?

54y89
April 19th, 2009, 03:22 AM
Is it possible to upgrade from ext3 to ext4 without formating the partition first?

Yes this is possible but from what i hear and have expirinced on virtual machenes is that ext4 causes grub to become unstable

Partyboi2
April 19th, 2009, 04:13 AM
May I ask how you accomplished this?This is what I did running Jaunty.
First backup your important stuff then boot the ubuntu live cd and open a terminal and covert with

sudo tune2fs -O extents,uninit_bg,dir_index /dev/XXX*change the /dev/XXX to actual partition number (sudo fdisk -l to find correct one)
then run a filesystem check

sudo fsck -pf /dev/XXX *change /dev/XXX to the correct one.
Then you would need to edit your fstab file

sudo mount -t ext4 /dev/XXX /mnt *change /dev/XXX to the correct one.

gksu gedit /mnt/etc/fstaband change ext3 to ext 4 for the partition that you converted as you can see i converted my / and /home

# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda7 during installation
UUID=ff13903a-c958-47a0-8292-f482063226ee / ext4 relatime,errors=remount-ro 0 1
# /home was on /dev/sda5 during installation
UUID=7093b79b-0c36-4fdf-a144-effefceb618d /home ext4 relatime 0 2
# none was on /dev/sda6 during installation
UUID=e1a99e2a-a6d2-495d-8101-c230672981b2 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
Once changes are made save then reboot.

Edit: I did not need to do a grub-install to reinstall the boot loader but according to this (https://wiki.ubuntu.com/JauntyJackalope/ReleaseNotes#Switching%20to%20ext4%20requires%20ma nually%20updating%20grub) you need to.

inobe
April 19th, 2009, 04:19 AM
thanks for the information Partyboi2

Ericyzfr1
April 19th, 2009, 06:15 AM
I would back-up any important files, but I have not heard of loss data while upgrading to ext4.