public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] fstab devmode
@ 2006-08-27 18:55 Joseph
  2006-08-27 19:45 ` [gentoo-user] " Harm Geerts
  2006-08-27 20:53 ` [gentoo-user] " Willie Wong
  0 siblings, 2 replies; 16+ messages in thread
From: Joseph @ 2006-08-27 18:55 UTC (permalink / raw
  To: gentoo-user

Can someone refresh my memory?
I'm trying to mount usb memory stick with permission 600 but it is not
taking devmode=0600

The current command mounts it as 755
/dev/sda1               /mnt/camera     auto
noauto,rw,users,exec

I've tried:
/dev/sda1               /mnt/camera     auto
noauto,devmode=0600
but no luck.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user] Re: fstab devmode
  2006-08-27 18:55 [gentoo-user] fstab devmode Joseph
@ 2006-08-27 19:45 ` Harm Geerts
  2006-08-27 20:53 ` [gentoo-user] " Willie Wong
  1 sibling, 0 replies; 16+ messages in thread
From: Harm Geerts @ 2006-08-27 19:45 UTC (permalink / raw
  To: gentoo-user

On Sunday 27 August 2006 20:55, Joseph wrote:
> Can someone refresh my memory?
> I'm trying to mount usb memory stick with permission 600 but it is not
> taking devmode=0600
>
> The current command mounts it as 755
> /dev/sda1               /mnt/camera     auto
> noauto,rw,users,exec
>
> I've tried:
> /dev/sda1               /mnt/camera     auto
> noauto,devmode=0600
> but no luck.

devmode is only available for usbfs.

for vfat you can use umask, dmask and fmask.
umask=0077 should do what you want.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] fstab devmode
  2006-08-27 18:55 [gentoo-user] fstab devmode Joseph
  2006-08-27 19:45 ` [gentoo-user] " Harm Geerts
@ 2006-08-27 20:53 ` Willie Wong
  2006-08-27 21:25   ` Joseph
  1 sibling, 1 reply; 16+ messages in thread
From: Willie Wong @ 2006-08-27 20:53 UTC (permalink / raw
  To: gentoo-user

On Sun, Aug 27, 2006 at 12:55:11PM -0600, Penguin Lover Joseph squawked:
> Can someone refresh my memory?
> I'm trying to mount usb memory stick with permission 600 but it is not
> taking devmode=0600
> 
> The current command mounts it as 755
> /dev/sda1               /mnt/camera     auto
> noauto,rw,users,exec
> 
> I've tried:
> /dev/sda1               /mnt/camera     auto
> noauto,devmode=0600
> but no luck.

Are you sure it is usbfs? If it is a camera, then perhaps it is vfat?
Try using the umask option?

HTH, 

W
-- 
I have a mind like a steel...animal catcher thingy.
Sortir en Pantoufles: up 2 days, 14:23
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] fstab devmode
  2006-08-27 20:53 ` [gentoo-user] " Willie Wong
@ 2006-08-27 21:25   ` Joseph
  2006-08-27 21:44     ` Daniel Pielmeier
  0 siblings, 1 reply; 16+ messages in thread
From: Joseph @ 2006-08-27 21:25 UTC (permalink / raw
  To: gentoo-user

On Sun, 2006-08-27 at 16:53 -0400, Willie Wong wrote:
> On Sun, Aug 27, 2006 at 12:55:11PM -0600, Penguin Lover Joseph squawked:
> > Can someone refresh my memory?
> > I'm trying to mount usb memory stick with permission 600 but it is not
> > taking devmode=0600
> > 
> > The current command mounts it as 755
> > /dev/sda1               /mnt/camera     auto
> > noauto,rw,users,exec
> > 
> > I've tried:
> > /dev/sda1               /mnt/camera     auto
> > noauto,devmode=0600
> > but no luck.
> 
> Are you sure it is usbfs? If it is a camera, then perhaps it is vfat?
> Try using the umask option?

It is a usb stick so it has a vfat file system.  However, I've reformat
the stick with fdisk to ext2 filesystem.  With vfat it has 978mb
capacity now after formating is to ext2 it has a 913mb capacity.
Is there a way to create dos (vfat) partition with Linux fdisk utility?

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] fstab devmode
  2006-08-27 21:25   ` Joseph
@ 2006-08-27 21:44     ` Daniel Pielmeier
  2006-08-27 21:59       ` Joseph
  0 siblings, 1 reply; 16+ messages in thread
From: Daniel Pielmeier @ 2006-08-27 21:44 UTC (permalink / raw
  To: gentoo-user

> It is a usb stick so it has a vfat file system.  However, I've reformat
> the stick with fdisk to ext2 filesystem.  With vfat it has 978mb
> capacity now after formating is to ext2 it has a 913mb capacity.
> Is there a way to create dos (vfat) partition with Linux fdisk utility?

As far as i know fdisk is just for partitioning, i think you can use 
mkfs.vfat from sys-fs/dosfstools for creating vfat file-system.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] fstab devmode
  2006-08-27 21:44     ` Daniel Pielmeier
