LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   IO error with dd command (https://www.linuxquestions.org/questions/linux-newbie-8/io-error-with-dd-command-124385/)

devershetty 12-09-2003 08:15 PM

IO error with dd command
 
Hi guys,

i have problem like this
my fdisk shows

# /sbin/fdisk -l /dev/hda

Disk /dev/hda: 20.4 GB, 20416757760 bytes
255 heads, 63 sectors/track, 2482 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 144 1052257+ 83 Linux
/dev/hda3 145 275 1052257+ 83 Linux
/dev/hda4 276 2482 17727727+ f Win95 Ext'd (LBA)
/dev/hda5 276 1058 6289416 83 Linux
/dev/hda6 1059 1580 4192933+ 83 Linux
/dev/hda7 1581 1645 522081 82 Linux swap
/dev/hda8 1646 1707 497983+ 8e Linux LVM
/dev/hda9 1708 1832 1004031 83 Linux
/dev/hda10 1833 1957 1004031 83 Linux
/dev/hda11 1958 2082 1004031 83 Linux
/dev/hda12 2083 2207 1004031 83 Linux
/dev/hda13 2208 2482 2208906 8e Linux LVM


when i do dd as follows , I get IO error.

# dd if=/dev/hda9 of=/dev/hda10 bs=512
dd: reading `/dev/hda9': Input/output error
2008056+0 records in
2008056+0 records out

I think the problem of this error is somewhere '+' in partitioning.

any help I greatly appreciate.


__________________
-Kotresh.

jailbait 12-09-2003 09:23 PM

"dd: reading `/dev/hda9': Input/output error"

There may be a bad block on /dev/hda9. umount /dev/hda9 and run fsck.fstype against it, where fstype is the filesystem type. For example:

umount /dev/hda9
fsck.ext2 /dev/hda9


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites


All times are GMT -5. The time now is 05:05 AM.