Debian detect USB drive as CD-ROM.

Everything about X, Gnome, KDE, ... and everything running on it

Debian detect USB drive as CD-ROM.

Postby hack3rcon » 2019-08-13 11:42

Hello,
When I plugged the USB drive then Debian can't mount it automatically and show mehttps://pasteboard.co/Isv5ssr.png, but "lsusb" show me that the USB drive connected:
Code: Select all
$ lsusb
Bus 002 Device 004: ID 125f:c96a A-DATA Technology Co., Ltd. C906 Flash Drive

I should mount it manually, How can I solve this problem? The odd thing is that when I safe remove the USB drive then my DVD-ROM disappeared.

Thanks.
hack3rcon
 
Posts: 298
Joined: 2015-02-16 09:54

Re: Debian detect USB drive as CD-ROM.

Postby L_V » 2019-08-13 15:07

Hello,
Not sure your title is reflecting your observation.
Does this report something ?
Code: Select all
grep cdrom /etc/fstab

If yes, does /media/cdrom0 directory exist ?
L_V
 
Posts: 1125
Joined: 2007-03-19 09:04

Re: Debian detect USB drive as CD-ROM.

Postby tynman » 2019-08-13 20:13

If you look at the image in the OP, you can see where "CD-ROM" got into the title.

But the error message in the image is not from Debian. It looks like it is from a File Manager program which is trying (unsuccessfully) to auto mount the detected USB flash drive. I don't recognize the message.
tynman
 
Posts: 111
Joined: 2016-05-03 19:48
Location: British Columbia, Canada

Re: Debian detect USB drive as CD-ROM.

Postby hack3rcon » 2019-08-15 21:28

L_V wrote:Hello,
Not sure your title is reflecting your observation.
Does this report something ?
Code: Select all
grep cdrom /etc/fstab

If yes, does /media/cdrom0 directory exist ?

Yes the directory exist.
hack3rcon
 
Posts: 298
Joined: 2015-02-16 09:54

Re: Debian detect USB drive as CD-ROM.

Postby L_V » 2019-08-16 05:44

Again to clarify, is it possible to know exactly what this is reporting ?
Code: Select all
grep cdrom /etc/fstab

Does no answer means nothing ?
+
Code: Select all
echo $XDG_SESSION_{DESKTOP,TYPE}

ls -l /dev/sr0

+ is it an internal or external CDROM player ?
L_V
 
Posts: 1125
Joined: 2007-03-19 09:04

Re: Debian detect USB drive as CD-ROM.

Postby hack3rcon » 2019-08-17 05:04

L_V wrote:Again to clarify, is it possible to know exactly what this is reporting ?
Code: Select all
grep cdrom /etc/fstab

Does no answer means nothing ?
+
Code: Select all
echo $XDG_SESSION_{DESKTOP,TYPE}

ls -l /dev/sr0

+ is it an internal or external CDROM player ?

The result is:
Code: Select all
$ grep cdrom /etc/fstab
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

And:
Code: Select all
$ echo $XDG_SESSION_{DESKTOP,TYPE}
lightdm-xsession x11

And:
Code: Select all
$ ls -l /dev/sr0
brw-rw----+ 1 root cdrom 11, 0 Aug 17 09:13 /dev/sr0

It is an internal DVD-ROM Player.
hack3rcon
 
Posts: 298
Joined: 2015-02-16 09:54

Re: Debian detect USB drive as CD-ROM.

Postby L_V » 2019-08-17 07:55

It looks like there is a confusion in udev/Polkit policies.
Is it a clean installation ? Or upgrades over upgrades ?

Code: Select all
grep -r ^d /etc/apt/sources*

uname -a

Did you install some non default special mounting/unmouting tools ?

How is your DVD-rom player detected ? Visible in lsusb or lspci ?
For investigation, you can see what happen when you plug your Flash drive with this
Code: Select all
$ udevadm monitor --environment --udev

# journalctl | tail

# dmesg | tail

Remark on:
hack3rcon wrote:I plugged the USB drive then Debian can't mount it automatically [
Nothing wrong here. By default, a Flash drive should be detected with an icon visible in a file manager, but not mounted.
L_V
 
Posts: 1125
Joined: 2007-03-19 09:04


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable