Re: disk cloning ?

2013-11-12 Thread Ralf Mardorf
On Mon, 2013-11-11 at 21:25 -0800, hadi motamedi wrote: Sounds like you didn't partition the destination drive? Correct, the OP didn't: On Mon, 2013-11-11 at 21:28 -0800, hadi motamedi wrote: Here is the output : #parted -list disk /dev/hda 21.5GB

Re: disk cloning ?

2013-11-12 Thread David Christensen
On 11/11/2013 09:28 PM, hadi motamedi wrote: Here is the output : #parted -list disk /dev/hda 21.5GB sector : 512B/512B partition : msdos disk : /dev/sdb 40GB sector : 512B/512B partition : msdos error: unable to open /dev/md0 unrecognized disk label. We need to see the shell prompt, the

Re: disk cloning ?

2013-11-12 Thread David Christensen
On 11/11/2013 09:25 PM, hadi motamedi wrote: How to partition it ? I use parted(8). David -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive:

Re: disk cloning ?

2013-11-12 Thread David Christensen
On 11/11/2013 09:31 PM, hadi motamedi wrote: How can I check for [LVM, encryption, etc.] ? 'parted --list' provides some information. See cryptsetup(8) for encrypted partitions. See lvm(8) for LVM. See mdadm(8) for kernel software RAID. David -- To UNSUBSCRIBE, email to

disk cloning ?

2013-11-11 Thread hadi motamedi
Dear All I needed to clone my disk to another hard drive . I did it as the following : #dd if=/dev/sdb of=/dev/sdc But after a while, the procedure ended with the writing to /dev/sdc input/output error message. Can you please let me know how can I overcome this as the fdisk now returns as #fdisk

Re: disk cloning ?

2013-11-11 Thread Darac Marjal
On Mon, Nov 11, 2013 at 04:46:07AM -0800, hadi motamedi wrote: Dear All I needed to clone my disk to another hard drive . I did it as the following : #dd if=/dev/sdb of=/dev/sdc But after a while, the procedure ended with the writing to /dev/sdc input/output error message. So your new disk

Re: disk cloning ?

2013-11-11 Thread Pertti Kosunen
On 11.11.2013 14:46, hadi motamedi wrote: What can I do at know ? http://www.gnu.org/software/ddrescue/ http://www.forensicswiki.org/wiki/Ddrescue Try ddrescue instead dd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact

Re: disk cloning ?

2013-11-11 Thread hadi motamedi
Better to try smartctl/badblocks/etc to test the health of the new drive first Sorry, How the smartctl command must be issued to check for the health of the disk ? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact

Re: disk cloning ?

2013-11-11 Thread Karl E. Jorgensen
Hi On Mon, Nov 11, 2013 at 04:46:07AM -0800, hadi motamedi wrote: Dear All I needed to clone my disk to another hard drive . I did it as the following : #dd if=/dev/sdb of=/dev/sdc But after a while, the procedure ended with the writing to /dev/sdc input/output error message. In general,

Re: disk cloning ?

2013-11-11 Thread hadi motamedi
dd if=/dev/sdb1 of=/dev/sdc1 Sorry, I tried for this but getting no space left on device What can I do next? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive:

Re: disk cloning ?

2013-11-11 Thread Karl E. Jorgensen
On Mon, Nov 11, 2013 at 05:31:07AM -0800, hadi motamedi wrote: dd if=/dev/sdb1 of=/dev/sdc1 Sorry, I tried for this but getting no space left on device What can I do next? Sounds like you didn't partition the destination drive? -- Karl E. Jorgensen -- To UNSUBSCRIBE, email to

Re: disk cloning ?

2013-11-11 Thread Ralf Mardorf
On Mon, 2013-11-11 at 13:42 +, Karl E. Jorgensen wrote: On Mon, Nov 11, 2013 at 05:31:07AM -0800, hadi motamedi wrote: dd if=/dev/sdb1 of=/dev/sdc1 Sorry, I tried for this but getting no space left on device What can I do next? Sounds like you didn't partition the destination

Re: disk cloning ?

2013-11-11 Thread David Christensen
On 11/11/2013 04:46 AM, hadi motamedi wrote: I needed to clone my disk to another hard drive . I did it as the following : #dd if=/dev/sdb of=/dev/sdc But after a while, the procedure ended with the writing to /dev/sdc input/output error message. Can you please let me know how can I overcome

