LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-25-2006, 09:44 AM   #1
stefholod
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Rep: Reputation: 0
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

Last edited by stefholod; 03-25-2006 at 09:50 AM.
 
Old 03-25-2006, 10:15 AM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
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.
 
Old 03-25-2006, 11:16 AM   #3
stefholod
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Original Poster
Rep: Reputation: 0
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.

Last edited by stefholod; 03-25-2006 at 11:19 AM.
 
Old 03-25-2006, 11:35 AM   #4
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
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.
 
Old 03-25-2006, 06:40 PM   #5
stefholod
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Original Poster
Rep: Reputation: 0
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".
 
Old 03-25-2006, 07:59 PM   #6
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

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


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding/removing SATA drive redoaks Linux - Newbie 5 03-09-2006 06:34 AM
Adding a SATA internal hard drive matSA289 Linux - Hardware 2 01-04-2006 12:19 PM
root fs is mounted read only after adding new drive PPaladin Linux - Hardware 0 03-02-2004 10:25 AM
Adding drivers, recognise SATA drive installing id10t Slackware 5 01-16-2004 05:11 PM
System hangs on boot after adding SATA drive nuzzy Linux - Hardware 0 09-10-2003 09:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration