aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Problem with USB external disk  (Read 5938 times)

klineberger

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Problem with USB external disk
« on: July 23, 2006, 09:56:27 PM »

I have put the temp and incoming directories on a 2.0 USB enclosure for a 200GB hard disk.
  After a short while with a moderate download speed there seems to be an I/O problem causing the hard disk to be remounted read only. In the register of aMule I get errors of this kind:
   2006-07-23 21:06:03: CFile: Error when opening file (/media/USBDisk/Temp/003.part.met.backup): Read only file system
  I use Ubuntu Linux with DSL 1MB. I have mounted the USB disk in several ways (as root, as user, umask=000, etc). Everything is smooth if I put temp and incoming on the IDE disk. I can reproduce the error as many times as needed.
  Any ideas? Thanks everybody!
Logged

klineberger

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Problem with USB external disk and 2
« Reply #1 on: July 23, 2006, 09:59:15 PM »

I forgot: I can do searches and everything else normally.
Logged

JusTiCe8

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 30
    • http://perso.wanadoo.fr/justice8
Re: Problem with USB external disk
« Reply #2 on: July 24, 2006, 09:25:33 AM »

Hi, as you report IO issue, it's appear to be your drive cause amule troubles.
So check why there were IO errors first.
Logged

klineberger

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
how?
« Reply #3 on: July 24, 2006, 10:40:23 AM »

Hello, JusTiCe8. Thanks for your answer.
So how do I check that? What's the right place to look for info about I/O problems?
Logged

JusTiCe8

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 30
    • http://perso.wanadoo.fr/justice8
Re: Problem with USB external disk
« Reply #4 on: July 24, 2006, 12:05:16 PM »

Unix*/Linux forums/lists and Linux forum here.

For your specific issue: check syslog/kern.log for any hint, do a fsck (according to the drive fs), run a SMART long test (see smartmontools package which exists on Debian), ...
Logged

klineberger

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
On my way
« Reply #5 on: July 24, 2006, 02:18:07 PM »

That was VERY useful information. kern.log is very interesting, here is a resume (full log at the end):

FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
...
FAT: Filesystem panic (dev sda1)
  clusters badly computed (321 != 314)
   File system has been set read-only

    followed by a lot of

FAT: Filesystem panic (dev sda1)
  clusters badly computed (322 != 315)

   Also fsck.vfat found some errors of the type 'cluster lenght does not match file lenght', but I'd say these are consequences of the problem, not the cause. I'm now downloading the smartmontools package and I will also mount the drive without the utf8 option and see if there is a problem. I will write again later.

   Concerning moving to the Linux forum, I'd say at least Mac users may have the same problem, so how about if I start a thread with a description of the problem and link here?

Code: [Select]
Jul 24 13:46:06 localhost kernel: [17179942.420000] usb 3-3: new high speed USB device using ehci_hcd and address 2
Jul 24 13:46:06 localhost kernel: [17179942.716000] SCSI subsystem initialized
Jul 24 13:46:06 localhost kernel: [17179942.772000] Initializing USB Mass Storage driver...
Jul 24 13:46:06 localhost kernel: [17179942.776000] scsi0 : SCSI emulation for USB Mass Storage devices
Jul 24 13:46:06 localhost kernel: [17179942.776000] usb-storage: device found at 2
Jul 24 13:46:06 localhost kernel: [17179942.776000] usb-storage: waiting for device to settle before scanning
Jul 24 13:46:06 localhost kernel: [17179942.776000] usbcore: registered new driver usb-storage
Jul 24 13:46:06 localhost kernel: [17179942.776000] USB Mass Storage support registered.
Jul 24 13:46:11 localhost kernel: [17179948.012000]   Vendor: Maxtor    Model: 6L200P0           Rev: BAJ4
Jul 24 13:46:11 localhost kernel: [17179948.012000]   Type:   Direct-Access                      ANSI SCSI revision: 02
Jul 24 13:46:11 localhost kernel: [17179948.020000] usb-storage: device scan complete
Jul 24 13:46:11 localhost kernel: [17179948.088000] Driver 'sd' needs updating - please use bus_type methods
Jul 24 13:46:11 localhost kernel: [17179948.096000] SCSI device sda: 398297088 512-byte hdwr sectors (203928 MB)
Jul 24 13:46:11 localhost kernel: [17179948.096000] sda: assuming drive cache: write through
Jul 24 13:46:11 localhost kernel: [17179948.156000] SCSI device sda: 398297088 512-byte hdwr sectors (203928 MB)
Jul 24 13:46:11 localhost kernel: [17179948.156000] sda: assuming drive cache: write through
Jul 24 13:46:11 localhost kernel: [17179948.156000]  sda: sda1
Jul 24 13:46:11 localhost kernel: [17179948.180000] sd 0:0:0:0: Attached scsi disk sda
Jul 24 13:46:11 localhost kernel: [17179948.200000] sd 0:0:0:0: Attached scsi generic sg0 type 0
Jul 24 13:46:12 localhost kernel: [17179948.752000] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Jul 24 13:51:53 localhost kernel: [17180290.256000] eth0: Media Link On 100mbps full-duplex
Jul 24 13:52:03 localhost kernel: [17180299.412000] eth0: Media Link On 100mbps full-duplex
Jul 24 13:52:09 localhost kernel: [17180307.428000] eth0: no IPv6 routers present
Jul 24 13:52:35 localhost kernel: [17180333.488000] FAT: Filesystem panic (dev sda1)
Jul 24 13:52:35 localhost kernel: [17180333.488000]     clusters badly computed (321 != 314)
Jul 24 13:52:35 localhost kernel: [17180333.488000]     File system has been set read-only
Jul 24 13:52:35 localhost kernel: [17180333.488000] FAT: Filesystem panic (dev sda1)
Jul 24 13:52:35 localhost kernel: [17180333.488000]     clusters badly computed (322 != 315)
Jul 24 13:52:36 localhost kernel: [17180333.488000] FAT: Filesystem panic (dev sda1)
Jul 24 13:52:36 localhost kernel: [17180333.488000]     clusters badly computed (323 != 316)
etcetera
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Problem with USB external disk
« Reply #6 on: July 24, 2006, 02:38:27 PM »

Corrupted FAT filesystem.
Logged

klineberger

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
remount without utf8
« Reply #7 on: July 24, 2006, 02:54:43 PM »

The default charset for my system is utf8, so I had to mount with the "-iocharset=iso8859-1" option. It is now working normally, thanks to JusTiCe8 and kern.log.
Logged

klineberger

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
RE:Corrupted FAT filesystem
« Reply #8 on: July 24, 2006, 02:57:26 PM »

Sorry, Kry, I didn't see your post. So you think the corruption in the filesystem was prior to the errors, and the utf-8 problem is insignificant? Ok, I'm gonna try now with utf8 option and report.
Logged

klineberger

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
a simple filesystem error
« Reply #9 on: July 24, 2006, 07:10:25 PM »

A simple filesystem error, even tough I had copied the full temp and incoming directories from the USB hard disk to the IDE hard disk withouth a complaint. Sorry to bother and thank you for your help.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Problem with USB external disk
« Reply #10 on: July 24, 2006, 10:54:40 PM »

You're welcome
Logged

Ezeltje

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 130
    • Home page
Re: Problem with USB external disk
« Reply #11 on: August 04, 2006, 09:02:59 PM »

Quote
Originally posted by JusTiCe8run a SMART long test

As far as I have been able to determine, the USB interface does not support SMART.
Logged