Thread: fstab.
View Single Post

   
  #13 (permalink)  
Old 02-19-2008, 06:19 PM
Glyn Millington
 
Posts: n/a
Default Re: fstab.

Ignorance <ignorance@interia.pl> writes:

> hello,
>
> Have a problem with fstab, if I'm mounting disk manually:
>
> mount /dev/sda1 /dysk
>
> all is ok.:
>
> but if adding line to fstab:
>
> /dev/sda1 /dysk ext3 default 0 0
>
> as last line, it don't work. Line is ignoring, but why?
> There is nothing in logs.


Because the device isn't being mounted.

Adding a line to /etc/fstab does not, of itself mount anything. fstab
simply provides file system information for commands which DO mount file
systems. Such as mount!

Is this device something you want mounted all the time (its a usb device,
isn't it?). In that case you need to put something like your command
line above into one of the scripts in /etc/rc.d Perhaps the best place
to experiment would be rc.local

The revised Good Book contains a useful overview of the system and the
scripts in rc.d

http://lizella.net/chapter4.html#SYSTEMOVERVIEW

All those scripts repay reading, but you may feel that is OTT for the task
in hand :-)


On my machine at home that device gets used when I plug in my card
reader. So in fstab I have

/dev/sda1 /mnt/flash vfat noauto,user 0 0

and in the script I use to offload pictures I mount the thing with

mount /mnt/flash


hth


Glyn
--
RTFM http://www.tldp.org/index.html
GAFC http://slackbook.lizella.net/
STFW http://groups.google.com/groups?hl=e...inux.slackware
JFGI http://jfgi.us/
Reply With Quote