LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Adding a SATA drive to be mounted as /home (https://www.linuxquestions.org/questions/linux-hardware-18/adding-a-sata-drive-to-be-mounted-as-home-428367/)

stefholod 03-25-2006 09:44 AM

Adding a SATA drive to be mounted as /home
 
I am currently trying to set up a SATA hard drive partition (sda1) to use as my /home storage folder. Currently, Linux (OpenSUSE 10.0) is located on my IDE drive (hda1). When I install and mount the SATA partition in the /home folder, it seems to work fine, but on reboot, fsck has a problem with the drive. To resolve this I have to remove the SATA partition line from the fstab and it will boot again.

How would I be able to accomplish loading my drive on boot? Any alternatives if this is possible? Do all the system directories have to located on the same type of device (i.e. IDE,SCSI)?

Any help is appreciated.

Stefan

RobertP 03-25-2006 10:15 AM

Did you have a close look at
man fstab ? What was the line you used in fstab?

It may be that the driver for SATA has not been loaded by the time the filesystems are mounted. You may have to put "noauto" in fstab and then put in the fsck, and mount in a script at a later point. /home usually does not need to be mounted before any user logs in.

stefholod 03-25-2006 11:16 AM

It worked!
 
It totally worked! In the fstab line for the drive I added: "noauto,user" and it seemed not to disturb the booting process. This caused it to mount for the user and not on boot. Thank you for your help.

RobertP 03-25-2006 11:35 AM

Are you on a single user system? Otherwise ",user" could be problematic. If you need to mount your personal home from another partition, just

mount partition /home/youruser

And you need to check permissions. What prevents another user from mounting the /home?
ls -l /dev/sda1

If another user is logged in and you mount /home, where will his files be?

Interesting.

stefholod 03-25-2006 06:40 PM

You are right. It didn't work too well. I did some more research and this is final solution was: "/dev/sda1 /home reiserfs defaults,user_xattr 1 2".

RobertP 03-25-2006 07:59 PM

Looks good! You could become a brain surgeon now, and the patient will survive as well as the surgery being successful.


All times are GMT -5. The time now is 02:43 AM.