kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Why I can't mount usb stick with my uid or gid?
@ 2013-11-07  2:52 乃宏周
  2013-11-07  3:23 ` Evan Teitelman
  2013-11-07  8:03 ` Qiao Zhao
  0 siblings, 2 replies; 5+ messages in thread
From: 乃宏周 @ 2013-11-07  2:52 UTC (permalink / raw)
  To: kernelnewbies

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131107/2d48c4fa/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Why I can't mount usb stick with my uid or gid?
  2013-11-07  2:52 Why I can't mount usb stick with my uid or gid? 乃宏周
@ 2013-11-07  3:23 ` Evan Teitelman
  2013-11-07  8:03 ` Qiao Zhao
  1 sibling, 0 replies; 5+ messages in thread
From: Evan Teitelman @ 2013-11-07  3:23 UTC (permalink / raw)
  To: kernelnewbies

On Thu, Nov 07, 2013 at 10:52:29AM +0800, ??? 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:

What does `dmesg` say?

> 
> 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?

> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131106/684bfcab/attachment.bin 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Why I can't mount usb stick with my uid or gid?
  2013-11-07  2:52 Why I can't mount usb stick with my uid or gid? 乃宏周
  2013-11-07  3:23 ` Evan Teitelman
@ 2013-11-07  8:03 ` Qiao Zhao
  2013-11-07  8:45   ` 乃宏周
  1 sibling, 1 reply; 5+ messages in thread
From: Qiao Zhao @ 2013-11-07  8:03 UTC (permalink / raw)
  To: kernelnewbies

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 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Why I can't mount usb stick with my uid or gid?
  2013-11-07  8:03 ` Qiao Zhao
@ 2013-11-07  8:45   ` 乃宏周
  2013-11-07  8:59     ` Qiao Zhao
  0 siblings, 1 reply; 5+ messages in thread
From: 乃宏周 @ 2013-11-07  8:45 UTC (permalink / raw)
  To: kernelnewbies

If this situation is true, how should I do to change ownership after mount?
Use `chown -R 1000:1000 ~/work` ? That sounds doesn't like a good idea.


2013/11/7 Qiao Zhao <qiaozqjhsy@gmail.com>

>  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 listKernelnewbies at kernelnewbies.orghttp://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131107/56388dd6/attachment-0001.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Why I can't mount usb stick with my uid or gid?
  2013-11-07  8:45   ` 乃宏周
@ 2013-11-07  8:59     ` Qiao Zhao
  0 siblings, 0 replies; 5+ messages in thread
From: Qiao Zhao @ 2013-11-07  8:59 UTC (permalink / raw)
  To: kernelnewbies

On 11/07/2013 04:45 PM, ??? wrote:
> If this situation is true, how should I do to change ownership after 
> mount?
> Use `chown -R 1000:1000 ~/work` ? That sounds doesn't like a good idea.
Not found a better way at present.  :(

Others have good ideas?

--
Thanks,
Qiao
>
>
> 2013/11/7 Qiao Zhao <qiaozqjhsy at gmail.com <mailto:qiaozqjhsy@gmail.com>>
>
>     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  <mailto:Kernelnewbies@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/70d95461/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-07  8:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-07  2:52 Why I can't mount usb stick with my uid or gid? 乃宏周
2013-11-07  3:23 ` Evan Teitelman
2013-11-07  8:03 ` Qiao Zhao
2013-11-07  8:45   ` 乃宏周
2013-11-07  8:59     ` Qiao Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).