thoand
10-23-2003, 04:03 AM
Hi, I am a bit newbie to Linux, but we have this web-server where I know there is an second harddisk but I can't find it.
I thought it was under /mnt,
I guess the sys admin forgot to mount it somehow, and I can't get to him right now.
Can anyone give me some advice, URLs with tutorials etc.
thanks in advance,
best regards
TA
tekgear
10-23-2003, 06:40 AM
/dev stores your device information. /dev/hda1 is the master hard drive on the primary controller. it depeneds on the location of the hard drive you are talking about. if it is set to slave on the same IDE cable as the mounted drive the device will be /dev/hdb.
You may need to format the drive before you can mount it. use the fdisk command and type help for further information. use the ext3 filesystem which adds journalling.
Then once the drive has been formatted you can mount it. We use 2nd hard drives as a backup therefore we mount like this. mount -t ext3 /dev/hdb1 /backup. You can add a line like this to your /etc/fstab file so that the drive is mounted on boot. hope this helps you out.
thoand
10-23-2003, 07:01 AM
Thank you very much, I will poke around with it :-)
The idea was exactly to have a back up disk ;-)
Question,
I want the 2nd HD to be a mirror of the first for fast recovery use, if disaster. could I simply do this:
copy from root +recursivly in hda1 to hda2.
thomas
tekgear
10-24-2003, 07:00 AM
i have not tried this as i dont think it will work. services need to access files on a regular basis therefore i am sure your will not be able to do a simple cp -R / /backup etc. There is an old unix command called dump but there are better applications such as mirrordir. this allows you to setup a mirror from one drive to another. we have this setup as a cron job to atomate file mirroring at 12pm every night. search for mirrordir and cron for more information.
thoand
10-25-2003, 12:24 PM
Thanks alot, this should get me going,
Thomas A.