LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-15-2015, 06:03 PM   #1
CaptainMart
LQ Newbie
 
Registered: Feb 2015
Location: Cambridgshire, UK
Distribution: Gentoo
Posts: 13

Rep: Reputation: Disabled
Trying to get external SCSI drive to auto mount


I'm running an external RAID array connected to my PC via SCSI with an Adaptec AHA39320 host. Everything works, except I have to manually mount the drives every time the drives or PC come up; the fstab contains the correct parameters and mount -a works. The problem appears to be that the drives are detected very late in the boot, around the same time as the login prompt appears; if I restart the array, there is no entry in /var/log/messages to show that it's come back up, which seems to indicate the trigger point for UDEV is missing. I created a rule that monitored for a SCSI device being added which then called mount -a, but the rule never triggered.
Any ideas? The dist is SliTaz 4.0 (2.6.37); running the aic79xx driver for the Adaptec host.
 
Old 09-15-2015, 06:40 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,337
Blog Entries: 28

Rep: Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144
It's a workaround, but my first thought is maybe write a little script like

Code:
sleep [some interval]  <---if needed
mount [mountpoint]
and execute it from rc.local.

Last edited by frankbell; 09-15-2015 at 06:41 PM.
 
Old 09-16-2015, 01:03 PM   #3
CaptainMart
LQ Newbie
 
Registered: Feb 2015
Location: Cambridgshire, UK
Distribution: Gentoo
Posts: 13

Original Poster
Rep: Reputation: Disabled
I had a similar thought, but it would be nice to get it to work as intended. Are there any settings in the SCSI BIOS that would affect this behaviour, e.g. removeable device settings?
 
Old 09-17-2015, 10:15 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
I'd run a few live cd's of other distro's just to see if it has something to do with slitaz. And I get the feeling it does.

That distro is made to be small and fast. They may have cut some corners.


I don't see there being any settings in raid bios that would assist. The drives in general ought to be available after the scsi bios ends and passes off to next power on sequence.

I don't think that putting in some sleep time would be bad exactly. Knoppix used to make me wait till usb settled.
 
Old 09-18-2015, 01:36 PM   #5
CaptainMart
LQ Newbie
 
Registered: Feb 2015
Location: Cambridgshire, UK
Distribution: Gentoo
Posts: 13

Original Poster
Rep: Reputation: Disabled
Jefro, I wasn't referring to the RAID BIOS, I was referring to the SCSI host BIOS. Anyway, it appears that it's normal behaviour for this hardware setup, but I found an answer courtesy of IBM. In order for the SCSI devices to become known to the operating system, the SCSI bus needs to be rescanned to bring up the newly ready devices; what I did was creat a cron job that reads the SCSI devices using lsscsi, rescan the bus, read the devices again using lsscsi and compare the results. If the 2 results were different, it then automounts the drives using mount -a (the mount points are already set in fstab). It works fine, the only issue is there's a cron job that does nothing 99 of the time, but the overhead is small.
 
Old 09-18-2015, 08:01 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
I get it now, sorry I didn't fully read it well, you have a raid enclosure attached to a scsi adapter.

However, we have no idea where the issue lies. Plenty of linux systems have run on that type of hardware for decades without any issue. I still suspect the odd nature of Slitaz. (and I am a fan of Slitaz)
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-Mount External USB Drive. Cool Canuck Linux - Hardware 2 10-31-2012 08:20 AM
Auto mount external USB hard drive donmaz Linux - Newbie 6 10-03-2012 04:08 PM
How to have external eSATA drive auto mount on plug-in?? colbert Linux - Hardware 14 01-19-2009 11:25 AM
how to auto mount ext4 external hard drive (ubuntu jaunty) pexctt Linux - Hardware 1 01-15-2009 11:58 PM
cant mount external scsi drive jmarsh Linux - Hardware 2 12-17-2003 06:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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