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

Reply via email to