You are not logged in.

#1 2011-10-29 15:30:30

raavas
Member
Registered: 2011-10-21
Posts: 86

New USB hard drive problems - errors present, drive itself works ok

I bought a new USB hard drive and it works fine on another Windows computer. When I first plugged it into my Arch computer, it was visible in thunar, but was somehow "read only" and the access rights could not be changed either in thunar or terminal. Then I updraded to latest version of udev and now it doesn't appear on thunar and my dmesg gives the following results:

[  487.896651] usb 1-7: reset high speed USB device number 6 using ehci_hcd
[  488.139974] usb 1-7: reset high speed USB device number 6 using ehci_hcd
[  488.383321] usb 1-7: reset high speed USB device number 6 using ehci_hcd
[  488.629995] usb 1-7: reset high speed USB device number 6 using ehci_hcd
[  488.873314] usb 1-7: reset high speed USB device number 6 using ehci_hcd
[  489.116650] usb 1-7: reset high speed USB device number 6 using ehci_hcd
[  489.241144] sd 6:0:0:0: [sdb] Unhandled error code
[  489.241151] sd 6:0:0:0: [sdb]  Result: hostbyte=0x07 driverbyte=0x00
[  489.241156] sd 6:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 00 08 08 00 00 08 00
[  489.241165] end_request: I/O error, dev sdb, sector 2056
[  489.241171] Buffer I/O error on device sdb1, logical block 1
[  489.353312] usb 1-7: reset high speed USB device number 6 using ehci_hcd
[  489.596645] usb 1-7: reset high speed USB device number 6 using ehci_hcd
[  489.839979] usb 1-7: reset high speed USB device number 6 using ehci_hcd
[  490.083325] usb 1-7: reset high speed USB device number 6 using ehci_hcd
[  490.319993] usb 1-7: reset high speed USB device number 6 using ehci_hcd
[  490.559980] usb 1-7: reset high speed USB device number 6 using ehci_hcd
[  490.684966] sd 6:0:0:0: [sdb] Unhandled error code
[  490.684973] sd 6:0:0:0: [sdb]  Result: hostbyte=0x07 driverbyte=0x00
[  490.684978] sd 6:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 00 08 08 00 00 08 00
[  490.684987] end_request: I/O error, dev sdb, sector 2056
[  490.684993] Buffer I/O error on device sdb1, logical block 1
[  589.850247] usb 1-7: USB disconnect, device number 6
[  613.486626] usb 1-8: new high speed USB device number 7 using ehci_hcd
[  613.613264] scsi7 : usb-storage 1-8:1.0
[  614.617261] scsi 7:0:0:0: Direct-Access        Mass  Storage Device        PQ: 0 ANSI: 0
[  614.617534] sd 7:0:0:0: Attached scsi generic sg3 type 0
[  614.619085] sd 7:0:0:0: [sdb] 156301486 512-byte logical blocks: (80.0 GB/74.5 GiB)
[  614.620399] sd 7:0:0:0: [sdb] Write Protect is off
[  614.620407] sd 7:0:0:0: [sdb] Mode Sense: 03 00 00 00
[  614.620410] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[  614.621767] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[  614.638397]  sdb: sdb1
[  614.640237] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[  614.640245] sd 7:0:0:0: [sdb] Attached SCSI disk
[  629.640849] usb 1-8: USB disconnect, device number 7
[ 1021.476593] usb 1-7: new high speed USB device number 8 using ehci_hcd
[ 1021.603292] scsi8 : usb-storage 1-7:1.0
[ 1022.607197] scsi 8:0:0:0: Direct-Access        Mass  Storage Device        PQ: 0 ANSI: 0
[ 1022.607474] sd 8:0:0:0: Attached scsi generic sg3 type 0
[ 1022.609021] sd 8:0:0:0: [sdb] 156301486 512-byte logical blocks: (80.0 GB/74.5 GiB)
[ 1022.610329] sd 8:0:0:0: [sdb] Write Protect is off
[ 1022.610337] sd 8:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 1022.610341] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[ 1022.611703] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[ 1022.726599] usb 1-7: reset high speed USB device number 8 using ehci_hcd
[ 1022.966596] usb 1-7: reset high speed USB device number 8 using ehci_hcd
[ 1023.203261] usb 1-7: reset high speed USB device number 8 using ehci_hcd
[ 1023.439940] usb 1-7: reset high speed USB device number 8 using ehci_hcd
[ 1023.568304]  sdb: sdb1
[ 1023.571406] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[ 1023.571414] sd 8:0:0:0: [sdb] Attached SCSI disk
[ 1026.193262] usb 1-7: reset high speed USB device number 8 using ehci_hcd
[ 1028.369928] usb 1-7: reset high speed USB device number 8 using ehci_hcd
[ 1030.266605] usb 1-7: reset high speed USB device number 8 using ehci_hcd
[ 1032.059932] usb 1-7: reset high speed USB device number 8 using ehci_hcd
[ 1034.339924] usb 1-7: reset high speed USB device number 8 using ehci_hcd
[ 1034.839939] usb 1-7: reset high speed USB device number 8 using ehci_hcd
[ 1035.076601] usb 1-7: reset high speed USB device number 8 using ehci_hcd
[ 1035.201867] sd 8:0:0:0: [sdb] Unhandled error code
[ 1035.201873] sd 8:0:0:0: [sdb]  Result: hostbyte=0x07 driverbyte=0x00
[ 1035.201878] sd 8:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 09 50 f8 00 00 00 08 00
[ 1035.201887] end_request: I/O error, dev sdb, sector 156301312
[ 1035.201893] Buffer I/O error on device sdb, logical block 78150656
[ 1035.201898] Buffer I/O error on device sdb, logical block 78150657
[ 1035.201901] Buffer I/O error on device sdb, logical block 78150658
[ 1035.201904] Buffer I/O error on device sdb, logical block 78150659
[ 1035.316592] usb 1-7: reset high speed USB device number 8 using ehci_hcd
[ 1035.441333] usb 1-7: device firmware changed
[ 1035.441365] usb 1-7: USB disconnect, device number 8
[ 1035.442427] sd 8:0:0:0: [sdb] Unhandled error code
[ 1035.442434] sd 8:0:0:0: [sdb]  Result: hostbyte=0x01 driverbyte=0x00
[ 1035.442439] sd 8:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 09 50 f8 00 00 00 08 00
[ 1035.442447] end_request: I/O error, dev sdb, sector 156301312
[ 1035.442453] Buffer I/O error on device sdb, logical block 78150656
[ 1035.442458] Buffer I/O error on device sdb, logical block 78150657
[ 1035.442460] Buffer I/O error on device sdb, logical block 78150658
[ 1035.442463] Buffer I/O error on device sdb, logical block 78150659
[ 1035.448140] Buffer I/O error on device sdb, logical block 2048
[ 1035.556608] usb 1-7: new high speed USB device number 9 using ehci_hcd
[ 1035.723253] usb 1-7: device descriptor read/64, error -71
[ 1035.893606] hub 1-0:1.0: unable to enumerate USB device on port 7
[ 1036.139926] usb 5-1: new full speed USB device number 2 using uhci_hcd
[ 1036.256591] usb 5-1: device descriptor read/64, error -71
[ 1036.476629] usb 5-1: device descriptor read/64, error -71
[ 1036.686584] usb 5-1: new full speed USB device number 3 using uhci_hcd
[ 1036.803279] usb 5-1: device descriptor read/64, error -71
[ 1037.023281] usb 5-1: device descriptor read/64, error -71
[ 1037.233249] usb 5-1: new full speed USB device number 4 using uhci_hcd
[ 1037.643252] usb 5-1: device not accepting address 4, error -71
[ 1037.749937] usb 5-1: new full speed USB device number 5 using uhci_hcd
[ 1038.163252] usb 5-1: device not accepting address 5, error -71
[ 1038.163276] hub 5-0:1.0: unable to enumerate USB device on port 1

