Results 1 to 9 of 9

Thread: EXT4 to XFS?

  1. #1
    Join Date
    Jun 2005
    Location
    Midlands, UK
    Beans
    176
    Distro
    Ubuntu 11.04 Natty Narwhal

    EXT4 to XFS?

    Hey guys, I currently use a 10GB "/" and remainder in "/home"

    I am looking to change my "/home" directory from ext4 to XFS.

    Can anyone please advise on how to do this please?

    Many thanks.

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: EXT4 to XFS?

    Why do you want to change?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Jun 2005
    Location
    Midlands, UK
    Beans
    176
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: EXT4 to XFS?

    Because I've attempted to tune EXT4 and I'm still not happy with the results, I'd like to try XFS before I settle with EXT4.

  4. #4
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: EXT4 to XFS?

    There is no way to do an in place conversion, you would have to:

    • Boot from a Live CD
    • Copy all your data to a new device.
    • Reformat the partition as XFS.
    • Copy all of the data back.
    • Update /etc/fstab on your root partition with the new UUID of the XFS partition.
    • Reboot and keep your fingers crossed
    Cheesemill

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: EXT4 to XFS?

    You may also have to manually download some other tools to run things like fsck as e2fsck is only for ext4.

    Overall ext4 seems best, only for very specific tasks do other file systems win on a test.
    Ubuntu 12.04 LTS - Benchmarking All The Linux File-Systems
    http://www.phoronix.com/scan.php?pag..._1204_fs&num=1
    Large HDD/SSD Linux 2.6.38 File-System Comparison: EXT3, EXT4, Btrfs, XFS, JFS, ReiserFS, NILFS2
    http://www.phoronix.com/scan.php?pag...38_large&num=1
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    Join Date
    Oct 2008
    Location
    Ottawa, Canada
    Beans
    813
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: EXT4 to XFS?

    The xfsprogs package contain the check/repair tools as well as xfs dump utilities for backup purposes. You'll need it eventually because Ubuntu schedules periodic disk checks on boot. Without the packaged fsck.xfs (which does nothing, successfully), your home partition will refuse to mount at boot.

    Cheers!
    husband@wife$ make sandwich
    Permission denied
    husband@wife$ sudo make sandwich

  7. #7
    Join Date
    Jun 2005
    Location
    Midlands, UK
    Beans
    176
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: EXT4 to XFS?

    OK so I managed to change my /home partition from EXT4 to XFS, problem is when creating the XFS partition I get the following error:

    warning: device is not properly aligned /dev/md2

    I've read up on this but for the life of me can't find a solution.

    Anyone?

  8. #8
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: EXT4 to XFS?

    Is the home partition a raid array?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  9. #9
    Join Date
    Jun 2005
    Location
    Midlands, UK
    Beans
    176
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: EXT4 to XFS?

    Yes it is, "/" is RAID1 and "/home" is RAID0

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •