Koozali.org: home of the SME Server

Automount USB disk

pippin

Automount USB disk
« on: December 25, 2006, 09:32:24 PM »
How do you automount a usbdisk after reboot?

Offline Helgo

  • ***
  • 51
  • +0/-0
    • home website
Automount USB disk
« Reply #1 on: December 26, 2006, 12:42:21 AM »
Go to etc/mtab and set something like this


/dev/sda1 /media/usbdisk/what you want
......

Offline Gaston94

  • *****
  • 184
  • +0/-0
Automount USB disk
« Reply #2 on: December 26, 2006, 12:13:14 PM »
Hi,
I guess you made a typo Helgo.
The /etc/mtab file does only reflect the currently mounted filesystems.
This file is being used by the umount "command" and updated by both "mount" and "umount" commands.

The place to indicate where you want FS to be automatically mounted at boot time is /etc/fstab

G.

pippin

Automount USB disk
« Reply #3 on: January 01, 2007, 11:26:04 AM »
How can i make so the USB disk always is mounted,because when i am using the rsync contribs its auto umount the disk and the dar2 backup cant di its job.Can i make a script that mounts every 5-10 or 30 minutes?

EDIT i did a cronjob that mounts the disk 10 minutes before the backupjob