missing /dev/sda* device files
Hi,
I have a usb flash card reader attached to my computer. When I used Breezy, if I inserted a flash card into it, it was automounted, and kubuntu created an icon for it on my desktop. Now I have upgraded my computer to Dapper, and my card reader no longer automounts. It seems to be the case that no /dev device file exists for the device. If I insert a card into the reader and reboot my machine, a device is created, and the disk is mounted. If I remove the card and reboot, however, the device file no longer exists when ubuntu comes back on, and if I insert a card one is not created. How can I tell Dapper ubuntu to make this work, so that when I insert a card into the reader, it gets automounted, like it used to work before? ------------------------------------ When booted with card inserted: Code:
$ ls -l /dev/sda* Code:
/dev/sda1 /media/cardreader0 vfat auto,user 0 0 |
Boot without a card in there, insert one, wait a sec and run 'dmesg' and see if anything useful is printed. If you aren't sure post the last 20 lines or so but if linux is recognising the device at all, this is where you'll hear about it :)
|
Is HAL enabled?
|
Quote:
When I boot with the card inserted, the dmesg output is slightly different; the relevant portion seems to be: Code:
> SCSI device sda: 3910656 512-byte hdwr sectors (2002 MB) Any idea why this is happening and how to fix it? |
If nothing is appearing in dmesg then the kernel isn't even recognising it which is the problem, no userspace daemons like HAL or udev are going to make a difference.
Maybe the module isn't autoloading for the device unless there's a card in it, if you feel like rebooting a couple of times again then use lsmod to grab a list and loaded modules and compare them using diff. Code:
# boot with card |
lsmod output
OK, I rebooted twice & ran lsmod both with the card inserted (/dev/sda1 created & card mounted) and without (no /dev/sda is created).
It looks like the same modules are loaded... the only differences seem to be in the number in the 'Used By' column of the lsmod output for some modules...I assume that's not significant. The output is as follows: Code:
$ diff module.list.withoutcard.txt module.list.withcard.txt |
also note -- can manually create device
Note that if I boot without the card inserted (no /dev/sda1 device file is created), I can then insert the card, and manually create the device file and mount the card:
Code:
$ cd /dev |
That should be done by udev and hal, do you have them both installed?
|
Quote:
You are indeed looking at a Udev problem, I found a few links but I'm not sure if any of them apply to you. http://indiboi.com/history/2005/09/16/2887535 https://www.fsfe.org/en/card/howto/c...der_howto_udev # i think this is for encrypted cards or something? |
udev or hal? Any more info?
Thanks for the links, cs-cam... however, they don't really help that much. udev looks really complex and involved... and according to it's FAQ, it doesn't sound like its the right thing to look at (though I could be wrong depending on how ubuntu is set up):
Frequently Asked Questions about udev Q: Can I use udev to automount a USB device when I connect it? A: Technically, yes, but udev is not intended for this. All major distributions use HAL (http://freedesktop.org/wiki/Software_2fhal) for this, which also watches devices with removable media and integrates into the desktop software. However, I don't really understand either udev or HAL, and both seem very complex and not so clearly documented, at least for non-programer users. Can you (or anyone) give me some further advice on how to proceed? It seems like something that should 'just work,' particularly since it used to before I upgraded from Breezy to Dapper. |
Quote:
Code:
pidof udevd |
Code:
$ pidof udevd I couldn't say if HAL is running, how would I determine that? Note that when I insert the card into the reader, there is no usb event reported in dmesg output... I don't know if that's significant. |
All times are GMT -5. The time now is 11:47 PM. |