Tuesday, April 1, 2008

damn-small-linux ( usb harddrive ) tips

2008april first.axa *edition.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOT a joke.

My usb harddrive keeps chrashing.


Anthony notes.
DXL:

1). first load... external usb2.0 harddrive module.
~~~~~~~~~~~~~~~~~~~~~~~~~~
1ST).

$ modprobe ehci-hcd

2ND).
NOW.
type lsmod to see if it's loaded.
$ lsmod | grep ehci
~~~~~~~~~~~~~~~~~~~~~~~~~~~
anthony@box:~$ lsmod | grep ehci
ehci-hcd               16616   0 (unused)
usbcore                57824   1 [usb-storage ehci-hcd hid usb-uhci]
~~~~~~~~~~~~~~~~~~~~~~~~~~
3). NOW
plug your USB hard drive in now. and type.
3RD).
$ dmesg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# dmesg should display info about your usb drive info, # make and controler for your usb hard drive. # in step 4 we will load more usb storage drivers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ehci_hcd 01:09.2: VIA Technologies, Inc. USB 2.0
ehci_hcd 01:09.2: irq 11, pci mem cde8e000
usb.c: new USB bus registered, assigned bus number 4
ehci_hcd 01:09.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 4 ports detected
hub.c: new USB device 01:09.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x6e1/0x833) is not claimed by any active driver.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4). NOW load usb-storage drive as root. @root.
$ modprobe usb-storage
5). NOW.
dmesg to find out what sda is being used.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: FUJITSU   Model: MPF3102AT         Rev: 0811
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 20015856 512-byte hdwr sectors (10248 MB)
 sda: sda1 sda2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6). It's usauly sda2 on my system so next is to mount from shell. mounting fron shell scipts the fstab and allows faster drive speed
??? because it may be skipping the sync commad.
!!!! replace ( /mnt/usb ) with your prefered mount point.
??? ( /mnt/usbhd ) or something like that.
@anthony
 sudo mount /dev/sda2  /mnt/usb
7). NOW open your file manager as root. to copy files over to your usbhd in fast usb2.0 speed.
@root
$ emelfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8). when your done unmount as root with umount. or with your file manger.
~~~~~~~~~~~~~~~~~~~~~~~~~~
Thats it NOW i can transfer files faster without crashing my system.

((( $ modprobe ehci-hcd ))) thats the magic tool that i was missing.

I kept crashing my transfers and my compter would LOCK UP without it.

((( usb-storage ))) by it's self is only good for flash memory. NOT for vfat usb hardrives by it's self.
((( usb-storage need ehci-hcd to work with usb hardrive. ))

~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOW I just have to find the driver that works with ..... my usb dvd-burners.

-------------------------------------
untill next time linux users.

No comments: