LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-09-2006, 11:04 PM   #1
Damon Spector
Member
 
Registered: Nov 2004
Distribution: Fedora Core 4
Posts: 61

Rep: Reputation: 15
ghosting linux


I have a copy of ghost and am trying to ghost a copy of mandrake 10.1 to a different hard drive but when I try to boot with the hard drive I just get a GRUB when it should start booting in to linux. I am looking for a way to get the copied hard drive to boot up.
 
Old 05-10-2006, 12:46 AM   #2
nitinatindore
Member
 
Registered: Dec 2004
Location: India
Distribution: Mandrake, Mandriva, PclinuxOS
Posts: 114

Rep: Reputation: 15
try partimage.

remember you need to clone the entire harddisk in case you want the new hard disk to be bootable, or try out an external bootloader
 
Old 05-11-2006, 09:17 AM   #3
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
I adore ghosting the LINUX........

Last edited by XavierP; 05-16-2006 at 02:08 PM. Reason: Let's not break the tables eh
 
Old 05-15-2006, 04:04 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Bobymc - if you have nothing to add to the discussion, please do not contribute. Since you have elected not to receive emails, I will ask you here - please add a space after each of the commas in your sig block, you break the tables otherwise.
 
Old 05-15-2006, 04:26 PM   #5
Michael_aust
Member
 
Registered: Aug 2005
Location: Lancashire (United Kingdom)
Distribution: Debian Etch, on 686 machine.
Posts: 509

Rep: Reputation: 31
im wondering abot the same issue. i intend to try out suse 10.1 but i vcurrenty have debian installed and have it set just right and i dont want to have to go through all the rigmarole again of setting up if i dotn like suse (im using the entire drive). So with partimage i can create an image of the drive to a bootable cdrom then put the cd rom in and it will then copy the contents of the image to the harddrive again. Am i understanding this correct?
 
Old 05-15-2006, 11:25 PM   #6
nitinatindore
Member
 
Registered: Dec 2004
Location: India
Distribution: Mandrake, Mandriva, PclinuxOS
Posts: 114

Rep: Reputation: 15
You can clone any partitions/disks irrespective whether they contain linux/windows or anything else. Only issue is that the partitions that you are cloning to should have enough space for the image to be loaded on that particular patition.

Now comes the problem how to make them bootable?
1. Install bootloader in the partition of that particular OS, rather than in MBR
2. Now use an external bootloader like GAG/XOSL etc. to boot your newly loaded harddisk with say 5 different kind of OS, which you just cloned and say not installed ;-)

btw. if you find partimage difficult to use, there is a GUI avavilable, or in case you want the Mic**$**t way then, Norton Ghost and Acronis Disk Director are the market leaders in the field.
 
Old 05-16-2006, 12:32 PM   #7
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
Xavier ; I'll edit that.
_______________________

I did NorGHOST on \boot patition , it doesnt work.
\EXT & ReiserFS is OK.
Supposed it works, how do I retable to an empty HDD whlist OS multipleBOOT
e.g
=FED
=SUSE
=Windoze
from a single HDD?
[Origin Ghost is partial>not the whole disk]
 
Old 05-16-2006, 01:19 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
I have stopped using Ghost after I found in Linux we can "dd" the partitions or the entire drive.

Ghost works in the same way as the "dd" command by copying byte by byte. The default size is one sector of 512 bytes at a time but one can speed up to the entire track of 64 sectors by specifying bs=32758.

To clone a source hardisk hda into target disk hdc, which should be the same size or bigger, there is nothing simpler than issue one line of command in a Linux terminal
Code:
 dd if=/dev/hda of=/dev/hdc bs=32768
In the above cloning the target disk will boot exactly as the original. I have done this with up to 60 partitions in a disk and every partition, regardless if it is a Linux, Dos, Windows, BSD or Solaris, boots. "dd" copies the bytes and so the filing system is immaterial but one must do it for one entire partition or the whole disk.

If only the partition is cloned then the system will not boot. This is because the address to start the OS in the target disk is no long correct because the partition has been moved to a different area of a different hard drive.

To make the disk/partition bootable again is dead simple. Just restore the boot loader again with "grub-install" or "lilo -b" for Grub and Lilo respectively. Full commands are list in the last link, Task B refers, of my signature.
 
Old 05-21-2006, 09:14 AM   #9
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
Thumbs up GHOST for LINUX ☺



Ghost for LINUX is an application wich help you to clone your hardrisk for future back up.

http://sourceforge.net/projects/g4l

download the file and burn into your writer.

Now you have bootable CD and ready to GHOZZ.
 
Old 05-21-2006, 09:43 PM   #10
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
I would just use dd for that. In fact, I DO just use dd for that.

dd is terminally cool.

In fact, I have used dd to recover/repair Windows systems too:
http://williamaford.com/CloningaHDD.php (scroll down to "cloning a HDD using Linux" - that site reproduced my work with permission)

Last edited by jiml8; 05-21-2006 at 09:46 PM.
 
Old 05-21-2006, 11:21 PM   #11
nitinatindore
Member
 
Registered: Dec 2004
Location: India
Distribution: Mandrake, Mandriva, PclinuxOS
Posts: 114

Rep: Reputation: 15
Quote:
I would just use dd for that. In fact, I DO just use dd for that.

dd is terminally cool.
One problem with dd is that it doesn't allows you to compress the image file, others disk cloning tools will allow you to compress the image as much as half their initial size, so to clone a say 4 GB patition you will require just 2GB.
 
Old 05-21-2006, 11:39 PM   #12
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by nitinatindore
One problem with dd is that it doesn't allows you to compress the image file, others disk cloning tools will allow you to compress the image as much as half their initial size, so to clone a say 4 GB patition you will require just 2GB.
That's what a pipe is for.
 
Old 05-21-2006, 11:50 PM   #13
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
Quote:
One problem with dd is that it doesn't allows you to compress the image file, others disk cloning tools will allow you to compress the image as much as half their initial size, so to clone a say 4 GB patition you will require just 2GB.
I beg to differ.
Here I'll make a compressed copy of my /boot partition in a one-liner:
Code:
jschiwal@hpamd64:~> dd if=/dev/hda5 bs=1024 | gzip >boot.iso.gz
dd: opening `/dev/hda5': Permission denied
jschiwal@hpamd64:~> sudo dd if=/dev/hda5 bs=1024 | gzip >boot.iso.gz
152586+0 records in
152586+0 records out
156248064 bytes (156 MB) copied, 30.2342 seconds, 5.2 MB/s
jschiwal@hpamd64:~> ls -lh boot.iso.gz
-rw-r--r-- 1 jschiwal users 23M 2006-05-21 18:46 boot.iso.gz
The 156 MB partition was copied and compressed in one step, resulting in a 23 MB compressed image.

Suppose that you wanted to make a compressed backup of a large partition as insurance before a fresh install, but your external USB drive is fat32 and can't save files greater than 2GB.

You could pipe the output of gzip to the "split" command. Then as extra insurance, you could use par2 on the split files.

-----

OK, I probably should have named the file with a .img extension instead of an .iso extension. Someone could take it as a cd image.

Last edited by jschiwal; 05-22-2006 at 12:51 AM. Reason: fixed typo and added post-script.
 
Old 05-22-2006, 12:51 PM   #14
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
OK dd is cool.

Anyway how do I check(compare) if the image-partition is correctly cloned.
 
Old 05-22-2006, 03:18 PM   #15
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
You could pipe the output of the dd command to the md5sum command to produce a checksum.
Also run the output of your compressed image file "zcat backupfile.img | md5sums" through the same md5sums. If they differ they will have different checksum results.

You could also use the "cmp" command. These both would take a very long time and if a single byte is changed (i.e. the drive isn't mount readonly, and the system modifies an access time of a file in a directory) it will fail.

Using par2 on the segments will add some protection against corruption of some of the slices occurring.

Normally, backups are done using tar, star, dar or kdar, instead of cloning a drive or partition.
I used a "tar | split" type oneliner to make a backup of a very large directy so that I could store the results on a fat32 drive. Then I can restore it by first using cat to rejoin the archive and pipe the results to the tar command. I also used split and then par2 to backup a dvd iso for openSuSE 10.1 so I could store the results on a USB Fat32 externel drive before doing a fresh install. If there is a problem with the burned DVD, after reformatting, you can reassemble the original iso using a rescue disk and the cat command.

Last edited by jschiwal; 05-22-2006 at 03:26 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ghosting a drive in Linux lm317t Linux - General 10 07-28-2005 12:16 PM
Ghosting Linux PapaNoHair Linux - General 3 03-23-2004 06:42 PM
ghosting a linux HDD mehesque Linux - General 2 02-09-2004 06:23 PM
dd ghosting linux drive wright_pm Linux - General 3 04-27-2003 11:38 PM
Ghosting Linux to new HD? zhenwu Linux - Software 3 11-08-2001 10:36 AM

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

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