Hello I have an OS installation and data on a 40 gb drive that I would like to image to a 80 gb drive. I don't care if the resulting partition layout on the new drive is only 40 gb making me lose space. I just want to move everything from the older drive because I think it's failing. I have looked at partimage and mondo rescue as imaging solutions but both deal with partitions. CAn someone plz point me to a howto that shows how to image the entire drive incuding mbr, partiton table and data all with one program? I am hoping to boot with a CD to do this while having both drives plugged in. So I think something like knoppix? TIA!
On Oct 6, 2006, at 2:27 PM, Joseph Cheng wrote:> Hello I have an OS installation and data on a 40 gb drive that I would > like to image to a 80 gb drive. I don't care if the resulting > partition layout on the new drive is only 40 gb making me lose space. > I just want to move everything from the older drive because I think > it's failing. I have looked at partimage and mondo rescue as imaging > solutions but both deal with partitions. CAn someone plz point me to a > howto that shows how to image the entire drive incuding mbr, partiton > table and data all with one program? I am hoping to boot with a CD to > do this while having both drives plugged in. So I think something like > knoppix? TIA!1) install second drive 2) boot into knoppix 3) dd if=/dev/hda of=/dev/hdb obs=4096 this assumes /dev/hda is the 40gb drive and /dev/hdb is the 80gb; change device names as appropriate. the dd command will give you no output (unless a problem occurs) and will probably take a while. -steve -- If this were played upon a stage now, I could condemn it as an improbable fiction. - Fabian, Twelfth Night, III,v
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joseph Cheng wrote:> Hello I have an OS installation and data on a 40 gb drive that I would > like to image to a 80 gb drive. I don't care if the resulting > partition layout on the new drive is only 40 gb making me lose space. > I just want to move everything from the older drive because I think > it's failing. I have looked at partimage and mondo rescue as imaging > solutions but both deal with partitions. CAn someone plz point me to a > howto that shows how to image the entire drive incuding mbr, partiton > table and data all with one program? I am hoping to boot with a CD to > do this while having both drives plugged in. So I think something like > knoppix? TIA!Either boot into knoppix and use dd if=/dev/hda1 of=/dev/hda2 plus whatever other arguments you want passed, or checking out Ghost 4 Linux (G4L). I'm not sure if G4L requires you to have to identical sized drives though. http://sourceforge.net/projects/g4l Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org iD8DBQFFJq9gHoeeepPau2ERAjHSAJ9NlAXk8dJN1+yo89+F8LHG0yXjHwCgvQ3S snAXuJPE3sCrDOOrsOj8+74=1hil -----END PGP SIGNATURE-----
Andreas Micklei
2006-Oct-06 20:17 UTC
[CentOS] transfer data from one hard drive to another
The suggested knoppix dd solution should work well. You might want to pass something like "bs=4096k" as additional argument to speed it up considerably (bs is blocksize. Default is 512k) However you might want to take a look at mondo rescue again. It does not make a physical 1:1 copy of the harddisk, but it will recreate all partitions, resized to occupy the entire space on the new drive and install an mbr with your bootloader (lilo or grub that is). It's easy to use too. regards, Andreas Micklei
On Friday 06 October 2006 22:42, Joseph Cheng wrote:> Thx for all the suggestions ppl. I think for simplicity I will either > go with the knoppix & dd solution or I also found ghost 4 unix > http://www.feyrer.de/g4u/I have used the dd solution a number of times, and it works quite well. There are, however, a couple of suggestions I would make: 1.) Use the CentOS rescue mode (boot CD number 1, type 'linux rescue' at the boot prompt) and tell it not to mount your drives. No need to download Yet Another Linux Distribution to do the work. Or use the CentOS LiveCD. 2.) While the dd is running, you can check on its progress. Switch to another virtual console (you are by default on VC 1; hit ALT-F2 to go to VC 2) and send the dd process a SIGUSR1 (run a ps ax and make a note of the dd process's PID; then kill -USR1 $PID); then switch back to VC 1 and you'll see where dd is in your copy. You can then run fdisk or parted and grow the partition; then you can resize the filesystem (I'm fairly certain the rescue mode includes the resizing program; not sure about the LiveCD, but I would think it does). The native CentOS tools to do this are, in my experience, far superior in quality to the various third party solutions (including Symantec Ghost) availabe to do this sort of thing. They are a little harder to use, though they seem to work better. -- Lamar Owen Director of Information Technology Pisgah Astronomical Research Institute 1 PARI Drive Rosman, NC 28772 (828)862-5554 www.pari.edu
On Saturday 07 October 2006 07:25, Lamar Owen wrote:> the boot prompt) and tell it not to mount your drives. No need to download > Yet Another Linux Distribution to do the work. Or use the CentOS LiveCD.After reading this closely, I realize it may give the impression that I'm recommending to NOT use the CentOS LiveCD; this is totally the wrong meaning; I'm RECOMMENDING using the CentOS LiveCD. Sorry for the miswording. -- Lamar Owen Director of Information Technology Pisgah Astronomical Research Institute 1 PARI Drive Rosman, NC 28772 (828)862-5554 www.pari.edu
On Tuesday 10 October 2006 18:41, Will McDonald wrote:> Yep. I used do this all the time. If the disks have the same geometry > it's dead simple. I used to use it to build and configure a server > then duplicate it over another half-dozen or so identical systems.Just one caveat: make sure to remove the MAC address portion of any ifcfg-ethX in /etc/sysconfig/network-scripts (the HWADDR parameter, I think, is the right one). Been there, done that, cloning systems like that. Did a cluster of 30 Sun Ultra 30 workstations with Aurora Linux 1.0 a few years back; had to make sure to remove the MAC address from the master prior to cloning. -- Lamar Owen Director of Information Technology Pisgah Astronomical Research Institute 1 PARI Drive Rosman, NC 28772 (828)862-5554 www.pari.edu