I've solved my problem, so if this will help anyone. The rmmod sd_mod trick didn't work. I've had to recompile my kernel to put it into a module but it didn't help. I enabled some things in my bios: Floppy mode 3, usb keyboard, usb mouse. Then I used the utility that came with the usb disk to format (for the 3rd time) the usb disk, but this time I've set the protected area to 1mb and I've set a password for this area. Before the "protected" area was without a password. Went back into linux and there were no errors in /var/log/messages, but the disk wasn't recognized. But because there were no errors I thought that I'm getting closer. I've googled around for the scsi howto and read the troubleshooting section. So I did
# cat /proc/scsi/scsi Attached devices: Host: scsi2 Channel: 00 Id: 00 Lun: 00 <-- this line Vendor: Model: USB DISK Pro Rev: PMAP Type: Direct-Access ANSI SCSI revision: 02 in the 2nd line the numbers are 2, 0, 0, 0 So I must force the scsi bus to look for a drive on Lun 1. Ok, I don't know what is this lun thing, but after I did this: echo "scsi add-single-device 2 0 0 1" > /proc/scsi/scsi Kde automatically mounted my usb disk. I've won! :) So now I've got a question: how can I do this automatically? hal/udev/dbus??? One problem is that the line I have to write is not always the same. If i unplug and replug the disk the Host: scsi2 becomes Host: scsi3. I think I should write a bash script that parses /proc/scsi/scsi and then somehow adds this device and then this script should be started when I plug in the disk. Alan Stern wrote: > On Tue, 4 Apr 2006, Jure Koren wrote: > > >> You are right. One partition/unit is supposed to be protected, the other >> not. But I didn't set a password so both are unprotected. >> Do you know a way to alter this order that linux uses to access the device? >> :) >> I have emailed the company that makes them but I didn't get an answer... >> > > It's not clear what the correct order is. Perhaps both units have to > receive an INQUIRY command before either one can be used. There isn't any > 100% reliable way of forcing Linux to do this. The best approach would be > to do "rmmod sd_mod" before plugging in the device. > > Alan Stern > > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
