<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 11/07/2013 04:45 PM, 乃宏周 wrote:<br>
</div>
<blockquote
cite="mid:CAJFpruJOj5_H6AdieLa2zzMaNMx+1O9X4zz_8mYNhYsRgwObmQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>If this situation is true, how should I do to change
ownership after mount?<br>
</div>
Use `chown -R 1000:1000 ~/work` ? That sounds doesn't like a
good idea.<br>
</div>
</blockquote>
Not found a better way at present. :(<br>
<br>
Others have good ideas?<br>
<br>
--<br>
Thanks,<br>
Qiao<br>
<blockquote
cite="mid:CAJFpruJOj5_H6AdieLa2zzMaNMx+1O9X4zz_8mYNhYsRgwObmQ@mail.gmail.com"
type="cite">
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/11/7 Qiao Zhao <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:qiaozqjhsy@gmail.com"
target="_blank">qiaozqjhsy@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>
<div class="h5">
<div>On 11/07/2013 10:52 AM, 乃宏周 wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>I use ubuntu 12.04, and my usb stick
had been found at /dev/sdb and has 2
partitions.<br>
</div>
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.<br>
</div>
But if I `mount -o uid=1000,gid=1000 /dev/sdb1
~/work`, system replies following error
message:<br>
<br>
mount: wrong fs type, bad option, bad
superblock on /dev/sdb1,<br>
missing codepage or helper program, or
other error<br>
In some cases useful info is found in
syslog - try<br>
dmesg | tail or so<br>
<br>
</div>
Why this situation occurred? I'm sure that my
pid and gid is 1000.<br>
</div>
Any ideas?<br>
</div>
<br>
</blockquote>
</div>
</div>
Because uid,gid and other parameters are given nfs, vfat
file systems. ext3 and ext4 file systems doesn't <br>
support this mount.<br>
This is my test log:<br>
$ sudo mount -o uid=500,gid=500 /dev/sdb1 /media/<br>
$ mount<br>
/dev/sdb1 on /media type vfat (rw,uid=500,gid=500) <br>
<div class="im">
<blockquote type="cite">
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Kernelnewbies mailing list
<a moz-do-not-send="true" href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a>
<a moz-do-not-send="true" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a>
</pre>
</blockquote>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>