Changes

From Amahi Wiki
Jump to: navigation, search
583 bytes added ,  19:31, 27 February 2013
m
no edit summary
}}
* The external drive is now ready for use.
 
=== Mounting an External USB Drive ===
 
There are two methods of mounting an external USB drive. The first, mounts the drive automatically each time the server "boots" or "reboots". The second, is mounted manually by the "root" user via the "command-line".
 
Before proceeding a couple of information items need to be gathered:
 
* In the previous section the device name found found via the "dmesg" command. The device name found was "sdb1".
* 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>
==== Auto-Mounting ====
 
To Auto-Mount your usbdisk (so the backup will work after a reboot) do the following:
 
:cp /etc/fstab /etc/fstab_bak
 
:nano /etc/fstab
 
Add to this file
 
:LABEL=usbdisk /media/usbdisk ext3 defaults 0 0
 
Save the file.
 
==== Manual Mounting ====
 
< TBA >
===Install rsnapshot===
In this example automated backups are made to an external usb drive.
Plug in the USB drive, it will probably mount automatically under /media/yourdisklabel
 
First login as root in a terminal (putty or ssh root@hda)
and type
 
:mount
 
in the output, find which device is your usbdrive, possibly /dev/sdb1
 
===Mount your usbdisk permanently===
To Mount your usbdisk permanently (so the backup will work after a reboot) do the following:
 
:cp /etc/fstab /etc/fstab_bak
 
:nano /etc/fstab
 
Add to this file
 
:LABEL=usbdisk /media/usbdisk ext3 defaults 0 0
 
Save the file.
===Modify rsnapshot configuration===