Hello,
I've got an USB flash drive that I "formatted" under Linux as FAT32 (but I get the same results when it's "formatted" in ext4).
In the Linux box, there's no problem, one can mount it, write on it, unmount it.
In FreeBSD, it's impossible to just mount it and read data from it.
When I plug it in, /dev/da0 show up, but no /dev/da0s1.
I don't understand this: if this is "seen" as read only, then how is it a problem to mount it?
Whatever:
But /dev/da0 is still here.
This "read-only" status shows up in different tools' outputs. The flash drive has actually no knob nor swich of any kind allowing to turn on or off any write/read mode.
Some more checks:
But:
When "formatted" in FAT32, here's the log file of automount:
And indeed:
But, why is it a problem to only mount it?
The configuration is fine (since I can mount/umount other USB devices), but for information (my username being
I'd liked to try to "format" it from FreeBSD, but of course:
And there's no /dev/da0s1 where I could create a msdos partition.
I could zero it from linux and create the table and then a partition.
Is there anything to do to force mounting or "formatting" it? Or do the
Any clue or idea, what to do to get more information or solve this?
I've got an USB flash drive that I "formatted" under Linux as FAT32 (but I get the same results when it's "formatted" in ext4).
In the Linux box, there's no problem, one can mount it, write on it, unmount it.
In FreeBSD, it's impossible to just mount it and read data from it.
When I plug it in, /dev/da0 show up, but no /dev/da0s1.
Code:
# mount /dev/da0 /media/da0/
mount: /dev/da0: Read-only file system
Whatever:
Code:
# mount -r /dev/da0 /media/da0/
mount: /dev/da0: No such file or directory
This "read-only" status shows up in different tools' outputs. The flash drive has actually no knob nor swich of any kind allowing to turn on or off any write/read mode.
Some more checks:
Code:
# fsck /dev/da0
Can't open /dev/da0: No such file or directory
Code:
# fsck.ext4 -n /dev/da0
e2fsck 1.45.6 (20-Mar-2020)
CLE4GB : clean, 11/244800 files, 33670/978944 blocks
When "formatted" in FAT32, here's the log file of automount:
Code:
2020-04-21 17:53:03 /dev/ugen7.3: attach
2020-04-21 17:53:05 /dev/ugen7.3: no MTP devices found
2020-04-21 17:53:05 /dev/da0: attach
2020-04-21 17:53:05 /dev/da0: create '/media/da0' dir
2020-04-21 17:53:06 /dev/da0: fsck_msdosfs ** /dev/da0 (NO WRITE)
2020-04-21 17:53:06 /dev/da0: fsck_msdosfs Invalid signature in fsinfo block
2020-04-21 17:53:06 /dev/da0: fsck_msdosfs Fix? no
2020-04-21 17:53:06 /dev/da0: fsck_msdosfs ** Phase 1 - Read and Compare FATs
2020-04-21 17:53:06 /dev/da0: fsck_msdosfs ** Phase 2 - Check Cluster Chains
2020-04-21 17:53:06 /dev/da0: fsck_msdosfs ** Phase 3 - Checking Directories
2020-04-21 17:53:06 /dev/da0: fsck_msdosfs ** Phase 4 - Checking for Lost Files
2020-04-21 17:53:06 /dev/da0: fsck_msdosfs 1 files, 3908116 free (977029 clusters)
2020-04-21 17:53:07 /dev/da0: filesystem mount retry: 1/3
2020-04-21 17:53:08 /dev/da0: filesystem mount retry: 2/3
2020-04-21 17:53:09 /dev/da0: filesystem mount retry: 3/3
2020-04-21 17:53:09 /dev/da0: mount FAIL: 'mount_msdosfs -o longnames -m 644 -M 775 -D cp437 -L fr_FR.UTF-8 -u 1001 -g 5 -o noatime /dev/da0 /media/da0'
And indeed:
Code:
# mount_msdosfs -o longnames -m 644 -M 775 -D cp437 -L fr_FR.UTF-8 -u 1001 -g 5 -o noatime /dev/da0 /media/da0
mount_msdosfs: /dev/da0: Read-only file system
But, why is it a problem to only mount it?
The configuration is fine (since I can mount/umount other USB devices), but for information (my username being
nico
):
Code:
# groups nico
nico wheel operator video dialer network cups
# sysctl vfs.usermount
vfs.usermount: 1
# grep devfs /etc/rc.conf
devfs_system_ruleset="localrules"
# cat /etc/devfs.rules
[localrules=5]
add path 'da*' mode 0660 group operator
add path 'acd*' mode 0660 group operator
add path 'cd*' mode 0660 group operator
add path 'pass*' mode 0660 group operator
add path 'xpt*' mode 0660 group operator
add path 'msdosfs/*' mode 0660 group operator
add path 'ext2fs/' mode 0660 group operator
add path 'ntfs/*' mode 0660 group operator
add path 'usb/*' mode 0660 group operator
add path 'unlpt*' mode 0660 group cups
add path 'ulpt*' mode 0660 group cups
add path 'lpt*' mode 0660 group cups
add path 'usb/7.2' mode 0660 group cups
# usbconfig
ugen3.1: <Intel EHCI root HUB> at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.1: <Intel UHCI root HUB> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen2.1: <Intel UHCI root HUB> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen5.1: <Intel UHCI root HUB> at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen7.1: <Intel EHCI root HUB> at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.1: <Intel UHCI root HUB> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen4.1: <Intel UHCI root HUB> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen6.1: <Intel UHCI root HUB> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen7.2: <Image Processor Lenovo EasyCamera> at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
ugen6.2: <Logitech USB Receiver> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (98mA)
ugen7.3: <General USB Flash Disk> at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (200mA)
I'd liked to try to "format" it from FreeBSD, but of course:
Code:
# dd if=/dev/zero of=/dev/da0 bs=2M
dd: /dev/da0: Read-only file system
# fdisk -i /dev/da0
fdisk: can't open device /dev/da0
fdisk: cannot open disk /dev/da0: Read-only file system
I could zero it from linux and create the table and then a partition.
Is there anything to do to force mounting or "formatting" it? Or do the
fsck_msdosfs Invalid signature in fsinfo block
and fsck_msdosfs Fix? no
messages mean there's no solution at all?Any clue or idea, what to do to get more information or solve this?