@ 2006-08-27 21:59       ` Joseph
  2006-08-27 22:09         ` Richard Fish
  2006-08-27 23:23         ` [gentoo-user] " Harm Geerts
  0 siblings, 2 replies; 16+ messages in thread
From: Joseph @ 2006-08-27 21:59 UTC (permalink / raw
  To: gentoo-user

On Sun, 2006-08-27 at 23:44 +0200, Daniel Pielmeier wrote:
> > It is a usb stick so it has a vfat file system.  However, I've reformat
> > the stick with fdisk to ext2 filesystem.  With vfat it has 978mb
> > capacity now after formating is to ext2 it has a 913mb capacity.
> > Is there a way to create dos (vfat) partition with Linux fdisk utility?
> 
> As far as i know fdisk is just for partitioning, i think you can use 
> mkfs.vfat from sys-fs/dosfstools for creating vfat file-system.

Yes, that is what I want it to do.
Originally my 1Mb stick with dos partition had 978Mb on it.
I've partitioned it to Linux partition and formated as ext2, the free
disk space went down to 913Mb 
So I went back to DOS partition and (with Linux fdisk it is option "t")
and my usb disk space went up to 977Mb
Harm Geerts is right (thanks) "umask=0077" does what I need with dos
partition, when mounted, usb stick has a permission 700.
What would be an alternative for ext2 file system, umask doesn't work.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] fstab devmode
  2006-08-27 21:59       ` Joseph
@ 2006-08-27 22:09         ` Richard Fish
  2006-08-27 23:23         ` [gentoo-user] " Harm Geerts
  1 sibling, 0 replies; 16+ messages in thread
From: Richard Fish @ 2006-08-27 22:09 UTC (permalink / raw
  To: gentoo-user

On 8/27/06, Joseph <syscon@interbaun.com> wrote:
> Yes, that is what I want it to do.
> Originally my 1Mb stick with dos partition had 978Mb on it.
> I've partitioned it to Linux partition and formated as ext2, the free
> disk space went down to 913Mb

Try tune2fs -m 0 to set the reserved block percentage to 0%.
Otherwise 5% of the blocks are reserved for root, and are "hidden".

-Richard
-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user] Re: fstab devmode
  2006-08-27 21:59       ` Joseph
  2006-08-27 22:09         ` Richard Fish
@ 2006-08-27 23:23         ` Harm Geerts
  2006-08-28  0:07           ` Joseph
  1 sibling, 1 reply; 16+ messages in thread