Re: disk cloning ?

2013-11-11 Thread David Christensen
On 11/11/2013 06:03 AM, Ralf Mardorf wrote: What's the output of sudo parted -l or su -c parted -l +1 Also, please let us know if you're using encryption, LVM, etc.. David -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact

Re: disk cloning ?

2013-11-11 Thread Ralf Mardorf
On Mon, 2013-11-11 at 12:51 -0800, David Christensen wrote: On 11/11/2013 06:03 AM, Ralf Mardorf wrote: What's the output of sudo parted -l or su -c parted -l +1 Also, please let us know if you're using encryption, LVM, etc.. I guess that parted does show it, if it's LVM. Perhaps

Re: disk cloning ?

2013-11-11 Thread hadi motamedi
Sounds like you didn't partition the destination drive? How to partition it ? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive:

Re: disk cloning ?

2013-11-11 Thread hadi motamedi
What's the output of sudo parted -l Here is the output : #parted -list disk /dev/hda 21.5GB sector : 512B/512B partition : msdos disk : /dev/sdb 40GB sector : 512B/512B partition : msdos error: unable to open /dev/md0 unrecognized disk label. -- To UNSUBSCRIBE, email to

Re: disk cloning ?

2013-11-11 Thread hadi motamedi
Also, please let us know if you're using encryption, LVM, etc. How can I check for it ? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive:

Re: Recommended Debian package for hard disk cloning

2009-10-27 Thread Holger Rauch
Hi Javier, On Mon, 26 Oct 2009, Javier Barroso wrote: Hi, [...] If you have another machine with disks availables: cat raw devices to other machine throw ssh/nc and vgchange -u and vgrename thanks a lot for mentioning this hint, but I was talking about the senario when both disks are

Re: Recommended Debian package for hard disk cloning

2009-10-27 Thread Javier Barroso
On Tue, Oct 27, 2009 at 12:31 PM, Holger Rauch holger.ra...@empic.de wrote: Hi Javier, On Mon, 26 Oct 2009, Javier Barroso wrote: Hi, [...] If you have another machine with disks availables: cat raw devices to other machine throw ssh/nc and vgchange -u and vgrename thanks a lot for

Recommended Debian package for hard disk cloning

2009-10-26 Thread Holger Rauch
Hi, which Debian package would you recommend for hard disk cloning, provided that UUIDs related to both file systems and/or the LVM (PVs, LVs, VGs) should be changed in order to be unique? Is there a package around that's able to take care of this or would you recommend writing a custom shell

Re: Recommended Debian package for hard disk cloning

2009-10-26 Thread Johannes Wiedersich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Holger Rauch wrote: which Debian package would you recommend for hard disk cloning, provided that UUIDs related to both file systems and/or the LVM (PVs, LVs, VGs) should be changed in order to be unique? Is there a package around that's able

Re: Recommended Debian package for hard disk cloning

2009-10-26 Thread Holger Rauch
Wiedersich schrieb am Monday, den 26. October 2009: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Holger Rauch wrote: which Debian package would you recommend for hard disk cloning, provided that UUIDs related to both file systems and/or the LVM (PVs, LVs, VGs) should be changed

Re: Recommended Debian package for hard disk cloning

