LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-10-2008, 10:07 AM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,266

Rep: Reputation: 53
ls: reading directory .: Input/output error when copying data to new drive


I get this error when coping data to a new drive. It will backup about 20Gig, then the copy will stop and I can't access anything on the backup drive, even a simple ls returns this error:
ls: reading directory .: Input/output error

That was on a brand new drive, I tried it with a second new drive, same error.

What could be causing that?
 
Old 03-10-2008, 10:41 AM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,176

Rep: Reputation: 54
Is the new drive formatted, if so what filesystem and partitions? Have you checked how much free space is available before starting to copy? Try running
Code:
df -h
after the drive is mounted to see what partitions are mounted and what free space is available.
 
Old 03-10-2008, 11:39 AM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,266

Original Poster
Rep: Reputation: 53
Yes, ext3, lots of space free:
/dev/hdd1 294G 19G 261G 7% /backup
 
Old 03-10-2008, 12:43 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,988
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
check the output of dmesg for (hopefully) more detail. I had
issues like that when we first got a MoBo with a brand-new
nvidia chipset. Went away with a newer kernel.



Cheers,
Tink
 
Old 03-10-2008, 02:12 PM   #5
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,266

Original Poster
Rep: Reputation: 53
This is what dmesg is saying:
printk: 21 messages suppressed.
Buffer I/O error on device fd0, logical block 0
end_request: I/O error, dev fd0, sector 0
Buffer I/O error on device fd0, logical block 0
end_request: I/O error, dev hdd, sector 625137215
Buffer I/O error on device hdd1, logical block 78142144
end_request: I/O error, dev hdd, sector 625137215
Buffer I/O error on device hdd1, logical block 78142144
end_request: I/O error, dev hdd, sector 223
Buffer I/O error on device hdd1, logical block 20
end_request: I/O error, dev hdd, sector 231
Buffer I/O error on device hdd1, logical block 21
end_request: I/O error, dev hdd, sector 239
Buffer I/O error on device hdd1, logical block 22
end_request: I/O error, dev hdd, sector 247
Buffer I/O error on device hdd1, logical block 23
end_request: I/O error, dev hdd, sector 255
end_request: I/O error, dev hdd, sector 263
end_request: I/O error, dev hdd, sector 271
end_request: I/O error, dev hdd, sector 279
end_request: I/O error, dev hdd, sector 287
end_request: I/O error, dev hdd, sector 295
end_request: I/O error, dev hdd, sector 303
end_request: I/O error, dev hdd, sector 311
end_request: I/O error, dev hdd, sector 625142272
end_request: I/O error, dev hdd, sector 625142272
end_request: I/O error, dev hdd, sector 32
end_request: I/O error, dev hdd, sector 40
end_request: I/O error, dev hdd, sector 48
end_request: I/O error, dev hdd, sector 56
end_request: I/O error, dev hdd, sector 0
end_request: I/O error, dev hdd, sector 12375
EXT3-fs error (device hdd1): ext3_find_entry: reading directory #2 offset 0
end_request: I/O error, dev hdd, sector 12375
EXT3-fs error (device hdd1): ext3_find_entry: reading directory #2 offset 0
 
Old 03-10-2008, 03:43 PM   #6
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,176

Rep: Reputation: 54
This looks like a damaged disk drive, but it is quite odd that you would see the same error on two new drives.
 
Old 03-10-2008, 03:57 PM   #7
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,266

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by m_yates View Post
This looks like a damaged disk drive, but it is quite odd that you would see the same error on two new drives.
Yep, pretty unlikely especially stopping after copying almost the exact same number of megs.

Im going to try a new drive, new kernel, new cable, and new power and sata port.
 
Old 03-13-2008, 07:34 PM   #8
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,266

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by Tinkster View Post
check the output of dmesg for (hopefully) more detail. I had
issues like that when we first got a MoBo with a brand-new
nvidia chipset. Went away with a newer kernel.



Cheers,
Tink
Thanks its working now, and I believe it was the kernel that was causing it to fail. I just backed up 300GB to the drive.
 
  


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
"/usr/bin/ls: reading directory .: Input/output error" DiZi Slackware 15 07-13-2008 10:03 AM
dd: reading `/dev/cdrom': Input/output error jimdaworm Linux - Software 46 10-25-2006 08:43 PM
cp - error reading /mnt/cdrom/mpegav/avseq01.dat input/output error manishsingh4u Linux - General 2 10-17-2005 05:02 AM
Input/output error when reading from CD-RW drive vrooje Linux - Newbie 2 02-17-2004 11:17 PM
input/output error copying from cdrom to hard drive aredshaw Linux - Hardware 4 07-16-2002 02:35 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration