LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Mounting a clone drive (https://www.linuxquestions.org/questions/fedora-35/mounting-a-clone-drive-263865/)

turbokid 12-07-2004 09:59 PM

Mounting a clone drive
 
i have 2 hard disk

i have cloned exactly the same hard disk using g4l.

both hardd disk are bootable individually.

when i put them together, how do i mount the 2nd harddisk to the first?

it gave me probs saying that there is duplicate partition of LABEL=/boot.


1) /dev/hda (1st harddisk)
2) /dev/hdc (2nd harddisk)

fileformat is ext3.

pls help.. thanks...

jojotx0 12-07-2004 10:16 PM

I really don't get what your saying, but do you want to read/write files on "/dev/hdc" from your "/dev/hda" drive? or do you want them put togathor as one, so when you boot you don't have to mount the hard drive from a console?

turbokid 12-08-2004 07:17 AM

yeah. i want to read/write from /dev/hda. how do i do it?

jojotx0 12-08-2004 08:17 AM

in a console type "mount /dev/hda /mnt/hda" before typing this command make a folder called "/hda" as root, in your /mnt/ directory.

turbokid 12-08-2004 06:23 PM

Maybe i can go in more details.. maybe it will easier this way.

i have hda. all running fine. i want to make a clone of it on a 2nd drive hdc so that i can use rsync to sync the files and able to boot from the 2nd hard disk. (if the 1st hdd fail, at least i got 2nd one running)

the cloning is done by g4l and everything is fine. the harddisk can boot up individually.

the problems arise when i put both harddisk together as during booting up the will scan for the volumes automatically. how do i prevent this? i read abt posts using noauto. but the partitions they using is not similar to mine.

i have provided my /etc/fstab

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota 1 2
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdd /media/cdrom auto pamconsole,ro,exec,noauto,managed 0 0

jtshaw 12-08-2004 07:36 PM

What do you mean by "scan the volumes" and who is doing the scanning? If the harddrive is in the system and plugged in there is really no way you can get around having them both recognized and looked at by the kernel.

What is sounds like you really want to do here is run a software RAID to mirror your partitions. This will save you having to rsync things.

turbokid 12-09-2004 08:45 AM

veri skeptical abt software raid...

during booting up.. it will try to scan for all the volumes you have in your harddrives...

jtshaw 12-09-2004 09:04 AM

Software RAID will work a lot better then any kind of rsync setup. It is really a pretty simple setup, they create a virtual device for the disk /dev/mdx usually. There is linking done so that when you write to the md device it actually writes to all disks in the device (for mirroring... it does other things for more complex raid modes). The code is actually pretty straight forward and easy to understand. I've run linux software raid for about 2 years now and I haven't had a problem yet. It also uses the usual kupdated routine to write to disk so if you do have a disk die you can rest assured that the 2nd disk is going to be an exact replica of the first.

What do you mean by "scan"? Does it actually check to see if the file system is clean and run fsck? Does it actually mount the disk?

If the disk is in the system and plugged in the kernel will recognize it (unless you disable the IDE controller in the bios). It will show the device, and the partition layout.

Something like this:
Code:

hde: attached ide-disk driver.
hde: host protected area => 1
hde: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100)
Partition check:
 /dev/ide/host2/bus0/target0/lun0: p1 p2 p3 p4

If you have the file system in /etc/fstab linked to a mount point then it is going to get mounted at book. If the file system dirty bit is set then it is likely your init scripts will automatically run fsck on the file system.

You could put the noauto flag in your fstab, which would mean it wouldn't mount the disk automatically on boot. If you have intelligent init scripts it should also not bother checking the disk.

turbokid 12-09-2004 09:18 AM

jojotx0, thanks for your prompt reply. maybe i will consider software raid.

anyway, can you teach me how to take a screen shot of the booting process then i can tell u what is exactly i am talking abt...


All times are GMT -5. The time now is 01:17 PM.