2009-10-26 Thread Javier Barroso
Hi, On Mon, Oct 26, 2009 at 2:26 PM, Holger Rauch holger.ra...@empic.de wrote: Hi Johannes, first of all, thanks for your quick reply. Do you know of any reliable way to clone (concerning the LV+VG parameters) and changing the VG name (though I admit that this question is more appropriate for

Re: disk cloning with dd

2005-05-08 Thread David Baron
On Friday 06 May 2005 17:54, [EMAIL PROTECTED] wrote: Can I simply use dd to clone my failing hard disk (hda) onto another (hdb) of the same size as follows: # dd if=/dev/hda of=/dev/hdb bs=512 Or will norton ghost do a better job? Btw, what advantages does ghost have over dd or

Re: disk cloning with dd

2005-05-07 Thread Jochen Schulz
* Scott Wolchok: On 5/6/05, Jochen Schulz [EMAIL PROTECTED] wrote: BTW: if I were you, I'd take the time to plug one of the drives on the secondary ide controller (if your machine has one). Copying between two IDE devices on the same controller is awfully slow. Don't you mean the same IDE

Re: disk cloning with dd

2005-05-07 Thread Lee Braiden
On Saturday 07 May 2005 09:53, Jochen Schulz wrote: Maybe that was a misnomer on my side. In Germany we always talk about primary and secondary controllers when we mean the two IDE connectors on standard mainboards. I think that's also how it's printed on the mainboards themselves and in the

Re: disk cloning with dd

2005-05-07 Thread Jochen Schulz
* Lee Braiden: On Saturday 07 May 2005 09:53, Jochen Schulz wrote: Maybe that was a misnomer on my side. In Germany we always talk about primary and secondary controllers when we mean the two IDE connectors on standard mainboards. I think that's also how it's printed on the mainboards

Re: disk cloning with dd

2005-05-07 Thread Mitchell Laks
On Friday 06 May 2005 09:07 am, Alphonse Ogulla wrote: Hi all, Can I simply use dd to clone my failing hard disk (hda) onto another (hdb) of the same size as follows: # dd if=/dev/hda of=/dev/hdb bs=512 should work Or will norton ghost do a better job? Btw, what advantages does ghost have

disk cloning with dd

2005-05-06 Thread Alphonse Ogulla
Hi all, Can I simply use dd to clone my failing hard disk (hda) onto another (hdb) of the same size as follows: # dd if=/dev/hda of=/dev/hdb bs=512 Or will norton ghost do a better job? Btw, what advantages does ghost have over dd or vice versa? Thanks, Alphonse Ogulla Nairobi, Kenya.

Re: disk cloning with dd

2005-05-06 Thread Norman Hooper
Hi Alphonse Can I simply use dd to clone my failing hard disk (hda) onto another (hdb) of the same size as follows: # dd if=/dev/hda of=/dev/hdb bs=512 Or will norton ghost do a better job? Btw, what advantages does ghost have over dd or vice versa? If they're identical, I'm sure dd

Re: disk cloning with dd

2005-05-06 Thread Jochen Schulz
* Alphonse Ogulla: Can I simply use dd to clone my failing hard disk (hda) onto another (hdb) of the same size as follows: # dd if=/dev/hda of=/dev/hdb bs=512 If it's exactly the same size, then yes. Keep in mind that you don't copy files but the whole hard disk - including boot sectors and

Re: disk cloning with dd

2005-05-06 Thread Werner Otto
Norman Hooper wrote: Hi Alphonse Can I simply use dd to clone my failing hard disk (hda) onto another (hdb) of the same size as follows: # dd if=/dev/hda of=/dev/hdb bs=512 Or will norton ghost do a better job? Btw, what advantages does ghost have over dd or vice versa? If they're

Re: disk cloning with dd

2005-05-06 Thread David
On Fri, May 06, 2005 at 04:07:17PM +0300, Alphonse Ogulla wrote: Hi all, Can I simply use dd to clone my failing hard disk (hda) onto another (hdb) of the same size as follows: # dd if=/dev/hda of=/dev/hdb bs=512 I'd prefer to go another route, any of which would require first creating your

Re: disk cloning with dd

2005-05-06 Thread Marty
David wrote: After a quick cp --help, I see that it, too has a --one-file-system option, so no doubt you could use an identical strategy using cp as with tar. If drives /dev/hda and /dev/hdb are identical models, then cp /dev/hda /dev/hdb works and insures an exact sector for sector

Re: disk cloning with dd

2005-05-06 Thread tomi (sent by Nabble.com)
Werner Otto wrote: Can one use dd on a mounted partition, if so will it clone the boot partition aswell and good to boot from? Don't use dd on a mounted partition. Any files that change while dd is running will end up corrupted on the new drive, and likely the filesystem itself will be

Re: disk cloning with dd

2005-05-06 Thread Scott Wolchok
On 5/6/05, Jochen Schulz [EMAIL PROTECTED] wrote: * Alphonse Ogulla: Can I simply use dd to clone my failing hard disk (hda) onto another (hdb) of the same size as follows: # dd if=/dev/hda of=/dev/hdb bs=512 If it's exactly the same size, then yes. Keep in mind that you don't copy