LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2003, 02:44 AM   #1
gsbarry
Member
 
Registered: Jan 2003
Posts: 42

Rep: Reputation: 15
cloning a harddisk on Linux


Dear all,

I have a great trouble on cloning a disk on Linux.

Actually, I need to do what "Norton Ghost" job.
Some people suggested me to use the command "dd".

But I bring me some questions:

1. I have only used 3GB on my 60GB harddisk. If I used "dd" to clone the whole 60GB, I don't know how time I will waste. Is there any method for me to clone quickly?

2. The "dd" command has some options to copy portion of a disk. However, if I just copy 3GB of my harddisk. Will there be some hidden data (file indices?) beyond the 3GB that won't be cloned?

3. Is there any free tools that can do the similar job as "Norton Ghost" on Linux?

Thanks a lot!!!!!!!!!!!!
 
Old 01-07-2003, 03:08 AM   #2
dnar
Member
 
Registered: Feb 2002
Location: Perth, Australia
Distribution: FC5 ::: Coyote ::: SCO Unixware :::
Posts: 201

Rep: Reputation: 30
I use Mondo to backup my systems, to CD-R. You can also backup to another hard drive, over nfs or to tape.

When backing up to CD-R, the first disk is a bootable resotore image, using "Mindi" - a small bootable Linux that can even use your kernel! You must of course have loop and memfs enabled in your kernel for this to work, otherwise Mondo will use it's own "failsafe" kernel.

Check it out here: http://www.microwerks.net/~hugo/

Mondo allows you to restore an entire filesystem or just particular paths, and the target partition does not have to be the same size as the source. This is great for migrating to larger disks, typical backup/recovery stategies etc.

Last edited by dnar; 01-07-2003 at 03:12 AM.
 
Old 01-07-2003, 05:20 AM   #3
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
Here's an article that may be of some use to you...its written by a fellow forum member, Aussie:

http://www.p-two.net/modules.php?op=...article&sid=12
 
Old 01-07-2003, 10:36 PM   #4
gsbarry
Member
 
Registered: Jan 2003
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks a lot
 
Old 01-07-2003, 10:53 PM   #5
dnar
Member
 
Registered: Feb 2002
Location: Perth, Australia
Distribution: FC5 ::: Coyote ::: SCO Unixware :::
Posts: 201

Rep: Reputation: 30
Something else worth looking at also, is this:-

http://www.systemimager.org/
 
Old 01-29-2003, 07:14 PM   #6
lazlow69
Member
 
Registered: Jan 2003
Location: Central New Jersey
Distribution: Knoppix to play, Slack current, OpenBSD stables
Posts: 111

Rep: Reputation: 15
dnar -

You say you use mondo and backup to cdr. I noticed you use the rh8.0 distro (among others...) Do you use mondo to backup red hat 8.0 file systems and data? If so, do you have any (pre)advice for someone who plans on doing just that... the site for mondo mentions that red hat 8.0 and mandrake 9.0 can be problematic, what's your experience?

Anyone else have input on this?

Thanks
 
Old 01-29-2003, 07:20 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Cloning is sure a hot topic. I think the President of the US in his speech talked about cloning. And now you...



Cool
 
Old 01-30-2003, 03:42 AM   #8
membrax
Member
 
Registered: Nov 2002
Location: 50'48''N - 4'21''E
Distribution: SuSE7.1 - SuSE8.1 - SuSE8.2 - RH6.2 - RH7.1 - RH7.3 - RH8.0 - RH9.0 - Fedora Core 1
Posts: 281

Rep: Reputation: 30
Sorry to bother but I think you are mistaken :
"this" President speaks mainly about clowning, not cloning
 
Old 01-30-2003, 11:57 AM   #9
BaerRS
Member
 
Registered: Oct 2001
Location: Columbus, Ohio
Distribution: all.. but mainly SuSe--- looks like it changing to Red Hat
Posts: 119

Rep: Reputation: 15
you can check out PartImage.. I belive this has all the fetures that NG has.. I have not tried this.. but it is on my list of things to look at... when ever I get time..

http://www.partimage.org/index.php3
 
Old 01-30-2003, 05:40 PM   #10
membrax
Member
 
Registered: Nov 2002
Location: 50'48''N - 4'21''E
Distribution: SuSE7.1 - SuSE8.1 - SuSE8.2 - RH6.2 - RH7.1 - RH7.3 - RH8.0 - RH9.0 - Fedora Core 1
Posts: 281

Rep: Reputation: 30
Partimage seems to rock !

They event offer a RH8.0 RPM ready to install/use.

