dgermann
08-30-2004, 11:53 PM
Hi--
My first post here!
I am trying to use two removable HDDs as backup devices for my Red Hat 9.0 system. The HDDs are identical Western Digital 200 Gb drives, both set up with identical partitions and directory names.
I have a little script file that reads:
=====
#!/bin/bash
echo "Run this as su"
/sbin/e2label /dev/sda1 /backups2
/sbin/e2label /dev/sda2 /extra
mount -L /backups2
mount -L /extra
df -h
=====
This mounts whichever of the 2 HDDs is connected (via USB2).
I can get it to mount whichever drive I choose if I reboot the machine in between.
:confused::confused: The problem is this: Is there a way to swap the 2 HDDs without having to reboot the machine? (There can be as many as 5 computers connected at any one time, and this could cause a lot of re-logging in, not to mention loss of work they might be be doing.) :confused::confused:
I'd like to be swapping these every day or so for safer backups.
Any suggestions?
My first post here!
I am trying to use two removable HDDs as backup devices for my Red Hat 9.0 system. The HDDs are identical Western Digital 200 Gb drives, both set up with identical partitions and directory names.
I have a little script file that reads:
=====
#!/bin/bash
echo "Run this as su"
/sbin/e2label /dev/sda1 /backups2
/sbin/e2label /dev/sda2 /extra
mount -L /backups2
mount -L /extra
df -h
=====
This mounts whichever of the 2 HDDs is connected (via USB2).
I can get it to mount whichever drive I choose if I reboot the machine in between.
:confused::confused: The problem is this: Is there a way to swap the 2 HDDs without having to reboot the machine? (There can be as many as 5 computers connected at any one time, and this could cause a lot of re-logging in, not to mention loss of work they might be be doing.) :confused::confused:
I'd like to be swapping these every day or so for safer backups.
Any suggestions?