LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-29-2003, 06:41 AM   #1
Jeroen
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
Question clone linux ext3fs possible?


Hi,

I have tried cloning a linux version with ext3fs filesystem using Ghost 7.5, 2003 and the latest Ghost 8.0.

The linux version I use is a Check Point hardened version of Red Hat which they call SecurePlatform.

I have 2 IDE disks and I clone from the first to the other. The cloning goes slow but it finishes with success. When I then remove the first disk and connect the second disk the way the first was (same ide controller etc), then it does not boot.
Grub isn't even shown.

When I put the 2nd disk back at the place where it was cloned to, I see grub booting but then I get a "Kernel panic, try passing the init=" parameter.

I remember that the partitions were resized by Ghost as it didn't want to use the same sizes, I think it wants the sizes to be the multiples of something.

Does anyone know what I should do ? The init parameter results in google mostly refer to bad disks/layout/missing files. Is there a grub parameter I can use?

Anyone cloned a ext3fs filesystem before ?

TIA,
Jeroen.
 
Old 10-29-2003, 07:02 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Use the 'root=<disk>' option. This specifies where the linux partition is. It may have changed. You don't need to use Ghost anyways. Just copy all the files, reinstall the bootloader if needed, and edit the /etc/fstab file if needed.
 
Old 10-29-2003, 07:50 AM   #3
Jeroen
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
The root is now located at /dev/hda2 and the /boot at /dev/hda1
Should I use the /boot ?

Anyway, cloning should be identical ? So same hardware path should be okay when I attach the disk to the same controller and the same mastersetting.

Just copying is not good I think....unless you mean with dd ? If I would copy then I must first create all the partitions and then copy.

Ghost should work imho....anyone done it ? It works perfectly with Windows so why not with Linux ? The ext3fs is supported but apparently ghost changes something in the bootfiles or elsewhere...

Jeroen.
 
Old 10-29-2003, 07:59 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
ghost has to make some changes when it copies stuff, and sometimes,
things will not boot correctly after the copy. i think you didn't put your first
disk back just the way it was, or it would have worked like before.
dd will copy best for that sort of thing
dd if=/dev/hda of=/dev/hdb<or whatever it is> bs=512
i've found that size copies about the fastest.
 
Old 10-29-2003, 09:03 AM   #5
Jeroen
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I am sorry if I haven't been clear : the first and original disk always continues to work. It is the new disk that I am testing and who doesn't want to boot correctly.

I want a backup disk for in case I mess up my original.

dd only works for disks that have the same size ? I have a 80 GB original disk but the data on it is only about 1 GB and my backup disk is 40 GB.

These disks are located in an HP/Compaq DL320 server.
 
Old 10-29-2003, 09:42 AM   #6
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
I don't see why just copying all the files wouldn't work. Copy them like so:
First make & format the new partitions. To format ext3, use 'mke2fs -j <disk>'.
Now mount them:

#Mount old disk.
mkdir /mnt/hd1
mount /dev/<oldrootpartition> /mnt/hd1
mount /dev/<oldbootpartition> /mnt/hd1/boot

#Mount new disk
mkdir /mnt/hd2
mount /dev/<newrootpartition> /mnt/hd2
mkdir /mnt/hd2/boot
mount /dev/<newbootpartition> /mnt/hd2/boot

#Start copying:
umask=000
cp -a /mnt/hd1/* /mnt/hd2

#Edit the /etc/fstab & /etc/grub.conf in the new disk:
vi /mnt/hd2/etc/fstab
vi /mnt/hd2/etc/grub.conf
 
Old 10-31-2003, 09:12 AM   #7
Jeroen
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,

I was able to clone a RH8.0 on a simple PC. I was also able to clone SecurePlatform on that PC.

So I think there are problems with the combination of ghost and the server hardware.


Using cp does not maintain the user rights I think ?
On HP-UX I used to type find / -name -depth -mountstop -print | cpio -pvdumax in order to do that. I don't want to use chmod, chown after the cp. Or is the linux cp better than the HP-UX one ?

Jeroen.
 
Old 10-31-2003, 11:05 AM   #8
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
I think the 'umask=000' helps maintain the rights.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I fix ext3fs always getting mounted read-only? chadwick Linux - General 19 12-14-2006 04:20 PM
Encrypted Root Filesystem (dm-crypt/loopAES +ext3fs) - Problem dragoncity99 Slackware 6 08-01-2005 12:14 AM
nondestructive reformat (ext2fs to ext3fs)? SocialEngineer Linux - General 2 05-23-2004 05:00 PM
Looking for clone of Frontapage for Linux gcossiaux Linux - Software 3 02-19-2004 01:40 AM
Windows NT looking more like a Linux Clone Qebex Linux - Software 11 09-25-2002 04:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:09 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