|
|
|
|
|
|
| Author |
Message |
Silver Dream ! *nix forums beginner
Joined: 25 Feb 2005
Posts: 5
|
Posted: Fri Feb 11, 2005 10:07 pm Post subject:
sd_mod spinning up empty removable drive... forever!
|
|
|
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 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
|
Posted: Sat Feb 12, 2005 11:32 am Post subject:
Re: sd_mod spinning up empty removable drive... forever!
|
|
|
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 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
|
Posted: Sun Feb 13, 2005 4:29 pm Post subject:
Re: sd_mod spinning up empty removable drive... forever!
|
|
|
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 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
|
Posted: Sun Feb 13, 2005 6:33 pm Post subject:
Re: sd_mod spinning up empty removable drive... forever!
|
|
|
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 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
|
Posted: Mon Feb 14, 2005 7:12 pm Post subject:
Re: sd_mod spinning up empty removable drive... forever!
|
|
|
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 |
|
 |
|
|
The time now is Thu Jan 08, 2009 7:18 pm | All times are GMT
|
|
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
|
|