FS#41185 - [fuse-exfat] 1.0.1-2 the mount.exfat command doesn't handled the '-n' parameter correctly
Attached to Project:
Community Packages
Opened by MicroAleX (MicroAleX) - Sunday, 13 July 2014, 15:36 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 13 January 2017, 15:32 GMT
Opened by MicroAleX (MicroAleX) - Sunday, 13 July 2014, 15:36 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 13 January 2017, 15:32 GMT
|
Details
Description:
I was trying to use the /etc/fstab file to mount an exFAT partition when the system starting up. I've correctly wrote the /etc/fstab file, and reboot the system, then I've got a red 'Failed' flash over the system boot screen. I checked the 'journalctl -b', and I've noticed these lines: Jul 13 12:06:23 pc kernel: fuse init (API version 7.23) Jul 13 12:06:23 pc mount[329]: Usage: /sbin/mount.exfat [-d] [-o options] [-v] <device> <dir> Jul 13 12:06:23 pc mount[329]: FUSE exfat 1.0.1 Jul 13 12:06:23 pc systemd[1]: mnt-500G.mount mount process exited, code=exited status=1 Jul 13 12:06:23 pc systemd[1]: Failed to mount /mnt/500G. Jul 13 12:06:23 pc systemd[1]: Unit mnt-500G.mount entered failed state. Especially the 'Usage' line, this usually means some command got some wrong parameters. Then I ran the systemctl command to see what is the command line: $ systemctl status mnt-500G.mount Loaded: loaded (/etc/fstab) Active: failed (Result: exit-code) since Sun 2014-07-13 12:06:23 CST; 6min ago Where: /mnt/500G What: /dev/disk/by-uuid/521D-2393 Docs: man:fstab(5) man:systemd-fstab-generator(8) Process: 329 ExecMount=/bin/mount -n /dev/disk/by-uuid/521D-2393 /mnt/500G -t exfat -o rw,nosuid,exec,relatime,allow_other,nofail (code=exited, status=1/FAILURE) We can see the command line is '/bin/mount -n /dev/disk/by-uuid/521D-2393 /mnt/500G -t exfat -o rw,nosuid,exec,relatime,allow_other,nofail', I tried to ran it in console, and I've got a same 'Usage' information. I think this means the command line parameters went wrong somehow. After a few test, I found out the reason to cause the problem is the '-n' parameter in the mount command. The '-n' parameter will be passed to the mount.exfat command, but the mount.exfat command doesn't support the '-n' command, and things went wrong. Additional info: * package version(s) fuse-exfat 1.0.1-2 * config and/or log files etc. None Steps to reproduce: 1, format a partition to exFAT filesystem (whatever in Linux or Windows). 2, edit the /etc/fstab file, make sure that partition will be automatically mounted when system starting up. 3, reboot your system 4, the partition won't mount, because the mount.exfat could not handle the '-n' parameter. 5, check the 'journalctl -b', you should be able to find some 'Usage' information. |
This task depends upon
Closed by Doug Newgard (Scimmia)
Friday, 13 January 2017, 15:32 GMT
Reason for closing: Fixed
Additional comments about closing: exfat-utils 1.1.0-1
Friday, 13 January 2017, 15:32 GMT
Reason for closing: Fixed
Additional comments about closing: exfat-utils 1.1.0-1
Comment by Doug Newgard (Scimmia) -
Monday, 14 July 2014, 04:46 GMT
Looks like this is already fixed upstream:
https://code.google.com/p/exfat/source/detail?r=346