Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
03-01-2024, 10:26 AM
(This post was last modified: 03-03-2024, 10:38 AM by romain.
Edit Reason: adding more informations
)
Hello,
since I've cloned my USB attached SSD to another SSD with the same label "USB", udisks-glue now mounts my SSD on "USB_" instead of "USB", does someone know how I can fix this please ? Is there some sort of cache that I could reset ?
Manually mounting USB drive detected as /dev/sda1 on /media/USB or setting it in /etc/fstab works however.
Thanks
Posts: 1,282
Threads: 24
Joined: Jun 2022
Reputation:
42
(03-01-2024, 10:26 AM)romain Wrote: Hello,
since I've cloned my USB attached SSD to another SSD with the same label "USB", udisks-glue now mounts my SSD on "USB_" instead of "USB", does someone know how I can fix this please ? Is there some sort of cache that I could reset ?
Manually mounting USB drive detected as /dev/sda1 on /media/USB or setting it in /etc/fstab works however.
Thanks
Unmount and remove the drive, then check for ghost folder at the mount-point level, and eventually remove them.
Posts: 13,452
Threads: 305
Joined: Mar 2018
Reputation:
545
To fix do the following:
1. Unplug all USB drives
2. List the directories in /media
3. Delete each directory listed in step #2
Code: rm -rf /media/DIRECTORY_NAME
4. Reboot
5. Verify that /media is empty (no directories listed)
6. Plug back in the new USB drive
Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
(03-01-2024, 11:11 AM)Nutul Wrote: (03-01-2024, 10:26 AM)romain Wrote: Hello,
since I've cloned my USB attached SSD to another SSD with the same label "USB", udisks-glue now mounts my SSD on "USB_" instead of "USB", does someone know how I can fix this please ? Is there some sort of cache that I could reset ?
Manually mounting USB drive detected as /dev/sda1 on /media/USB or setting it in /etc/fstab works however.
Thanks
Unmount and remove the drive, then check for ghost folder at the mount-point level, and eventually remove them.
Hello, there's no other folder under /media/ when I umount /media/USB
I assume udisks-glue maintains some sort of cache but I don't know how and where I can reset it
Code: root@bureau:~# udisksctl info -b /dev/sda1
/org/freedesktop/UDisks2/block_devices/sda1:
org.freedesktop.UDisks2.Block:
Configuration: [('fstab', {'fsname': <b'PARTUUID=537173cc-01'>, 'dir': <b'/media/USB'>, 'type': <b'ext4'>, 'opts': <b'rw,nosuid,nodev,noexec,noatime,nodiratime,stripe=8191,uhelper=udisks'>, 'freq': <0>, 'passno': <1>})]
CryptoBackingDevice: '/'
Device: /dev/sda1
DeviceNumber: 2049
Drive: '/org/freedesktop/UDisks2/drives/Realtek_RTL9210B_CG_012345681295'
HintAuto: true
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: true
HintSymbolicIconName:
HintSystem: false
Id: by-id-usb-Realtek_RTL9210B-CG_012345681295-0:0-part1
IdLabel: USB
IdType: ext4
IdUUID: c45ccf51-3de1-41e6-b145-5e17e302538f
IdUsage: filesystem
IdVersion: 1.0
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/sda1
ReadOnly: false
Size: 1000203091968
Symlinks: /dev/disk/by-id/usb-Realtek_RTL9210B-CG_012345681295-0:0-part1
/dev/disk/by-label/USB
/dev/disk/by-partuuid/537173cc-01
/dev/disk/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0-scsi-0:0:0:0-part1
/dev/disk/by-uuid/c45ccf51-3de1-41e6-b145-5e17e302538f
UserspaceMountOptions: uhelper=udisks
org.freedesktop.UDisks2.Filesystem:
MountPoints: /media/USB
Size: 1000203091968
org.freedesktop.UDisks2.Partition:
Flags: 0
IsContained: false
IsContainer: false
Name:
Number: 1
Offset: 1048576
Size: 1000203091968
Table: '/org/freedesktop/UDisks2/block_devices/sda'
Type: 0x83
UUID: 537173cc-01
Posts: 1,282
Threads: 24
Joined: Jun 2022
Reputation:
42
(03-01-2024, 11:17 AM)romain Wrote: MountPoints: /media/USB
It's weird, as I see the correct mount-point...
Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
(03-01-2024, 11:22 AM)Nutul Wrote: (03-01-2024, 11:17 AM)romain Wrote: MountPoints: /media/USB
It's weird, as I see the correct mount-point...
Yes, this is when it is /dev/sda1 is mounted via fstab
Posts: 1,282
Threads: 24
Joined: Jun 2022
Reputation:
42
03-01-2024, 11:30 AM
(This post was last modified: 03-01-2024, 11:31 AM by Nutul.)
(03-01-2024, 11:28 AM)romain Wrote: (03-01-2024, 11:22 AM)Nutul Wrote: (03-01-2024, 11:17 AM)romain Wrote: MountPoints: /media/USB
It's weird, as I see the correct mount-point...
Yes, this is when it is /dev/sda1 is mounted via fstab
Let it mount itself, and then post the same info. Maybe do a reboot first...
(but if you mounted the drive manually, then UNMOUNT IT beforehand)
Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
(03-01-2024, 11:30 AM)Nutul Wrote: (03-01-2024, 11:28 AM)romain Wrote: (03-01-2024, 11:22 AM)Nutul Wrote: (03-01-2024, 11:17 AM)romain Wrote: MountPoints: /media/USB
It's weird, as I see the correct mount-point...
Yes, this is when it is /dev/sda1 is mounted via fstab
Let it mount itself, and then post the same info. Maybe do a reboot first...
You mean without fstab ?
Posts: 1,282
Threads: 24
Joined: Jun 2022
Reputation:
42
(03-01-2024, 11:31 AM)romain Wrote: (03-01-2024, 11:30 AM)Nutul Wrote: (03-01-2024, 11:28 AM)romain Wrote: (03-01-2024, 11:22 AM)Nutul Wrote: (03-01-2024, 11:17 AM)romain Wrote: MountPoints: /media/USB
It's weird, as I see the correct mount-point...
Yes, this is when it is /dev/sda1 is mounted via fstab
Let it mount itself, and then post the same info. Maybe do a reboot first...
You mean without fstab ?
Yes.
Posts: 159
Threads: 19
Joined: Mar 2020
Reputation:
3
(03-01-2024, 11:31 AM)Nutul Wrote: (03-01-2024, 11:31 AM)romain Wrote: (03-01-2024, 11:30 AM)Nutul Wrote: (03-01-2024, 11:28 AM)romain Wrote: (03-01-2024, 11:22 AM)Nutul Wrote: It's weird, as I see the correct mount-point...
Yes, this is when it is /dev/sda1 is mounted via fstab
Let it mount itself, and then post the same info. Maybe do a reboot first...
You mean without fstab ?
Yes.
I've rebooted with drive plugged in and without fstab, udisks-glue mounted /dev/sda1 on /media/USB_ with empty folder /media/USB still present.
I've then deleted empty folder /media/USB and rebooted with drive attached now it is well mounted under /media/USB
Many thanks
|