Automounting { if present }
Hi,
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. |
Actually, fstab will do that for you ;)
Code:
/dev/sda1 /mnt/removable vfat defaults,umask=0,quiet,auto 0 0 Cool |
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 |
Hi,
Thanks! It seems to work :) I just love this quick-replying forum ;) |
All times are GMT -5. The time now is 07:10 PM. |