On Fri, 05 Jul 2002 08:39:57 +0800 Ian <[EMAIL PROTECTED]> wrote: > Hello. > > I have a RH7.2 system with 1 hard drive mounted as /. > Within it, all of the users directories are at /home/* > I just installed a second hard drive, and I was wondering if it is > possible to mount it as /home/ and use this new hard drive only for > that purpose - to store users' directories. Is this possible, and is > it easy? I've already formatted the new HD and mounted with fstab as > /mnt/hdb, but now I think I want that changed to /home.... > > Thanks for any help. > > - ian
Move everything from the current /home to /mnt/hdb, edit fstab to reflect the new partition then boot into it or mount it. You can do all of this as root without users logged in and with no user processes that need anything in /home (like logging). The fstab entry should look something like this (from my own): /dev/hda2 /home ext3 defaults 1 2 You can also safely copy everything from the current /home directory to /mnt/hdb (cp -a /home/* /mnt/hdb) and change the fstab entry, then mount it without removing anything from the original /home directory. It will mount over the top of anything there, leaving it all untouched. That's good to make sure everything is OK before deleting it all. I think this (copying) will get all of the dotfiles as well, though I haven't done this in some time and can't guarantee it. But, then, that's a good reason for testing first. I'm guessing you have the partitions set up properly as you say it's already mounted. But /dev/hdb isn't a suitable partition. /dev/hdb1 is. Just be sure to put the right thing in fstab. And make sure to umount the old mountpoint before trying to mount the new one. I don't think I left anything out. -- Therapy is expensive, popping bubble wrap is cheap. You choose. _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list