Re: editing fstab file ??

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

 



On Mon, 13 Dec 2004 13:17:55 +0000, James Wilkinson
<james@xxxxxxxxxxxxxxxxxxx> wrote:
> spamse wrote:
> > Also, I added a line to /etc/fstab to mount the drive, as I wanted it
> > to mount automatically on boot, but this line does not seem to get
> > executed (I was following instructions from a Red Hat site). Is this
> > the right place to be putting the mount statement?
> 
> (I don't think anyone's addressed this yet...)
> 
> The fstab file doesn't work like that.
> 
> It's not an executable file containing statements to be run. It's a list
> of filesystems and the options they need to be automatically loaded (or
> not). So you *can't* put a straight "mount" command into fstab.
> 
> A typical fstab line might be
> /dev/hda11 /media/data  vfat defaults 0 0
> to mount the device hda11 on /media/data as a vfat (long filename
> DOS-compatible) filesystem. The 0's tell mount that it shouldn't be
> checked before booting, nor dumped to tape when backing up. (Both are
> good options for vfat: you could experiment with "0 2" if you have
> dosfstools installed).
> 
> If you want to be able to write to the partition as a normal user, then
> you can do something like this:
> /dev/hda11 /media/data  vfat defaults,dmask=0,fmask=111 0 0
> 
> Hope this clarifies things,
> 
> James.
> 
> --
> E-mail address: james | In the Royal Air Force a landing's OK,
> @westexe.demon.co.uk  | If the pilot gets out and can still walk away.
>                       | But in the Fleet Air Arm the outlook is grim,
>                       | If your landings are duff and you've not learnt to
>                       | swim.
> 
> 
> 
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> 
So if i switch to root  
open the fstab file 
and add this line     

/dev/hdb1 /mnt/disk2 vfat defaults,dmask=0,fmask=111 0 0

the next time i reboot it should auto mount the drive  and allow me to
rwx to the drive?


-- 
James Lawrence
NY


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux