Announcement

Collapse
No announcement yet.

Convert ext3 to ext4 (SOLVED)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Convert ext3 to ext4 (SOLVED)

    Hi

    I tried to convert my ext3 to ext4 with these comands: (found here:h**p://maketecheasier.com/how-to-upgrade-from-ext3-to-ext4-without-formatting-the-hard-disk/2009/04/21)

    Go to System->Partition Editor. This will show all the partition in your hard disk. Record down the filesystem ID of the partition that you want to convert to ext4.

    gparted

    Close the Partition Editor. Open a terminal, type the following:

    sudo tune2fs -O extents,uninit_bg,dir_index /dev/XXXX

    Replace XXXX by the filesystem ID that you have recorded just now.

    Once that is done, type the following to fixed your partition:

    sudo fsck -pf /dev/XXXX

    Don’t forget to replace XXXX with your filesystem ID.

    Mount your filesystem

    sudo mount -t ext4 /dev/XXXX /mnt

    Open the fstab file:

    gksu gedit /mnt/etc/fstab

    and change the ext3 entry to ext4. Save and exit.

    edit fstab

    Back to the terminal, we need to reinstall the grub bootloader.

    sudo grub-install /dev/XXX

    This time, replace the XXX by the filesystem without the number. For example, sudo grub-install /dev/sda

    Close the terminal and restart the computer. Reboot into ubuntu 9.04.

    In the terminal, type

    df -T

    You should see your filesystem mounted as ext4 now


    I couldn't change the FSTAB file (it said it was not possible to save changes).

    After I restarted, I oppend Gparted and it shows the partition as Ext4, but if I do a mount command this appears: /dev/sdb1 on / type ext3 (rw,relatime,errors=remount-ro).
    If I do a df -T, is also shows ext3.

    Which one is correct, after all??
    Thank You

    #2
    Re: Convert ext3 to ext4

    You didn't say whether you unmounted the partition first -- or did you use a Live CD to do this? The partition must be unmounted to do such operations on it.

    If df indicates that it is an ext3 filesystem, then I would believe that to be the case. If you have valuable data on that partition, you would be well-advised to back it up safely, if you can, before you do anything further.

    Comment


      #3
      Re: Convert ext3 to ext4

      Hi

      I used a Kubuntu LiveCD, so it was unmounted.
      The backup is already made

      Should I do all the process again?

      Comment


        #4
        Re: Convert ext3 to ext4

        Hi

        It was solved with this: "sudo nano /etc/fstab"

        Thanks

        Comment

        Working...
        X