I sent this to the list to be verified for correctness, if you have any
comments or suggestions please let me know.


HowTo backup to a secondary ide or scsi disk

First you need a second disk equal to or greater than the size of your
current disc
Create an ext2 partition and filesystem -

i.e.
To create a partition,
su -
fdisk /dev/hdb
command to create new partition - n
make it a primary partition
full size of the disk
command to write changes - w


To create the filesystem,
i.e.
mke2f2 /dev/hdb1



To set the disk to automount edit /etc/fstab and /etc/mtab
i.e.

vi /etc/fstab
add a new line for the device and where you want to mount the device
i.e
/dev/hdb1         /mnt/seconddisk            ext2    defaults    0 0

vi /etc/mtab
i.e.
/dev/hdb1 /mnt/seconddisk ext2 rw 0 0


make a new directory in /mnt for you disk
i.e
mkdir /mnt/seconddisk

Now you are ready to backup
i.e.
dump -0af - /dev/hda6 |(cd /mnt/seconddisk;restore xvf - )

-remember to verify your partitions on you system and edit the line
above to match your box, also remember if you type this command in wrong
you will be up that one creek.



Nate Turnbow
Systems Engineer






--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to