View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 13 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: USB Disk Problem
PostPosted: Mon May 02, 2005 4:10 pm 
Offline
Joined: Mon Nov 08, 2004 8:46 am
Posts: 66
Location: Reading, UK
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

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
help, someone, anyone?! :cry:

_________________
Gushy


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 11:35 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
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.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 2:13 pm 
Offline
Joined: Mon Nov 08, 2004 8:46 am
Posts: 66
Location: Reading, UK
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

_________________
Gushy


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 21, 2005 11:10 am 
Offline
Joined: Mon Nov 08, 2004 8:46 am
Posts: 66
Location: Reading, UK
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! :D thanks cesman.

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?

_________________
Gushy


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 21, 2005 11:14 am 
Offline
Joined: Tue Dec 07, 2004 12:04 pm
Posts: 369
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! :D thanks cesman.

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


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 21, 2005 1:16 pm 
Offline
Joined: Mon Nov 08, 2004 8:46 am
Posts: 66
Location: Reading, UK
Ok that makes sense then. :) I figured that was probably the case, I have a custom install, no hda4. I was just curious.

Ta.

_________________
Gushy


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 5:14 pm 
Offline
Joined: Mon Nov 08, 2004 8:46 am
Posts: 66
Location: Reading, UK
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.

_________________
Gushy


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 7:32 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
What does you current issue have with the original? Seperate thread for serperate problem please. Perhaps a search of the forum.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 2:29 am 
Offline
Joined: Mon Nov 08, 2004 8:46 am
Posts: 66
Location: Reading, UK
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. :roll:

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.

_________________
Gushy


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 7:29 am 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2005 8:18 am 
Offline
Joined: Mon Nov 08, 2004 8:46 am
Posts: 66
Location: Reading, UK
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>

_________________
Gushy


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2005 10:00 am 
Offline
Joined: Fri May 21, 2004 11:55 pm
Posts: 1206
Location: Silicon Valley, CA
gushy wrote:
<ot> cesman / cecil - same person? </ot>

:wink: We think cecil has multiple personality disorder. One of them is the "evil twin" -- I'm just not sure which one... :wink:

_________________
Do you code to live, or live to code?
Search LinHES forum through Google


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2005 8:20 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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. ;-) As a matter of fact I believe it was Cesman himself (himselves?) that said "You've got to watch out for that Cecil he's bad news." ;-)

Then again I've often wanted to be my own evil twin... And we like Cecil fine just the way he is. ;-)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu