niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » Setup
sd_mod spinning up empty removable drive... forever!
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
Silver Dream !
*nix forums beginner


Joined: 25 Feb 2005
Posts: 5

PostPosted: Fri Feb 11, 2005 10:07 pm    Post subject: sd_mod spinning up empty removable drive... forever! Reply with quote

Hi group,

I am not sure if this is a bug in sd.c or setup problem or even
something else but on my system (2.6.8 - Fedora based distro) with
AHA-2940 SCSI controller and a removable syquest drive (SQ3270S) I
encounter the problem as per subject line. On boot-up, whenever the
relevant modules are loaded, it tries to spin-up the SyQuest drive and
this fails unless there is medium inserted in the drive. The problem is
that it tries to do it at all but even worse that it doesn't give up!
The solution is to insert the medium and allow it to spin-up. The
booting can then continue but whenever I remove the medium - the eternal
"spinning up drive" message and the 1s period of activity LED blinking
come back Sad In the /proc entries the drive is properly recognised as
"removable".

Any clues on how to get rid of that?

TNX.
Back to top
kermit
*nix forums Guru


Joined: 19 Feb 2005
Posts: 300

PostPosted: Sat Feb 12, 2005 11:32 am    Post subject: Re: sd_mod spinning up empty removable drive... forever! Reply with quote

Silver Dream ! wrote:

Quote:
Hi group,

I am not sure if this is a bug in sd.c or setup problem or even
something else but on my system (2.6.8 - Fedora based distro) with
AHA-2940 SCSI controller and a removable syquest drive (SQ3270S) I
encounter the problem as per subject line. On boot-up, whenever the
relevant modules are loaded, it tries to spin-up the SyQuest drive and
this fails unless there is medium inserted in the drive. The problem is
that it tries to do it at all but even worse that it doesn't give up!
The solution is to insert the medium and allow it to spin-up. The
booting can then continue but whenever I remove the medium - the eternal
"spinning up drive" message and the 1s period of activity LED blinking
come back Sad In the /proc entries the drive is properly recognised as
"removable".


this seems to be bad intercation between hardware and driver. Your drive
does not properly indicates "no media" condition (or even does not declare
itself removable drive at all) and driver attempts forever to start it
(well, that it does not stop is a bug too).

I suggest you post lkml or (better) linux-scsi with description of this
problem.

Quote:
Any clues on how to get rid of that?



As a quick workaround - add dev_flags parameter with flag BLIST_NOSTARTONADD
(normally 0x1000, check inlcude/scsi/scsi_devinfo.h):

{pts/2}% modinfo scsi-mod
filename: /lib/modules/2.6.10-1mdk/kernel/drivers/scsi/scsi_mod.ko.gz
....
parm: dev_flags:Given scsi_dev_flags=vendor:model:flags[,v:m:f]
add black/white list entries for vendor and model with an integer value of
flags to the scsi device info list

=arvi=
Back to top
Silver Dream !
*nix forums beginner


Joined: 25 Feb 2005
Posts: 5

PostPosted: Sun Feb 13, 2005 4:29 pm    Post subject: Re: sd_mod spinning up empty removable drive... forever! Reply with quote

kermit wrote:

Quote:
I am not sure if this is a bug in sd.c or setup problem or even
something else but on my system (2.6.8 - Fedora based distro) with
AHA-2940 SCSI controller and a removable syquest drive (SQ3270S) I
encounter the problem as per subject line. On boot-up, whenever the
relevant modules are loaded, it tries to spin-up the SyQuest drive and
this fails unless there is medium inserted in the drive. The problem is
that it tries to do it at all but even worse that it doesn't give up!
The solution is to insert the medium and allow it to spin-up. The
booting can then continue but whenever I remove the medium - the eternal
"spinning up drive" message and the 1s period of activity LED blinking
come back Sad In the /proc entries the drive is properly recognised as
"removable".



this seems to be bad intercation between hardware and driver. Your drive
does not properly indicates "no media" condition

I guess it does as I have never had any problem with it for years, but
of course am not 100% sure here.

Quote:
(or even does not declare
itself removable drive at all)

This I have checked in /proc, as I have written above - it is recognised
as "removable" drive.

Quote:
and driver attempts forever to start it
(well, that it does not stop is a bug too).

Right. Looks so.

Quote:

I suggest you post lkml or (better) linux-scsi with description of this
problem.


OK.

Quote:

Any clues on how to get rid of that?




As a quick workaround - add dev_flags parameter with flag BLIST_NOSTARTONADD
(normally 0x1000, check inlcude/scsi/scsi_devinfo.h):

OK. 0x1000 is there. But could you tell me where should I add this to
make it effective on boot? Maybe an example? Thank you in advance. It
might be a newbie-style question but this is a different distro and
different kernel. I am quite fluent with 2.4 and Debian based distros -
yet this one gives me a lot of PITA ...
Back to top
kermit
*nix forums Guru


Joined: 19 Feb 2005
Posts: 300

PostPosted: Sun Feb 13, 2005 6:33 pm    Post subject: Re: sd_mod spinning up empty removable drive... forever! Reply with quote

Silver Dream ! wrote:

Quote:
kermit wrote:

I am not sure if this is a bug in sd.c or setup problem or even
something else but on my system (2.6.8 - Fedora based distro) with
AHA-2940 SCSI controller and a removable syquest drive (SQ3270S) I
encounter the problem as per subject line. On boot-up, whenever the
relevant modules are loaded, it tries to spin-up the SyQuest drive and
this fails unless there is medium inserted in the drive. The problem is
that it tries to do it at all but even worse that it doesn't give up!
The solution is to insert the medium and allow it to spin-up. The
booting can then continue but whenever I remove the medium - the eternal
"spinning up drive" message and the 1s period of activity LED blinking
come back Sad In the /proc entries the drive is properly recognised as
"removable".



this seems to be bad intercation between hardware and driver. Your drive
does not properly indicates "no media" condition

I guess it does as I have never had any problem with it for years, but
of course am not 100% sure here.


OK, it does not return the information that driver interprets as "medium not
present" :)

Quote:
(or even does not declare
itself removable drive at all)

This I have checked in /proc, as I have written above - it is recognised
as "removable" drive.

and driver attempts forever to start it
(well, that it does not stop is a bug too).

Right. Looks so.


I suggest you post lkml or (better) linux-scsi with description of this
problem.


OK.


Any clues on how to get rid of that?




As a quick workaround - add dev_flags parameter with flag
BLIST_NOSTARTONADD (normally 0x1000, check inlcude/scsi/scsi_devinfo.h):

OK. 0x1000 is there. But could you tell me where should I add this to
make it effective on boot?

if you have scsi_mod as module, just add to /etc/modprobe.conf

options scsi_mod dev_flags=VENDOR:MODEL:0x1000

replace VENDOR and MODEL with correct values for your drive. If scsi_mod is
loaded in initrd, you may need to regenerate it.

regards

=arvi=

Quote:
Maybe an example? Thank you in advance. It
might be a newbie-style question but this is a different distro and
different kernel. I am quite fluent with 2.4 and Debian based distros -
yet this one gives me a lot of PITA ...
Back to top
Silver Dream !
*nix forums beginner


Joined: 25 Feb 2005
Posts: 5

PostPosted: Mon Feb 14, 2005 7:12 pm    Post subject: Re: sd_mod spinning up empty removable drive... forever! Reply with quote

kermit wrote:

[...]

Quote:
As a quick workaround - add dev_flags parameter with flag
BLIST_NOSTARTONADD (normally 0x1000, check inlcude/scsi/scsi_devinfo.h):

OK. 0x1000 is there. But could you tell me where should I add this to
make it effective on boot?


if you have scsi_mod as module, just add to /etc/modprobe.conf

options scsi_mod dev_flags=VENDOR:MODEL:0x1000

replace VENDOR and MODEL with correct values for your drive.

Hm, this might be the problem. My regular Debian based 2.4 setup without
initrd recognises the Vendor: SyQuest, Model: SQ3270S, Rev: 1_27 etc.

The 2.6.9 Fedoraalike gets only the Rev: 1_27 field while having both
VENDOR:MODEL empty! I have a gut feeling that this might be tightly
connected to the problem I experience.

Quote:
If scsi_mod is
loaded in initrd, you may need to regenerate it.

Yes, that might be the case. I immediately found and tried modprobe.conf
but with no apparent results. Then i tried to blame the "hotplug" stuff
but blacklisting the module(s) didn't help either. OK. Going to check
what I can do with the initrd. I may probably need to change the "aic"
driver module too... Thank you for the good pointers.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 7:18 pm | All times are GMT
navigation Forum index » *nix » Linux » Setup
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Need help getting Sony DAT tape drive to work on Irix 6.5 trebor SGI/IRIX 1 Sun Apr 13, 2008 3:19 am
No new posts Secondary db empty susu Berkeley DB 0 Thu Sep 21, 2006 10:37 am
No new posts CD/DVD Drive Speed John Howell Suse 0 Fri Jul 21, 2006 10:43 am
No new posts tape drive sharing shuklameeta@yahoo.co.in Solaris 6 Thu Jul 20, 2006 10:32 am
No new posts USB Key Drive Patrick Ester Debian 2 Thu Jul 20, 2006 3:30 am

Credit Card | Promotional Web Design | Air Jordans | Magazine Subscriptions | eHarmony
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1533s ][ Queries: 16 (0.0562s) ][ GZIP on - Debug on ]