I say : Thanks !
 
Old 02-04-2003, 08:42 AM   #11
gsbarry
Member
 
Registered: Jan 2003
Posts: 42

Original Poster
Rep: Reputation: 15
These days, I tried the suggestions from members of this forum.

I found something, but I also got a lot of troubles.

Here, let me share something and ask some questions.

***************************************
I have tried the method of "direct copying" which posted on
http://www.p-two.net/modules.php?op=...article&sid=12

This method is raw but the idea is very simple. Create filesystem->copy all the data to the new drive->make a correct boot loader on the new drive -> reboot -> fiinish

However, I get error on it. When I boot the cloned disk, the system told me "Couldn't find matching filesystem: LABEL=/ "
I don't know why. I have totally followed the steps on that website.

*****************************************
I have tried to use "PartImage". It is a very cool tool. (that can challenge the leading position of Norton Ghost).
Actually, my original system has two kernels, one is the default kernel 2.4.18-3 which comes together with RedHat 7.3. The second one is my customized 2.4.20

But when I boot the restored disk. The kernel 2.4.18-3 works fine. But I can't load the 2.4.20. When I selected 2.4.20 in LILO, nothing can be loaded(even no error message) and the computer "RESET" itself. Big trouble??????

*****************************************
I have tried the Norton Ghost, I found that Ghost 2003 also work for kernel 2.4.18-3. (even Ghost said to create ext2 for me, but it also work, strange!?)

My new kernel 2.4.20---not work. Quite strange that the error situation is same as the "Partimage", nothing can be load and RESET computer itself.

********************************************

My head get crashed............Can any of you help me...........
 
Old 03-08-2003, 06:53 AM   #12
Gahan
LQ Newbie
 
Registered: Feb 2003
Location: Purmerend, The Netherlands
Distribution: RH7.3, RH8.0
Posts: 10

Rep: Reputation: 0
I was in the same proces as you, although I used a different way to transfer the system. I stumbled on the same error message.

I did a search with Google and came up with this:

http://www.redhat.com/docs/manuals/l...t3-create.html

Then I understood I had to set the label to match with the one in my /etc/fstab file.

So after the error was displayed my rh7.3 system asked me for the root password, and went in some kind of rescue mode.

then I did this:

/sbin/e2label /dev/hda1 /

Rebooted and all was good!

But I don't know if the setting it to / will help for you. I think (but am no expert) it has to be the same as on your old disk. If you still have your old disk and can boot it you can do:

/sbin/e2label /dev/hdxx
(fill in the right letter and number for the x's) to see how the label is set.

Hope this helps you.

Cheers
 
Old 03-09-2003, 08:27 PM   #13
gsbarry
Member
 
Registered: Jan 2003
Posts: 42

Original Poster
Rep: Reputation: 15
yes, Gahan, your method can solve the problem.

Instead, I also try to edit the fstab by myself.
I find that originally, the fstab map my "/" to "/".(very strange)

LABEL=/ / ext3 defaults 1 2

Then, I edit it to
/dev/hda1 / ext3 defaults 1 2

Then, all things get correct.

I think the problem is totally come from the incorrect mapping of "/", so that the system can't locate the root system.

Thanks,
Barry
 
Old 04-23-2003, 04:00 AM   #14
boole
LQ Newbie
 
Registered: Apr 2003
Distribution: Redhat, SuSE
Posts: 6

Rep: Reputation: 0
Please advise me. I use SuSE OpenXchange 4.

Hi,

I visited the page http://www.p-two.net/modules.php?op-...article&sid=12 (it's about Slackware. Can it do the same way in SuSE OpenXchange?


Thank you so much,
 
Old 04-23-2003, 04:20 AM   #15
Gahan
LQ Newbie
 
Registered: Feb 2003
Location: Purmerend, The Netherlands
Distribution: RH7.3, RH8.0
Posts: 10

Rep: Reputation: 0
Clicking your link gave: "Sorry, you can't access this file directly...". What is SuSe OpenXchange?
 
  


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
Cloning a Dual boot linux magnet Linux - Software 1 10-30-2005 06:04 AM
USB Harddisk For Linux? ahpin Linux - Hardware 1 05-31-2004 11:01 AM
Low Harddisk space. Can I just transfer the entire Linux to a bigger harddisk? davidas Linux - Newbie 12 04-13-2004 02:03 AM
Linux distro for student laptop and cloning help linuxify Linux - Laptop and Netbook 1 02-16-2004 06:20 PM
MAC address cloning in Linux sb73542 Linux - Security 1 08-02-2003 07:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:47 AM.

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