Re: 2.6 partition support driver methods

From: Jonathan Corbet
Date: Thu Aug 04 2005 - 09:46:24 EST


Mukund JB. <mukundjb@xxxxxxxxxxxxxxxxxxxxx> wrote:

> BUT, when a card is inserted in the socket 3, I am NOT able to mount and
> it says.
> Mount: /dev/tfa12 is not a valid block device
>
> Can you convey me where exactly I am missing or why is it failing?

First step would be to look in /proc/partitions (and the system logfile)
to get an idea of what the kernel thinks is there. When you call
add_disk(), the kernel should emit some messages noting the partitions
that it sees. My guess is a mismatch of minor numbers between your
device nodes and what the kernel sees (it's hard for me to make complete
sense out of your minor number logic), but I could be wrong.

jon
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/