Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th January 2008, 11:24 PM
robertdaleweir Offline
Registered User
 
Join Date: Oct 2005
Location: British Columbia, Canada
Posts: 402
Question Mounting The Home Directory to a Separate Hard Drive

I would like to mount my /home directory on a second Hard Drive (separate spindle). Installed F8 recently and want all my user information on a completely separate drive. I saw one thread on mounting home on a separate partition but was unable understand the exact process, hence unable to get it to work for me.
My current fdisk -l is --->
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000ca1ce

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 9729 77947380 8e Linux LVM

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0002e262

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 30402 244198583+ 8e Linux LVM

Disk /dev/dm-0: 77.6 GB, 77678510080 bytes
255 heads, 63 sectors/track, 9443 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Disk /dev/dm-1 doesn't contain a valid partition table
<---

and my /etc/fstab is --->

[root@red bin]# cat /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

The /dev/sdb is where I want to mount home. Thanks in advance...
Reply With Quote
  #2  
Old 25th January 2008, 11:34 PM
sidebrnz's Avatar
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,105
OK, here's what I'd do: first, I'd partition and format that new hard disk and give it a label such as HOME, to make it obvious what it's for. (Pretty much all of this probably has to be done as root.) Then, I'd create a temporary mountpoint and mount it:

mkdir /mnt/home
mount DISKNAME /mnt/home

Then, copy all of /home over with this:

cp -pR /home /mnt/home

Next, of course, is to modify fstab by adding this line:

/HOME ext3 /home defaults 0,0

You can then test this by running

mount -a

to remount everything in fstab. If something doesn't work, you can always restore the backup of fwstab (fstab~) and back out of this. I'm doing this mostly from memory on a Windows box, so I may have missed something, but I think I've got the basics of it right. Good luck!
Reply With Quote
  #3  
Old 26th January 2008, 12:18 AM
lazlow Offline
Registered User
 
Join Date: Aug 2005
Posts: 3,172
I think the ext3 has to be after /home, but other than that it looks pretty good.

/HOME /home ext3 defaults 0,0


Edit: After you make sure it works, you may want to unmount it and remove anything in /home (not /HOME) to regain any lost space on the root drive.
Reply With Quote
  #4  
Old 26th January 2008, 12:46 AM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
Quote:
Originally Posted by lazlow
I think the ext3 has to be after /home, but other than that it looks pretty good.

/HOME /home ext3 defaults 0,0


Edit: After you make sure it works, you may want to unmount it and remove anything in /home (not /HOME) to regain any lost space on the root drive.
Shouldn't it be LABEL=/HOME?
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #5  
Old 26th January 2008, 12:54 AM
sidebrnz's Avatar
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,105
Yeah; just do it the same way as / is mounted and it should work. The nice thing is that if it doesn't, your current /home is still there, which is why I recommended cp instead of mv.
Reply With Quote
  #6  
Old 26th January 2008, 12:58 AM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
Don't mean to hijack, but... in a semi-related question, what file systems can you use for a /home directory?

ext2
ext3
reiserfs
reiser4
xfs

Right? Wrong? Any others?
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #7  
Old 26th January 2008, 01:12 AM
sidebrnz's Avatar
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,105
You can use any filesystem your little heart desires. Personally, I use ext3 for everything, by YMMV.
Reply With Quote
  #8  
Old 26th January 2008, 01:41 AM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
Quote:
Originally Posted by sidebrnz
You can use any filesystem your little heart desires. Personally, I use ext3 for everything, by YMMV.
Hmm. Not so sure about that. I asked awhile back about using FAT32 for a /home and a bunch of people said it's not possible.

No idea, though. I've never tried it.
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #9  
Old 26th January 2008, 02:00 AM
amanadas Offline
Registered User
 
Join Date: Aug 2007
Posts: 58
If you want to use LABEL to mount a partition you have to label the partition with that same label. With ext2/ext3 partitions for example.

e2label /dev/sda1 /home

Will label the first partition in the first disk "/home". If you want to mount it in fstap file with that label you have to specify.

LABEL=/home /home ext3 defaults 1,2

If you don't want to use Labels just specify the disk/partition you have put you home partition in.
Reply With Quote
  #10  
Old 26th January 2008, 05:50 AM
robertdaleweir Offline
Registered User
 
Join Date: Oct 2005
Location: British Columbia, Canada
Posts: 402
Hi
I am sorry it took so long to get back to all of you. I was able to get my problem solved with the help of all who posted. This was a very valuable addition to my knowledge of Linux in general and saved me a lot of effort. I thank you ever so much...
Reply With Quote
Reply

Tags
directory, drive, hard, home, mounting, separate

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
Fedora not booting on Separate Hard Drive Nagglfar Hardware & Laptops 2 12th February 2009 06:22 PM
Problems installing F8 on separate Hard Drive Pfredpfudpucker Installation and Live Media 3 4th May 2008 02:09 PM
/home is limited to mb when a 80 GB hard drive is partioned as /home tmick Installation and Live Media 7 12th November 2006 09:44 AM
Help when using separate Hard Drive Bigguy2468 Installation and Live Media 3 21st January 2006 11:40 PM
Mounting files partition to user's home directory Smartweb Using Fedora 1 19th May 2005 05:52 AM


Current GMT-time: 02:45 (Thursday, 23-05-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