From: Harm Geerts @ 2006-08-27 23:23 UTC (permalink / raw
  To: gentoo-user

On Sunday 27 August 2006 23:59, Joseph wrote:
> Harm Geerts is right (thanks) "umask=0077" does what I need with dos
> partition, when mounted, usb stick has a permission 700.
> What would be an alternative for ext2 file system, umask doesn't work.

I might be wrong but I'm guessing you want different permissions on the 
mountpoint.

In that case you can simply `chmod 700 /mnt/your_stick` it with ext2 (while 
mounted).
ext2 stores this and will use the same permissions the next mount.
This is true for all filesystems that support permissions (which all normal 
linux filesystems do)

umask is only intended to make up for the lack of file permissions on vfat.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Re: fstab devmode
  2006-08-27 23:23         ` [gentoo-user] " Harm Geerts
@ 2006-08-28  0:07           ` Joseph
  2006-08-28  8:30             ` Neil Bothwick
  0 siblings, 1 reply; 16+ messages in thread
From: Joseph @ 2006-08-28  0:07 UTC (permalink / raw
  To: gentoo-user

On Mon, 2006-08-28 at 01:23 +0200, Harm Geerts wrote:
> On Sunday 27 August 2006 23:59, Joseph wrote:
> > Harm Geerts is right (thanks) "umask=0077" does what I need with dos
> > partition, when mounted, usb stick has a permission 700.
> > What would be an alternative for ext2 file system, umask doesn't work.
> 
> I might be wrong but I'm guessing you want different permissions on the 
> mountpoint.
> 
> In that case you can simply `chmod 700 /mnt/your_stick` it with ext2 (while 
> mounted).
> ext2 stores this and will use the same permissions the next mount.
> This is true for all filesystems that support permissions (which all normal 
> linux filesystems do)
> 
> umask is only intended to make up for the lack of file permissions on vfat.

Thanks for the explanation, I did that with "chown" on ext2 and it did
work. 
It makes me wander if anybody experiment with other file systems
(besides dos, ext2) on on memory sticks?

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Re: fstab devmode
  2006-08-28  0:07           ` Joseph
@ 2006-08-28  8:30             ` Neil Bothwick
  2006-08-28  8:38               ` Dirk Heinrichs
  0 siblings, 1 reply; 16+ messages in thread
From: Neil Bothwick @ 2006-08-28  8:30 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 302 bytes --]

On Sun, 27 Aug 2006 18:07:59 -0600, Joseph wrote:

> It makes me wander if anybody experiment with other file systems
> (besides dos, ext2) on on memory sticks?

I put LVM on a memory stick recently, does that count?


-- 
Neil Bothwick

Beware of the opinion of someone without any facts.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-user] Re: fstab devmode
  2006-08-28  8:30             ` Neil Bothwick
@ 2006-08-28  8:38               ` Dirk Heinrichs
  2006-08-28  8:51                 ` Neil Bothwick
  0 siblings, 1 reply; 16+ messages in thread
From: Dirk Heinrichs @ 2006-08-28  8:38 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 677 bytes --]

Am Montag, 28. August 2006 10:30 schrieb ext Neil Bothwick:
> On Sun, 27 Aug 2006 18:07:59 -0600, Joseph wrote:
> > It makes me wander if anybody experiment with other file systems
> > (besides dos, ext2) on on memory sticks?
>
> I put LVM on a memory stick recently, does that count?

lvmfs? Never heard of this ;-)

Bye...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55      | Web:  http://www.capgemini.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-user] Re: fstab devmode
  2006-08-28  8:38               ` Dirk Heinrichs
@ 2006-08-28  8:51                 ` Neil Bothwick
  2006-08-28 16:50                   ` Joseph
  0 siblings, 1 reply; 16+ messages in thread
From: Neil Bothwick @ 2006-08-28  8:51 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 282 bytes --]

On Mon, 28 Aug 2006 10:38:22 +0200, Dirk Heinrichs wrote:

> > I put LVM on a memory stick recently, does that count?  
> 
> lvmfs? Never heard of this ;-)

That's why I asked if it counted ;-)


-- 
Neil Bothwick

You are validating my inherent mistrust of strangers.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-user] Re: fstab devmode
  2006-08-28  8:51                 ` Neil Bothwick
@ 2006-08-28 16:50                   ` Joseph
  2006-08-28 18:01                     ` Neil Bothwick
  0 siblings, 1 reply; 16+ messages in thread
From: Joseph @ 2006-08-28 16:50 UTC (permalink / raw
  To: gentoo-user

On Mon, 2006-08-28 at 09:51 +0100, Neil Bothwick wrote:
> On Mon, 28 Aug 2006 10:38:22 +0200, Dirk Heinrichs wrote:
> 
> > > I put LVM on a memory stick recently, does that count?  
> > 
> > lvmfs? Never heard of this ;-)
> 
> That's why I asked if it counted ;-)

What is the result (disk space) in comparison to vfat, ext2 etc.?

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Re: fstab devmode
  2006-08-28 16:50                   ` Joseph
@ 2006-08-28 18:01                     ` Neil Bothwick
  2006-08-28 19:26                       ` Joseph
  0 siblings, 1 reply; 16+ messages in thread
From: Neil Bothwick @ 2006-08-28 18:01 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 513 bytes --]

On Mon, 28 Aug 2006 10:50:09 -0600, Joseph wrote:

> > > lvmfs? Never heard of this ;-)  
> > 
> > That's why I asked if it counted ;-)  
> 
> What is the result (disk space) in comparison to vfat, ext2 etc.?

As Dirk pointed out, LVM is not a filesystem. If you want maximum
portability, FAT is the best choice. If you want to cram as much as
possible on the device, either use ReiserFS or get a larger device.


-- 
Neil Bothwick

Why is the alphabet in that order? Is it because of that song?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-user] Re: fstab devmode
  2006-08-28 18:01                     ` Neil Bothwick
@ 2006-08-28 19:26                       ` Joseph
  2006-08-28 20:01                         ` Neil Bothwick
  0 siblings, 1 reply; 16+ messages in thread
From: Joseph @ 2006-08-28 19:26 UTC (permalink / raw
  To: gentoo-user

On Mon, 2006-08-28 at 19:01 +0100, Neil Bothwick wrote:
> > What is the result (disk space) in comparison to vfat, ext2 etc.?
> 
> As Dirk pointed out, LVM is not a filesystem. If you want maximum
> portability, FAT is the best choice. If you want to cram as much as
> possible on the device, either use ReiserFS or get a larger device.

I just did a quick experiment with on 1Mb memory stick as to disk space
with different filesystems, so with:
- vfat  about 978Mb
- ext2 about 913Mb
- ReiserFS about 946Mb

As Richard pointed out with Linux FS certain percentage is reserved.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Re: fstab devmode
  2006-08-28 19:26                       ` Joseph
@ 2006-08-28 20:01                         ` Neil Bothwick
  0 siblings, 0 replies; 16+ messages in thread
From: Neil Bothwick @ 2006-08-28 20:01 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 832 bytes --]

On Mon, 28 Aug 2006 13:26:22 -0600, Joseph wrote:

> > As Dirk pointed out, LVM is not a filesystem. If you want maximum
> > portability, FAT is the best choice. If you want to cram as much as
> > possible on the device, either use ReiserFS or get a larger device.  
> 
> I just did a quick experiment with on 1Mb memory stick as to disk space
> with different filesystems, so with:
> - vfat  about 978Mb
> - ext2 about 913Mb
> - ReiserFS about 946Mb
> 
> As Richard pointed out with Linux FS certain percentage is reserved.

That's true of ext2/ext3. ReiserFS uses space more efficiently,
especially when storing lots of small files, so although it may appear to
offer less space that FAT, you'll probably fit more on the drive.


-- 
Neil Bothwick

Celery is not food. It is a member of the plywood family.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2006-08-28 20:08 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-27 18:55 [gentoo-user] fstab devmode Joseph
2006-08-27 19:45 ` [gentoo-user] " Harm Geerts
2006-08-27 20:53 ` [gentoo-user] " Willie Wong
2006-08-27 21:25   ` Joseph
2006-08-27 21:44     ` Daniel Pielmeier
2006-08-27 21:59       ` Joseph
2006-08-27 22:09         ` Richard Fish
2006-08-27 23:23         ` [gentoo-user] " Harm Geerts
2006-08-28  0:07           ` Joseph
2006-08-28  8:30             ` Neil Bothwick
2006-08-28  8:38               ` Dirk Heinrichs
2006-08-28  8:51                 ` Neil Bothwick
2006-08-28 16:50                   ` Joseph
2006-08-28 18:01                     ` Neil Bothwick
2006-08-28 19:26                       ` Joseph
2006-08-28 20:01                         ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox