Hi All, I have a drive that sounds like it's about to fail (making strange noises and occasionally not booting), so I want to copy it to another identical drive. The drive has 1 NTFS partition on it - I very occasionally run Win2k. I booted up the 5.0 KNOPPIX CD and tried dd if=/dev/hda of=/dev/hdb. There were no error messages and after about 30 minutes the 'dd' finished. However from KNOPPIX, I can't mount the new drive. the mount command (sudo mount -t ntfs /dev/hdb1 /media/hdb1) fails with: "Couldn't mount device '/dev/hdb1'. input/output error - mount failed". The original drive (/dev/hda1) mounts without any problem. If I use the fdisk utility and look at the partition table, there are no differences between the hda and hdb drives. Any ideas how I can solve this problem?? BTW: The qtparted utility on the KNOPPIX 5.0 CD and DVD fails with a "floating point exception" error. TIA, -Chuck
On 11/22/06, Chuck Noyes <vze284qe@verizon.net> wrote:
I booted up the 5.0 KNOPPIX CD and tried dd if=/dev/hda of=/dev/hdb. There were no error messages and after about 30 minutes the 'dd'
Sounds like a 30-40GB drive?
finished. However from KNOPPIX, I can't mount the new drive. the mount command (sudo mount -t ntfs /dev/hdb1 /media/hdb1) fails with:
"Couldn't mount device '/dev/hdb1'. input/output error - mount failed".
Some things to do: -Check the kernel log (dmesg will dump it) for errors on hdb. -Check the health of hdb (smartctl -a /dev/hdb) BR
On Wed, 22 Nov 2006 11:16:42 -0500 "Brett Russ" <bruss@alum.wpi.edu> wrote:
On 11/22/06, Chuck Noyes <vze284qe@verizon.net> wrote:
I booted up the 5.0 KNOPPIX CD and tried dd if=/dev/hda of=/dev/hdb. There were no error messages and after about 30 minutes the 'dd'
Sounds like a 30-40GB drive?
It's an 80 GB drive.
finished. However from KNOPPIX, I can't mount the new drive. the mount command (sudo mount -t ntfs /dev/hdb1 /media/hdb1) fails with:
"Couldn't mount device '/dev/hdb1'. input/output error - mount failed".
Some things to do: -Check the kernel log (dmesg will dump it) for errors on hdb.
dmesg looks clean.
-Check the health of hdb (smartctl -a /dev/hdb)
smartctl reports no problems or errors. If I run smartctl -t short /dev/hdb followed by smartctl -l selftest /dev/hdb, there are no errors.
BR _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
On Wed, 22 Nov 2006, Chuck Noyes wrote:
Hi All,
I have a drive that sounds like it's about to fail (making strange noises and occasionally not booting), so I want to copy it to another identical drive. The drive has 1 NTFS partition on it - I very occasionally run Win2k.
I booted up the 5.0 KNOPPIX CD and tried dd if=/dev/hda of=/dev/hdb. There were no error messages and after about 30 minutes the 'dd' finished. However from KNOPPIX, I can't mount the new drive. the mount command (sudo mount -t ntfs /dev/hdb1 /media/hdb1) fails with:
"Couldn't mount device '/dev/hdb1'. input/output error - mount failed".
The original drive (/dev/hda1) mounts without any problem.
If I use the fdisk utility and look at the partition table, there are no differences between the hda and hdb drives.
Any ideas how I can solve this problem??
Hi Chuck, I don't know what the default block size is for dd, but maybe you could try adding "bs=512" to the dd arguments, so that you're copying on sector boundaries. I can't explain why this would help (if it does), its just a hunch. :) Also, maybe you could you turn off DMA to one or both drives before doing the dd. "hdparm -d0 ..." or something like that. -Jamie
On Wed, Nov 22, 2006 at 11:04:14AM -0500, Chuck Noyes wrote:
I booted up the 5.0 KNOPPIX CD and tried dd if=/dev/hda of=/dev/hdb. There were no error messages and after about 30 minutes the 'dd' finished. However from KNOPPIX, I can't mount the new drive. the mount command (sudo mount -t ntfs /dev/hdb1 /media/hdb1) fails with:
Are you sure the copy completed all the way through the entire disk? dd will stop after errors unless you pass certain options: dd conv=noerror,sync Maybe you can try using "ddrescue" which will continue after errors and be smarter about copying blocks around errors: http://www.gnu.org/software/ddrescue/ddrescue.html
On Wed, 22 Nov 2006 12:13:17 -0500 Chuck Anderson <cra@WPI.EDU> wrote:
On Wed, Nov 22, 2006 at 11:04:14AM -0500, Chuck Noyes wrote:
I booted up the 5.0 KNOPPIX CD and tried dd if=/dev/hda of=/dev/hdb. There were no error messages and after about 30 minutes the 'dd' finished. However from KNOPPIX, I can't mount the new drive. the mount command (sudo mount -t ntfs /dev/hdb1 /media/hdb1) fails with:
Are you sure the copy completed all the way through the entire disk? dd will stop after errors unless you pass certain options:
dd conv=noerror,sync
Maybe you can try using "ddrescue" which will continue after errors and be smarter about copying blocks around errors:
http://www.gnu.org/software/ddrescue/ddrescue.html
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
I did get it working!! The command I used was: "sudo dd if=/dev/hda of=/dev/hdb bs=512 conv=noerror,sync" This worked perfectly. I now have a duplicate NTFS drive that I can mount from KNOPPIX and Linux. I can also run Win2k from when I need to (not very often). Thanks to Chuck A. and Jamie G. for their help. -- -Chuck
participants (4)
-
Brett Russ
-
Chuck Anderson
-
Chuck Noyes
-
Jamie Guinan