![]() ![]() |
Oct 19 2007, 02:36 AM
Post
#1
|
|
![]() Group: Members Posts: 1,019 Joined: 15-February 05 From: France Member No.: 6,477 |
help
i'm trying to mount my usb key on debian tichy so i've put these lines from angstrom fstab into /etc/fstab: QUOTE # # USB # /dev/sda1 /media/usbhdd vfat noauto,umask=000,noatime,iocharset=utf8,codepage=932 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 usbfs /proc/bus/usb usbfs defaults 0 0 then i've created /dev/sda nodes: mknod /dev/sda b 8 0 mknod /dev/sda1 b 8 1 mknod /dev/sda2 b 8 2 then modprobe usbstorage then i plug my usb key then mount /media/hdd it fails with : mount: /dev/sda1 is not a valid block device any help please? |
|
|
|
Oct 19 2007, 03:49 AM
Post
#2
|
|
|
Group: Members Posts: 2,003 Joined: 16-April 04 From: the Netherlands && /dev/null Member No.: 2,882 |
How about:
modprobde ohci-hcd? If that works, then simply add ohci-hcd to /etc/modules so that the module will load automatically when the system boots up. Or ask the gurus? |
|
|
|
Oct 19 2007, 04:58 AM
Post
#3
|
|
![]() Group: Members Posts: 1,019 Joined: 15-February 05 From: France Member No.: 6,477 |
How about: modprobde ohci-hcd? If that works, then simply add ohci-hcd to /etc/modules so that the module will load automatically when the system boots up. Or ask the gurus? oh yeah i forgot the ohci-hcd stuff .. unhopefully, i now have a curious message as i plug the key : rejected 1 configuration due to insufficient available bus power ........... |
|
|
|
Oct 19 2007, 05:31 AM
Post
#4
|
|
|
Group: Members Posts: 2,003 Joined: 16-April 04 From: the Netherlands && /dev/null Member No.: 2,882 |
I got the same error when plugging in my Sony Ericsson w800i (which can function as a USB mass storage device).
|
|
|
|
Oct 19 2007, 05:49 AM
Post
#5
|
|
![]() Group: Members Posts: 1,019 Joined: 15-February 05 From: France Member No.: 6,477 |
|
|
|
|
Oct 19 2007, 06:19 AM
Post
#6
|
|
|
Group: Members Posts: 9 Joined: 2-October 07 Member No.: 20,775 |
I have the same prob with insufficient power,
but I tested the stick with the stock sharp rom and there it got mounted without problems. So it must be some kernel probs,.....or ????? |
|
|
|
Oct 19 2007, 08:42 AM
Post
#7
|
|
|
Group: Members Posts: 449 Joined: 12-August 03 From: Leeds, UK Member No.: 346 |
I have the same prob with insufficient power, but I tested the stick with the stock sharp rom and there it got mounted without problems. So it must be some kernel probs,.....or ????? I wonder how significant the message about power is? I'll try one of my sticks that did work before Titchy and report any success or useful error messages back. PS Neil has put a source page on the TitchyLinux site. The kernel source is 2.6.20, which I believe is the base for the zImage on the site. |
|
|
|
Oct 19 2007, 10:45 AM
Post
#8
|
|
|
Group: Members Posts: 449 Joined: 12-August 03 From: Leeds, UK Member No.: 346 |
Here is the list of modules that are loaded at the present: debian:~# lsmod Module Size Used by sd_mod 15280 0 usb_storage 34788 0 scsi_mod 91848 2 sd_mod,usb_storage ohci_hcd 20708 0 usbcore 117472 3 usb_storage,ohci_hcd ipv6 253404 12 snd_pcm_oss 49088 0 snd_mixer_oss 15328 2 snd_pcm_oss snd_soc_spitz 5612 0 snd_soc_pxa2xx_i2s 3352 1 snd_soc_spitz snd_soc_wm8750 18736 2 snd_soc_spitz snd_soc_pxa2xx 4416 1 snd_soc_spitz snd_soc_core 26176 3 snd_soc_spitz,snd_soc_wm8750,snd_soc_pxa2xx snd_pcm 81381 3 snd_pcm_oss,snd_soc_pxa2xx,snd_soc_core snd_timer 21828 1 snd_pcm snd 52084 7 snd_pcm_oss,snd_mixer_oss,snd_soc_spitz,snd_soc_wm8750,snd_soc_core,snd_pcm,snd_ imer soundcore 6596 2 snd snd_page_alloc 6312 1 snd_pcm dm_snapshot 14816 0 dm_mirror 18868 0 dm_mod 52396 2 dm_snapshot,dm_mirror hostap_cs 55092 0 hostap 108932 1 hostap_cs ieee80211_crypt 4928 1 hostap orinoco_cs 13860 1 orinoco 40564 1 orinoco_cs hermes 5856 2 orinoco_cs,orinoco mousedev 9788 1 debian:~# I'll put the other bits in further posts. |
|
|
|
Oct 19 2007, 10:57 AM
Post
#9
|
|
|
Group: Members Posts: 449 Joined: 12-August 03 From: Leeds, UK Member No.: 346 |
usb 1-2: new full speed USB device using pxa27x-ohci and address 5 usb 1-2: configuration #1 chosen from 1 choice scsi1 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 5 usb-storage: waiting for device to settle before scanning scsi 1:0:0:0: Direct-Access disgo 4.31 PQ: 0 ANSI: 0 CCS SCSI device sda: 239872 512-byte hdwr sectors (123 MB) sda: Write Protect is off sda: Mode Sense: 45 00 00 08 sda: assuming drive cache: write through SCSI device sda: 239872 512-byte hdwr sectors (123 MB) sda: Write Protect is off sda: Mode Sense: 45 00 00 08 sda: assuming drive cache: write through sda: unknown partition table sd 1:0:0:0: Attached scsi removable disk sda usb-storage: device scan complete Then I used mount: debian:/# mount /dev/sda1 /media/cf -t vfat mount: special device /dev/sda1 does not exist So I have used fdisk and will now format the stick as ext2 and see what happens |
|
|
|
Oct 19 2007, 11:12 AM
Post
#10
|
|
|
Group: Members Posts: 449 Joined: 12-August 03 From: Leeds, UK Member No.: 346 |
I'm removing the stick and replacing it to see what dmesg says. usb 1-2: new full speed USB device using pxa27x-ohci and address 7 usb 1-2: configuration #1 chosen from 1 choice scsi3 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 7 usb-storage: waiting for device to settle before scanning scsi 3:0:0:0: Direct-Access disgo 4.31 PQ: 0 ANSI: 0 CCS SCSI device sda: 239872 512-byte hdwr sectors (123 MB) sda: Write Protect is off sda: Mode Sense: 45 00 00 08 sda: assuming drive cache: write through SCSI device sda: 239872 512-byte hdwr sectors (123 MB) sda: Write Protect is off sda: Mode Sense: 45 00 00 08 sda: assuming drive cache: write through sda: sda1 sd 3:0:0:0: Attached scsi removable disk sda usb-storage: device scan complete Now we'll see what mount produces: debian:/# mount /dev/sda1 /media/cf debian:/# ls /media/cf lost+found debian:/# So success with a 128MB stick partitioned and formatted as ext2. I'll experiment further with partitioning and formatting this and the larger devices. I'm assuming from the other posts that sel-powered devices like my iriver and the Archos should be ok using mount? I'll leave it to you guys to play with fstab and such. I'llget back if partitioning the bigger sticks gets over the bus power message. I suspect that some clever chap will need to tell us what to do to sort that out though. Meanie, Koen where are you when we need you? Cheers |
|
|
|
Oct 19 2007, 11:41 AM
Post
#11
|
|
|
Group: Members Posts: 449 Joined: 12-August 03 From: Leeds, UK Member No.: 346 |
usb 1-2: new full speed USB device using pxa27x-ohci and address 8 usb 1-2: configuration #1 chosen from 1 choice scsi4 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 8 usb-storage: waiting for device to settle before scanning scsi 4:0:0:0: Direct-Access HTC42603 0G7AT00 PQ: 0 ANSI: 0 SCSI device sda: 58605120 512-byte hdwr sectors (30006 MB) sda: Write Protect is off sda: Mode Sense: 33 00 00 00 sda: assuming drive cache: write through SCSI device sda: 58605120 512-byte hdwr sectors (30006 MB) sda: Write Protect is off sda: Mode Sense: 33 00 00 00 sda: assuming drive cache: write through sda: sda1 sda2 sd 4:0:0:0: Attached scsi disk sda usb-storage: device scan complete debian:/# Yes it does show two partitions on the Archos. The openpma, uses bitbake? and OE stuff?, OS sets up two partitions to do its thing. Now for the mount instruction: debian:/# mount /dev/sda1 /media/sticks debian:/# ls /media/sticks books Documents Mophun Music pda Photo System Video debian:/# sda1 on the Archos is the working partition. debian:/# df /media/sticks Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 28702096 1100944 27601152 4% /media/sticks debian:/# Approx 30GB available. I think my iriver with the 40GB would mount also. Shame I have no real use for this space as yet! I will play about with other usb storage devices and in particular the bigger sticks. I'll report back. I hope someone has an idea about the bus power message. I'm, sure I scanned a post about that issue somewhere, ages ago. Can't remember where though. It's not all hopeless though, is it? |
|
|
|
Oct 19 2007, 11:58 AM
Post
#12
|
|
|
Group: Members Posts: 9 Joined: 2-October 07 Member No.: 20,775 |
So,... I did check some kernelsources on my gentoo box and it turns out,.......
there are changes since kernel 2.6.17 to check the powerconsumption !! |
|
|
|
Oct 19 2007, 12:44 PM
Post
#13
|
|
|
Group: Members Posts: 449 Joined: 12-August 03 From: Leeds, UK Member No.: 346 |
So,... I did check some kernelsources on my gentoo box and it turns out,....... there are changes since kernel 2.6.17 to check the powerconsumption !! But I do know that some people have used a powered hub to get round these problems. Not very convenient for usb sticks though. The two larger usb sticks I used, an Attache 1GB and a Disgo 512MB got the power message. The Disgo actually has a bright blue led that flashes on access. I was surprised to find that a cheap CF reader worked without complaint! I tried a lexar JumpDrive, meant to be an SD card reader, which got the power message. I also tried a sdhc reader that came with the cards I use in the N800, that got the same message. I have some other little gadgets that I will check out and report back on. Somebody said that usb wifi dongles had problems running on Z power. I wonder if that problem is related. I suppose that I should say I've been doing all this while the adapter is plugged in. Better check the success stories without external power! Cheers for now |
|
|
|
Oct 19 2007, 12:52 PM
Post
#14
|
|
|
Group: Members Posts: 9 Joined: 2-October 07 Member No.: 20,775 |
I checked further in hub.c source and at least the checking seems to be gone since 2.6.21,
so i'll try a 2.6.22 from angstrom tomorrow and see what it tells me. Another possibility is to try the not working device if the "Z" is not on battery power. |
|
|
|
Oct 19 2007, 01:36 PM
Post
#15
|
|
![]() Group: Members Posts: 1,019 Joined: 15-February 05 From: France Member No.: 6,477 |
I checked further in hub.c source and at least the checking seems to be gone since 2.6.21, so i'll try a 2.6.22 from angstrom tomorrow and see what it tells me. Another possibility is to try the not working device if the "Z" is not on battery power. i've tried with the Z not on battery power and same bus power message... (i'm trying with a usb multi reader, trying to read a 2Gb MemoryStick card) ps: i've tried the same reader while adding an external 4ports powered usb hub and it works! so the checking seems really there ps: my MSI BT USB dongle works without any problem... |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 09:52 AM |