[SOLVED] Unrecognized mount option "uid=1002" or missing value
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Unrecognized mount option "uid=1002" or missing value
I'm trying to mount an external USB drive:
Code:
# mount -t ext4 /dev/sdc1 /mnt/OHPRSbackup -o uid=ohprs,gid=ohprs,flush
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
syslog has:
Code:
Aug 11 17:52:39 bu6500 kernel: [3563338.712562] EXT4-fs (sdc1): Unrecognized mount option "uid=1002" or missing value
But, that seems to be a legit option in man mount. Also, this has worked in the past. The only different is that now the file system is ext4 and before it was ntfs.
For all filesystem types, you can use the options described under "FILESYSTEM-INDEPENDENT MOUNT OPTIONS". These include 'group' and 'user', but not 'uid' and 'gid'.
For ext4, you can also use the options described under "Mount options for ext4". No 'uid' and 'gid' there.
For ntfs, 'uid' and 'gid' do exist, but have semantics that differ from 'group' and 'user'.
Edit: You're not going to have much joy with 'flush', either, which applies only to fat filesystems.
Last edited by 55020; 08-11-2017 at 05:16 PM.
Reason: and I misread 'ntfs' :(
Ah! You are right! The "ntfs options" bit on the man page had scrolled off my screen, so I didn't realize uid was applied to it and not ext4. I'm using:
Code:
mount -t -ext4 /dev/sdc1 /mnt/OHPRSbackup -o user=ohprs,rw
and that works fine ... for one drive. Still having issues.
I have an identical drive for which I'm trying to do the same thing on the same computer, but it's not working:
The difference is that before mounting /mnt/mirror is a+rwx, but after mounting it reverts to go-w. Yet the one that works, /mnt/OHPRSbackup stayed with a+rwx. Not sure why, maybe I set the permissions on /mnt/OHPRSbackup after mounting? I don't remember (it's running a backup at the moment so I can't umount it).
So, what do I need to do to make a mount writable by a non-root user?
Do I need a new topic with a different title? I need an fstab entry that will permit root to mount an external USB drive that non-root users can access. Surely this has been addressed long ago, although I've not found a solution searching the Web.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.