Re: Replacing a failing HD
But, won't doing a dd between two disks with incompatible sizes create a bad partition table on the destination drive? Basically yes, at least an incorrect one, even if you can make it work. It is much better to build your slices, partitions and file systems and then move your old data using dump(8)/restore(8) than to try and dup a drive with dd. Even if they are nominally the same size, they may have some difference. jerry TIA, Rama On 10/19/05, Bob Ababurko [EMAIL PROTECTED] wrote: Craig Deal wrote: Hope it's ok to continue this thread, but can you explain in more detail how to use dd to copy a HD. I read man dd and was unable to figure out how this is done. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This is what I have done in the past. dd if=/dev/da0 of=/dev/da1 bs=8192b where da0 is the disk you want to copy and da1 is the new, blank disk. I should also mention that it is wise to do this in single user mode. I actually have read this somewhere and understand the point of it, but I must also say that I have done it both ways and they have both worked. YMMV I would have to say it is all dependant and what you have running. I have done this too many times to count and it is very easy. peace, Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I tried this and got the following error: ad0: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE LBA=8387712 Any ideas what the problem might be? Do the hard drives have to be identical? One is a 30Gb and the other is a 60GB. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I would think that you can dd from a small drive to a large drive, but if the is possible _definitely_ not the other way around. Which size are source and dest. drive? -Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Replacing a failing HD
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gayn Winters Sent: Tuesday, October 18, 2005 8:53 PM To: 'Craig Deal'; freebsd-questions@freebsd.org Subject: RE: Replacing a failing HD Craig Deal wrote: Hope it's ok to continue this thread, but can you explain in more detail how to use dd to copy a HD. I read man dd and was unable to figure out how this is done. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This is what I have done in the past. dd if=/dev/da0 of=/dev/da1 bs=8192b where da0 is the disk you want to copy and da1 is the new, blank disk. I should also mention that it is wise to do this in single user mode. I actually have read this somewhere and understand the point of it, but I must also say that I have done it both ways and they have both worked. YMMV I would have to say it is all dependant and what you have running. I have done this too many times to count and it is very easy. peace, Bob I tried this and got the following error: ad0: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE LBA=8387712 A couple ideas for dd: Have you tried bs=512b ? How about conv=noerror ? -gayn Using bs=512b worked. I booted to the new disk and everything looks ok. I also ran fsck in single user mode, which indicated no problems. Can I assume everything is ok, or is there anything else I should check? Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Replacing a failing HD
-Original Message- From: Craig Deal [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 19, 2005 7:07 AM To: [EMAIL PROTECTED]; freebsd-questions@freebsd.org Subject: RE: Replacing a failing HD I tried this and got the following error: ad0: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE LBA=8387712 A couple ideas for dd: Have you tried bs=512b ? How about conv=noerror ? -gayn Using bs=512b worked. I booted to the new disk and everything looks ok. I also ran fsck in single user mode, which indicated no problems. Can I assume everything is ok, or is there anything else I should check? Craig I'm sure it is ok, but I'd double check the output of fdisk and bsdlabel. You've got some extra space now and you may want to use it. Read the handbook on moving to a larger disk. -gayn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Replacing a failing HD
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ramakrishna Nalla Sent: Tuesday, October 18, 2005 9:52 PM To: Bob Ababurko Cc: freebsd-questions@freebsd.org; Craig Deal Subject: Re: Replacing a failing HD But, won't doing a dd between two disks with incompatible sizes create a bad partition table on the destination drive? TIA, Rama Not really a bad partition table, if what you mean is bad=corrupted. Using dd you copy blocks, and this will correctly bring the partition table along. What you do not get initially is the full utilization of the larger drive. Thus if you dd a 40GB drive (or slice) to a 60GB one, you'll only get the image of the 40GB drive that is initially usable. You will have 20GB that is not - at least initially - usable. Nothing stops you from reorganizing the larger disk, however. I think the original problem in this thread was a quick save of a failing disk. dd is great for this. If you were simply going to utilize a larger disk, then you'd be better off using fdisk to slice it up, creating your bsd partitions and then using dump|restore to get things where you want them. I think the Handbook has a nice section on doing this. -gayn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Replacing a failing HD
Hope it's ok to continue this thread, but can you explain in more detail how to use dd to copy a HD. I read man dd and was unable to figure out how this is done. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This is what I have done in the past. dd if=/dev/da0 of=/dev/da1 bs=8192b where da0 is the disk you want to copy and da1 is the new, blank disk. I should also mention that it is wise to do this in single user mode. I actually have read this somewhere and understand the point of it, but I must also say that I have done it both ways and they have both worked. YMMV I would have to say it is all dependant and what you have running. I have done this too many times to count and it is very easy. peace, Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I tried this and got the following error: ad0: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE LBA=8387712 Any ideas what the problem might be? Do the hard drives have to be identical? One is a 30Gb and the other is a 60GB. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Replacing a failing HD
Craig Deal wrote: Hope it's ok to continue this thread, but can you explain in more detail how to use dd to copy a HD. I read man dd and was unable to figure out how this is done. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This is what I have done in the past. dd if=/dev/da0 of=/dev/da1 bs=8192b where da0 is the disk you want to copy and da1 is the new, blank disk. I should also mention that it is wise to do this in single user mode. I actually have read this somewhere and understand the point of it, but I must also say that I have done it both ways and they have both worked. YMMV I would have to say it is all dependant and what you have running. I have done this too many times to count and it is very easy. peace, Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I tried this and got the following error: ad0: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE LBA=8387712 Any ideas what the problem might be? Do the hard drives have to be identical? One is a 30Gb and the other is a 60GB. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I would think that you can dd from a small drive to a large drive, but if the is possible _definitely_ not the other way around. Which size are source and dest. drive? -Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Replacing a failing HD
Craig Deal wrote: Hope it's ok to continue this thread, but can you explain in more detail how to use dd to copy a HD. I read man dd and was unable to figure out how this is done. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This is what I have done in the past. dd if=/dev/da0 of=/dev/da1 bs=8192b where da0 is the disk you want to copy and da1 is the new, blank disk. I should also mention that it is wise to do this in single user mode. I actually have read this somewhere and understand the point of it, but I must also say that I have done it both ways and they have both worked. YMMV I would have to say it is all dependant and what you have running. I have done this too many times to count and it is very easy. peace, Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I tried this and got the following error: ad0: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE LBA=8387712 Any ideas what the problem might be? Do the hard drives have to be identical? One is a 30Gb and the other is a 60GB. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I would think that you can dd from a small drive to a large drive. If that is possible you will _definitely_ not be able to go the other way around. Which size are your source and dest. drive? -Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Replacing a failing HD
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Ababurko Sent: Tuesday, October 18, 2005 5:27 PM To: Craig Deal; freebsd-questions@freebsd.org Subject: Re: Replacing a failing HD Craig Deal wrote: Hope it's ok to continue this thread, but can you explain in more detail how to use dd to copy a HD. I read man dd and was unable to figure out how this is done. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This is what I have done in the past. dd if=/dev/da0 of=/dev/da1 bs=8192b where da0 is the disk you want to copy and da1 is the new, blank disk. I should also mention that it is wise to do this in single user mode. I actually have read this somewhere and understand the point of it, but I must also say that I have done it both ways and they have both worked. YMMV I would have to say it is all dependant and what you have running. I have done this too many times to count and it is very easy. peace, Bob I tried this and got the following error: ad0: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE LBA=8387712 Any ideas what the problem might be? Do the hard drives have to be identical? One is a 30Gb and the other is a 60GB. Thanks, Craig I would think that you can dd from a small drive to a large drive, but if the is possible _definitely_ not the other way around. Which size are source and dest. drive? -Bob I should have been clearer. The source is 30GB and dest 60GB. Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Replacing a failing HD
Craig Deal wrote: Hope it's ok to continue this thread, but can you explain in more detail how to use dd to copy a HD. I read man dd and was unable to figure out how this is done. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This is what I have done in the past. dd if=/dev/da0 of=/dev/da1 bs=8192b where da0 is the disk you want to copy and da1 is the new, blank disk. I should also mention that it is wise to do this in single user mode. I actually have read this somewhere and understand the point of it, but I must also say that I have done it both ways and they have both worked. YMMV I would have to say it is all dependant and what you have running. I have done this too many times to count and it is very easy. peace, Bob I tried this and got the following error: ad0: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE LBA=8387712 A couple ideas for dd: Have you tried bs=512b ? How about conv=noerror ? -gayn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Replacing a failing HD
But, won't doing a dd between two disks with incompatible sizes create a bad partition table on the destination drive? TIA, Rama On 10/19/05, Bob Ababurko [EMAIL PROTECTED] wrote: Craig Deal wrote: Hope it's ok to continue this thread, but can you explain in more detail how to use dd to copy a HD. I read man dd and was unable to figure out how this is done. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This is what I have done in the past. dd if=/dev/da0 of=/dev/da1 bs=8192b where da0 is the disk you want to copy and da1 is the new, blank disk. I should also mention that it is wise to do this in single user mode. I actually have read this somewhere and understand the point of it, but I must also say that I have done it both ways and they have both worked. YMMV I would have to say it is all dependant and what you have running. I have done this too many times to count and it is very easy. peace, Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I tried this and got the following error: ad0: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE LBA=8387712 Any ideas what the problem might be? Do the hard drives have to be identical? One is a 30Gb and the other is a 60GB. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I would think that you can dd from a small drive to a large drive, but if the is possible _definitely_ not the other way around. Which size are source and dest. drive? -Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Replacing a failing HD
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Ababurko Sent: Wednesday, October 05, 2005 7:53 AM To: Charlie Schluting; freebsd-questions@freebsd.org Subject: Re: Replacing a failing HD Yes, I guess I should mention that the drives were on the same machine, actually the same bus and/or channel. I have also done this on Solaris. I believe it was Solaris 8, but it works just the same. I am not sure if it would work over a network. Just make sure you dd the disk as a whole as in /dev/daX and not by the slice. -Bob Charlie Schluting wrote: I have used dd to image a drive many times before in freebsd. It works like a champion and will boot up just fine. I may have misunderstood your mail but if not then it will work. Well, maybe my weird over ssh calling a setuid program that calls a script dd was flawed somehow. I'll do it again with both drives in the same machine. Thanks for the response! Hope it's ok to continue this thread, but can you explain in more detail how to use dd to copy a HD. I read man dd and was unable to figure out how this is done. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Replacing a failing HD
Craig Deal wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Ababurko Sent: Wednesday, October 05, 2005 7:53 AM To: Charlie Schluting; freebsd-questions@freebsd.org Subject: Re: Replacing a failing HD Yes, I guess I should mention that the drives were on the same machine, actually the same bus and/or channel. I have also done this on Solaris. I believe it was Solaris 8, but it works just the same. I am not sure if it would work over a network. Just make sure you dd the disk as a whole as in /dev/daX and not by the slice. -Bob Charlie Schluting wrote: I have used dd to image a drive many times before in freebsd. It works like a champion and will boot up just fine. I may have misunderstood your mail but if not then it will work. Well, maybe my weird over ssh calling a setuid program that calls a script dd was flawed somehow. I'll do it again with both drives in the same machine. Thanks for the response! Hope it's ok to continue this thread, but can you explain in more detail how to use dd to copy a HD. I read man dd and was unable to figure out how this is done. Thanks, Craig ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This is what I have done in the past. dd if=/dev/da0 of=/dev/da1 bs=8192b where da0 is the disk you want to copy and da1 is the new, blank disk. I should also mention that it is wise to do this in single user mode. I actually have read this somewhere and understand the point of it, but I must also say that I have done it both ways and they have both worked. YMMV I would have to say it is all dependant and what you have running. I have done this too many times to count and it is very easy. peace, Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Replacing a failing HD
Yes, I guess I should mention that the drives were on the same machine, actually the same bus and/or channel. I have also done this on Solaris. I believe it was Solaris 8, but it works just the same. I am not sure if it would work over a network. Just make sure you dd the disk as a whole as in /dev/daX and not by the slice. -Bob Charlie Schluting wrote: I have used dd to image a drive many times before in freebsd. It works like a champion and will boot up just fine. I may have misunderstood your mail but if not then it will work. Well, maybe my weird over ssh calling a setuid program that calls a script dd was flawed somehow. I'll do it again with both drives in the same machine. Thanks for the response! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Replacing a failing HD
Charlie Schluting wrote: So, clearly dd'ing the drive to another drive won't work. How can I replicate the boot block and partition table from my existing drive onto a new one in freebsd? In solaris, I'd use prtvtoc | fmthard, then dd... Thanks :) -Charlie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I have used dd to image a drive many times before in freebsd. It works like a champion and will boot up just fine. I may have misunderstood your mail but if not then it will work. peace, Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Replacing a failing HD
I have used dd to image a drive many times before in freebsd. It works like a champion and will boot up just fine. I may have misunderstood your mail but if not then it will work. Well, maybe my weird over ssh calling a setuid program that calls a script dd was flawed somehow. I'll do it again with both drives in the same machine. Thanks for the response! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]