Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/sda missing?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
martinus
n00b
n00b


Joined: 13 Jul 2002
Posts: 50

PostPosted: Mon Jun 28, 2004 8:29 pm    Post subject: /dev/sda missing? Reply with quote

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
View user's profile Send private message
squeegy
Guru
Guru


Joined: 13 Mar 2004
Posts: 321
Location: Cincinnati, OH

PostPosted: Mon Jun 28, 2004 10:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
martinus
n00b
n00b


Joined: 13 Jul 2002
Posts: 50

PostPosted: Mon Jun 28, 2004 10:44 pm    Post subject: Reply with quote

no, I have compiled everything into the kernel
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Mon Jun 28, 2004 10:47 pm    Post subject: Reply with quote

You could just make sda and see if it works.
Code:
mknod /dev/sda b 8 0
Back to top
View user's profile Send private message
martinus
n00b
n00b


Joined: 13 Jul 2002
Posts: 50

PostPosted: Tue Jun 29, 2004 10:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
jbc28
Apprentice
Apprentice


Joined: 07 Jan 2003
Posts: 205
Location: Edinburgh

PostPosted: Tue Jun 29, 2004 11:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
TrJ
n00b
n00b


Joined: 22 Jul 2003
Posts: 31

PostPosted: Tue Jun 29, 2004 11:42 pm    Post subject: Reply with quote

did you install hotplug?
if not: please do 8O
Back to top
View user's profile Send private message
jbc28
Apprentice
Apprentice


Joined: 07 Jan 2003
Posts: 205
Location: Edinburgh

PostPosted: Tue Jun 29, 2004 11:48 pm    Post subject: Reply with quote

If you're not using modules hotplug won't really do anything useful as far as I understand.
J
Back to top
View user's profile Send private message
TrJ
n00b
n00b


Joined: 22 Jul 2003
Posts: 31

PostPosted: Tue Jun 29, 2004 11:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rainmaker
Veteran
Veteran


Joined: 12 Feb 2004
Posts: 1650
Location: /home/NL/ehv/

PostPosted: Wed Jun 30, 2004 7:27 am    Post subject: Reply with quote

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
View user's profile Send private message
jbc28
Apprentice
Apprentice


Joined: 07 Jan 2003
Posts: 205
Location: Edinburgh

PostPosted: Wed Jun 30, 2004 2:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
DrKayBee
Tux's lil' helper
Tux's lil' helper


Joined: 11 May 2004
Posts: 143
Location: Columbus, OH

PostPosted: Wed Jun 30, 2004 2:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum