Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian detect USB drive as CD-ROM.

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Debian detect USB drive as CD-ROM.

#1 Post by hack3rcon »

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.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Debian detect USB drive as CD-ROM.

#2 Post by L_V »

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 ?

tynman
Posts: 131
Joined: 2016-05-03 19:48
Location: British Columbia, Canada
Been thanked: 1 time

Re: Debian detect USB drive as CD-ROM.

#3 Post by tynman »

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.

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Debian detect USB drive as CD-ROM.

#4 Post by hack3rcon »

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.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Debian detect USB drive as CD-ROM.

#5 Post by L_V »

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 ?

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Debian detect USB drive as CD-ROM.

#6 Post by hack3rcon »

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.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Debian detect USB drive as CD-ROM.

#7 Post by L_V »

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.

Post Reply