mounting vfat partitions

mounting vfat partitions

am 26.04.2004 00:31:35 von Karthik Vishwanath

The layout of partitions on my system here looks like the following:

/dev/hda1 -> vfat
/dev/hdb1 -> vfat
/dev/hdb2 -> ext2
/dev/hdb3 -> ext2
/dev/hdb4 -> swap

/dev/hdb2 corresponds to /, and /dev/hdb3 to /home. I want to be able to
mount /dev/hda1 and /dev/hdb1 as /dosc and /dosd, respectively and have
added the following lines to /etc/fstab:
/dev/hdb1 /dosd vfat defaults
/dev/hda1 /dosc vfat defaults

This mounts the partitions correctly. However, I am able to access these
mount points only as root, and not as a user. I would prefer that these
vfat partitions be writable by root alone, but be readble for all users on
the machine. How can I fix that?

Thanks,

-K

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: mounting vfat partitions

am 26.04.2004 05:26:10 von Amin

Karthik Vishwanath wrote:

> /dev/hdb1 /dosd vfat defaults
> /dev/hda1 /dosc vfat defaults
>
> This mounts the partitions correctly. However, I am able to access these
> mount points only as root, and not as a user. I would prefer that these
> vfat partitions be writable by root alone, but be readble for all users on
> the machine. How can I fix that?
>
> Thanks,
>
> -K

/dev/hdb1 /dosd vfat defaults,owner,user
/dev/hda1 /dosc vfat defaults,owner,user

HTH

Yawar
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: mounting vfat partitions

am 27.04.2004 00:27:01 von Karthik Vishwanath

changing the /etc/fstab entries to the ones you listed below, Amin, mounts
the devices at boot but does not allow a user to read them.

The problem persists.

-K

On Mon, 26 Apr 2004, at 9:26am, Amin wrote:

> Karthik Vishwanath wrote:
>
> > /dev/hdb1 /dosd vfat defaults
> > /dev/hda1 /dosc vfat defaults
> >
> > This mounts the partitions correctly. However, I am able to access these
> > mount points only as root, and not as a user. I would prefer that these
> > vfat partitions be writable by root alone, but be readble for all users on
> > the machine. How can I fix that?
> >
> > Thanks,
> >
> > -K
>
> /dev/hdb1 /dosd vfat defaults,owner,user
> /dev/hda1 /dosc vfat defaults,owner,user
>
> HTH
>
> Yawar
>

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: mounting vfat partitions

am 27.04.2004 04:48:37 von beolach

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I would recommend something like:

/dev/hdb1 /dosd vfat defaults,umask=0,utf8,uid=1000,gid=100
/dev/hda1 /dosc vfat defaults,umask=0,utf8,uid=1000,gid=100

Most importantly, the umask=0 option tells mount to grant all
permissions for all users. Less important, the uid & gid specify the
user & group ids for all files on the vfat filesystem. uid=1000 should
usually be the first regular user, and gid=100 should be group users.
If you want regular (non-root) users to be able to mount & umount the
filesystem, you should add user or users to the options in fstab.
'users' will allow any user to mount or umount the filesystem, while
'user' will allow any user to mount, and only that user (or root, of
course) to umount. See man 8 mount for more options.

HTH,
Conway S. Smith

Karthik Vishwanath wrote:
> changing the /etc/fstab entries to the ones you listed below, Amin,
mounts
> the devices at boot but does not allow a user to read them.
>
> The problem persists.
>
> -K
>
> On Mon, 26 Apr 2004, at 9:26am, Amin wrote:
>
>
>>Karthik Vishwanath wrote:
>>
>>
>>>/dev/hdb1 /dosd vfat defaults
>>>/dev/hda1 /dosc vfat defaults
>>>
>>>This mounts the partitions correctly. However, I am able to access these
>>>mount points only as root, and not as a user. I would prefer that these
>>>vfat partitions be writable by root alone, but be readble for all
users on
>>>the machine. How can I fix that?
>>>
>>>Thanks,
>>>
>>>-K
>>
>>/dev/hdb1 /dosd vfat defaults,owner,user
>>/dev/hda1 /dosc vfat defaults,owner,user
>>
>>HTH
>>
>>Yawar
>>
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAjcoDGL3AU+cCPDERAnTYAJ9zd3u/by3H71UCNcDGP95z07bCuwCf a79g
Ao5XobzNXsmd732sfwl467o=
=mJMV
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs