LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   2 Hard Drive Question (https://www.linuxquestions.org/questions/linux-newbie-8/2-hard-drive-question-92687/)

jmelgin 09-14-2003 10:50 AM

2 Hard Drive Question
 
I am running RH9 and have two hard drives. I want to put personal files and a common music directory on the 2nd drive (/home directory?) for our network users to access. How do I do this?

Demonbane 09-14-2003 11:27 AM

Assuming you already have it partitioned and formatted. First su or login as root then mount it somewhere and copy the contents of your /home directory(without the /home path) into it, preserving permissions/ownership etc(cp -a)
Rename your current /home directory to something else in case something goes wrong, then mkdir a new /home. Next add/modify the /home mount point in your /etc/fstab
so if your second harddrive is /dev/hdb you should have something like
/dev/hdb1 /home ext3 defaults 1 1
then either do a reboot or umount the second drive, and remount it to /home. If everything's fine then you can delete the old /home if you want to save space.

hope this helps.

jmelgin 09-15-2003 07:06 PM

Thanks! It took me awhile as I had not yet partioned or formatted the drive, but I finally got it done.


All times are GMT -5. The time now is 01:52 AM.