LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 11-13-2010, 05:09 PM   #1
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 316

Rep: Reputation: 49
External USB drive - mkfs hangs


Hi all, I have a 1TB external USB drive that I'm having a lot of trouble with.

First I created a 500G partition, then formatted it with ext3. That went as expected.

Then I tried to copy a large (~50G) archive to it, and at about 13G it just stopped. I was using "watch" to view the progress, and it just stopped suddenly. I left it for quite a while, to see if it was actually doing something, just slowly, but nothing.

I tried to kill the copy command, but it wouldn't die. I killed the parent processes, and it just kept moving up the process tree until init was its parent. I tried rebooting.. I got the message "system is going down for reboot now", then the first few messages of the reboot process, and then it just stopped at "unmounting local filesystems". Again, I left it for a while, nothing. I ended up hard booting it.

After rebooting, I recreated the partition, then tried formatting it. This time it started writing inode tables, then just stopped at a certain point. I think at 133/4001. Again, I left it for a while and it didn't move.

Again, I tried killing the process and it moved up the tree until init was its parent. Rebooting hung at the same place, and again had to hard boot it.

This time I deleted the partition and tried creating a small partition - 500M. mkfs formatted it as expected, and I was able to mount and write to the partition.

I deleted the small partition, and tried creating a larger one - 100G this time. fdisk created the partition just fine (and did not complain or report any errors through this whole process), but again mkfs gets stuck.. this time at 34/801 inode tables. I haven't been timing it, but I want to say it's been at least 10 - 15 minutes.

dmesg reports some drive errors, but I'm not sure what they mean:

Code:
	[matt@hopper] $ dmesg | grep sdb
sd 8:0:0:0: [sdb] 1952151552 512-byte hardware sectors: (999 GB/930 GiB)
sd 8:0:0:0: [sdb] Write Protect is off
sd 8:0:0:0: [sdb] Mode Sense: 23 00 10 00
sd 8:0:0:0: [sdb] Assuming drive cache: write through
sd 8:0:0:0: [sdb] 1952151552 512-byte hardware sectors: (999 GB/930 GiB)
sd 8:0:0:0: [sdb] Write Protect is off
sd 8:0:0:0: [sdb] Mode Sense: 23 00 10 00
sd 8:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 8:0:0:0: [sdb] Attached SCSI disk
sd 8:0:0:0: [sdb] 1952151552 512-byte hardware sectors: (999 GB/930 GiB)
sd 8:0:0:0: [sdb] Write Protect is off
sd 8:0:0:0: [sdb] Mode Sense: 23 00 10 00
sd 8:0:0:0: [sdb] Assuming drive cache: write through
 sdb:
sd 8:0:0:0: [sdb] 1952151552 512-byte hardware sectors: (999 GB/930 GiB)
sd 8:0:0:0: [sdb] Write Protect is off
sd 8:0:0:0: [sdb] Mode Sense: 23 00 10 00
sd 8:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
EXT3 FS on sdb1, internal journal
sd 8:0:0:0: [sdb] 1952151552 512-byte hardware sectors: (999 GB/930 GiB)
sd 8:0:0:0: [sdb] Write Protect is off
sd 8:0:0:0: [sdb] Mode Sense: 23 00 10 00
sd 8:0:0:0: [sdb] Assuming drive cache: write through
 sdb:
