How do I format my /home partition ( which is xfs ) to ext4 or FAT32 ?

Hi. I just installed openSUSE 13.2 and I want am already low on my “/” partition space ( 40 GiB ). I just went with the suggested partitioning and now I want to format my home partition with ext4 without failing my system from booting. Can anyone tell me how can I safely do that? my distro is: openSUSE 13.2 GNOME. Thanx lol!

The first thing to do will be to back up /home to some external media. (Make sure it is formatted ext4 or similar to preserve permissions.) Before you shut down, you can edit /etc/fstab to reflect the ext4 partition type. Be careful with typos though. Then you’ll need to reformat the partition, using a partitioning tool. GParted on a Live CD or USB is good for this task. Once done, you can copy the data back to /home. Now, you should be good to boot again.

For the brave and interested, you might want to consider fstransform. It claims to be able to convert between a number of file-systems on the fly. (I don’t have personal experience with this, but others report success. I would always back up data before proceeding with any method.)

http://www.linux-magazine.com/Online/Features/Converting-Filesystems-with-Fstransform

FAT32?
I don’t think so…

On 2014-11-18, jatinkaushal280280 <jatinkaushal280280@no-mx.forums.opensuse.org> wrote:
> Hi. I just installed openSUSE 13.2 and I want am already low on my “/”
> partition space ( 40 GiB ). I just went with the suggested partitioning
> and now I want to format my home partition with ext4 without failing my
> system from booting. Can anyone tell me how can I safely do that? my
> distro is: openSUSE 13.2 GNOME. Thanx lol!

Before making any recommendation, we need to know more about your hard drive configuration. Please run GNOME’s terminal
and entire the following commands:


sh-4.2$ df -h
sh-4.2$ cat /etc/fstab | grep dev
sh-4.2$ su -c "fdisk -l"

… and paste the results here inside code tags, iconified by octothorpes (#) in the forum toolbar.

Couple of questions just to check for things:

  1. How have you managed to fill up your / partition so quickly?
  2. Why have you chosen ext4 as your home partition file format?

… but NOT FAT32, for heaven’s sake!:sarcastic:

On 2014-11-18 07:46, jatinkaushal280280 wrote:
>
> Hi. I just installed openSUSE 13.2 and I want am already low on my “/”
> partition space ( 40 GiB ). I just went with the suggested partitioning
> and now I want to format my home partition with ext4 without failing my
> system from booting. Can anyone tell me how can I safely do that? my
> distro is: openSUSE 13.2 GNOME. Thanx lol!

If you just installed, backup your data, and install again. Migration is
doable but not trivial. AND, migration of home will not solve your low
space on “/”, you also need to resize it, or choose not btrfs on it.

And of course, you CANNOT use FAT32 on /home.

I would leave home as XFS, actually. It is a very good choice.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)