-   Linux - Newbie (
-   -   Automounting { if present } (

Yocal 08-29-2003 12:28 PM

Automounting { if present }

Im mounting my maxtor-firewire disk using this command:

mount -t vfat -o defaults,umask=0,quiet /dev/sda1 /mnt/removable

Great - it works very fine... But - i would like to mount it every time i boot... Or my goal is (info: using RH9):

- Boot
- Check if disk is present (how??)
- If present, mount it using the above command.
- Tada

Is that some weird kind of scripting - or is there an easy way to do it :scratch:

// Yoc.

MasterC 08-29-2003 12:37 PM

Actually, fstab will do that for you ;)


/dev/sda1  /mnt/removable  vfat  defaults,umask=0,quiet,auto  0  0
Should suffice as an entry in /etc/fstab


aaa 08-29-2003 12:41 PM

You should add an entry in your /etc/fstab file. It works like this (an example):
#device- mnt point- fs type-options- dump-pass
/dev/sda1 /mnt/removable vfat defaults,umask=0,quiet 0 0

Yocal 08-29-2003 12:44 PM


Thanks! It seems to work :)

I just love this quick-replying forum ;)

All times are GMT -5. The time now is 07:32 PM.