You are not logged in.

#1 2021-03-12 06:18:10

mor3dr3ad
Member
Registered: 2021-03-12
Posts: 8

External optical drive not found/recognized

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

#2 2021-03-12 06:47:08

seth
Member
Registered: 2012-09-03
Posts: 58,705

Re: External optical drive not found/recognized

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

#3 2021-03-12 06:54:58

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,651

Re: External optical drive not found/recognized

seth wrote:

Most likely /dev/sr0 - might be a permission issue

Will this be the case even if it's a USB device?

Offline

#4 2021-03-12 07:15:06

seth
Member
Registered: 2012-09-03
Posts: 58,705

Re: External optical drive not found/recognized

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

#5 2021-03-12 07:22:55

mor3dr3ad
Member
Registered: 2021-03-12
Posts: 8

Re: External optical drive not found/recognized

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

#6 2021-03-12 07:24:31

mor3dr3ad
Member
Registered: 2021-03-12
Posts: 8

Re: External optical drive not found/recognized

seth wrote:

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

#7 2021-03-12 07:32:09

seth
Member
Registered: 2012-09-03
Posts: 58,705

Re: External optical drive not found/recognized

[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

#8 2021-03-12 07:41:07

mor3dr3ad
Member
Registered: 2021-03-12
Posts: 8

Re: External optical drive not found/recognized

seth wrote:
[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

#9 2021-03-12 08:04:19

seth
Member
Registered: 2012-09-03
Posts: 58,705

Re: External optical drive not found/recognized

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

#10 2021-03-12 09:35:39

mor3dr3ad
Member
Registered: 2021-03-12
Posts: 8

Re: External optical drive not found/recognized

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

#11 2021-03-12 09:41:28

seth
Member
Registered: 2012-09-03
Posts: 58,705

Re: External optical drive not found/recognized

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

#12 2021-03-12 10:04:50

mor3dr3ad
Member
Registered: 2021-03-12
Posts: 8

Re: External optical drive not found/recognized

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..

Offline

#13 2021-03-12 10:17:08

mor3dr3ad
Member
Registered: 2021-03-12
Posts: 8

Re: External optical drive not found/recognized

mor3dr3ad wrote:
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

#14 2021-03-12 12:22:47

seth
Member
Registered: 2012-09-03
Posts: 58,705

Re: External optical drive not found/recognized

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

#15 2021-03-17 16:30:23

backword
Member
Registered: 2021-03-17
Posts: 2

Re: External optical drive not found/recognized

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

#16 2021-03-17 16:45:15

seth
Member
Registered: 2012-09-03
Posts: 58,705

Re: External optical drive not found/recognized

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

#17 2021-03-17 22:34:07

backword
Member
Registered: 2021-03-17
Posts: 2

Re: External optical drive not found/recognized

sorry for posting!

Offline

#18 2021-03-17 22:36:14

seth
Member
Registered: 2012-09-03
Posts: 58,705

Re: External optical drive not found/recognized

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

Board footer

Powered by FluxBB