Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old April 3rd, 2008   #1
rickocop
First Cup of Ubuntu
 
Join Date: Mar 2008
Location: Manchester, UK
Beans: 5
Ubuntu 7.10 Gutsy Gibbon
dd input/output error

hi I'm trying to create an image of a dvd, but struggling with dd

when I try this:

Code:
user@rickslaptop:~$ dd if=/dev/hda of=./fandf.iso 

dd: reading `/dev/dvd': Input/output error
127672+0 records in
127672+0 records out
65368064 bytes (65 MB) copied, 1.76878 seconds, 37.0 MB/s
I have also tried with sudo and actually as root.


here is the contents of my dmesg:
Quote:
[ 5465.252000] hda: command error: status=0x51 { DriveReady SeekComplete Error }
[ 5465.252000] hda: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
[ 5465.252000] ide: failed opcode was: unknown
[ 5465.252000] hda: error code: 0x70 sense_key: 0x05 asc: 0x6f ascq: 0x03
[ 5465.252000] end_request: I/O error, dev hda, sector 127712
[ 5465.252000] printk: 16 messages suppressed.
[ 5465.252000] Buffer I/O error on device hda, logical block 15964
[ 5465.252000] Buffer I/O error on device hda, logical block 15965
[ 5465.252000] Buffer I/O error on device hda, logical block 15966
[ 5465.252000] Buffer I/O error on device hda, logical block 15967
[ 5465.252000] Buffer I/O error on device hda, logical block 15968
[ 5465.252000] Buffer I/O error on device hda, logical block 15969
[ 5465.252000] Buffer I/O error on device hda, logical block 15970
[ 5465.252000] Buffer I/O error on device hda, logical block 15971
[ 5465.252000] Buffer I/O error on device hda, logical block 15972
[ 5465.252000] Buffer I/O error on device hda, logical block 15973
[ 5465.284000] hda: command error: status=0x51 { DriveReady SeekComplete Error }
[ 5465.284000] hda: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
[ 5465.284000] ide: failed opcode was: unknown
[ 5465.284000] hda: error code: 0x70 sense_key: 0x05 asc: 0x6f ascq: 0x03
[ 5465.284000] end_request: I/O error, dev hda, sector 127968
rickocop is offline   Reply With Quote
Old April 3rd, 2008   #2
mc4man
Ubuntu addict and loving it
 
Join Date: Jun 2007
Beans: 4,169
Re: dd input/output error

The dvd has structure protection which in most cases includes unreadable sectors - the dd command has no means to skip these sectors
mc4man is offline   Reply With Quote
Old April 3rd, 2008   #3
cdenley
Chocolate-Covered Ubuntu Beans
 
Join Date: Dec 2006
Location: Chicago
Beans: 2,279
Re: dd input/output error

Quote:
Originally Posted by mc4man View Post
The dvd has structure protection which in most cases includes unreadable sectors - the dd command has no means to skip these sectors
The disc is probably scratched or dirty. This command should replace bad blocks with nulls.
Code:
dd if=/dev/hda of=./fandf.iso conv=noerror,sync
Of course, the image wouldn't be completely functional.
cdenley is offline   Reply With Quote
Old April 4th, 2008   #4
mc4man
Ubuntu addict and loving it
 
Join Date: Jun 2007
Beans: 4,169
Re: dd input/output error

Quote:
The disc is probably scratched or dirty. This command should replace bad blocks with nulls.
if what the O.P. was was dumping was a commercial dvd then the errors are more likely due to structure protection than physical damage or stamping defects. In any event using dd on a less than pristine disk is ill advised and in the case of S.P. disks a waste of time even with above posted command. For example on a known S.P. disk -
Straight up dd
Code:
 dd if=/dev/scd1 of=cd.iso
dd: reading `/dev/scd1': Input/output error
1053920+0 records in
1053920+0 records out
539607040 bytes (540 MB) copied, 80.6629 seconds, 6.7 MB/s
with added command - clipped and aborted after 10 min.
Code:
dd if=/dev/scd1 of=cd.iso conv=noerror,sync
dd: reading `/dev/scd1': Input/output error
898784+0 records in
898784+0 records out
460177408 bytes (460 MB) copied, 59.7194 seconds, 7.7 MB/s
dd: reading `/dev/scd1': Input/output error
898784+1 records in
898785+0 records out
460177920 bytes (460 MB) copied, 59.7196 seconds, 7.7 MB/s
...........................................
469167616 bytes (469 MB) copied, 686.307 seconds, 684 kB/s
dd: reading `/dev/scd1': Input/output error
905816+10528 records in
916344+0 records out
469168128 bytes (469 MB) copied, 686.4 seconds, 684 kB/s
905816+10529 records in
916344+0 records out
469168128 bytes (469 MB) copied, 686.401 seconds, 684 kB/s
better way - took 20 sec. to fast skip @ 16 sectors per block, 1 read retry per block (plus decyrpted)
Code:
Writing to /home/doug/xxxxxx/VIDEO_TS/VIDEO_TS.BUP 
  28kB of   28kB written
[Info] 
Writing to /home/doug/xxxxxxx/VIDEO_TS/VIDEO_TS.IFO 
  28kB of   28kB written
[Info] 
Writing to /home/doug/xxxxxx/VIDEO_TS/VIDEO_TS.VOB 
 438MB of  438MB written ( 100.0% )  
[Info] 
Writing to /home/doug/xxxxxx/VIDEO_TS/VTS_01_0.BUP 
  86kB of   86kB written
[Info] 
Writing to /home/doug/xxxxxx/VIDEO_TS/VTS_01_0.IFO 
  86kB of   86kB written
[Info] 
Writing to /home/doug/xxxxxx/VIDEO_TS/VTS_01_0.VOB 
  74MB of   75MB written ( 100.0% ) 
[Info] 
Writing to /home/doug/xxxxxxxxxxxx/VTS_01_1.VOB 
[Warn] Had to skip 0 blocks!  [Warn] Had to skip 1 blocks!  [Warn] Had to skip 2 blocks!  [Warn] Had to skip 3 blocks!  [Warn] Had to skip 4 blocks!     1MB of [Warn] Had to skip 5 blocks!  [Warn] Had to skip 6 blocks!  [Warn] Had to skip 7 blocks! 1024MB of 1024MB written ( 100.0% )
If your not prepared or able to fix issues created by bad sectors, ie. adjust vob pointers, remove unreferenced cells ect., then in the case of S.P. disks using something like k9copy would be best bet
In addition all dvd drives will slow down when encountering read errors, some can regain close to full speed when the # of or time spent getting past is limited

Last edited by mc4man; April 4th, 2008 at 12:48 AM..
mc4man is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:30 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry