View previous topic :: View next topic |
Author |
Message |
martinus n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Jul 2002 Posts: 50
|
Posted: Mon Jun 28, 2004 8:29 pm Post subject: /dev/sda missing? |
|
|
Hi everyone, I want to access my USB Stick, but no matter what I do I do not have any /dev/sda device. I followed this tutorial: https://forums.gentoo.org/viewtopic.php?t=53537
When I connect the USB Stick, I get this messages in dmesg:
Code: | usb 1-2: new full speed USB device using address 3
scsi0: SCSI emulation for USB Mass Storage devices |
I use kernel 2.6.7-rc2-mm2
any ideas? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
squeegy Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/5462930140d3bc9c98263.jpg)
Joined: 13 Mar 2004 Posts: 321 Location: Cincinnati, OH
|
Posted: Mon Jun 28, 2004 10:20 pm Post subject: |
|
|
Did you compile all the portions of your kernel mentioned in the HOWTO thread as modules? If so please post the output of 'lsmod' |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
martinus n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Jul 2002 Posts: 50
|
Posted: Mon Jun 28, 2004 10:44 pm Post subject: |
|
|
no, I have compiled everything into the kernel |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jake Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 31 Jul 2003 Posts: 1132
|
Posted: Mon Jun 28, 2004 10:47 pm Post subject: |
|
|
You could just make sda and see if it works.
Code: | mknod /dev/sda b 8 0 |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
martinus n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Jul 2002 Posts: 50
|
Posted: Tue Jun 29, 2004 10:57 pm Post subject: |
|
|
Jake wrote: | You could just make sda and see if it works.
Code: | mknod /dev/sda b 8 0 |
|
I have done this, but when I then try to mount the stick with
Code: | mount -t auto /dev/sda /mnt/usbstorage |
I get this error message:
Code: | mount: /dev/sda nis not a valid block device |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jbc28 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/3341329323ed54ae7ab699.png)
Joined: 07 Jan 2003 Posts: 205 Location: Edinburgh
|
Posted: Tue Jun 29, 2004 11:03 pm Post subject: |
|
|
perhaps its not being mounted as /dev/sda1 but /dev/sdb1?
It's worth checking the output of dmesg when you plug in the usb key. If it seems happy and talks about setting up devices you can mount
/dev/scsi/host_/bus_/target_/lun_/part_
where _ represent the parameters dmesg gives.
If neither of these options help, my guess is that you're lacking relevant kernel options though from what you've said that looks unlikely.
I've assumed your using devfs, if you're using udev I'm afraid I can't help.
J |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TrJ n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Jul 2003 Posts: 31
|
Posted: Tue Jun 29, 2004 11:42 pm Post subject: |
|
|
did you install hotplug?
if not: please do ![Shocked 8O](images/smiles/icon_eek.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jbc28 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/3341329323ed54ae7ab699.png)
Joined: 07 Jan 2003 Posts: 205 Location: Edinburgh
|
Posted: Tue Jun 29, 2004 11:48 pm Post subject: |
|
|
If you're not using modules hotplug won't really do anything useful as far as I understand.
J |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TrJ n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Jul 2003 Posts: 31
|
Posted: Tue Jun 29, 2004 11:52 pm Post subject: |
|
|
jbc28 wrote: | If you're not using modules hotplug won't really do anything useful as far as I understand.
J |
That's what I thought too but when I wanted to mount my digital camera as a usb-mass storage device it couldn't find /dev/sda1, until I installed hotplug
edit: and I don't have hotplug loaded as a module
edit #2 installing hotplug is also mentioned in the thread the topi-starter mentioned in his opening post |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Rainmaker Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/TV Stars/data1.jpg)
Joined: 12 Feb 2004 Posts: 1650 Location: /home/NL/ehv/
|
Posted: Wed Jun 30, 2004 7:27 am Post subject: |
|
|
usually it is /dev/sda1
Try:
fdisk -l /dev/sda
That should give you a list of partitions
Then mount with
mount -t vfat /dev/sda1 /mnt/myusbstickrocks/
PS. Hitplug is needed. Just do an rc-update to add hotplug to system boot, do an /etc/init.d/hotplug start for now. _________________ If you can't dazzle them with brilliance, baffle them with bullshit. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jbc28 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/3341329323ed54ae7ab699.png)
Joined: 07 Jan 2003 Posts: 205 Location: Edinburgh
|
Posted: Wed Jun 30, 2004 2:24 pm Post subject: |
|
|
I'm pretty sure that all hotplug does, after a quick read through of the scripts, is to insert modules when they're needed. It gets replaced by the kernel's ability to autoload modules in 2.6.x and won't help if your devices are all compiled into the kernel. Creating device links is done by devfsd so for a non-modular kernel hotplug is (as far as I can see) pointless.
J |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DrKayBee Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Herman_Toothrot.gif)
Joined: 11 May 2004 Posts: 143 Location: Columbus, OH
|
Posted: Wed Jun 30, 2004 2:29 pm Post subject: |
|
|
I think it may be a case of a misconfigured kernel as well.
When you plug in a stick, check your dmesg output. Also look at lsusb to see if your hardware is working properly.
Cheers,
KB |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|