You are not logged in.
Hello everyone !
I am not very sure the problem is dedicated to XFCE.
From a freshly installed Debian 12 system, with an XFCE desktop environment, USB external media (keys, hard drives) are not shown on the Desktop even though the latter is configured to display them, nor they are displayed in the thunar file manager.
However, these media can be mounted without error, are operational and well detected by the Linux system (as evidenced by the commands below).
Too, from a Windows 10 system (dual-boot) the media are directly displayed.
Oddly enough, a smartphone is displayed on the desktop as a USB device (see command returns below).
In virtualization (QEmu/KVM), on the same Debian 12 system, these same media are nevertheless displayed on the desktop.
Finally, the following packages are installed: udiskie udisks2 policykit-1-gnome dbus thunar-volman xfce4-goodies gvfs* fuse3 ntfs-3g
root@host:~# journalctl -kf
...
déc. 03 17:54:31 host kernel: usb 1-2: new high-speed USB device number 14 using xhci_hcd
déc. 03 17:54:31 host kernel: usb 1-2: New USB device found, idVendor=13fe, idProduct=4300, bcdDevice= 1.00
déc. 03 17:54:31 host kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
déc. 03 17:54:31 host kernel: usb 1-2: Product: USB DISK 2.0
déc. 03 17:54:31 host kernel: usb 1-2: Manufacturer: Wilk
déc. 03 17:54:31 host kernel: usb 1-2: SerialNumber: 900097099A830947
déc. 03 17:54:31 host kernel: usb-storage 1-2:1.0: USB Mass Storage device detected
déc. 03 17:54:31 host kernel: scsi host0: usb-storage 1-2:1.0
déc. 03 17:54:34 host kernel: scsi 0:0:0:0: Direct-Access Wilk USB DISK 2.0 PMAP PQ: 0 ANSI: 6
déc. 03 17:54:34 host kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
déc. 03 17:54:34 host kernel: sd 0:0:0:0: [sda] 15132672 512-byte logical blocks: (7.75 GB/7.22 GiB)
déc. 03 17:54:34 host kernel: sd 0:0:0:0: [sda] Write Protect is off
déc. 03 17:54:34 host kernel: sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
déc. 03 17:54:34 host kernel: sd 0:0:0:0: [sda] No Caching mode page found
déc. 03 17:54:34 host kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
déc. 03 17:54:34 host kernel: sda: sda1
déc. 03 17:54:34 host kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk
...
déc. 03 17:54:44 host kernel: usb 2-4: new SuperSpeed USB device number 4 using xhci_hcd
déc. 03 17:54:44 host kernel: usb 2-4: New USB device found, idVendor=0480, idProduct=a00d, bcdDevice= 4.07
déc. 03 17:54:44 host kernel: usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
déc. 03 17:54:44 host kernel: usb 2-4: Product: External USB 3.0
déc. 03 17:54:44 host kernel: usb 2-4: Manufacturer: TOSHIBA
déc. 03 17:54:44 host kernel: usb 2-4: SerialNumber: 23183B080A2F
déc. 03 17:54:44 host kernel: usb-storage 2-4:1.0: USB Mass Storage device detected
déc. 03 17:54:44 host kernel: scsi host1: usb-storage 2-4:1.0
déc. 03 17:54:47 host kernel: scsi 1:0:0:0: Direct-Access TOSHIBA External USB 3.0 5438 PQ: 0 ANSI: 6
déc. 03 17:54:47 host kernel: sd 1:0:0:0: Attached scsi generic sg1 type 0
déc. 03 17:54:47 host kernel: sd 1:0:0:0: [sdb] 1465149164 512-byte logical blocks: (750 GB/699 GiB)
déc. 03 17:54:47 host kernel: sd 1:0:0:0: [sdb] Write Protect is off
déc. 03 17:54:47 host kernel: sd 1:0:0:0: [sdb] Mode Sense: 23 00 00 00
déc. 03 17:54:47 host kernel: sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
déc. 03 17:54:47 host kernel: sdb: sdb1
déc. 03 17:54:47 host kernel: sd 1:0:0:0: [sdb] Attached SCSI disk
...
déc. 03 18:01:22 host kernel: usb 1-2: new high-speed USB device number 15 using xhci_hcd
déc. 03 18:01:22 host kernel: usb 1-2: New USB device found, idVendor=12d1, idProduct=107e, bcdDevice= 2.99
déc. 03 18:01:22 host kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
déc. 03 18:01:22 host kernel: usb 1-2: Product: MAR-LX1A
déc. 03 18:01:22 host kernel: usb 1-2: Manufacturer: HUAWEI
déc. 03 18:01:22 host kernel: usb 1-2: SerialNumber: L2N4C19B06005667
déc. 03 18:01:22 host kernel: usb-storage 1-2:1.1: USB Mass Storage device detected
déc. 03 18:01:22 host kernel: scsi host1: usb-storage 1-2:1.1
déc. 03 18:01:23 host kernel: scsi 1:0:0:0: CD-ROM Linux File-CD Gadget 0414 PQ: 0 ANSI: 2
déc. 03 18:01:23 host kernel: scsi 1:0:0:0: Attached scsi generic sg1 type 5
déc. 03 18:01:23 host kernel: sr 1:0:0:0: Power-on or device reset occurred
déc. 03 18:01:23 host kernel: sr 1:0:0:0: [sr0] scsi-1 drive
déc. 03 18:01:23 host kernel: cdrom: Uniform CD-ROM driver Revision: 3.20
déc. 03 18:01:23 host kernel: sr 1:0:0:0: Attached scsi CD-ROM sr0
^C
root@host:~# lsusb
Bus 002 Device 004: ID 0480:a00d Toshiba America Inc STOR.E BASICS 500GB
Bus 001 Device 014: ID 13fe:4300 Phison Electronics Corp. USB DISK 2.0
Bus 001 Device 015: ID 12d1:107e Huawei Technologies Co., Ltd. P10 smartphone
root@host:~# lsblk /dev/{sd{a,b},sr0}
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 7,2G 0 disk
└─sda1 8:1 1 7,2G 0 part
sdb 8:16 0 698,6G 0 disk
└─sdb1 8:17 0 698,6G 0 part
sr0 11:0 1 3,5M 0 rom
root@host:~# ls -1 /mnt | wc -l ; mount /dev/sda1 /mnt ; ls -1 /mnt | wc -l ; umount -l /mnt ; ls -1 /mnt | wc -l
0
51
0
root@host:~# ls -1 /mnt | wc -l ; mount /dev/sdb1 /mnt ; ls -1 /mnt | wc -l ; umount -l /mnt ; ls -1 /mnt | wc -l
0
8
0
What is missing ?
If someone can enlighten me, because here I am stuck ...
With adelphity,
lnj
Last edited by the_yellow_dwarf (2024-12-18 22:05:45)
Offline
Where are the drives mounted on the filesystem? Can you run the "mount" command on both computers so we can compare?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Hi ToZ
I do not understand what you want to know.
When I plug a random USB key or an external hard drive they will not be shown on the deskop area and too they are not auto-mounted, then they are not mouted.
Here is what I obtain on a default install on the same machine (faulty system backuped before) :
root@debian-test:~# journalctl -kf
...
# I plug USB key
déc. 06 19:00:01 debian-test kernel: usb 1-2: new high-speed USB device number 10 using xhci_hcd
déc. 06 19:00:01 debian-test kernel: usb 1-2: New USB device found, idVendor=13fe, idProduct=4300, bcdDevice= 1.00
déc. 06 19:00:01 debian-test kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
déc. 06 19:00:01 debian-test kernel: usb 1-2: Product: USB DISK 2.0
déc. 06 19:00:01 debian-test kernel: usb 1-2: Manufacturer: Wilk
déc. 06 19:00:01 debian-test kernel: usb 1-2: SerialNumber: 07188A73F126AB88
déc. 06 19:00:01 debian-test kernel: usb-storage 1-2:1.0: USB Mass Storage device detected
déc. 06 19:00:01 debian-test kernel: scsi host0: usb-storage 1-2:1.0
déc. 06 19:00:03 debian-test kernel: scsi 0:0:0:0: Direct-Access Wilk USB DISK 2.0 PMAP PQ: 0 ANSI: 4
déc. 06 19:00:03 debian-test kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
déc. 06 19:00:03 debian-test kernel: sd 0:0:0:0: [sda] 30326784 512-byte logical blocks: (15.5 GB/14.5 GiB)
déc. 06 19:00:03 debian-test kernel: sd 0:0:0:0: [sda] Write Protect is off
déc. 06 19:00:03 debian-test kernel: sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
déc. 06 19:00:03 debian-test kernel: sd 0:0:0:0: [sda] No Caching mode page found
déc. 06 19:00:03 debian-test kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
déc. 06 19:00:03 debian-test kernel: sda: sda1 sda2
déc. 06 19:00:03 debian-test kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk
# I plug external hard drive
déc. 06 19:00:20 debian-test kernel: usb 2-4: new SuperSpeed USB device number 5 using xhci_hcd
déc. 06 19:00:20 debian-test kernel: usb 2-4: New USB device found, idVendor=0480, idProduct=a00d, bcdDevice= 4.07
déc. 06 19:00:20 debian-test kernel: usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
déc. 06 19:00:20 debian-test kernel: usb 2-4: Product: External USB 3.0
déc. 06 19:00:20 debian-test kernel: usb 2-4: Manufacturer: TOSHIBA
déc. 06 19:00:20 debian-test kernel: usb 2-4: SerialNumber: 23183B080A2F
déc. 06 19:00:20 debian-test kernel: usb-storage 2-4:1.0: USB Mass Storage device detected
déc. 06 19:00:20 debian-test kernel: scsi host1: usb-storage 2-4:1.0
déc. 06 19:00:24 debian-test kernel: scsi 1:0:0:0: Direct-Access TOSHIBA External USB 3.0 5438 PQ: 0 ANSI: 6
déc. 06 19:00:24 debian-test kernel: sd 1:0:0:0: Attached scsi generic sg1 type 0
déc. 06 19:00:24 debian-test kernel: sd 1:0:0:0: [sdb] 1465149164 512-byte logical blocks: (750 GB/699 GiB)
déc. 06 19:00:24 debian-test kernel: sd 1:0:0:0: [sdb] Write Protect is off
déc. 06 19:00:24 debian-test kernel: sd 1:0:0:0: [sdb] Mode Sense: 23 00 00 00
déc. 06 19:00:24 debian-test kernel: sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
déc. 06 19:00:24 debian-test kernel: sdb: sdb1
déc. 06 19:00:24 debian-test kernel: sd 1:0:0:0: [sdb] Attached SCSI disk
^C
root@debian-test:~# mount | grep -Ec "/dev/sd(a|b)"
0
# => as I said not auto-mounted
# But I can mount without problem
root@debian-test:~# lsblk -lp | grep -E "/dev/sd(a|b) "
/dev/sda 8:16 0 698,6G 0 disk
/dev/sdb 8:32 1 14,5G 0 disk
root@debian-test:~# mkdir /mnt/{usb_key,external_hd}
root@debian-test:~# mount /dev/sda2 /mnt/usb_key/
root@debian-test:~# mount /dev/sdb1 /mnt/external_hd/
root@debian-test:~# mount | grep -E "/dev/sd(a|b) "
/dev/sda2 on /mnt/usb_key type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
/dev/sdb1 on /mnt/external_hd type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
root@debian-test:~# ls -l /mnt/external_hd/ | wc -l
53
root@debian-test:~# ls -l /mnt/usb_key/ | wc -l
4
root@debian-test:~# umount -l /mnt/{usb_key,external_hd}
root@debian-test:~# mount | grep -Ec "/dev/sd(a|b)"
0
I will publish the same operations once the faulty system is restored (for now I have a buggy problem to add again the Debian partition in UEFI BIOS ; the machine is a dual boot with Windows).
---
I advanced on the subject. It seems that after a fresh install of Debian the USB devices previously indicated all are directly operational. So I tried to discover the difference between the faulty install and a fresh install in comparing the list of packets and their versions. But there are so many that I do not know where to look at first.
Too for me it is not a problem of permissions as with a root session the problem is the same
Last edited by the_yellow_dwarf (2024-12-06 19:49:08)
Offline
When I plug a random USB key or an external hard drive they will not be shown on the deskop area and too they are not auto-mounted, then they are not mouted.
Is thunar-volman installed and running?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
When I plug a random USB key or an external hard drive they will not be shown on the deskop area and too they are not auto-mounted, then they are not mouted.
Is thunar-volman installed and running?
Installed : yes (see the 1st post), running I am not sure ... Is it a service/daemon ? Else how to verify that ?
Offline
Open Thunar and under Edit>>Preferences>>Advanced Tab. On the bottom there should be a check box for "Enable Volume Management". Check it. Once enabled usb devices should appear on the left pane of Thunar and on the desktop if permitted. You can also click on "configure" to specify what you want done with the usb devices.
Siduction
Debian Sid
Xfce 4.20 with Wayland/Wayfire
Offline
Open Thunar and under Edit>>Preferences>>Advanced Tab. On the bottom there should be a check box for "Enable Volume Management". Check it. Once enabled usb devices should appear on the left pane of Thunar and on the desktop if permitted. You can also click on "configure" to specify what you want done with the usb devices.
Hi eriefisher and thank you The problem is outside thunar as the devices are not shown on the desktop (while it should since it is configured by default to display them). However thunar is configured in this way.
Last edited by the_yellow_dwarf (2024-12-07 11:44:06)
Offline
So the usb drives show up in Thunar, just not on the desktop? Do you have other icons on the desktop?
Siduction
Debian Sid
Xfce 4.20 with Wayland/Wayfire
Offline
So the usb drives show up in Thunar, just not on the desktop? Do you have other icons on the desktop?
I think my situation is not enough clear ...
When I finished to install a machine (which took me a lot of time), I observed a plugged USB key (perfectly functional) was not shown automatically on the desktop while it was mountable without errors (see the 1st post).
I backed up the system to have the possibility to restore it later in the same state.
Then I dug to resolve the problem and I started again a fresh Debian install on the same machine with the XFCE Desktop Environment and the SSH client/server to allow the remote access, nothing more.
At the first login the USB key was directly shown on the desktop without any else configuration of mine. As I spent a lot of time to build the machine to fit the user needs I wanted to know what to do to correct the problem without not having to redo all. Is it more understandable ?
Offline
Greetings --
If it helps any, Mint 21.3 with XFCE 4.18 shows the appropriate icons on the desktop when a USB-drive is inserted and mounted. The desktop settings used to contol the display of these icons properly toggle the display on/off, and do not require a logout/login or reboot to work properly.
Cheers, m4a
Linux Mint 21.3 -- xfce 4.18 ... Apple iMAC -- Lenovo, Dell, HP Desktops and Laptops -- Family & Community Support
Offline
Well, finally I found and solved it myself. And it is not with my technical skills that I found what was stuck but with the spongy body that I have between my ears
The problem came from a too restrictive udev rule, which was supposed to hide the Windows partitions of my dual-boot on the desktop but which hid them all. I had completely forgotten this modification and I must have also forgotten to test with external media.
I will search a method to detect this kind of problem in future and I will make a return here.
Then ... resolved
---
The method to detect :
A udev rule which hide all nvme* partitions (my main boot device) and shown with journalctl
sudo cat << EOF > /etc/udev/rules.d/10-hide_parts.rules
# Cacher partitions sur le bureau et gestionnaire de fichiers
KERNEL=="nvme*", ENV{UDISKS_IGNORE}="1", \
RUN+="/usr/bin/logger -s udev : hide nvme partitions"
EOF
Retrieve the custom rule from journalctl :
sudo journalctl -b | grep nvme
déc. 19 17:54:57 host root[310]: udev : cacher partitions nvme
That is all folks
Last edited by the_yellow_dwarf (2024-12-19 19:26:00)
Offline
[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 628.44 KiB (Peak: 661.28 KiB) ]