Changes

From Amahi Wiki
Jump to: navigation, search
1,354 bytes added ,  04:37, 28 February 2013
m
==== Auto-Mounting ====
To Auto-mount your usbdisk (so of an external USB drive will occur when a server "boots" or "reboots". Provided the backup will work fstab configuration file is properly configured. A powered up USB drive that is plugged in after a reboot) do server has completed the boot process is not auto-mounted. However, using a "terminal" session with the following:"root" user ID, and issuing a "mount -a" command will mount an external USB drive.
Configure fstab to auto-mount an external USB drive do the following:cp /etc/fstab /etc/fstab_bak
:nano /etc/fstab* Start a "terminal" session login to the "root" user ID.
Add * Navigate to this the "etc" directory with the "cd" command and make a backup of the current fstab file.<blockquote>{{Code|cd /etccp /fstab /fstab_bak}}</blockquote>* Using a preferred file editor (i.e. vi, nano), open the fstab file.<blockquote>{{Code|nano fstab}}</blockquote>* Near the bottom of the and after the other fstab entries, add the following:
:<blockquote>{{Text|Text=LABEL=usbdisk /media/usbdisk ext3 defaults 0 0}}</blockquote>* Now save the fstab file and exit the editor.* Navigate to the /media directory and create a "usbdisk" directory. This is where the external drive will be mounted, this is called a "mount point".<blockquote>{{Code|cd /mediamkdir usbdrive}}</blockquote>
Save * Make sure the fileexternal drive USB cable is connected to the server and is powered up.* Reboot the server.* Remember the disk label set earlier when formatting the drive? During the boot process when the "LABEL" is read, this instructs the system to find a hard disk with the label "usbdrive", and then mounts it to the mount point, "/media/usbdisk".
==== Manual Mounting ====