I tried to plug it in after reboot as well as before reboot. When plugged in before reboot, udev failed to load.

Any ideas on how to proceed?

Offline

#2 2011-10-29 15:34:57

raavas
Member
Registered: 2011-10-21
Posts: 86

Re: New USB hard drive problems - errors present, drive itself works ok

Update: now when plugged in pre-reboot, udev works fine, the drive mounts and is visible on thinar. How do I get the read/write access? It says "read-only file system".

Offline

#3 2011-10-29 15:45:32

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: New USB hard drive problems - errors present, drive itself works ok

Offline

#4 2011-10-29 19:31:02

raavas
Member
Registered: 2011-10-21
Posts: 86

Re: New USB hard drive problems - errors present, drive itself works ok

Thanks, we are making progress. However, now everything looks fine from the start, but when I tried to create a folder, an error appeared "no such folder" and the drive disappeared from thunar as if unmounted and started making a clicking noise (similar to what was mentioned in another thread here).

I guess this is a further configuration issue?

Offline

#5 2011-10-30 10:08:18

raavas
Member
Registered: 2011-10-21
Posts: 86

Re: New USB hard drive problems - errors present, drive itself works ok

Another update: I managed to get the drive corrupted and had to format it in windows, this time to NTFS (I think it was FAT32 before). That worked for a short while, but when I started copying files onto the drive, it crashed again leading to another formatting with windows.

