You are not logged in.
Dear all,
I am at a loss how to get an external drive working. I am on arch linux, kernel 5.11.2-arch1-1. I want to use an external optical drive for digitizing CDs etc. The drive is a HP USB External DVDRW drive, Model GP70N.
I cannot figure out for the life of me how to mount/get it working.
It shows up under lsusb:
Bus 001 Device 049: ID 0e8d:1887 MediaTek Inc. Slim Portable DVD Writer
However, using lsblk it does not show up.
Do I have to mount the drive? If so, using which device?
Somehow I cannot find anything on this specific topic...
Thank you all
Offline
Most likely /dev/sr0 - might be a permission issue (it's gonna be root:optical and if your session is broken™ systemd won't have ACL'd you in)
Please run
dmesg -w
Wait until it stops printing, attach the drive and post the stuff it prints in return so we can see whether it's detected and added as a storage device.
When you inject a disc, does it start spinning? (optical drives can require some power and if it doesn't come w/ an external power supply it might rely on an out-of-spec hub to provide enough current.
Offline
Most likely /dev/sr0 - might be a permission issue
Will this be the case even if it's a USB device?
Offline
When you plug a usb key, is it being added as /dev/sdb1?
The device nodes don't depend so much on the bus, but on whether it's detected as storage block device. They should™ get added as generic scsi devices.
Whether that's the case is what we want to see from dmesg ;-)
A udev rule will set the ownership of the device node, the only one I'm aware of is sr*- but there might be others for usb specifically (I just don't see why there would be, any hints for that?)
Offline
Hi, thanks.
So the drive is plugged into the power USB port, this should not be an issue. The disc is spinning.
Here is the output of dmesg
[83475.921872] usb 1-2: new high-speed USB device number 50 using xhci_hcd
[83476.066777] usb 1-2: New USB device found, idVendor=0e8d, idProduct=1887, bcdDevice= 0.00
[83476.066788] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[83476.066793] usb 1-2: Product: HP External USB Optical Drive
[83476.066798] usb 1-2: Manufacturer: Hewlett-Packard Company
[83476.066801] usb 1-2: SerialNumber: K02KCD91658
[83476.076122] usb-storage 1-2:1.0: USB Mass Storage device detected
[83476.077386] scsi host1: usb-storage 1-2:1.0
[83477.099922] scsi 1:0:0:0: CD-ROM hp CDDVDW GP70N RR01 PQ: 0 ANSI: 0
[83477.100647] scsi 1:0:0:0: Attached scsi generic sg1 type 5
So it is definitely recognized, but I cannot see that it is mounted as a dev.
Yes, a usb key gets added as /dev/sdb1
Offline
Most likely /dev/sr0 - might be a permission issue (it's gonna be root:optical and if your session is broken™ systemd won't have ACL'd you in)
Please run
dmesg -w
Wait until it stops printing, attach the drive and post the stuff it prints in return so we can see whether it's detected and added as a storage device.
When you inject a disc, does it start spinning? (optical drives can require some power and if it doesn't come w/ an external power supply it might rely on an out-of-spec hub to provide enough current.
sudo mount /dev/sr0 /mnt/dvd: special device /dev/sr0 does not exist
Offline
[83477.100647] scsi 1:0:0:0: Attached scsi generic sg1 type 5
stat /dev/sg1
and try to mount that device.
Btw, what happens (dmesg-wise) when you attach with a disc being inserted already?
Offline
[83477.100647] scsi 1:0:0:0: Attached scsi generic sg1 type 5
stat /dev/sg1
and try to mount that device.
Btw, what happens (dmesg-wise) when you attach with a disc being inserted already?
Basically the same:
[84678.331651] usb 1-2: new high-speed USB device number 51 using xhci_hcd
[84678.478533] usb 1-2: New USB device found, idVendor=0e8d, idProduct=1887, bcdDevice= 0.00
[84678.478538] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[84678.478540] usb 1-2: Product: HP External USB Optical Drive
[84678.478541] usb 1-2: Manufacturer: Hewlett-Packard Company
[84678.478543] usb 1-2: SerialNumber: K02KCD91658
[84678.483157] usb-storage 1-2:1.0: USB Mass Storage device detected
[84678.483316] scsi host1: usb-storage 1-2:1.0
[84679.497262] scsi 1:0:0:0: CD-ROM hp CDDVDW GP70N RR01 PQ: 0 ANSI: 0
[84679.497488] scsi 1:0:0:0: Attached scsi generic sg1 type 5
stat /dev/sg1 shows this w/o disc:
File: /dev/sg1
Size: 0 Blocks: 0 IO Block: 4096 character special file
Device: 5h/5d Inode: 1550 Links: 1 Device type: 15,1
Access: (0660/crw-rw----) Uid: ( 0/ root) Gid: ( 93/ optical)
Access: 2021-03-12 10:42:27.046426762 +0300
Modify: 2021-03-12 10:42:27.046426762 +0300
Change: 2021-03-12 10:42:27.046426762 +0300
Birth: -
trying to mount:
mount: /mnt/dvd: /dev/sg1 is not a block device.
Offline
Please use code tags for shell I/O and file contents, https://bbs.archlinux.org/help.php#bbcode
lsmod | grep sr
Can you
sudo modprobe sr_mod
Offline
sudo modprobe sr_mod
gives
modprobe: FATAL: Module sr_mod not found in directory /lib/modules/5.11.2-arch1-1
lsmod | grep sr
gives
intel_rapl_msr 20480 0
intel_rapl_common 28672 1 intel_rapl_msr
Offline
You're either booting an old kernel or updated teh kernel and didn't reboot.
Either way, the sr module can't be loaded, so you don't get to access your optical drive.
In doubt just reboot.
Offline
You're either booting an old kernel or updated teh kernel and didn't reboot.
Either way, the sr module can't be loaded, so you don't get to access your optical drive.In doubt just reboot.
Ah well, keep forgetting that..
Offline
seth wrote:You're either booting an old kernel or updated teh kernel and didn't reboot.
Either way, the sr module can't be loaded, so you don't get to access your optical drive.In doubt just reboot.
Ah well, keep forgetting that..
That did the trick. Shows up just fine now.
Offline
Great.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
I have found this problem has been re-occurring on my machine. I am not sure when it happens, but I suspect the drive disappears after a suspend. My drive is internal and not a USB drive. I already have the 'sr' module running. dmidecode tells me it *should* be /dev/sr0 but I only have a /dev/sg0 which
is not a block device
stat /dev/sg0:
File: /dev/sg0
Size: 0 Blocks: 0 IO Block: 4096 character special file
Device: 5h/5d Inode: 287 Links: 1 Device type: 15,0
Access: (0660/crw-rw----) Uid: ( 0/ root) Gid: ( 994/ disk)
Access: 2021-03-15 17:09:00.109518783 -0500
Modify: 2021-03-15 17:09:00.109518783 -0500
Change: 2021-03-15 17:09:00.109518783 -0500
Birth: -
I have previously used this for DVDs and CDs (read and write).
Is this something systemd could be fouling up? Is there some sort of command I can run to make it remember again that it is still an optical drive?
I'm on kernel 5.11.2-1
I will try to test if this happens on my first 'suspend' and I will post the results.
I am glad to have found a thread with the same issue!
Offline
It's not.
OP only lacked the sr module because OP was running a dated kernel - that's apparently not your situation.
Please open a new thread, report on the S3 relation and if it's S3 related, see the 3rd link in my signature and esp. check the tail of "dmesg" after waking the system.
Also probably describe the general HW (Notebook? Model?) since it may be a PSU thing.
Offline
sorry for posting!
Offline
There's no need to be somehow sorry, we just need to maintain some structure for future users searching the forums.
Just start a new thread.
Offline