Results 1 to 9 of 9

Thread: Moving /home to 2nd hard drive & fstab

Hybrid View

  1. #1
    Senior Member
    Join Date
    Nov 2001
    Posts
    269

    Moving /home to 2nd hard drive & fstab

    Have already copied my /home directory to my 2nd hard drive - now I (apparently) need to make an entry in my /etc/fstab file to "inform" the system that the new /home directory is on the 2nd hard drive (going to "move the current one to "oldhome" temporarily to make sure it works before deleting it). Problem is: I don't see any entry that might be it. One entry pertains to the CDROM, one to the floppy, two are to the two windows areas (C2 and the backup on the 2nd hard drive). The others are:
    "/dev/hdc5/ext2detaults11" and
    "none/dev/plsdevplsmode-062000" and
    "none/dev/shmtmpfsdefaults00" and the last line is:
    "none/procprocdetaults00"

    How do I tell the system the /home directory is now on the second hard drive? I must be missing something obvious. Thanks in advance! ???

  2. #2
    Senior Member
    Join Date
    May 2001
    Posts
    472

    Re: Moving /home to 2nd hard drive & fstab

    Assuming it is on the first partition of the second drive (hdb1), your entry would look like:

    /dev/hdb1 /home ext2 defaults 1 1


  3. #3
    Senior Member
    Join Date
    Nov 2001
    Posts
    269

    Re: Moving /home to 2nd hard drive & fstab

    Only line that comes close to that is:
    "/dev/hdc5/ ext2detaults 1 1"
    If this is it - do I change the "ext2defaults 1 1" to..........??
    -----------------
    Assuming it is on the first partition of the second drive (hdb1), your entry would look like:

    /dev/hdb1 /home ext2 defaults 1 1


  4. #4

    Re: Moving /home to 2nd hard drive & fstab

    nope these settings can stay the same cause you just move the harddisk but dont change the filesystem type or the mount options

  5. #5
    Senior Member
    Join Date
    Nov 2001
    Posts
    269

    Re: Moving /home to 2nd hard drive & fstab

    Appreciate the help but let me make sure my dense mind understands this: all I have to change (on the quoted line) is the hard drive from hdc5 to the second hard drive address? Does it need to be broken down, i.e., win_c2/home?? Again, thanks for the help.
    nope these settings can stay the same cause you just move the harddisk but dont change the filesystem type or the mount options

  6. #6
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re: Moving /home to 2nd hard drive & fstab


    all *I have to change (on the quoted line) is the hard drive from hdc5 to the second hard drive address?
    YES.

  7. #7
    Junior Member
    Join Date
    May 2001
    Posts
    53

    Re: Moving /home to 2nd hard drive & fstab

    Actually, wouldn't he need to add a new line like the one stated above, not change the line that's in there. The existing line looks like it's for the root partition. Might not be too successful trying to boot without that.

    To clarify, keep the entry you have that says:

    /dev/hdc5 / ext2 defaults 1 1

    and add another that says:

    /dev/hdb1 /home ext2 defaults 1 2

    Replace hdb1 with whatever partition number your new /home is.

  8. #8
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re: Moving /home to 2nd hard drive & fstab


    To clarify, keep the entry you have that says:

    /dev/hdc5 / ext2 defaults 1 1

    and add another that says:

    /dev/hdb1 */home *ext2 *defaults 1 2

    Replace hdb1 with whatever partition number your new /home is.
    I re-read the post and yeap you are correct as ph34r has already so pointed out to do it this way....

  9. #9

    Re: Moving /home to 2nd hard drive & fstab

    Yeah, if the old /home directory was part of the / partition and wasn't on it's own disk, it wouldn't have an entry in the fstab, so you'd have to add a new one to tell linux that the /home directory should be mounted to a new partition instead of reading what's actually on the disk.

    What you'll want to do, ultimately, is move /home to /oldhome, then make a new /home directory (must be empty), then put the new partition into your fstab.

Similar Threads

  1. Iffy: Iomega Home Media Network Hard Drive Cloud Edition
    By mmmmna in forum Linux - General Topics
    Replies: 0
    Last Post: 03-30-2012, 12:38 AM
  2. Moving hard drive with data from 98 to XP
    By jim hall in forum Windows - General Topics
    Replies: 0
    Last Post: 10-07-2005, 05:00 PM
  3. FC3 and drive labels for fstab
    By Schotty in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 01-08-2005, 03:56 AM
  4. /home or /home/username in fstab?
    By Dswissmiss in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 10-17-2004, 06:42 AM
  5. Hard drive moving
    By ciaran in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 06-01-2002, 02:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •