glebspy
asked on
USB hang on powerdown and filesystem detection
Hi,
Two problems, I'll give you the points if you can help me on *either* of them.
I am on Mandrake 8.2.
1. USB devices in general cause my machine to hang at some point during power-down (which being a laptop, is often). Usually the hang occurs accompanied by the message "usb disconnect on device 1 usb disconnect on device 2". In this case I don't get the long powerdown spiel which tells me everything else that is shutting down.
This is really annoying since I have to then reset the machine manually and it has to check the hard drive on the next powerup.
2. I have an 80G USB mass storage device which linux manages by SCSI emulation. I have set up a working filesystem on it. But I can't seem to get it to be detected reliably. explanation:
If I plug this disk into the USB port before poweron, and then boot up the machine, and then type cfdisk /dev/sda (that is where it appears, *when* it appears) then it says file system not found. Between 5 or 10 minutes later, /dev/sda becomes accessible and the file system mountable. This is the only situation where I can see the disk at all.
If I plug the disk into the USB port after boot and login, I never become able to access /dev/sda. This despite the fact that the disk appears as a healthy entry in /proc/bus/usb/devices file. However, in this circumstance, the computer does *not* hang on powerdown (see q1).
Should I be using some command to tell the computer to look for /dev/sda? Finding a patch?
I can't help thinking these problems are related.
Thank you very much,
Victor
Two problems, I'll give you the points if you can help me on *either* of them.
I am on Mandrake 8.2.
1. USB devices in general cause my machine to hang at some point during power-down (which being a laptop, is often). Usually the hang occurs accompanied by the message "usb disconnect on device 1 usb disconnect on device 2". In this case I don't get the long powerdown spiel which tells me everything else that is shutting down.
This is really annoying since I have to then reset the machine manually and it has to check the hard drive on the next powerup.
2. I have an 80G USB mass storage device which linux manages by SCSI emulation. I have set up a working filesystem on it. But I can't seem to get it to be detected reliably. explanation:
If I plug this disk into the USB port before poweron, and then boot up the machine, and then type cfdisk /dev/sda (that is where it appears, *when* it appears) then it says file system not found. Between 5 or 10 minutes later, /dev/sda becomes accessible and the file system mountable. This is the only situation where I can see the disk at all.
If I plug the disk into the USB port after boot and login, I never become able to access /dev/sda. This despite the fact that the disk appears as a healthy entry in /proc/bus/usb/devices file. However, in this circumstance, the computer does *not* hang on powerdown (see q1).
Should I be using some command to tell the computer to look for /dev/sda? Finding a patch?
I can't help thinking these problems are related.
Thank you very much,
Victor
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok I think this one has just about died, thanks for helping kannabis
ASKER
I think I do have hot plug enabled actually, since the device appears in /proc/bus/usb/devices when I plug it in after powerup.. but how would I check to make sure..?