Closed eduardosm closed 3 years ago
Can you also please provide output of udisksctl info -b /dev/sdc
and udevadm info /dev/sdc
, thanks.
udisksctl info -b /dev/sdc
/org/freedesktop/UDisks2/block_devices/sdc:
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: '/'
Device: /dev/sdc
DeviceNumber: 2080
Drive: '/org/freedesktop/UDisks2/drives/MiniWare_8MB_Disk_MiniWare_8MB_Disk_0_3a0'
HintAuto: true
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: true
HintSymbolicIconName:
HintSystem: false
Id:
IdLabel:
IdType:
IdUUID:
IdUsage:
IdVersion:
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/sdc
ReadOnly: false
Size: 8388608
Symlinks: /dev/disk/by-id/usb-MiniWare_8MB_Disk-0:0
/dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0
UserspaceMountOptions:
udevadm info /dev/sdc
P: /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/host6/target6:0:0/6:0:0:0/block/sdc
N: sdc
L: 0
S: disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0
S: disk/by-id/usb-MiniWare_8MB_Disk-0:0
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/host6/target6:0:0/6:0:0:0/block/sdc
E: DEVNAME=/dev/sdc
E: DEVTYPE=disk
E: MAJOR=8
E: MINOR=32
E: SUBSYSTEM=block
E: USEC_INITIALIZED=1167159068109
E: ID_VENDOR=MiniWare
E: ID_VENDOR_ENC=MiniWare
E: ID_VENDOR_ID=0483
E: ID_MODEL=8MB_Disk
E: ID_MODEL_ENC=8MB_Disk\x20\x20\x20\x20\x20\x20\x20\x20
E: ID_MODEL_ID=5720
E: ID_REVISION=0200
E: ID_SERIAL=MiniWare_8MB_Disk-0:0
E: ID_TYPE=disk
E: ID_INSTANCE=0:0
E: ID_BUS=usb
E: ID_USB_INTERFACES=:080650:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=usb-storage
E: ID_PATH=pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_1_1_0-scsi-0_0_0_0
E: DEVLINKS=/dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0 /dev/disk/by-id/usb-MiniWare_8MB_Disk-0:0
E: TAGS=:systemd:
I can also post a raw dump of the block device: raw_dump.zip
If I write the raw dump into another USB flash drive, the file system is detected by udisks.
I tested the image with a loop device and it also works. The problem is somewhere in UDev -- your udevadm info
output is missing filesystem information, so we think there is no filesystem on sdc
. It works correctly with the loop device, this is what I get from the loop device:
E: ID_FS_VERSION=FAT12
E: ID_FS_TYPE=vfat
E: ID_FS_USAGE=filesystem
What does blkid -p /dev/sdc --output udev
returns? If it shows filesystem information, it's UDev problem (systemd), if not it's (lib)blkid problem (util-linux).
There isn't any output, so it seems it is a blkid issue.
Closing for the time being as that's an external issue. Feel free to reopen once the blkid
issue is fixed yet UDisks still couldn't detect any filesystem.
The DS213 is a pocket oscilloscope with a small (8M) flash memory that can be accessed from the computer through USB.
After plugin the device to the computer, a new block device appears (let's say it is /dev/sdc), an
lsblk
lists it as:The device contains a FAT partition (without partition table). However, it is not possible to mount it with udisks.
For example,
produces
The file system can be mounted successfully with the
mount
command. On windows it is correctly detected like any other USB storage device.Other USB storage devices can be mounter with udisks without issues.
More information
udisks version: 2.9.1
journalctl -u udisks2.service
does not show anything related to that device.Using a dbus debugger,
/org/freedesktop/UDisks2/block_devices/sdc
has theorg.freedesktop.UDisks2.Block
interface, but notorg.freedesktop.UDisks2.Filesystem
(as said before, there is a valid FAT filesystem that can be mounted withmount
).The device is listed by
lsusb -v
asfsck.vfat
produces the following output:After connecting the device,
dmesg
shows: