Changes

From Amahi Wiki
Jump to: navigation, search
104 bytes removed ,  02:30, 1 February 2019
* We set the set the external drive's "label". It was set to "usbdisk".
<blockquote>To find the label at anytime via the "root" user ID enter:
{{Code| e2label /dev/sdb1}}
</blockquote>
<blockquote>The following information is displayed:
{{Text|Text= usbdisk}}
</blockquote>
</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|<pre>cd /mediamkdir usbdisk}}</pre></blockquote>
* Make sure the external drive USB cable is connected to the server and is powered up.
* Navigate to the "etc" directory with the "cd" command and make a backup of the current fstab file.
<blockquote>{{Code|cd /etc cp /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/usbdrive ext3 rw,noauto,users,exec,noatime 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 /media mkdir usbdrive}}</blockquote>
* Make sure the external drive USB cable is connected to the server and is powered up.
* Reboot the server.
* Start a "terminal" session login as the "root" user ID.
* To manually mount the external drive issue the following command:
<blockquote>{{Code|mount -L usbdisk}}</blockquote>
* The system reads the fstab, when it finds a line entry with the label "usbdrive", it mounts the drive the mount point, "/media/usbdisk".
* Start a "terminal" session login as the "root" user ID.
* Issue the following command to unmount the external drive:
<blockquote>{{Code|umount /media/usbdrive}}</blockquote>
* Should an error occur indicating that the drive is busy and cannot be unmounted enter the command below. Then try the unmount command again.
<blockquote>{{Code|fuser -km /media}}</blockquote>
===Installing rsnapshot===
12,424

edits