LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-26-2005, 10:14 AM   #1
MrLizard
LQ Newbie
 
Registered: Mar 2005
Location: glasgow
Distribution: ubuntu hoary (5.04) on acer travelmate 8103 & Custom desktop
Posts: 23

Rep: Reputation: 15
Automounting SATA???


Hi,

I'm sure i've seen answers to this issue before so i apologise in advance for any redundancy in this thread, but i just can't seem to find them again and i don't remember them being much use...

anyway,

I have a 160Gb SATA HDD with five partitions. I'm familiar with editing my fstab file so that i can mount the drive manually using the mount command but how can i get it to automount at start-up?

I wasn't too concerned with this when it only had a single partition on it but I've just formatted it with FAT32, limiting the max size of each partition and it's obviously going to be a real pain to manually mount five partitions everytime i turn the computer on.
 
Old 07-26-2005, 10:16 AM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
the "auto" keyword in the fstab does what you want.
 
Old 07-26-2005, 12:29 PM   #3
MrLizard
LQ Newbie
 
Registered: Mar 2005
Location: glasgow
Distribution: ubuntu hoary (5.04) on acer travelmate 8103 & Custom desktop
Posts: 23

Original Poster
Rep: Reputation: 15
thanks but no, it doesn't.

that's my point: the auto command doesn't actually work with SATA disks. I remember it's something to do with the order in which grub loads stuff up.

there's something i have to edit in the grub configuration but i've no idea what.

instead, i was wondering if it could be possible to write a shell script that would run automatically and execute the required commands?
 
Old 07-26-2005, 12:44 PM   #4
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
are you sure? Grub has nothing to do with the disks not autoloading. The init process handles that. Anyway, about the next question, you can call anything on bootup at /etc/rc.d/rc.local (for slack). There is something similar in Debian. You have to give it the full filename for the script in order for it to execute.
 
Old 07-26-2005, 03:20 PM   #5
MrLizard
LQ Newbie
 
Registered: Mar 2005
Location: glasgow
Distribution: ubuntu hoary (5.04) on acer travelmate 8103 & Custom desktop
Posts: 23

Original Poster
Rep: Reputation: 15
positive, yeah. all the entries associated with the sata disk in the fstab produce 'special device sda* does not exist' messages at start up.

However, I managed to track down a script called bootmisc.sh which runs miscellaneous tasks at start up at /etc/rcS.d in Ubuntu and stuck the commands in there and it now works perfectly!

Thankyou very much for your assistance, you've saved me a ridiculous amount of hassle.
 
Old 07-26-2005, 03:28 PM   #6
borromini
Member
 
Registered: Jul 2005
Location: Belgium
Distribution: Zenwalk 2.8
Posts: 35

Rep: Reputation: 15
Quote:
Originally posted by MrLizard
thanks but no, it doesn't.

that's my point: the auto command doesn't actually work with SATA disks. I remember it's something to do with the order in which grub loads stuff up.

there's something i have to edit in the grub configuration but i've no idea what.

instead, i was wondering if it could be possible to write a shell script that would run automatically and execute the required commands?
It does actually - the problem is not that it is a s-ata disk. The problem are the partitions. I had this problem several times. Your hd is never mounted - only the partitions on it are. If the S-ATA support didn't work, you wouldn't see your hd at all. You'll have to modify your fstab for now and make sure any user can mount the affected partitions, then create a startup script executed at login, that mounts those partitions. It's a workaround.
 
  


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
Automounting cybersaga Slackware 4 02-03-2005 11:53 PM
AutoMounting .???...............yes, Again :) hamoksh Linux - Newbie 7 08-15-2003 02:07 PM
automounting?? graffitici Linux - Hardware 6 07-04-2003 03:58 AM
AutoMounting dkc_ace Linux - Hardware 2 05-13-2003 01:57 PM
Automounting vector Linux - General 4 03-19-2003 05:00 PM

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

All times are GMT -5. The time now is 10:48 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