Opened 14 years ago
Last modified 18 months ago
#6181 new bug
USB DVD-RW Drive detected as USB Stick
Reported by: | streak | Owned by: | mmlr |
---|---|---|---|
Priority: | normal | Milestone: | R1.1 |
Component: | Drivers/Disk/USB | Version: | R1/alpha2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
USB LITEON DVD-RW Drive is detected as USB Drive, and cannot be used with CDRecord.
DVD Drive is detected as: /dev/disk/usb/1/0/raw
Attachments (1)
Change History (14)
by , 14 years ago
Attachment: | dvd-rw.png added |
---|
comment:1 by , 14 years ago
comment:2 by , 13 years ago
Same issue on my Asus SDR-08B1-U USB DVD-R
hrev42058 should help with this a little. usb_disk only has a little code for determining if a device is a CD-ROM or USB disk.
comment:4 by , 12 years ago
I hade a look on this and I belive that non of the USB CD drives can use CDRecord tools?
our usb_disk implementation states "dev/disk/usb/"
the tool CDRecord looks in /dev/disk/ide or /dev/disk/atapi
So How do we go about to do this? I don'r know if this are true but other OS uses one location for all types od CD drives?
comment:5 by , 12 years ago
Even if they were at a different path, the usb_disk driver only supports a very limited subset of SCSI. It does not support the CD SCSI commands at all, so only CD drives that work as plain mass storage devices work with usb_disk right now. This is intentional, or at least originally was, due to many devices crashing or hanging when exposed to the full SCSI command set. I don't know if current devices are any better than the ones at the time I implemented it, but looking at the quirks list in linux doesn't inspire confidence.
To get actual generic SCSI support the usb_disk driver needs to be replaced with a SCSI module that uses the USB mass storage protocol and can handle the full range of SCSI commands our SCSI layer provides. The ability to flag different misbehaviours and a long list of quirks will have to be implemented to limit the commands used with problematic devices though. Many USB sticks and external drives will otherwise stop working.
Alternatively a white list could be implemented where actually working devices are added, and only these get exposed to all SCSI commands whereas the rest is filtered down to the subset currently supported by usb_disk. This feels a bit backwards however.
comment:7 by , 12 years ago
What info You'll need [i can prepare it for You] to prepare this whitelist of USB DVD-RW Drives and implement this info driver?
comment:8 by , 10 years ago
for the same reason it's not possible to access CDDA on an USB CD reader, or even read multi-session discs (both CDDA and Session use B_RAW_DEVICE_COMMAND to read the disc table of contents).
Maybe we should whitelist devices with removable media? That would allow it to work on CD drives, and would normally not break USB sticks or hard drives. It could still be a problem for memory card readers, maybe.
comment:9 by , 9 years ago
I am having the same issue here using a HP DVD Writer 556s MH23. Drive setup identifies it as a removable pen drive. CDrecord does not identify the device when executing cdrecord -scanbus.
comment:10 by , 8 years ago
Audio CD's are also not recognized when using a external USB drive. Please refer to this ticket for further details: https://dev.haiku-os.org/ticket/9013
comment:11 by , 6 years ago
Component: | Drivers/USB → Drivers/Disk/USB |
---|
comment:12 by , 4 years ago
Milestone: | R1 → R1.1 |
---|
Another one:
SAMSUNG DVD-DL RW is detected as USB HDDrive / PenDrive, and not work with cd record aswell..