You are not logged in.

#1 2025-01-25 17:55:56

oscarale
Member
Registered: 2025-01-25
Posts: 8

[SOLVED] External optical drive no longer recognized

My external DVD drive is no longer recognized by Arch, it was working a couple months ago. I'm not sure if it's a kernel issue or something else. The drive works fine on another computer with Debian.

Drive shows up as "Toshiba Corp ... USB Device" with "lsusb"

❯ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 8086:0b63 Intel Corp. USB Bridge
Bus 003 Device 004: ID 0a5c:5843 Broadcom Corp. BCM58200 ControlVault 3 (FingerPrint sensor + Contacted SmartCard)
Bus 003 Device 005: ID 8087:0033 Intel Corp. AX211 Bluetooth
Bus 003 Device 008: ID 1132:4511 Toshiba Corp., Digital Media Equipment [hex] IT-CEO USB Device
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Also shows up with "lsblk" as "sr0"

❯ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sr0          11:0    1  1024M  0 rom  
nvme0n1     259:0    0 953.9G  0 disk 
├─nvme0n1p1 259:1    0     4G  0 part /boot
├─nvme0n1p2 259:2    0   128M  0 part 
├─nvme0n1p3 259:3    0   256G  0 part 
├─nvme0n1p4 259:4    0   1.2G  0 part 
├─nvme0n1p5 259:5    0   1.6G  0 part 
├─nvme0n1p8 259:6    0     8G  0 part [SWAP]
└─nvme0n1p9 259:7    0 681.7G  0 part /

Mounting gives me an error

❯ sudo mount /dev/sr0 /mnt/dvd/
mount: /mnt/dvd: fsconfig system call failed: /dev/sr0: Can't open blockdev.
       dmesg(1) may have more information after failed mount system call.

dmesg shows that the drive is detected, here I disconnect it and then connect it again.

❯ sudo dmesg -W
[ 1108.094302] usb 3-2: USB disconnect, device number 8
[ 1111.944473] usb 3-2: new high-speed USB device number 9 using xhci_hcd
[ 1112.131768] usb 3-2: New USB device found, idVendor=1132, idProduct=4511, bcdDevice= 1.14
[ 1112.131784] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1112.131789] usb 3-2: Product: IT-CEO USB Device
[ 1112.131793] usb 3-2: Manufacturer: IT-CEO
[ 1112.131796] usb 3-2: SerialNumber: 594C33332020303035353533
[ 1112.134105] usb-storage 3-2:1.0: USB Mass Storage device detected
[ 1112.137195] scsi host0: usb-storage 3-2:1.0
[ 1112.137841] intel-ipu6 0000:00:05.0: IPU6 in secure mode touch 0x0 mask 0x0
[ 1112.159822] intel-ipu6 0000:00:05.0: FW version: 20230925
[ 1112.161094] intel-ipu6 0000:00:05.0: IPU6 in secure mode touch 0x0 mask 0x0
[ 1112.165367] intel-ipu6 0000:00:05.0: FW version: 20230925
[ 1113.177364] scsi 0:0:0:0: CD-ROM            MATSHITA DVD-RAM UJ8A0AS  1.50 PQ: 0 ANSI: 0
[ 1113.179945] sr 0:0:0:0: Power-on or device reset occurred
[ 1113.184078] sr 0:0:0:0: [sr0] scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[ 1113.186296] sr 0:0:0:0: Attached scsi CD-ROM sr0
[ 1113.186991] intel-ipu6 0000:00:05.0: IPU6 in secure mode touch 0x0 mask 0x0
[ 1113.208042] intel-ipu6 0000:00:05.0: FW version: 20230925

But ultimately what I'm trying to use it with is MakeMKV and it is not detected

MakeMKV v1.17.8 linux(x64-release) started
The program can't find any usable optical drives.

Dolphin and Handbrake also do not recognize the drive, and I tried it on 3 different kernels with the same results

linux 6.12.10.arch1-1
linux-lts 6.6.72-1
linux-zen 6.12.10.zen1-1

The drive has a USB-C and USB-A plug, same results with both and different USB ports on my laptop also render the same results.

Any help would be appreciated, thanks!

Last edited by oscarale (2025-02-14 07:40:05)

Offline

#2 2025-01-25 20:06:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,175

Re: [SOLVED] External optical drive no longer recognized

See https://bbs.archlinux.org/viewtopic.php … 8#p2221438 and try setting max_performance to the scsi_host device in question

Offline

#3 2025-01-25 21:41:40

oscarale
Member
Registered: 2025-01-25
Posts: 8

Re: [SOLVED] External optical drive no longer recognized

I get a "permission denied" error when trying to run either of the commands from that post. Also I don't see a "link_power_management_policy" file in the host folder

❯ echo max_performance > /sys/class/scsi_host/host0/link_power_management_policy
bash: /sys/class/scsi_host/host0/link_power_management_policy: Permission denied
❯ sudo sh -c "echo max_performance > /sys/class/scsi_host/host0/link_power_management_policy"
sh: line 1: /sys/class/scsi_host/host0/link_power_management_policy: Permission denied

Offline

#4 2025-01-25 22:56:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,175

Re: [SOLVED] External optical drive no longer recognized

the host might not be literally 0 in your case, but the second variant should work

Offline

#5 2025-01-25 23:31:18

oscarale
Member
Registered: 2025-01-25
Posts: 8

Re: [SOLVED] External optical drive no longer recognized

The scsi_host folder is empty until I plug in the external drive, then host0 shows up, so I'm assuming that's the correct one. But I'm still getting the "Permission denied" using the second command. I also tried switching to root (su) and running it that way but I also get "Permission denied"

Offline

#6 2025-01-26 13:08:13

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,987

Re: [SOLVED] External optical drive no longer recognized

What is the output of stat /sys/class/scsi_host/host0/link_power_management_policy with the drive attached ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2025-01-27 05:23:36

oscarale
Member
Registered: 2025-01-25
Posts: 8

Re: [SOLVED] External optical drive no longer recognized

It says the file doesn't exist, so maybe that's the problem?

❯ stat /sys/class/scsi_host/host0/link_power_management_policy
stat: cannot statx '/sys/class/scsi_host/host0/link_power_management_policy': No such file or directory

There are other files inside host0 though.

❯ ls /sys/class/scsi_host/host0/
active_mode  cmd_per_lun  eh_deadline  host_reset    power      prot_capabilities  scan               sg_tablesize  subsystem       uevent     use_blk_mq
can_queue    device       host_busy    nr_hw_queues  proc_name  prot_guard_type    sg_prot_tablesize  state         supported_mode  unique_id

And i tried to create it but I get a permission error again

❯ sudo sh -c "touch /sys/class/scsi_host/host0/link_power_management_policy"
touch: cannot touch '/sys/class/scsi_host/host0/link_power_management_policy': Permission denied

Offline

#8 2025-01-27 08:54:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,175

Re: [SOLVED] External optical drive no longer recognized

no those are kernel interfaces they should be created automatically if relevant support is present. If that is not the underlying issue, it will probably have slipped in somewhere. Do you know the kernel it last worked on? As a "direct" USB alternative to the link_power_management you could try booting with the usbcore.autosuspend=-1 kernel parameter

Offline

#9 2025-01-27 19:07:11

oscarale
Member
Registered: 2025-01-25
Posts: 8

Re: [SOLVED] External optical drive no longer recognized

I honestly cannot remember what kernel it was working on before, but for sure I last used the drive about 4 months ago. I tried adding that kernel parameter to my grub.cfg, rebooted and checked using cat /proc/cmdline but I'm still getting the same results through both USB-C and USB-A, plugged in during boot or after, no optical drive available.

❯ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-linux-zen root=UUID=b0b4987a-8a2d-469f-b65f-f5d51a2526f9 rw loglevel=3 quiet usbcore.autosuspend=-1

Offline

#10 2025-02-06 15:45:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,422

Re: [SOLVED] External optical drive no longer recognized

 sudo mount /dev/sr0 /mnt/dvd/
mount: /mnt/dvd: fsconfig system call failed: /dev/sr0: Can't open blockdev.
       dmesg(1) may have more information after failed mount system call.

And what is "dmesg | tail" *after* that?

The drive works fine on another computer with Debian.

Does it work fine on *this* computer w/ a live distro (grml or so)?

Sanity check:

paacman -Qs kernel
uname -a

Offline

#11 2025-02-14 05:14:48

oscarale
Member
Registered: 2025-01-25
Posts: 8

Re: [SOLVED] External optical drive no longer recognized

Here's "dmesg | tail" after trying to mount

❯ sudo mount /dev/sr0 /mnt/dvd/
mount: /mnt/dvd: fsconfig system call failed: /dev/sr0: Can't open blockdev.
       dmesg(1) may have more information after failed mount system call.

❯ sudo dmesg | tail
[  190.697026] usbcore: registered new interface driver usb-storage
[  190.697511] intel-ipu6 0000:00:05.0: IPU6 in secure mode touch 0x0 mask 0x0
[  190.702034] intel-ipu6 0000:00:05.0: FW version: 20230925
[  191.729365] scsi 0:0:0:0: CD-ROM            MATSHITA DVD-RAM UJ8A0AS  1.50 PQ: 0 ANSI: 0
[  191.761334] sr 0:0:0:0: Power-on or device reset occurred
[  191.765462] sr 0:0:0:0: [sr0] scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[  191.765474] cdrom: Uniform CD-ROM driver Revision: 3.20
[  191.768000] sr 0:0:0:0: Attached scsi CD-ROM sr0
[  191.768771] intel-ipu6 0000:00:05.0: IPU6 in secure mode touch 0x0 mask 0x0
[  191.791275] intel-ipu6 0000:00:05.0: FW version: 20230925

I tried running it on Puppy and the drive worked fine. I also have Windows on a separate partition on the same laptop and it worked great there too.

Here's the output of "pacman -Qs kernel" and "uname -a"

❯ pacman -Qs kernel
local/dkms 3.1.5-1
    Dynamic Kernel Modules System
local/exfatprogs 1.2.7-1
    exFAT filesystem userspace utilities for the Linux Kernel exfat driver
local/fuse2 2.9.9-5
    Interface for userspace programs to export a filesystem to the Linux kernel
local/fuse3 3.16.2-1
    Interface for userspace programs to export a filesystem to the Linux kernel
local/iptables 1:1.8.10-2
    Linux kernel packet control tool (using legacy interface)
local/kmod 33-3
    Linux kernel module management tools and library
local/libdrm 2.4.124-1
    Userspace interface to kernel DRM services
local/libnetfilter_conntrack 1.0.9-2
    Library providing an API to the in-kernel connection tracking state table
local/libnfnetlink 1.0.2-2
    Low-level library for netfilter related kernel/userspace communication
local/libsysprof-capture 47.2-3
    Kernel based performance profiler - capture library
local/linux 6.10.7.arch1-1
    The Linux kernel and modules
local/linux-api-headers 6.13-1
    Kernel headers sanitized for use in userspace
local/linux-headers 6.11.3.arch1-1
    Headers and scripts for building modules for the Linux kernel
local/linux-lts 6.12.13-1
    The LTS Linux kernel and modules
local/linux-lts-headers 6.12.13-1
    Headers and scripts for building modules for the LTS Linux kernel
local/linux-zen 6.13.2.zen1-1
    The Linux ZEN kernel and modules
local/linux-zen-headers 6.13.2.zen1-1
    Headers and scripts for building modules for the Linux ZEN kernel
local/mtdev 1.1.7-1
    A stand-alone library which transforms all variants of kernel MT events to the slotted type B protocol
local/virtualbox-host-dkms 7.1.6-2
    VirtualBox Host kernel modules sources

❯ uname -a
Linux oscarale-dell 6.13.2-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sat, 08 Feb 2025 18:54:38 +0000 x86_64 GNU/Linux

I did get it to mount through KDE. From the icon tray when I put in a DVD, I selected "Mount and open" and it mounted OK, I was then able to browse the disc contents. Not sure if a recent kernel fixed the problem and it's just MakeMkv that won't read the drive.

Offline

#12 2025-02-14 07:39:25

oscarale
Member
Registered: 2025-01-25
Posts: 8

Re: [SOLVED] External optical drive no longer recognized

Just figured it out, found the answer here. Created a file "sg.conf" in "/etc/modules-load.d/" with the text "sg" and rebooted, MakeMkv detects the drive now. Can anyone explain to me why this works?

Thanks everyone for the help!

Offline

#13 2025-02-15 00:51:04

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,175

Re: [SOLVED] External optical drive no longer recognized

That force loads the sg module, despite there being "no need for it" from a standard module load/device detection perspective that would normally autoload it. Maybe some unintended side effect  of some kernel change. But with this info one could probably look in that kernel code region...

Offline

#14 2025-02-15 08:34:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,422

Re: [SOLVED] External optical drive no longer recognized

modprobe -c | grep -v alias | grep sg

If it's not blacklisted, pot. a race condition.
Does it help to move the module into the initramfs?

Offline

#15 2025-02-17 15:22:55

oscarale
Member
Registered: 2025-01-25
Posts: 8

Re: [SOLVED] External optical drive no longer recognized

❯ sudo modprobe -c | grep -v alias | grep sg
softdep ipmi_msghandler post: ipmi_devintf

How would I move the module into the initramfs?

Offline

#16 2025-02-17 15:41:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,422

Re: [SOLVED] External optical drive no longer recognized

Offline

Board footer

Powered by FluxBB