Any ideas on how to get this more reliable?

Offline

#6 2011-10-30 11:24:53

BSOD666
Member
From: WA
Registered: 2011-10-30
Posts: 32

Re: New USB hard drive problems - errors present, drive itself works ok

I really can't to hear the results for this. My dad has a Dell Desktop running on Windows Vista which he doesn't want me to get rid of or install Linux on the same HDD (Which is reasonable because it is a 80GB drive). I tried to install Arch x64 on my 750 ExHDD and got Error 15. I am assuming this is the reason. I wish you godspeed in finding the issue. From there I can replace Ubuntu 11.10 on my netbook after fooling around with Arch on the desktop.

Offline

#7 2011-10-30 13:49:50

raavas
Member
Registered: 2011-10-21
Posts: 86

Re: New USB hard drive problems - errors present, drive itself works ok

After another re-formatting, I tried again to copy stuff on the drive. It failed. This time I copied the error message here:

Error mounting: mount exited with exit code 13: ntfs_mst_post_read_fixup: magic: 0x43425355  size: 1024  usa_ofs: 1406  usa_count: 65535: Invalid argument
Record 5 has no FILE magic (0x43425355)
Failed to mount '/dev/sdb1': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.

I looked into the dmraid wiki page and it looks tricky. Does anyone have a solution?

Offline

#8 2011-10-30 14:24:17

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: New USB hard drive problems - errors present, drive itself works ok

A few answers may help others help you.

Who is the manufacturer of the 750 ExHDD?

Is the drive USB 3 or USB 2?  What about the USB port on the computer?

Do similar copy operations on a Windows system result in similar errors?  Have you tried 'chkdsk /f' on a Windows machine? 

Have you checked the manufacturer's site for their disk utilities and then used those tools?

Offline

#9 2011-10-30 15:10:47

raavas
Member
Registered: 2011-10-21
Posts: 86

Re: New USB hard drive problems - errors present, drive itself works ok

Thanks for the reply!

I don't know the answer to 750 ExHDD manufacturer question.

My drive is a generic manufacturer (bought from ebay) usb 2.0 (it says serial ATA on the cover) drive. It did not come with utilities and if there were any on the drive itself, the drive has been formatted a few times already so those are already lost.

I have never been too sure about the USB ports of my computer. There are a few, but I don't know whether they are 2.0 or older (the computer itself is 6 years old desktop). Is there any way of checking?

Windows copy operations went fine, no errors or issues. Also, the chkdsk /f seems to give all-clear.

Offline

#10 2011-10-30 17:18:43

BSOD666
Member
From: WA
Registered: 2011-10-30
Posts: 32

Re: New USB hard drive problems - errors present, drive itself works ok

raavas wrote:

Thanks for the reply!

I don't know the answer to 750 ExHDD manufacturer question.

My drive is a generic manufacturer (bought from ebay) usb 2.0 (it says serial ATA on the cover) drive. It did not come with utilities and if there were any on the drive itself, the drive has been formatted a few times already so those are already lost.

I have never been too sure about the USB ports of my computer. There are a few, but I don't know whether they are 2.0 or older (the computer itself is 6 years old desktop). Is there any way of checking?

Windows copy operations went fine, no errors or issues. Also, the chkdsk /f seems to give all-clear.

I think he was talking to me buddy haha uh my 750Gig is made by Toshiba, it is a 2.0 USB and same with the desktop. (It is an old Dell Optiplex 320) I am about to head out for breakfast so I will relay you further information later on today. Thank you!

Offline

#11 2011-10-30 23:16:42

BSOD666
Member
From: WA
Registered: 2011-10-30
Posts: 32

Re: New USB hard drive problems - errors present, drive itself works ok

thisoldman wrote:

A few answers may help others help you.

Who is the manufacturer of the 750 ExHDD?

Is the drive USB 3 or USB 2?  What about the USB port on the computer?

Do similar copy operations on a Windows system result in similar errors?  Have you tried 'chkdsk /f' on a Windows machine? 

Have you checked the manufacturer's site for their disk utilities and then used those tools?

My ExHDD: http://goo.gl/Sx9F8 <Just realized that the Adf.ly link makes me look like a douche so I swapped it out with Goo.gl

For some reason, the Hard Drive is not booting on the Desktop despite the BIOS stating "USB" is a bootable option.
Whoops... we had BIOS version 1.1.4, upgraded to 1.1.12 and it booted perfectly fine. The feeling of being ridiculous. I also saw when I downloaded a fresh ISO from Arch that there is now a new bootloader (I was using a CD multiple months old, however installing via network). I tried that in VirtualBox on the Dell and it worked streamlined. Thus, I will snag some DVD's/CD's tomorrow and see if I can't fix this ankle-biter.

I get Error 15: File not found when I attempt to boot into Arch on my Netbook and Error 17 on the Desktop. Hopefully the different bootloader will fix this problem.

Last edited by BSOD666 (2011-10-31 09:38:08)

Offline

#12 2011-10-30 23:36:51

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: New USB hard drive problems - errors present, drive itself works ok

That is a grub error and not a drive error. The thing is each bios/manufacturer seems to deal with usb boot differently, some make the usb drive show up before the internal drives, others seem to make it show up after the internal drives and this seems to get grub confused. I usually solve that by using grub's built-in command line to look for the needed stuff and set it up right. I may be completely wrong though tongue


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#13 2011-10-30 23:43:15

BSOD666
Member
From: WA
Registered: 2011-10-30
Posts: 32

Re: New USB hard drive problems - errors present, drive itself works ok

R00KIE wrote:

I usually solve that by using grub's built-in command line to look for the needed stuff and set it up right. I may be completely wrong though tongue

What command can I use? I am trying to force myself into bash in order to get a fuller understanding of Unix

Offline

#14 2011-10-31 00:11:59

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: New USB hard drive problems - errors present, drive itself works ok

Thank you R00KIE.  I wouldn't have known that.

@raavas,
I would first try booting without the drive plugged in, then connect the drive.  If it automounts, umount it and try to manually mount it from a terminal.

ntfs-3g /dev/sdb1 /media/WHATEVER # Is sdb1 correct?

See if any errors pop up as you use the drive.

A side note:

# hdparm -I /dev/sdX

This will give you the manufacturer and serial number and a whole lot more information.

Last edited by thisoldman (2011-10-31 00:21:19)

Offline

#15 2011-10-31 02:08:16

BSOD666
Member
From: WA
Registered: 2011-10-30
Posts: 32

Re: New USB hard drive problems - errors present, drive itself works ok

thisoldman wrote:

A side note:

# hdparm -I /dev/sdX

This will give you the manufacturer and serial number and a whole lot more information.

What is the command for Ubuntu? Kind of on a netbook without a USB/ExODD sad

Offline

#16 2011-10-31 09:15:08

raavas
Member
Registered: 2011-10-21
Posts: 86

Re: New USB hard drive problems - errors present, drive itself works ok

Okay, some reports on the things attempted: The manual mounting only worked (so far) as root, and when I started to check the contents of the drive, it crashed again. I was able to see a few files that were copied onto the drive on windows for testing purposes before the crash. When mounted as root, file operations were not possible from thunar.
After crash, the error read as follows:

Error stating file '/media/usb-hd': Input/output error

On the hdparm command, I could not get it to work. Here is the error message:

$ sudo hdparm -I /dev/sdb

/dev/sdb:
 HDIO_DRIVE_CMD(identify) failed: Invalid argument

When I used sdb1 instead of sdb with hdparm in terminal, nothing displayed.

Offline

#17 2011-10-31 10:48:14

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: New USB hard drive problems - errors present, drive itself works ok

@BSOD666,
It would be better to start a new thread for your questions.  It's confusing to have two conversations going in one thread.

@raavas,
The root-only permissions are normal once mounted.  That is the default unless you give other options when mounting.

The crashes have me puzzled.  You are using a vanilla kernel?  Have you tried using different connecting cables and different USB ports?

You can look for the USB port disconnecting.  Check dmesg for any USB events with:

dmesg | grep -i usb

Kernel messages can be monitored with:

# tail -f /var/log/messages.log

Last edited by thisoldman (2011-10-31 10:51:23)

Offline

#18 2011-10-31 11:41:34

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: New USB hard drive problems - errors present, drive itself works ok

@raavas: Clicking noise and boot problems, I'd try a different cable, and if it's a 2.5" drive, a Y-cable to give it more power.

@BSOD666: I don't see what your problem has to do with the topic of this thread. Posting it here makes it difficult to follow the discussion and solve raavas' problem. Unless you're sure it's the same problem, it's better to start another thread. In any case, grub error 15 is a very frequent error and a search will probably return the answer.

Last edited by stqn (2011-10-31 15:57:17)

Offline

#19 2011-10-31 14:52:26

raavas
Member
Registered: 2011-10-21
Posts: 86

Re: New USB hard drive problems - errors present, drive itself works ok

I'd better explain what I mean by the crash. When I do any kind of file operations (except create and delete a single folder - this works fine), they work fine for a short while. Then the estimated time indicator usually gives longer and longer time estimate after which the drive 'disappears' from the thunar window as if unmounted. If I try to plug it back in, it results in an error. If I plug it back to windows, it requires a re-format.

@stqn: The drive is 2.5" and I am already using an Y-cable. It is ridiculously slow to do anything if only one end of the Y-section is plugged in. The clicking happens after the "crash".

Thanks for the help so far, I will try the dmesg and tail commands shortly and report back.

Offline

#20 2011-10-31 21:33:05

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: New USB hard drive problems - errors present, drive itself works ok

Have you tried to format the drive in a native linux filesystem, such as ext4? From my experience, anything to do with ntfs on linux is slow and cpu intensive and I would try to avoid using ntfs if at all possible.

On the hdparm issue, try to mount a partition residing on that disk before using hdparm (don't ask me why, I may have dreamed it but I think that sometimes works). You may also be dealing with a usb bridge that needs some quirk that has not been added to the kernel yet, which leads to poor performance and the kind of problems you are experiencing.

One thing I would try to check is the SMART attributes to see if the drive is failing or not, a bad hard disk might also cause what you are experiencing.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#21 2011-11-01 00:32:29

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: New USB hard drive problems - errors present, drive itself works ok

OK.  We're back to "system hangs when copying data to usb device,"  https://bbs.archlinux.org/viewtopic.php?id=112846.  There are other threads with similar complaints.

Unfortunately, there are solutions that work for some people and not others, and some people have yet to find a solution.  Not what you wanted to hear, I know.

Offline

#22 2011-11-01 09:57:34

raavas
Member
Registered: 2011-10-21
Posts: 86

Re: New USB hard drive problems - errors present, drive itself works ok

In my case, the whole system doesn't hang, just the file operation crashes and everything else stays as normal.

I have thought about formatting into ext4, but that probably won't work on windows? I bought the drive to that I can backup files and use them in multiple systems (including windows, much to my dislike).

So, today's test reports: The drive appears to be a "Super Top", I don't know whether this helps at all (info coming from lsusb). I also hope that I won't discover that it is the worst manufacturer ever...

I did a clean format again on windows (plus a safe eject, which I accidentally failed to do previously - that attempt led to some 'fixing' by ntfs-3g) and plugged the drive into my Arch computer. I mounted with the ntfs-3g -command as instructed above, and all went fine. Some file operations went ok as well until I tried to copy a large-ish folder with many files onto the drive. This copying seemed to go fine (and quick) until the end when it again disappeared from the thunar window and when I try to manually unmount it gives this message:

umount: /media/usb-hd: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

as well as the "reading directory .: Input/output error"

No clicking noise this time.

I guess I could look into what worked in the thread that thisoldman posted - I don't know whether disabling legacy USB support in my BIOS would do me any good as the system only seems to have one USB 2.0s and four USB 1.1s.

Offline

#23 2011-11-01 23:23:06

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: New USB hard drive problems - errors present, drive itself works ok

One of the easiest possible solutions to try is to turn off swap.  The commands you need are 'swapoff -a' and 'swapon -a'.

Offline

#24 2011-11-02 13:35:21

raavas
Member
Registered: 2011-10-21
Posts: 86

Re: New USB hard drive problems - errors present, drive itself works ok

Looking promising! I first formatted (yet again, this time the non-quick option on windows) and disabled swap. The drive is mounted by the automatic mount command on xfce, not in terminal. I copied a large folder with lots of files almost without problems. This time not all files were copied - on my internal hd it says 1162 items 1.0GB, on the portable it says 1153 items 1.0GB. Bizarre. I still don't know whether I can trust this precarious situation as a backup of my files, and my desktop is already making strange noises due old age.

Edit: I'll keep testing.

Last edited by raavas (2011-11-02 13:37:54)

Offline

#25 2011-11-02 19:24:57

raavas
Member
Registered: 2011-10-21
Posts: 86

Re: New USB hard drive problems - errors present, drive itself works ok

Not quite there yet. Turning the swap off helped enormously, but didn't go all the way. When I tried to copy a folder with 2001 files totalling 2.4GB, it crashed again with an I/O error and corrupted the file system requiring another formatting.

I even got rid of the file count/size mismatch for most folders copied.

I'll try again, this time in smaller chunks. I would still like to have a bit more reliability. Do you have any more tricks up your sleeve?

Offline

Board footer

Powered by FluxBB