SHORT VERSION: udev daemon to be blamed?!
__________________________________________

LONG VERSION:

@Akos Ladanyi: very true, sorry, I forgot to test "init 1" prior to blaming the 
kernel.
Works for me too in single user mode.

BTW: I see no errors related to issuing the SCSI stop command in the
logs, nor when using the commands' --verbose options, neither when it
works nor when it doesn't. Tried with sdparm, scsi-spin (always gives
timeout after 8 sec and resets SCSI card since the disc takes 12 sec to
spin up) and sg_start. They all issue the same 1b command...

So I rebooted and after loggin in (at runlevel 2) I manually stopped all
services (except sshd) and issued "sdparm -C stop /dev/sdb" again: works
fine! (I always test standby using the command "smartctl --all --nocheck
standby --device=3ware,3 /dev/twa0")

Now I started udev daemon "/etc/init.d/udev start", and that alone spun
up the disc! (Can anyone confirm this?) And: "sdparm -C stop /dev/sdb"
and "smartctl --all --nocheck standby --device=3ware,3 /dev/twa0" don't
work any more. So It looks like a problem with udev!?

In /var/log/messages I get "udev: deprecated sysfs layout; update the kernel or 
disable CONFIG_SYSFS_DEPRECATED; some udev features will not work correctly" 
after starting it. From /usr/share/doc/udev/changelog.Debian.gz I see that 
there have been major changes including SCSI issues when intruducing new 
upstream in Version 140.
___

But strangely if I
- switch off computer
- wait :-)
- switch it on again (boots to runlevel 2 w/o GUI)
- log in as root
- "sdparm -C stop /dev/sdb" results in the bug described earlier
- issue "init 1"
- press Ctrl-D (without entering single user mode) to resume normal operation
- log in as root again
- "sdparm -C stop /dev/sdb" now works as expected, too! Although udev is up and 
running.

?????????????

The only odd thin I noticed is that 4 lines before the single user root
password prompt appears, there was an error "outside expected code
flow".

-- 
not proper dismounting for WD passport harddrive (making noise when unplug)
https://bugs.launchpad.net/bugs/117713
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to