Re: mounting fat 32 partitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed Oct 30 2002 at 19:16, Dan Clowater wrote:

> Content-Type: text/html; charset=utf-8

Please, PLEASE - no html to mailing lists!  Please?

> Thanks for the speedy suggestions! :)
> That seems to work better - no errors on boot-up!

:)

> However - I can see the directories - aka the mount points and they are
> rw for my admin login - but not mounted....  gaaah - do I need to put
> something in the automount?
> ...or change it to "auto" instead of noauto?

>     > I was using the following:
>     >
>     > /dev/hda1	/mnt/cee	vfat noauto,owner,gid=500,rw 1 2
>     > /dev/hda5	/mnt/dee	vfat noauto,owner,gid=500,rw 1 2

Yes, remove the "noauto" flag.  That tells "mount -a" (run from
rc.sysinit) NOT to automatically mount that filesystem.  But see
below for an alternative.

Please read the man page for mount and fstab (and the others that go
with them).

> Thanks - Dan =)

Ok, to value-add to this post...


If you don't want to permanently mount these partitions at bootup,
then try doing it "on demand" with the autofs automounter.

In /etc/auto.master add a line that looks like this:

/dos	/etc/auto.dos	--timeout=60

Then "mkdir /dos" and create /etc/auto.dos with something like the
following in it:

c	-fstype=vfat,owner,gid=500,fmask=644,dmask=755	:/dev/hda1
d	-fstype=vfat,owner,gid=500,fmask=644,dmask=755	:/dev/hdb5

(you might want to remove the gid directive).

Now whenever you access /dos/c or /dos/d the partitions will be
automatically mounted, then umounted again after a 60sec timeout
after it was last accessed.

If you have any samba shares on a local windows box that you also
want to automount, here is also a good place to do it:

winc -fstype=smbfs,rw,username=dan%passwd,workgroup=home,uid=0,gid=0,fmask=644,dmask=755 ://windowsbox/cdrive

(adjust the parameters as required).

Now run "service autofs reload" to enable it.

(Or "chkconfig autofs on; service autofs start" if you haven't got
autofs running by default at bootup).

Very cool...  :)

Cheers
Tony



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux