Re: [gentoo-user] chown - not permited

2014-06-11 Thread J. Roeleveld
On 10 June 2014 21:33:28 CEST, Joseph syscon...@gmail.com wrote:
On 06/10/14 22:50, the wrote:
On 06/10/14 22:37, Joseph wrote:
 I mount USB stick form camera and I can not change ownership (I'm
 login as root)
 
 drwxr-xr-x 9 root root 32768 Nov 18  2013 DCIM -rwxr-xr-x 1 root
 root 4 Nov 21  2013 _disk_id.pod drwxr-xr-x 2 root root 32768
 Aug 14  2013 LOST.DIR
 
 I can read and write another USB stick but others I can not.  How
 to control it?
 
What filesystem does it contain and what mount options are you using?
Depending on the filesystem it can be possible to mount with
user/group permissions.

One USB stick was ext2 the other was dos file system.  I have problem
with dos.
I have commentd out in fstab:
/dev/sdb1  /media/stickautonoauto,rw,user0 
 0

and let udisks mange it.  It works.
Except that now I have ugly long names, for ext2 I get:
/run/media/joseph/2f5fc53e-4f4c-4e74-b9c4-fca316b47fea

for dos I get:
/run/media/joseph/3136-3934

with fstab entry they all were mounted under: 
 /media/stick

Joseph.

If you give the filesystem a Label. Then udisks will use that instead of the 
UUID string.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] chown - not permited

2014-06-11 Thread Joseph

On 06/11/14 11:33, J. Roeleveld wrote:

On 10 June 2014 21:33:28 CEST, Joseph syscon...@gmail.com wrote:

On 06/10/14 22:50, the wrote:

On 06/10/14 22:37, Joseph wrote:

I mount USB stick form camera and I can not change ownership (I'm
login as root)

drwxr-xr-x 9 root root 32768 Nov 18  2013 DCIM -rwxr-xr-x 1 root
root 4 Nov 21  2013 _disk_id.pod drwxr-xr-x 2 root root 32768
Aug 14  2013 LOST.DIR

I can read and write another USB stick but others I can not.  How
to control it?


What filesystem does it contain and what mount options are you using?
Depending on the filesystem it can be possible to mount with
user/group permissions.


One USB stick was ext2 the other was dos file system.  I have problem
with dos.
I have commentd out in fstab:
/dev/sdb1   /media/stickautonoauto,rw,user0 
 0

and let udisks mange it.  It works.
Except that now I have ugly long names, for ext2 I get:
/run/media/joseph/2f5fc53e-4f4c-4e74-b9c4-fca316b47fea

for dos I get:
/run/media/joseph/3136-3934

with fstab entry they all were mounted under:
/media/stick


Joseph.

If you give the filesystem a Label. Then udisks will use that instead of the 
UUID string.

--
Joost


Thanks.
What is the best way to edit USB Label?

--
Joseph



Re: [gentoo-user] chown - not permited

2014-06-11 Thread Stroller

On Wed, 11 June 2014, at 2:52 pm, Joseph syscon...@gmail.com wrote:
...
 
 If you give the filesystem a Label. Then udisks will use that instead of the 
 UUID string.
 
 Thanks.
 What is the best way to edit USB Label?

$ apropos label
e2label (8)  - Change the label on an ext2/ext3/ext4 filesystem

I think you may be able to give DOS filesystems a label at creation time.

Stroller.




Re: [gentoo-user] chown - not permited

2014-06-11 Thread Neil Bothwick
On Wed, 11 Jun 2014 07:52:23 -0600, Joseph wrote:

 What is the best way to edit USB Label?

For the DOS filesystem, mlabel, part of sys-fs/mtools.


-- 
Neil Bothwick

Top Oxymorons Number 19: Passive aggression


signature.asc
Description: PGP signature


Re: [gentoo-user] chown - not permited

2014-06-11 Thread Mike Gilbert
On Wed, Jun 11, 2014 at 10:49 AM, Neil Bothwick n...@digimed.co.uk wrote:
 On Wed, 11 Jun 2014 07:52:23 -0600, Joseph wrote:

 What is the best way to edit USB Label?

 For the DOS filesystem, mlabel, part of sys-fs/mtools.


Or fatlabel, from sys-fs/dosfstools.



Re: [gentoo-user] chown - not permited

2014-06-11 Thread Joseph

On 06/11/14 11:31, Mike Gilbert wrote:

On Wed, Jun 11, 2014 at 10:49 AM, Neil Bothwick n...@digimed.co.uk wrote:

On Wed, 11 Jun 2014 07:52:23 -0600, Joseph wrote:


What is the best way to edit USB Label?


For the DOS filesystem, mlabel, part of sys-fs/mtools.



Or fatlabel, from sys-fs/dosfstools.


Thanks, I've tired mtools mlable couldn't get it to work.
fatlabel worked perfectly.

--
Joseph



[gentoo-user] chown - not permited

2014-06-10 Thread Joseph

I mount USB stick form camera and I can not change ownership (I'm login as root)

drwxr-xr-x 9 root root 32768 Nov 18  2013 DCIM
-rwxr-xr-x 1 root root 4 Nov 21  2013 _disk_id.pod
drwxr-xr-x 2 root root 32768 Aug 14  2013 LOST.DIR

I can read and write another USB stick but others I can not.  How to control it?

--
Joseph



Re: [gentoo-user] chown - not permited

2014-06-10 Thread the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 06/10/14 22:37, Joseph wrote:
 I mount USB stick form camera and I can not change ownership (I'm
 login as root)
 
 drwxr-xr-x 9 root root 32768 Nov 18  2013 DCIM -rwxr-xr-x 1 root
 root 4 Nov 21  2013 _disk_id.pod drwxr-xr-x 2 root root 32768
 Aug 14  2013 LOST.DIR
 
 I can read and write another USB stick but others I can not.  How
 to control it?
 
What filesystem does it contain and what mount options are you using?
Depending on the filesystem it can be possible to mount with
user/group permissions.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJTl1OEAAoJEK64IL1uI2hat9IH/Rzqea0KLW1x8a93yyrhUmmC
De97fC3abcl5y+Fw06tqYibSgAfsLi+coiy9rBHIweMI9NP249wD1YYPD0ta4Ley
iQez1yA8pDpbeZD5tJHM09o8zVxVHxMMCCdTJdCXu6XePgodv469FwTJMIkxzFA+
SBQ0Z7iduU4dNM68+elwgQrJd30zR/YzPYFRYKjw5fRv6v/ooF41psdtq3uIkBJh
RiVu81lJaxEGGtVFdv3GOhvNvoECFi7QRuF5rYbe7vaiyCCIw6N/bG3UY4tVoqXa
9dy0K9GmsNz6mHYLUpxh7XjhEfk+G/CQ+AIpiO5PEbO1nnN8Pcl6RnzeCKDRDqs=
=StNj
-END PGP SIGNATURE-



Re: [gentoo-user] chown - not permited

2014-06-10 Thread Joseph

On 06/10/14 22:50, the wrote:

On 06/10/14 22:37, Joseph wrote:

I mount USB stick form camera and I can not change ownership (I'm
login as root)

drwxr-xr-x 9 root root 32768 Nov 18  2013 DCIM -rwxr-xr-x 1 root
root 4 Nov 21  2013 _disk_id.pod drwxr-xr-x 2 root root 32768
Aug 14  2013 LOST.DIR

I can read and write another USB stick but others I can not.  How
to control it?


What filesystem does it contain and what mount options are you using?
Depending on the filesystem it can be possible to mount with
user/group permissions.


One USB stick was ext2 the other was dos file system.  I have problem with dos.
I have commentd out in fstab:
/dev/sdb1   /media/stickautonoauto,rw,user0 
 0

and let udisks mange it.  It works.
Except that now I have ugly long names, for ext2 I get:
/run/media/joseph/2f5fc53e-4f4c-4e74-b9c4-fca316b47fea

for dos I get:
/run/media/joseph/3136-3934

with fstab entry they all were mounted under: 
/media/stick


--
Joseph



Re: [gentoo-user] chown - not permited

2014-06-10 Thread Alan McKinnon
On 10/06/2014 21:33, Joseph wrote:
 On 06/10/14 22:50, the wrote:
 On 06/10/14 22:37, Joseph wrote:
 I mount USB stick form camera and I can not change ownership (I'm
 login as root)

 drwxr-xr-x 9 root root 32768 Nov 18  2013 DCIM -rwxr-xr-x 1 root
 root 4 Nov 21  2013 _disk_id.pod drwxr-xr-x 2 root root 32768
 Aug 14  2013 LOST.DIR

 I can read and write another USB stick but others I can not.  How
 to control it?

 What filesystem does it contain and what mount options are you using?
 Depending on the filesystem it can be possible to mount with
 user/group permissions.
 
 One USB stick was ext2 the other was dos file system.  I have problem
 with dos.
 I have commentd out in fstab:
 /dev/sdb1/media/stickautonoauto,rw,user0  0
 
 and let udisks mange it.  It works.
 Except that now I have ugly long names, for ext2 I get:
 /run/media/joseph/2f5fc53e-4f4c-4e74-b9c4-fca316b47fea
 
 for dos I get:
 /run/media/joseph/3136-3934
 
 with fstab entry they all were mounted under: /media/stick
 


Those long names are filesystem id's and volume labels. You didn't tell
udisks what to call the mount point so it has picked the only thing it
has available - the ID of the filesystem.

fstab is a really bad tool for this, it does not apply the rules to your
USB sticks, it applies them to anything that just happens to get node
/dev/sdb1. Don't assume that will *always* be a portable usb stick,
because it won't.

Read the udisks documentation to find out how to customize naming of
mount points.





-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] chown - not permited

2014-06-10 Thread Neil Bothwick
On Tue, 10 Jun 2014 13:33:28 -0600, Joseph wrote:

  I mount USB stick form camera and I can not change ownership (I'm
  login as root)

 What filesystem does it contain and what mount options are you using?
 Depending on the filesystem it can be possible to mount with
 user/group permissions.  
 
 One USB stick was ext2 the other was dos file system.  I have problem
 with dos.

FAT32, the DOS fs, does not have ownerships. You cannot change something
that isn't there.


-- 
Neil Bothwick

In the begining, there was nothing.
And God said Let there be light and there was light.
There was still nothing, but you could see it better.


signature.asc
Description: PGP signature