Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/sda1 not created when smartmedia inserted in reader
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
Jowilly
Guru
Guru


Joined: 22 Jun 2002
Posts: 319

PostPosted: Sat Nov 22, 2003 1:31 am    Post subject: /dev/sda1 not created when smartmedia inserted in reader Reply with quote

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


Joined: 19 Jun 2002
Posts: 358
Location: Brisbane/Australia

PostPosted: Sat Nov 22, 2003 2:36 am    Post subject: Reply with quote

some answers in this thread
https://forums.gentoo.org/viewtopic.php?t=15334&highlight=hotplug+automount
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Sat Nov 22, 2003 5:53 am    Post subject: Reply with quote

If it's USB, unplug the reader, insert a card, plug it back in.
Back to top
View user's profile Send private message
imeridian
n00b
n00b


Joined: 12 Nov 2003
Posts: 67

PostPosted: Sat Nov 22, 2003 9:04 am    Post subject: Reply with quote

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


Joined: 22 Jun 2002
Posts: 319

PostPosted: Sat Nov 22, 2003 9:57 pm    Post subject: Reply with quote

Jimboberella wrote:
some answers in this thread
https://forums.gentoo.org/viewtopic.php?t=15334&highlight=hotplug+automount


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


Joined: 12 Nov 2003
Posts: 67

PostPosted: Mon Nov 24, 2003 4:42 am    Post subject: Reply with quote

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


Joined: 22 Jun 2002
Posts: 319

PostPosted: Mon Nov 24, 2003 4:35 pm    Post subject: Reply with quote

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


Joined: 12 Jul 2002
Posts: 270
Location: Vienna, Austria

PostPosted: Tue Dec 23, 2003 8:16 am    Post subject: Reply with quote

I have excact the same problem :(

a
Code:
fdisk -l
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
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