You are not logged in.
hi everyone, I'm new here.
I just can't figure this out.
I have a USB flashdisk, but when I plug it into my computer, it doesn't show up in the file manager.
However, it does appear when I run
lsblk
I also tried mounting it manually, and it works perfectly fine.
So why isn't it automounting like the other USBs?
Here's the output of lsblk:
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 1.9T 0 disk
`-sda1 8:1 1 1.9T 0 part /run/media/asakusa/flashdisk
nvme0n1 259:0 0 476.9G 0 disk
|-nvme0n1p1 259:1 0 1G 0 part /boot
`-nvme0n1p2 259:2 0 475.9G 0 part /
The flashdisk seems to be mounted in the output, but that's only because I mounted it manually.
That's all, thanks guys!
Last edited by Asakusa (2025-06-15 13:00:32)
Offline
https://deepl.com/
Please use [code][/code] tags. Edit your post in this regard.
What "filemanager", where do you expect it to show up - and how?
Do you rely on the filemanager for automounts or is that provided by something else and the filemanager is a red herring?
but why it wasnt automatically mounted like any other usb
What filesystem is this?
lsblk -f
Online
Please use tags. Edit your post in this regard.
Sorry, my bad, I've edited the post.
What "filemanager", where do you expect it to show up - and how?
Do you rely on the filemanager for automounts or is that provided by something else and the filemanager is a red herring?
I'm using GNOME Files as my file manager. Honestly, I'm not really sure whether it's the file manager that's handling the automounting or if it's done by another service.
How can I check what is actually responsible for automounting? I do remember installing gvfs on my system — could that be involved, or possibly conflict with the file manager?
Here's the output of lsblk -f:
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
`-sda1 vfat FAT32 7EF5-13D2
Offline
I'm using GNOME Files as my file manager.
So, nautilus?
Afaict you can enable or disable automounting in nautilus, for specific device handling, it would still respect your fstab, is the device listed there?
Either external drives are automounted?
Online
So, nautilus?
yeah that's it
it would still respect your fstab, is the device listed there?
no, i also tried to check another flashdisk that can automount, but when i check fstab with command
cat /etc/fstab
the device isn't listed either.
oh and the automount just doesn't work for this one flashdisk, and this problem started when i tried to change the flashdisk from a bootable flashdisk to a normal flashdisk. i did several steps to format the flashdisk like this:
i used gdisk for formatting my flashdisk
1. first i deleted all the partitions on the flashdisk
2. secondly i created one partition that used all space on the flashdisk
3. and after that i formatted the partition with:
mkfs.fat
did i do something wrong?
Offline
Do you get any errors from
udisksctl mount -b /dev/sda1
or do related errors show up in dmesg/the system journal?
Online
Do you get any errors from
udisksctl mount -b /dev/sda1 or do related errors show up in dmesg/the system journal?
no i didnt get any error either from dmesg or the udiskctl command, here's the output for udiskctl command
Mounted /dev/sda1 at /run/media/asakusa/7EF5-13D2
and here's output from dmesg after i plug in my flashdisk
[ 396.866316] usb 1-5.3: New USB device found, idVendor=048d, idProduct=1234, bcdDevice= 2.00
[ 396.866327] usb 1-5.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 396.866331] usb 1-5.3: Product: Disk 2.0
[ 396.866334] usb 1-5.3: Manufacturer: USB
[ 396.866336] usb 1-5.3: SerialNumber: 1062641070750427042
[ 396.867793] usb-storage 1-5.3:1.0: USB Mass Storage device detected
[ 396.868412] scsi host8: usb-storage 1-5.3:1.0
[ 397.888747] scsi 8:0:0:0: Direct-Access VendorCo ProductCode 2.00 PQ: 0 ANSI: 4
[ 397.891049] sd 8:0:0:0: [sda] 4095997952 512-byte logical blocks: (2.10 TB/1.91 TiB)
[ 397.891198] sd 8:0:0:0: [sda] Write Protect is off
[ 397.891206] sd 8:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 397.891429] sd 8:0:0:0: [sda] No Caching mode page found
[ 397.891440] sd 8:0:0:0: [sda] Assuming drive cache: write through
[ 397.955478] sda: sda1
[ 397.955696] sd 8:0:0:0: [sda] Attached SCSI removable disk
Offline
udisksctl info -b /dev/sda
Check HintAuto, it's likely "false"? (And this isn't actually FM specidfic)
=> https://wiki.archlinux.org/title/Udev#S … e,_are_not
Seems like a udev bug, misdetecting the nature of the device (unless you've added some local rule)
Online
udisksctl info -b /dev/sda
Check HintAuto, it's likely "false"? (And this isn't actually FM specidfic)
=> https://wiki.archlinux.org/title/Udev#S … e,_are_notSeems like a udev bug, misdetecting the nature of the device (unless you've added some local rule)
I actually know how to fix the flash drive — I could just format it using Rufus on my Windows machine, and it will magically be detected on my Arch system.
I just want to know the reason why, when I manually format the flash drive with gdisk, it doesn't get auto-mounted.
Offline
Does it show up with "HintAuto=false"?
Post the entire udisksctl info and compare "fdisk -l /dev/sda; file/dev/sda1" for the drive in either condition.
Online
Does it show up with "HintAuto=false"?
No, here's the output for
udiskctl -b /dev/sda1
/org/freedesktop/UDisks2/block_devices/sda1:
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: '/'
Device: /dev/sda1
DeviceNumber: 2049
Drive: '/org/freedesktop/UDisks2/drives/VendorCo_ProductCode_1062641070750427042'
HintAuto: true
HintIconName:
HintIgnore: true
HintName:
HintPartitionable: true
HintSymbolicIconName:
HintSystem: false
Id: by-uuid-7EF5-13D2
IdLabel:
IdType: vfat
IdUUID: 7EF5-13D2
IdUsage: filesystem
IdVersion: FAT32
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/sda1
ReadOnly: false
Size: 2097150935040
Symlinks: /dev/disk/by-diskseq/4-part1
/dev/disk/by-id/usb-VendorCo_ProductCode_1062641070750427042-0:0-part1
/dev/disk/by-partuuid/fa2cb833-01
/dev/disk/by-path/pci-0000:00:14.0-usb-0:5.3:1.0-scsi-0:0:0:0-part/by-partnum/1
/dev/disk/by-path/pci-0000:00:14.0-usb-0:5.3:1.0-scsi-0:0:0:0-part/by-partuuid/fa2cb833-01
/dev/disk/by-path/pci-0000:00:14.0-usb-0:5.3:1.0-scsi-0:0:0:0-part/by-uuid/7EF5-13D2
/dev/disk/by-path/pci-0000:00:14.0-usb-0:5.3:1.0-scsi-0:0:0:0-part1
/dev/disk/by-path/pci-0000:00:14.0-usbv2-0:5.3:1.0-scsi-0:0:0:0-part1
/dev/disk/by-uuid/7EF5-13D2
UserspaceMountOptions:
org.freedesktop.UDisks2.Filesystem:
MountPoints:
Size: 0
org.freedesktop.UDisks2.Partition:
Flags: 0
IsContained: false
IsContainer: false
Name:
Number: 1
Offset: 16384
Size: 2097150935040
Table: '/org/freedesktop/UDisks2/block_devices/sda'
Type: 0xef
UUID: fa2cb833-01
Compare "fdisk -l /dev/sda; file /dev/sda1" for the drive in either condition.
And here's the output for both of my flash drives. sda1 is the one that doesn’t get auto-mounted:
➜ ~ sudo fdisk -l /dev/sdb1
[sudo] password for asakusa:
Disk /dev/sdb1: 57.3 GiB, 61529358336 bytes, 120174528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2c6b7369
Device Boot Start End Sectors Size Id Type
/dev/sdb1p1 1936028272 3787887330 1851859059 883G 68 unknown
/dev/sdb1p2 1330184192 1869160479 538976288 257G 79 unknown
/dev/sdb1p3 538989391 1937352302 1398362912 666.8G 53 OnTrack DM6 Aux3
/dev/sdb1p4 1394627663 1394648999 21337 10.4M 49 unknown
Partition table entries are not in disk order.
➜ ~ sudo fdisk -l /dev/sda1
Disk /dev/sda1: 1.91 TiB, 2097150935040 bytes, 4095997920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
The fdisk output is different. How can I make the manually formatted flash drive behave the same as the one that auto-mounts?
Offline
[@uote]Disk identifier: 0x00000000[@/uote]
But
fdisk -l /dev/sda
and
fdisk -l /dev/sdb
(sdb1 seems to hold a bogus partition table)
One thing is that you ddin't add a partition label, https://man.archlinux.org/man/fatlabel.8.en (though you can issue one w/ mkfs.vfat, https://man.archlinux.org/man/mkfs.fat.8.en#n ) - udisks will use the volume ID as mountpoint, but maybe nautilus is more picky.
Online
[@uote]Disk identifier: 0x00000000[@/uote]
Butfdisk -l /dev/sda
andfdisk -l /dev/sdb
(sdb1 seems to hold a bogus partition table)One thing is that you ddin't add a partition label, https://man.archlinux.org/man/fatlabel.8.en (though you can issue one w/ mkfs.vfat, https://man.archlinux.org/man/mkfs.fat.8.en#n ) - udisks will use the volume ID as mountpoint, but maybe nautilus is more picky.
i think i was doing a wrong step back then, so i tried to do it again and rn its working. thankyou so much for guiiding me appreciate your help
Offline
\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
(You might have to shorten the subject)
And for posterity please record whether it was indeed just down to the label.
Online
\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
(You might have to shorten the subject)And for posterity please record whether it was indeed just down to the label.
oh yeah sure, and my problem was bcs i format the wrong partition instead of formatting /dev/sda1 i was formating /dev/sda, there's nothing wrong with the label it just causded by the wrong formatting step
Offline