LinHES Forums http://forum.linhes.org/ |
|
USB Disk Problem http://forum.linhes.org/viewtopic.php?f=2&t=4387 |
Page 1 of 1 |
Author: | gushy [ Mon May 02, 2005 4:10 pm ] |
Post subject: | USB Disk Problem |
I've got two problems with a USB hard disk plugged into my knoppmyth box. 1) How do I get it to mount on boot, editing the line in fstab doesn't seem to help - I am assuming it's because usb is initialised after disk mounting 2) even though the disk shows up as a usb2.0, it's access speeds are 1.1. Relevant info that might point in the right direction: Code: # hdparm -t /dev/uba1 /dev/uba1: Timing buffered disk reads: 4 MB in 4.90 seconds = 835.7- kB/sec HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device Code: lsmod | grep hci ehci_hcd 29060 0 ohci1394 31876 0 ieee1394 304696 3 eth1394,sbp2,ohci1394 ohci_hcd 20100 0 uhci_hcd 30096 0 usbcore 99172 7 ub,ehci_hcd,usb_storage,ohci_hcd,uhci Code: # lsusb Bus 002 Device 005: ID 04b4:6830 Cypress Semiconductor Corp. USB-2.0 IDE Adapter Bus 002 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000 Code: # usbtree /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M |__ Port 1: Dev 5, If 0, Class=stor., Driver=ub, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/3p, 12M Code: # lspci | grep USB 0000:00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) 0000:00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) 0000:00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) Code: # more /proc/bus/usb/devices help, someone, anyone?! T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 6 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.9-chw-4 ehci_hcd S: Product=nVidia Corporation nForce2 USB Controller S: SerialNumber=0000:00:02.2 C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 5 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=04b4 ProdID=6830 Rev= 0.01 S: Manufacturer=Cypress Semiconductor S: Product=USB2.0 Storage Device S: SerialNumber=DEF107679C83 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=ub E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.9-chw-4 ohci_hcd S: Product=nVidia Corporation nForce2 USB Controller (#2) S: SerialNumber=0000:00:02.1 C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms ![]() |
Author: | cesman [ Thu May 19, 2005 11:35 am ] |
Post subject: | |
Well, R5A15.1 fixes USB for some. If this is a kernel bug, you most likely wait to wait for a newer kernel. You can help by finding a solution (if one exist), testing and reporting back. This way, a fix can be rolled into a newer release. |
Author: | gushy [ Thu May 19, 2005 2:13 pm ] |
Post subject: | |
I'll give the new release a spin and see if it helps. I've got aplan of what I want to do to test and see if I can find a solution to report back, but as with all things bloody work gets in the way. :p |
Author: | gushy [ Sat May 21, 2005 11:10 am ] |
Post subject: | |
wasn't looking good after I tested with a knoppix cd and got the same speeds, but then I opted for the upgrade to R5A15.1 and that worked! ![]() One thing I am confused on, I did a mythbackup first and then an auto-upgrade thinknig I could just restore, but the upgrade formatted that disk/partition so what's the point of choosing it over a normal imstall? |
Author: | brendan [ Sat May 21, 2005 11:14 am ] |
Post subject: | |
gushy wrote: wasn't looking good after I tested with a knoppix cd and got the same speeds, but then I opted for the upgrade to R5A15.1 and that worked!
![]() One thing I am confused on, I did a mythbackup first and then an auto-upgrade thinknig I could just restore, but the upgrade formatted that disk/partition so what's the point of choosing it over a normal imstall? KnoppMyth sets up 4 partitions on one disk. Using autoupgrade, only 3 of the 4 are reformatted. The hda4 partition (/myth) isn't reformatted. -brendan |
Author: | gushy [ Sat May 21, 2005 1:16 pm ] |
Post subject: | |
Ok that makes sense then. ![]() Ta. |
Author: | gushy [ Sun May 22, 2005 5:14 pm ] |
Post subject: | |
ok my only problem now is how to get it to mount the usb disk on boot. Obviously it doesn't mount it during boot as usb is initialised well after disk mounting; I thought I could just stick a line in rc.local but there isn't one. ![]() Clearly I need more experience with debian! Can someone point me in the direction of the equivalent to rc.local? Or if you have a better suggestion, let me know. Thanks. |
Author: | cesman [ Sun May 22, 2005 7:32 pm ] |
Post subject: | |
What does you current issue have with the original? Seperate thread for serperate problem please. Perhaps a search of the forum. |
Author: | gushy [ Mon May 23, 2005 2:29 am ] |
Post subject: | |
Both points - the disk speed and mounting the disk on boot were part of my original post. I figured it was best to keep them together as the problems are all to do with the same thing - getting a usb hdd to work with knoppmyth. I also assumed that posting a new thread would get me told off for duplicating threads. ![]() I've found my answer in the debian FAQ - http://www.debian.org/doc/FAQ/ch-custom ... ootscripts - simply it seems that there is no equivalent to rc.local in debian and you have to have create a local init script yourself. I thought that might be the case but it was late, a search of the forums brought up nothing of use and I was tired and needed to get to bed so posted in the hope that a) someone would know the answer and post while I was asleep; b) having the answer here would help someone else. |
Author: | cecil [ Mon May 23, 2005 7:29 am ] |
Post subject: | |
I bust my humping working on KnoppMyth and trying to keep the forum in order and what do I get for my troubles? Rolling eyes. Thanks. I'd have told you to search the forum. fstab is what one should use to mount devices. |
Author: | gushy [ Tue May 24, 2005 8:18 am ] |
Post subject: | |
rolling eyes were not meant against you but rather at me for making the wrong decision; having weighed up different forum's etiquette my decision to post here was based on how I felt the forum seemed compared to other forums and what would be appropriate. It's sods law that out of two options (post here or new thread) I picked the wrong one. Hence the rolling eyes, at me and my decision. I had searched the forum, but found no useful results from my search. As for the fstab entry I have one but it is no use, as far as my understanding goes the mounting of local file systems needs to be done before the loading of usb modules. So by the time the usb devices are detected, fstab mounting has been and gone. Hence why I figured that a custom init script to perform the job of rc.local on RH based systems is the way to go. <ot> cesman / cecil - same person? </ot> |
Author: | Liv2Cod [ Tue May 24, 2005 10:00 am ] |
Post subject: | |
gushy wrote: <ot> cesman / cecil - same person? </ot>
![]() ![]() |
Author: | tjc [ Tue May 24, 2005 8:20 pm ] |
Post subject: | |
You've missed the obvious. It's like "Evil Mike" symdrome, each Mike accuses the other(s) of being evil, the secret is that they're both/all right. ![]() ![]() Then again I've often wanted to be my own evil twin... And we like Cecil fine just the way he is. ![]() |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |