Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Floppy drive weird default options #988

Open
Carmina16 opened this issue Jul 23, 2022 · 3 comments
Open

Floppy drive weird default options #988

Carmina16 opened this issue Jul 23, 2022 · 3 comments

Comments

@Carmina16
Copy link

Version: 2.9.4

When floppy icon in file manager is clicked, or udisksctl called without options, the device is mounted with following options:

rw,nosuid,nodev,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro,uhelper=udisks2

i.e. the vfat_defaults options from the config file are ignored complely.

The following work-around currently works: forego the file manager, call udisksctl -t vfat manually.

@tbzatek
Copy link
Member

tbzatek commented Jul 25, 2022

First of all, thanks for the bugreport, letting us know that somebody out there actually uses floppies! We don't have much floppy stuff in our test suite and it's generally untested.

Can you please grep the respective floppy drive record from /proc/self/mountinfo? I'm wondering what filesystem type this is. It might be umsdos, fat12 or fat16, while vfat is essentially fat32.

Can you also post udevadm info /dev/fd0?

@Carmina16
Copy link
Author

254 24 2:0 / /run/media/<user>/disk rw,nosuid,nodev,noatime shared:81 - vfat /dev/fd0 rw,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro
P: /devices/platform/floppy.0/block/fd0
N: fd0
L: 0
E: DEVPATH=/devices/platform/floppy.0/block/fd0
E: DEVNAME=/dev/fd0
E: DEVTYPE=disk
E: MAJOR=2
E: MINOR=0
E: SUBSYSTEM=block
E: USEC_INITIALIZED=8955797
E: ID_DRIVE_FLOPPY=1
E: TAGS=:systemd:
E: CURRENT_TAGS=:systemd:

@tbzatek
Copy link
Member

tbzatek commented Jul 26, 2022

I see, thanks. The problem is that there's no probing done from udev side, for obvious reasons for the floppy. So that udisks has no idea and just mounts the block device on request with filesystem type "auto". It's up to the lower system layers then to select a filesystem and some default mount options.

The easiest way to work around this is to make a record in /etc/fstab since the block device name is typically stable. Then UDisks would honor your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants