From mboxrd@z Thu Jan 1 00:00:00 1970 From: qiaozqjhsy@gmail.com (Qiao Zhao) Date: Thu, 07 Nov 2013 16:03:14 +0800 Subject: Why I can't mount usb stick with my uid or gid? In-Reply-To: References: Message-ID: <527B4942.2060603@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On 11/07/2013 10:52 AM, ??? wrote: > I use ubuntu 12.04, and my usb stick had been found at /dev/sdb and > has 2 partitions. > If I `mount /dev/sdb1 ~/work`, My usb stick can be mounted > sucessfully, but ownership of ~/work is root, so I can't write > anything to it. > But if I `mount -o uid=1000,gid=1000 /dev/sdb1 ~/work`, system replies > following error message: > > mount: wrong fs type, bad option, bad superblock on /dev/sdb1, > missing codepage or helper program, or other error > In some cases useful info is found in syslog - try > dmesg | tail or so > > Why this situation occurred? I'm sure that my pid and gid is 1000. > Any ideas? > Because uid,gid and other parameters are given nfs, vfat file systems. ext3 and ext4 file systems doesn't support this mount. This is my test log: $ sudo mount -o uid=500,gid=500 /dev/sdb1 /media/ $ mount /dev/sdb1 on /media type vfat (rw,uid=500,gid=500) > > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131107/7d8ae522/attachment-0001.html