LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-16-2007, 09:24 AM   #1
yys2000
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Rep: Reputation: 0
Question dd "Input/output error"


Hi:

I am using dd command to copy a compactflash card (64M):
Put the CF card to card reader then insert it to the laptop USB port.
Then use the command to copy whole CF card to local hard drive:
dd if=/dev/sdb of=/tmp/CFtmp bs=64M count=100

I got the error msg:
dd: reading '/dev/sdb/:Input/output error
0+1 records in
0+1 records out
64192512 bytes (64 MB) copies, 83.3284 seconds, 780 kb/s

thx
 
Old 08-16-2007, 09:30 AM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Setting the bs value to 64M means that you only need a count of 1, not 100. At the moment, dd's trying to read 64MB of data from the compact flash card 100 times. That's why it complains about there being no more data to copy (Input/output error).

I'd recommend not setting bs to 64M in case there's a problem, in which case it's generally considered better to have smaller blocks.
 
Old 08-16-2007, 10:58 AM   #3
yys2000
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Cool

Quote:
Originally Posted by pwc101 View Post
Setting the bs value to 64M means that you only need a count of 1, not 100. At the moment, dd's trying to read 64MB of data from the compact flash card 100 times. That's why it complains about there being no more data to copy (Input/output error).

I'd recommend not setting bs to 64M in case there's a problem, in which case it's generally considered better to have smaller blocks.
Thx!
You are right.
So I think I can use the default values:
dd if=/dev/sdb of=/tmp/CFtmp

The error msg just gone.
 
Old 08-16-2007, 11:02 AM   #4
yys2000
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Talking

BTW, how can I get rid of DD output msg?
125440+0 records in
125440+0 records out
64255280 bytes (64M) copies, 12.2689 seconds, 5.2 MB/s


I just want to run dd quitely.
 
Old 08-16-2007, 11:07 AM   #5
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
In bash:
Code:
dd if=/dev/sdb of=/tmp/CFtmp &> /dev/null
 
Old 08-16-2007, 12:33 PM   #6
yys2000
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by pwc101 View Post
In bash:
Code:
dd if=/dev/sdb of=/tmp/CFtmp &> /dev/null
Thx!
It works.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cifs "mount error 5 = Input/output error" but smbfs works! humbletech99 Linux - Networking 36 12-18-2019 02:59 AM
"/usr/bin/ls: reading directory .: Input/output error" DiZi Slackware 15 07-13-2008 10:03 AM
"Input/output error" on files at end of CD mfeat Linux - Software 2 11-23-2005 02:01 PM
open office "input/output error" saving to smb share PK2K Linux - Software 6 03-09-2005 01:30 AM
Linux 2.4.20-8 "input/output error" seabird505 Linux - Newbie 2 01-22-2005 05:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration