I originally (without realizing there was a user list) sent this to the dev
list, my mistake.  The short description of the problem, is that I run an
athlon 64 on an MSI K8TNEO-FIS2R motherboard (VIA KT800 chipset), I have an
external Bytec USB 2.0 enclosure, have tried kernels 2.4.21, 2.4.24, 2.4.25,
2.6.3.  I've got a Seagate 200gb EATA drive in the enclosure, I'm running
Suse 9.0 x86_64, using LVM2 tools (and kernel support), device-mapper, and
reiserfs 3.6.9 (and tried 3.6.13 self-compiled for kicks), currently, at
seemingly random lengths of time (20 minutes, a few hours, etc), the usb
system disconnects the drive while trying to do a reiserfsck --rebuild-tree
(currently this is the only task I can perform, without losing all my data
permenantly, since this is what I tried to run after the problem originally
lost some of the data.. but now of course since its failed *DURING* the
rebuild-tree, I can't even read whats on the drive right now, until it
successfully completes the rebuild (with scan-whole-disk).  I would really
like to get the external system working properly, and hopefully recover some
of the data thats been lost.. the first problem is the USB disconnect
however.  The "long" version (lol) is below.

Regards,
Tyler.

----- Original Message ----- 
From: "Tyler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 28, 2004 2:42 PM
Subject: [linux-usb-devel] problem with usb disconnect external usb 2.0 hard
drive storage


Hi, I'm new to the list, obviously i joined because I have a problem with
linux usb ;)  Anyways, hopefully i'm not off topic for this list, or
breaking any rules (as I didn't see any rules while signing up, or a page to
view any).

I'm running SuSE 9.0 x86_64 (AMD Athlon64 3000, MSI K8TNEO-FIS2R
motherboard), and have a problem trying to use an external USB 2.0 hard
drive.  The enclosure itself, is made by Bytec, and is just USB 2.0, not
firewire capable.  The hard drive is a Seagate 200gb.  Below, are the steps
i've taken with this setup.

- installed lvm2 tools (from rpm) version 2.00.7-45
- installed device-mapper (from rpm) version 1.00.05-63
- installed resierfs (from rpm) version 3.6.9-31 (also tried 3.6.13 from
source)

The drive is detected by USB drivers, and comes up using scsi emulation as
/dev/sda.  Using lvm2, I setup a single volume group (all with version 2
metadata),
with a single logical volume with all the drives space, device mapper sets
it up as /dev/volumegroup1/vg1_localvolume1.  I then continued to vgscan,
vgchange -ay (set available), and formatted it using reiserfs version 3.6
file system.  I then mounted the filesystem, and continued on to fill the
drive with about 80 to 100 gigs of data

Unfortunately for me, i trusted that everything was fine, and was deleting
things as I was moving them to the new drive (silly me... these lessons can
never be stressed enough... backup before you do anything with your data..
and don't delete things as you move them to somewhere "new" until its been
check and verified (and been there for a while))

Something I noticed odd to begin with, was the speed of the drive, it was
only managing about 6 megabytes per second, where-as on windows systems, I
usually see 17 to 30 megabytes per second with USB 2.0 drives.  None the
less, this was fast enough, and just figured it was either the drivers
aren't optimized yet, or the chipset used in this particular external case
wasn't very fast.  As I said, oh well.. I could live with the speed.

This is where the problems begin.  I had a slow download transfer being
saved on the drive during the 2nd night I had the drive hooked up.  The next
morning, I awake to see that on the console, and in the message log, the
device shows as being disconnected:

23:11:46 linux kernel: usb.c: USB disconnect on device 00:10.4-3 address 2

Of course, I didn't disconnect it, and there wasn't a power outage, or
anything of the like.. so, I decide to try unmounting the drive (technically
its already unmounted I guess), so I can remove the usb modules and
re-enable the drive.  But every command I try on the system, results in a
hung utility.. such as unmount, vgchange, mount (remount readonly), sync,
and even a shutdown -r now to reboot the system results in a hung program.
At this point, the only thing I can do, is use the reboot utility with a
fast option so it doesn't try to sync anything (otherwise it hangs also),
or, use the physical reset switch on the tower.

I continue to boot the machine back up, usb detects the hard-drive again, I
can remount the drive, and go on my merry way... or so I thought.  Without
realizing it right away, when I mounted the drive, reiserfsck ran, and said
replaying journal, 0 entries replayed, so I thought "great" .. no lost files
or errors.. and continued the download I had started the night before.  A
few hours later, while browsing the drive, I noticed things missing, that I
had copied to the drive, just the evening before (and deleted the sources
:( ) .. at this point I start to worry, where have my files gone??

Reiserfsck should have found these files when it was remounted, but didn't,
so I decide to try the reiserfsck tools to check, rebuild-sb, and eventually
rebuild-tree (doesn't find anything), and now, I've tried rebuild-tree
option with the scan-whole-partition option, thinking maybe it will find my
files in the space that it thinks is empty.  Unfortunately, each time i've
tried this, I end up getting the same error that originally started this
whole fiasco, the USB disconnect ... the last time, at about the 65% mark of
the rebuild-tree ... this really sucks, there's obviously a problem with the
USB driver, either crashing, and even if its a problem with the drive or
enclosure, there's a problem with the USB hanging the system (or hanging any
utility that tries to remove/fix/change anything to do with the usb drive..
(as stated way above) ..

So here I am, with a drive that i've copied between 80 to 100 gigs of data
over to (some non-replaceable), and the drive shows 76 gigs of the data
being there (and I can copy off .. well, I think I can, if the rebuild-tree
ever can finish.. right now, it can't read the drive until a rebuild-tree
completes)  and a totally unreliable external storage system, that either I
need to fix (usb drivers? , bad enclosure? , bad drive? , bad user setup?),
or determine that it won't work, try to recover what data I can, and never
try usb drive storage again ... heh, of course, my preferrable choice, is to
get this all working smoothly, and reliably, since external drives are super
handy!

So, please tell me what information you may need from me, to help me
trouble-shoot the usb drivers, and give any suggestions you might have to
get this up and running.  I don't understand at this point a) why the drive
randomly does a disconnect (when nothings been moved, or even touched near
the computer) b) why when there *IS* a usb disconnect, that it hangs the
sub-system that it was connected to, and requires more or less a hard reboot
without syncing drives, etc.  c) where my data went (why the journal lost at
least a few hours worth of transactions? and didn't notice that anything
needed to be replayed)

If anyone's actually read this far, I appreciate it, and would love to get
some help with this.

Thanks,
Tyler.

PS - I've tried kernels 2.4.21-193, 2.4.21-201, 2.4.25, 2.6.3, all with the
seemingly same effect.



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to