[opensuse] How to Clone a whole disk?
Hi I've just been lurking so far but I would be happy to recieve some help on the topic of how to clone an entire disk (with partitions and diferent filesystems and all) on a dual boot home systen. No servers or anything. Thanks Bo -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello Bo, hello community ! Bo wrote / schrieb:
I've just been lurking so far but I would be happy to recieve some help on the topic of how to clone an entire disk (with partitions and diferent filesystems and all) on a dual boot home systen. No servers or anything.
Unix command "dd" (= device dump) is your friend ! Assuming the disk to clone is connected to primary IDE channel as master (=/dev/hda) and the target disk resides on primary IDE as slave (=/dev/hdb) the command you need to issue looks like this: dd if=/dev/hda of=/dev/hdb bs=128M The option "bs" specifies a buffer of 128MB size. Otherwise "dd" would copy blocks of 512 byte each ... If you need more information: man dd info dd dd --help -- Never give up ! Best regards / Gruß, Reinhard. "Software is like a parachute. It doesn't work if it is not open." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello Jan, hello community ! Jan Engelhardt wrote / schrieb:
On Jan 13 2007 13:02, Reinhard Gimbel wrote:
Unix command "dd" (= device dump) is your friend !
No please use dd_rescue.
In case Bo's disk already has some problems you are right. But this wasn't mentioned in his OP. Furthermore "dd" always will be installed and "dd_rescue" needs to be installed seperately (BTW as package "ddrescue") -- Never give up ! Best regards / Gruß, Reinhard. "Software is like a parachute. It doesn't work if it is not open." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Jan 13 2007 14:18, Reinhard Gimbel wrote:
Furthermore "dd" always will be installed and "dd_rescue" needs to be installed seperately (BTW as package "ddrescue")
Smells like a missing feature, and a bug. -`J' -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 13 January 2007 14:22, Jan Engelhardt wrote:
On Jan 13 2007 14:18, Reinhard Gimbel wrote:
Furthermore "dd" always will be installed and "dd_rescue" needs to be installed seperately (BTW as package "ddrescue")
Smells like a missing feature, and a bug.
dd_rescue == dd for broken media. dd is used far more often, dd_rescue only when there's a problem, so it should be in the rescue system, but I don't think there's a great need for having it installed by default in the real system But feel free to propose it -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Jan 13 2007 14:39, Anders Johansson wrote:
dd_rescue == dd for broken media. dd is used far more often, dd_rescue only when there's a problem, so it should be in the rescue system, but I don't think there's a great need for having it installed by default in the real system
dd_rescue has a statistics indicator to show you how far it has progressed so far. For dd, you got to figure out its pid, and send it a SIGUSR1. Urgh. -`J' -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 2007-01-13 at 13:02 +0100, Reinhard Gimbel wrote:
Hello Bo, hello community !
Bo wrote / schrieb:
I've just been lurking so far but I would be happy to recieve some help on the topic of how to clone an entire disk (with partitions and diferent filesystems and all) on a dual boot home systen. No servers or anything.
Unix command "dd" (= device dump) is your friend !
Assuming the disk to clone is connected to primary IDE channel as master (=/dev/hda) and the target disk resides on primary IDE as slave (=/dev/hdb) the command you need to issue looks like this:
dd if=/dev/hda of=/dev/hdb bs=128M
The option "bs" specifies a buffer of 128MB size. Otherwise "dd" would copy blocks of 512 byte each ...
If you need more information:
man dd info dd dd --help
man rsync -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 13 January 2007 16:04, Mike McMullin wrote:
Bo wrote / schrieb:
I've just been lurking so far but I would be happy to recieve some help on the topic of how to clone an entire disk (with partitions and diferent filesystems and all) on a dual boot home ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[...]
man rsync
rsync can't handle copying a partition table, and it can't handle copying the actual file system. It's not a cloning tool -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 2007-01-13 at 16:08 +0100, Anders Johansson wrote:
On Saturday 13 January 2007 16:04, Mike McMullin wrote:
Bo wrote / schrieb:
I've just been lurking so far but I would be happy to recieve some help on the topic of how to clone an entire disk (with partitions and diferent filesystems and all) on a dual boot home ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[...]
man rsync
rsync can't handle copying a partition table, and it can't handle copying the actual file system. It's not a cloning tool
Oddly enough, that one limitation is why I suggested it. The problem with dd starting at the actual disk beginning, is, as you know, that it will put the partition info on the new disk. If the new disk happens to be bigger, or different enough in geometry, then dd isn't a good choice. I'm not suggesting that rsync is "the way" to do it. I'm suggesting the OP look into it as a method to use in achieving his goals. I have yet to copy info from one disk to another, without major differences on the disks. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-01-13 at 13:02 +0100, Reinhard Gimbel wrote:
Bo wrote / schrieb:
I've just been lurking so far but I would be happy to recieve some help on the topic of how to clone an entire disk (with partitions and diferent filesystems and all) on a dual boot home systen. No servers or anything.
Unix command "dd" (= device dump) is your friend !
Mmmm... You need both disks to be of equal size for that to work. Everything will be cloned exactly bit for bit, even if wrong. There are specific tools out there to clone disks and modifiying sizes and partitions as needed. One of the most known is Ghost (windows), but although it handles some linux types, it gives problems. There is a linux program (cd live?) but I don't recall the name. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFqP8stTMYHG2NR9URAnUQAJ9mwx1KWgBOZpsiLozvwXrfrTxNmwCfbT+S bV/yjX0ZydRNyWtjW+39Fbs= =VG1S -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 1/13/07, Reinhard Gimbel <opensuse@dragonfly7.de> wrote:
Hello Bo, hello community !
Bo wrote / schrieb:
I've just been lurking so far but I would be happy to recieve some help on the topic of how to clone an entire disk (with partitions and diferent filesystems and all) on a dual boot home systen. No servers or anything.
Unix command "dd" (= device dump) is your friend !
Assuming the disk to clone is connected to primary IDE channel as master (=/dev/hda) and the target disk resides on primary IDE as slave (=/dev/hdb) the command you need to issue looks like this:
dd if=/dev/hda of=/dev/hdb bs=128M
The option "bs" specifies a buffer of 128MB size. Otherwise "dd" would copy blocks of 512 byte each ...
I agree with others, that a Ghost like program would be better than dd, but if you're going to use dd to copy a whole disk, use the read error options to continue past the occasional bad sector: dd if=/dev/hda of=/dev/hdb bs=128M conv=noerror,sync And bs=4k is big enough in my experience. (And I do this a lot including timing tests etc..) If you're target is a tape, then you want (need) a big blocksize like above, but be sure to label your disk with the blocksize you used. I've found that a lot of tapes can only be read if you use the same blocksize as you wrote. Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Another idea, if you need to backup across a network, is to use dd with netcat (this assumes you are on a highspeed local network) it worked beautifully. Google it and you should see some easy articles and howto's. On 1/13/07, Greg Freemyer <greg.freemyer@gmail.com> wrote:
On 1/13/07, Reinhard Gimbel <opensuse@dragonfly7.de> wrote:
Hello Bo, hello community !
Bo wrote / schrieb:
I've just been lurking so far but I would be happy to recieve some help on the topic of how to clone an entire disk (with partitions and diferent filesystems and all) on a dual boot home systen. No servers or anything.
Unix command "dd" (= device dump) is your friend !
Assuming the disk to clone is connected to primary IDE channel as master (=/dev/hda) and the target disk resides on primary IDE as slave (=/dev/hdb) the command you need to issue looks like this:
dd if=/dev/hda of=/dev/hdb bs=128M
The option "bs" specifies a buffer of 128MB size. Otherwise "dd" would copy blocks of 512 byte each ...
I agree with others, that a Ghost like program would be better than dd, but if you're going to use dd to copy a whole disk, use the read error options to continue past the occasional bad sector:
dd if=/dev/hda of=/dev/hdb bs=128M conv=noerror,sync
And bs=4k is big enough in my experience. (And I do this a lot including timing tests etc..) If you're target is a tape, then you want (need) a big blocksize like above, but be sure to label your disk with the blocksize you used. I've found that a lot of tapes can only be read if you use the same blocksize as you wrote.
Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
One option is partimage (http://www.partimage.org/Main_Page). Another is to use the built in dd command. It depends on what you want. On Saturday 13 January 2007 06:30, Bo wrote:
Hi I've just been lurking so far but I would be happy to recieve some help on the topic of how to clone an entire disk (with partitions and diferent filesystems and all) on a dual boot home systen. No servers or anything.
Thanks
Bo
-- Brett I. Holcomb -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2007/01/13 12:30 (GMT+0100) Bo apparently typed:
I've just been lurking so far but I would be happy to recieve some help on the topic of how to clone an entire disk (with partitions and diferent filesystems and all) on a dual boot home systen. No servers or anything.
This is what I've been using for everything partition related for over 5 years: http://www.dfsee.com/dfsee/ Not free, but your money gets you free personalized support that is well worth the money if you screw something up and need to recover. -- "I have come that they may have life, and have it to the full." John 10:10 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://mrmazda.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday, January 13, 2007 @ 2:10 PM, Felix Miata wrote:
On 2007/01/13 12:30 (GMT+0100) Bo apparently typed:
I've just been lurking so far but I would be happy to recieve some help on the topic of how to clone an entire disk (with partitions and diferent filesystems and all) on a dual boot home systen. No servers or anything.
This is what I've been using for everything partition related for over 5 years: http://www.dfsee.com/dfsee/
Not free, but your money gets you free personalized support that is well worth the money if you screw something up and need to recover. -- "I have come that they may have life, and have it to the full." John 10:10 NIV
Team OS/2 ** Reg. Linux User #211409
Felix Miata *** http://mrmazda.no-ip.com/
As long as we're introducing non-freebies, here's what I use http://www.storix.com/products_overview/desktop_edition.html Follow the embedded links for details. It only does Linux, but you can do such things as add, remove, or re-size partitions, change file systems (e. g., EXT3 to Reiser), split partitions into multiple file systems, load new SCSI or device modules, etc., all while doing the restore. For cloning, you'd just back up on one box and restore on the other. Excellent email support. Greg W -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 13 January 2007 22:39, Greg Wallace wrote:
As long as we're introducing non-freebies, here's what I use
http://www.storix.com/products_overview/desktop_edition.html
And here's what I use: http://www.acronis.com/enterprise/products/diskdirectorsuite/ Handles all file systems except XFS. (including NTFS) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bo wrote:
Hi I've just been lurking so far but I would be happy to recieve some help on the topic of how to clone an entire disk (with partitions and diferent filesystems and all) on a dual boot home systen. No servers or anything. You might want to investigate: BackUp/Restore HDD and partitions - Ghost4Linux http://www.howtoforge.com/back_up_restore_harddrives_partitions_with_ghost4l...
HTH Hylton -- ======================================================================== Using SuSE 9.2 Professional with KDE and Mozilla Mail 1.7.13 Linux user # 229959 at http://counter.li.org ======================================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (13)
-
Anders Johansson
-
Bo
-
Brett I. Holcomb
-
Bruce Marshall
-
Carlos E. R.
-
Felix Miata
-
Greg Freemyer
-
Greg Wallace
-
Hylton Conacher(ZR1HPC)
-
Jan Engelhardt
-
Mike McMullin
-
Rami Michael
-
Reinhard Gimbel