View Full Version : Home partition and disk partioning
josephmo
18th November 2008, 02:25 PM
I am a Linux newbie. I downloaded the Fedora 10 preview and isntalled it on a system with a 250GB drive. I then installed a new 500GB hard drive. Here's what I want to do: move my Home directory to the new drive.
I started gparted to format the new drive to ext3. Here's what gparted tells me about the drives:
The first drive: /dev/sda with two partitions on it (the install created those):
/dev/sda1 with an ext3 filesystem, mountpoint is /boot, Label is /boot size is 196 MiB, Flags: boot, Raid
/dev/sda2 with an unkown filesystem, nothing for mountpoint and label, size is 232 GiB, Flags: LVM
The second drive: /dev/sdb with one parition:
/dev/sdb2 with an ext3 filesystem, and no flags.
How do I move my Home directory to the /dev/sdb2 drive?
ibbo
19th November 2008, 12:03 PM
Going by your above comments.
1st thing to do is (as root) mv your /home folder to say /home.bk
Edit /etc/fstab and add
/home /dev/sdb2 ext3 defaults 0 0
run mount /home
type mount and check if its listed
If so you can now mv or cp /home.bk/(user_folder) /home/
Make sure your user can access the home dir.
If not check that the home folder has not been taken over by root. ls -lh will tell you. use chown -R user /home/folder && chgrp -R /home/folder to get everything back in order for the user.
Once your happy drop home.bk
When you reboot your /home will be read from fstab and mounted and all been well the user when they login will end up in their home folder..
ibbo
measekite
24th February 2009, 03:22 AM
Going by your above comments.
1st thing to do is (as root) mv your /home folder to say /home.bk
Edit /etc/fstab and add
/home /dev/sdb2 ext3 defaults 0 0
run mount /home
type mount and check if its listed
If so you can now mv or cp /home.bk/(user_folder) /home/
Make sure your user can access the home dir.
If not check that the home folder has not been taken over by root. ls -lh will tell you. use chown -R user /home/folder && chgrp -R /home/folder to get everything back in order for the user.
Once your happy drop home.bk
When you reboot your /home will be read from fstab and mounted and all been well the user when they login will end up in their home folder..
ibbo
Can you do this during installation. By that I mean the filesystem is on part1 and the home folders are on part 2.
So when you bring up nautilus you see this:
home folders
folder 1
folder 2
...
FileSystem
bin
...
etc
home
fedorauser1
fedorauser2
fedorauser3
And
the folders under home folders will belong to which fedorauser logged on being 1 or 2 or 3?
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.