Fedora Linux Support Community & Resources Center
  #1  
Old 18th November 2008, 02:25 PM
josephmo Offline
Registered User
 
Join Date: Jun 2008
Posts: 13
Home partition and disk partioning

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?
Reply With Quote
  #2  
Old 19th November 2008, 12:03 PM
ibbo's Avatar
ibbo Offline
Registered User
 
Join Date: Jun 2005
Location: Leeds
Posts: 1,264
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
__________________
A Hangover Lasts A Day, But Our Drunken Memories Last A Lifetime
--
Linux user #349545
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCfdjyzXscddzQvlhBedAcD7qfKmHo==zx0H
Reply With Quote
  #3  
Old 24th February 2009, 03:22 AM
measekite Offline
Banned
 
Join Date: Feb 2009
Posts: 63
separate home partition

Quote:
Originally Posted by ibbo View Post
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?
Reply With Quote
Reply

Tags
home directory, lvm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F11 & home partition kraseef Installation and Live Media 18 19th June 2009 06:03 AM
Re-doing /home Partition webserverdude Hardware & Laptops 1 20th June 2006 05:23 PM
\home Hard Disk Partition Problem dnageekbio Hardware & Laptops 2 5th June 2006 06:01 AM
Q: Add /home partition aero-z Using Fedora 15 10th July 2005 10:49 PM
/home partition vs. /home directory leasure98 Using Fedora 3 28th May 2004 04:39 AM


Current GMT-time: 09:57 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat