Hi,
ÿ ÿHow do I get Debian to recognize when an external DVD is connected?
Hi,
How do I get Debian to recognize when an external DVD is connected?
At Sun, 12 Apr 2026 07:53:45 -0500 Gregory Forster <debian4greg@gmail.com> wrote:
Hi,What do you mean by "recognize"?
How do I get Debian to recognize when an external DVD is connected?
The Linux USB subsystem should do this automagically. udev has been doing this
since kernel version 2.6 or so. I am assuming you are talking about a USB connected drive. I don't know if SATA hot-swap applies to DVD players (if you are using an eSATA DVD player).
If you mean something like a disk icon showing up on your desktop or something, that will depend on your desktop subsystem.
So, I tried it again. No, it wasn't recognized, but it seems to work.
I guess I was expecting recognition like when USB flash drives, hard drives, my voice recorder, my cell phone are connected,You tried lsusb?
So, I tried it again. No, it wasn't recognized, but it seems to work.
On Sun 12 Apr 2026 at 16:40:36 (-0500), Gregory Forster wrote:
I guess I was expecting recognition like when USB flash drives, hard drives, my voice recorder, my cell phone are connected,
All those devices probably have some mass storage onboard, so if
you're running a DE or an automounter, you may see some effect,
like drawing an icon on the screen.
So, I tried it again. No, it wasn't recognized, but it seems to work.
If it wasn't recognised, it wouldn't work. Yes, it was recognised, but
there was as little reason to disturb the user as there is when the
system recognises all the builtin devices shortly after booting up.
To convince yourself, type:
$ udevadm monitor -u -p -s block/disk
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
Then plug in the device. You'll get some paragraphs from udev like:
UDEV [2685.710126] add /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host6/target6:0:0/6:0:0:0/block/sr1 (block)
ACTION?d
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host6/target6:0:0/6:0:0:0/block/sr1
SUBSYSTEM=block
DEVNAME=/dev/sr1
[ ƒ?? ]
and, instead:
[ ƒ?? ]
ACTION=remove
[ ƒ?? ]
when you unplug it.
You can read what reacts to these events in /usr/lib/udev/rules.d/,
and write your own versions in /etc/udev/rules.d/, the two directories
being merged numerically to determine the order of running the rules
with each event.
You can capture more events with just udevadm monitor -u -p
For example, type that line and then unplug your mouse or keyboard momentarily (switch it off and on if wireless).
Happy hacking.
Cheers,
David.
So, I tried it again. No, it wasn't recognized, but it seems to work.
Strongly suggest that your definition of "recognized" is very different
from mine.
=== Stefan
On 2026-04-12, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
If it works, I'm satisfied.So, I tried it again. No, it wasn't recognized, but it seems to work.Strongly suggest that your definition of "recognized" is very different
from mine.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 493851:47:33 |
| Calls: | 146 |
| Files: | 547 |
| D/L today: |
6 files (97K bytes) |
| Messages: | 76,953 |