Score:0

error mounting a zip drive when I specify a uid

nl flag

I have a zip drive which my system recognizes as /dev/sda

when I try to mount it with this command

sudo /bin/mount -t ext4 /dev/sda /mnt/usb -o rw,nosuid,uid=1000,gid=1000

it throws this error

mount: /mnt/usb: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or helper program, or other error

when I mount it with this command:

sudo /bin/mount -t ext4 /dev/sda /mnt/usb -o rw,nosuid

it opens find, but of course, files are owned by root, which is annoying.

Could somebody please tell me how to mount it so that I own everything?

thanks!

ChanganAuto avatar
us flag
Is there any reason to not use `chown` at the mount point?
Score:1
cn flag

You are trying to mount an ext4 file system that fully supports linux file permissions. The uid option applies to mounting file systems that do not support linux permissions.

Mount it as root, then change the permissions and/or ownership of the mount point as you see fit.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.