View previous topic :: View next topic |
Author |
Message |
Jowilly Guru
Joined: 22 Jun 2002 Posts: 319
|
Posted: Sat Nov 22, 2003 1:31 am Post subject: /dev/sda1 not created when smartmedia inserted in reader |
|
|
Hi,
When I boot up and no card is inserted in the card reader, the reader exists as /dev/sda, /dev/sda1 does not exist
When I insert a card, /dev/sda1 is not created, so I cannot mount it.
To create /dev/sda1 I have to manually do an:
Code: | /etc/init.d/hotplug restart
|
What can I do to get /dev/sda1 automatically created or statically existing (even if no card is in) ? |
|
Back to top |
|
|
Jimboberella Guru
Joined: 19 Jun 2002 Posts: 358 Location: Brisbane/Australia
|
|
Back to top |
|
|
ronmon Veteran
Joined: 15 Apr 2002 Posts: 1043 Location: Key West, FL
|
Posted: Sat Nov 22, 2003 5:53 am Post subject: |
|
|
If it's USB, unplug the reader, insert a card, plug it back in. |
|
Back to top |
|
|
imeridian n00b
Joined: 12 Nov 2003 Posts: 67
|
Posted: Sat Nov 22, 2003 9:04 am Post subject: |
|
|
I had the same problem and I tried absolutely everything to get this working and finally stumbled across a post from someone named eclipsed, it gave three lines to insert into /etc/devfsd.conf and now it works. My card reader is USB, but it is internal so the idea of having to open up the case and unplug it everytime was not exactly useful in my case.
You'll need to change the scsi host, probably, if yours is different, which is possible.
Quote: | LOOKUP ^sda1 CFUNCTION GLOBAL mksymlink scsi/host1/bus0/target0/lun0/part1 sda1
REGISTER ^scsi/host1/bus0/target0/lun0/part1 CFUNCTION GLOBAL mksymlink $devname sda1
UNREGISTER ^scsi/host1/bus0/target0/lun0/part1 CFUNCTION GLOBAL unlink sda1
|
Maybe it's worth a try. Like I said, after trying everything I could think of, except for long and complicated hotplug scripts (which was never necessary under any other linux OS) this worked for me. |
|
Back to top |
|
|
Jowilly Guru
Joined: 22 Jun 2002 Posts: 319
|
Posted: Sat Nov 22, 2003 9:57 pm Post subject: |
|
|
Thanks, but I actually don't want to automount it (this won't change anything to the problem). I first want hotplug to detect the inserted card without restarting it (hotplug).
ronmon wrote: |
If it's USB, unplug the reader, insert a card, plug it back in.
|
Thanks, but I think it's easier to do an "/etc/init.d/hotplug restart" than moving my furniture to get behing my tower to unplug the reader every time...
indiboi wrote: | I had the same problem and I tried absolutely everything to get this working and finally stumbled across a post from someone named eclipsed, it gave three lines to insert into /etc/devfsd.conf and now it works. My card reader is USB, but it is internal so the idea of having to open up the case and unplug it everytime was not exactly useful in my case.
You'll need to change the scsi host, probably, if yours is different, which is possible.
Quote: | LOOKUP ^sda1 CFUNCTION GLOBAL mksymlink scsi/host1/bus0/target0/lun0/part1 sda1
REGISTER ^scsi/host1/bus0/target0/lun0/part1 CFUNCTION GLOBAL mksymlink $devname sda1
UNREGISTER ^scsi/host1/bus0/target0/lun0/part1 CFUNCTION GLOBAL unlink sda1
|
Maybe it's worth a try. Like I said, after trying everything I could think of, except for long and complicated hotplug scripts (which was never necessary under any other linux OS) this worked for me. |
Thanks, this creates /dev/sda1, but the scsi host is not created when the card is inserted so the sda1 link points to nothing.
I think it's a bug in hotplug. It doesn't detect the card if either hotplug or one of the modules (usb-storage, sd_mod) is not restarted with the card in; or the reader unplugged (same as restartiing hotplug)... |
|
Back to top |
|
|
imeridian n00b
Joined: 12 Nov 2003 Posts: 67
|
Posted: Mon Nov 24, 2003 4:42 am Post subject: |
|
|
One thing that just came to mind is to make sure your kernel has the scsi option of "probe for multiple luns" enabled. Before having that option enabled only one 'part' of my reader would work. Maybe that's the case for you also, but the part of the reader that works isn't the one you need to use? On my reader with the four slots, the smart media reader is /dev/sdd and /dev/sda is for compact flash. With the probe multiple luns feature of the kernel enabled it creates four devices sda through sdd at boot. |
|
Back to top |
|
|
Jowilly Guru
Joined: 22 Jun 2002 Posts: 319
|
Posted: Mon Nov 24, 2003 4:35 pm Post subject: |
|
|
indiboi wrote: | One thing that just came to mind is to make sure your kernel has the scsi option of "probe for multiple luns" enabled. Before having that option enabled only one 'part' of my reader would work. Maybe that's the case for you also, but the part of the reader that works isn't the one you need to use? On my reader with the four slots, the smart media reader is /dev/sdd and /dev/sda is for compact flash. With the probe multiple luns feature of the kernel enabled it creates four devices sda through sdd at boot. |
Thanks for the help.
Probe all luns is enabled in my kernel... |
|
Back to top |
|
|
SNo0py Apprentice
Joined: 12 Jul 2002 Posts: 270 Location: Vienna, Austria
|
Posted: Tue Dec 23, 2003 8:16 am Post subject: |
|
|
I have excact the same problem
a after inserting the card creates sda1, but you have to type the command manually.
Any better solution? _________________ Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you. |
|
Back to top |
|
|
|