sd 8:0:0:0: [sdb] 1952151552 512-byte hardware sectors: (999 GB/930 GiB)
sd 8:0:0:0: [sdb] Write Protect is off
sd 8:0:0:0: [sdb] Mode Sense: 23 00 10 00
sd 8:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 8:0:0:0: [sdb] Unhandled sense code
sd 8:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 8:0:0:0: [sdb] Sense Key : 0x4 [current] 
sd 8:0:0:0: [sdb] ASC=0x44 ASCQ=0x0
end_request: I/O error, dev sdb, sector 1321879
Buffer I/O error on device sdb1, logical block 165227
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165228
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165229
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165230
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165231
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165232
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165233
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165234
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165235
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165236
lost page write due to I/O error on sdb1
sd 8:0:0:0: [sdb] Unhandled sense code
sd 8:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 8:0:0:0: [sdb] Sense Key : 0x4 [current] 
sd 8:0:0:0: [sdb] ASC=0x44 ASCQ=0x0
end_request: I/O error, dev sdb, sector 1322119
sd 8:0:0:0: [sdb] Unhandled sense code
sd 8:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 8:0:0:0: [sdb] Sense Key : 0x4 [current] 
sd 8:0:0:0: [sdb] ASC=0x44 ASCQ=0x0
end_request: I/O error, dev sdb, sector 1322359
Buffer I/O error on device sdb1, logical block 165287
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165288
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165289
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165290
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165291
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165292
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165293
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165294
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165295
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165296
lost page write due to I/O error on sdb1
sd 8:0:0:0: [sdb] Unhandled sense code
sd 8:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 8:0:0:0: [sdb] Sense Key : 0x4 [current] 
sd 8:0:0:0: [sdb] ASC=0x44 ASCQ=0x0
end_request: I/O error, dev sdb, sector 1322599
sd 8:0:0:0: [sdb] Unhandled sense code
sd 8:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 8:0:0:0: [sdb] Sense Key : 0x4 [current] 
sd 8:0:0:0: [sdb] ASC=0x44 ASCQ=0x0
end_request: I/O error, dev sdb, sector 1322831
Buffer I/O error on device sdb1, logical block 165346
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165347
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165348
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165349
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165350
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165351
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165352
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165353
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165354
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 165355
lost page write due to I/O error on sdb1
sd 8:0:0:0: [sdb] Unhandled sense code
sd 8:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 8:0:0:0: [sdb] Sense Key : 0x4 [current] 
sd 8:0:0:0: [sdb] ASC=0x44 ASCQ=0x0
end_request: I/O error, dev sdb, sector 1323071
sd 8:0:0:0: [sdb] Unhandled sense code
sd 8:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 8:0:0:0: [sdb] Sense Key : 0x4 [current] 
sd 8:0:0:0: [sdb] ASC=0x44 ASCQ=0x0
end_request: I/O error, dev sdb, sector 1572943
Buffer I/O error on device sdb1, logical block 196610
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196611
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196612
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196613
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196614
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196615
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196616
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196617
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196618
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196619
lost page write due to I/O error on sdb1
sd 8:0:0:0: [sdb] Unhandled sense code
sd 8:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 8:0:0:0: [sdb] Sense Key : 0x4 [current] 
sd 8:0:0:0: [sdb] ASC=0x44 ASCQ=0x0
end_request: I/O error, dev sdb, sector 1573183
sd 8:0:0:0: [sdb] Unhandled sense code
sd 8:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 8:0:0:0: [sdb] Sense Key : 0x4 [current] 
sd 8:0:0:0: [sdb] ASC=0x44 ASCQ=0x0
end_request: I/O error, dev sdb, sector 1573423
Buffer I/O error on device sdb1, logical block 196670
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196671
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196672
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196673
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196674
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196675
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196676
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196677
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196678
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196679
lost page write due to I/O error on sdb1
sd 8:0:0:0: [sdb] Unhandled sense code
sd 8:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 8:0:0:0: [sdb] Sense Key : 0x4 [current] 
sd 8:0:0:0: [sdb] ASC=0x44 ASCQ=0x0
end_request: I/O error, dev sdb, sector 1573663
sd 8:0:0:0: [sdb] Unhandled sense code
sd 8:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 8:0:0:0: [sdb] Sense Key : 0x4 [current] 
sd 8:0:0:0: [sdb] ASC=0x44 ASCQ=0x0
end_request: I/O error, dev sdb, sector 1573903
Buffer I/O error on device sdb1, logical block 196730
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196731
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196732
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196733
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196734
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196735
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196736
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196737
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196738
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196739
lost page write due to I/O error on sdb1
sd 8:0:0:0: [sdb] Unhandled sense code
sd 8:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 8:0:0:0: [sdb] Sense Key : 0x4 [current] 
sd 8:0:0:0: [sdb] ASC=0x44 ASCQ=0x0
end_request: I/O error, dev sdb, sector 1574143
sd 8:0:0:0: [sdb] Unhandled sense code
sd 8:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 8:0:0:0: [sdb] Sense Key : 0x4 [current] 
sd 8:0:0:0: [sdb] ASC=0x44 ASCQ=0x0
end_request: I/O error, dev sdb, sector 1574383
Buffer I/O error on device sdb1, logical block 196790
lost page write due to I/O error on sdb1
sd 8:0:0:0: [sdb] Unhandled sense code
sd 8:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 8:0:0:0: [sdb] Sense Key : 0x4 [current] 
sd 8:0:0:0: [sdb] ASC=0x44 ASCQ=0x0
end_request: I/O error, dev sdb, sector 1574391
Buffer I/O error on device sdb1, logical block 196791
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196792
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196793
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196794
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196795
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196796
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196797
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196798
lost page write due to I/O error on sdb1
Buffer I/O error on device sdb1, logical block 196799
lost page write due to I/O error on sdb1
I really hope this isn't a problem with the drive. It is a warranty replacement and this is the first time I've tried to use it

Last edited by mattca; 11-13-2010 at 05:50 PM.
 
Old 11-13-2010, 05:23 PM   #2
aluser
Member
 
Registered: Mar 2004
Location: Massachusetts
Distribution: Debian
Posts: 557

Rep: Reputation: 42
my money's on bad hardware, sorry dude

You could try the usual hardware rituals like replacing cables, checking for cooling, using lucky charms or voodoo dolls..
 
Old 11-13-2010, 05:25 PM   #3
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Try it on a different computer. It could be the motherboard's USB controller.

But I agree with aluser. Most likely the drive is broken.
 
1 members found this post helpful.
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB 2.0 drive hangs when put on the same controller with USB 1.1 devices lpwevers Linux - Hardware 0 01-25-2009 01:41 PM
Gentoo AMD64 on external drive hangs at INIT shuuhen Linux - General 1 01-26-2007 09:48 AM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
External usb 2 hard drive access hangs !!! alxp Linux - Hardware 0 09-30-2004 07:44 AM
XS Drive II external USB hard drive/card reader max74 Linux - Hardware 7 10-21-2003 10:41 PM


All times are GMT -5. The time now is 09: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