How to Reformat /home after install

:
Hiya,

I have installed 11.0 alongside vista successfully :slight_smile: however, I want to get my 60Gb /home partition mountable in Windows using Ext2ifs. The only thing standing in the way is that it was formatted using inode blocks of 256bytes instead of 128, which this fs requires.

Assuming I am willing to sacrifice any performance/forward compatibility (did I see ext4 mentioned somewhere?) afforded by larger inodes, how would I go about reformatting a partition?

possibilities as I see it are:

  1. boot from CD and reformat during a repair, then get it to set up user accounts again

  2. boot into failsafe and do it via command, then repair from DVD,

  3. boot into graphical interface and log in as root (which won’t have any files on the /home to make the UI die when I run

mkfs.ext3 -I 128

and erase all personal files).

I am not bothered about anything on the /home yet, (I don’t mind downloading my entire IMAP inbox again, and I haven’t moved any other old data across yet) assuming that by using zypper to install everything I have been putting it into the / partition.

Please inform me if I am insane and there is a really simple way to do this in administrator settings or something.

Much obliged

Joe

Switch to the console with Ctrl-Alt-F1 and login as root and then unmount /home and run mke2fs, then mount it again. You’ll have to recreate the user home directory and make it owned by the user.

The User Account / password will remain?

Similarly are “Documents”, “Desktop” etc special links or just mkdir?

Will I have to specify the mountpoint somewhere, and call it /home?

Those are in /etc/passwd and /etc/shadow and will not be touched.

Similarly are “Documents”, “Desktop” etc special links or just mkdir?

Those are lost and you may wish to

cp -a /etc/skel/. ~joe
chown -R joe:users ~joe

Or backup your home before reformatting.

Will I have to specify the mountpoint somewhere, and call it /home?

Mountpoints are in /etc/fstab and are untouched.

Thanks very much, I will let you know if I succeed!

Thanks, That has now worked!

I forgot to remount after the format, so my first attempt at copying the template failed and login just crashed, but all sorted now. and it mounts from windows!

Shared media on /home here I come…

Thanks very much,

Joe

By the way for anyone finding this thread useful later- I am not certain the code fragments for re-creating a home profile skeleton are accurate - I used

cp -a /etc/skel/. /home/joe
chmod -R joe:users /home/joe

rather than ~joe, and that seemed to work.

~joe ought to expand to /home/joe if joe is in /etc/passwd.