LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-07-2004, 09:59 PM   #1
turbokid
LQ Newbie
 
Registered: Dec 2004
Posts: 11

Rep: Reputation: 0
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...
 
Old 12-07-2004, 10:16 PM   #2
jojotx0
Member
 
Registered: Mar 2004
Distribution: Debian Lenny
Posts: 181

Rep: Reputation: 30
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?
 
Old 12-08-2004, 07:17 AM   #3
turbokid
LQ Newbie
 
Registered: Dec 2004
Posts: 11

Original Poster
Rep: Reputation: 0
yeah. i want to read/write from /dev/hda. how do i do it?
 
Old 12-08-2004, 08:17 AM   #4
jojotx0
Member
 
Registered: Mar 2004
Distribution: Debian Lenny
Posts: 181

Rep: Reputation: 30
in a console type "mount /dev/hda /mnt/hda" before typing this command make a folder called "/hda" as root, in your /mnt/ directory.
 
Old 12-08-2004, 06:23 PM   #5
turbokid
LQ Newbie
 
Registered: Dec 2004
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
Old 12-08-2004, 07:36 PM   #6
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 12-09-2004, 08:45 AM   #7
turbokid
LQ Newbie
 
Registered: Dec 2004
Posts: 11

Original Poster
Rep: Reputation: 0
veri skeptical abt software raid...

during booting up.. it will try to scan for all the volumes you have in your harddrives...
 
Old 12-09-2004, 09:04 AM   #8
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 12-09-2004, 09:18 AM   #9
turbokid
LQ Newbie
 
Registered: Dec 2004
Posts: 11

Original Poster
Rep: Reputation: 0
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to clone or backup Linux boot drive? RodWC Linux - General 8 11-13-2005 09:00 AM
Can I clone a drive over the network? BrianK Linux - General 3 04-06-2005 02:31 AM
Clone a hard drive twantrd Solaris / OpenSolaris 10 02-05-2005 02:15 AM
Clone drive problem elwood43 Linux - Enterprise 4 12-21-2004 10:31 AM
Easy way to clone linux installed hard drive mobassir Linux - Software 6 01-12-2004 05:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration