Skip to contentSkip to conversation

block-major-33

DISCUSSION Tiemo Krüger - mycable GmbH (by way of Adam Luchjenbroers <[email protected]>) 2 participants 2 messages Sep 28, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

I'm not sure if I found the right group to place my request, so pls apologize
for any inconvenience.

I'm busy porting 2.4.17 and .18 to a MIPS 32 board.
There is a PCMCIA slot and I want to access a CompactFlash Card in a belonging "CF to PCMCIA" adapter.
Hotplugging of the Card seems to work as I get belonging messages.

Then I try to mount the CF Card (which is VFAT and VFAT is in my kernel) with

mount -t vfat /dev/hdxx /mnt

The response is then:

kmod: failed to exec /sbin/modprobe -s -k block-major-33, errno = 2
mount: /dev/hde is not a valid block device

I don't have modprobe in my root filesystem and during testing I want to work just with in-kernel-compiled modules and not loadable modules.

So it seems that I missed to compile the belonging modules for hda/hdb hdc/hdd hde/hdf into my kernel.
I've tried already some options but didn't found out a correct setting. Is there any essential module which has to be activated?
As far as I've seen there are for the above named devices the block-major 3, 22 and 33 responsible.
Do they correspond to any specific kernel config setting?

If I remove the "loadable-modules" option from the kernel I just get the message:
mount: /dev/hdx is not a valid block device

kind regards

Tiemo

--
-------------------------------------------------------
Tiemo Krueger Tel: +49 48 73 90 19 86
mycable GmbH Fax: +49 48 73 90 19 76
Boeker Stieg 43
D-24613 Aukrug eMail: [email protected]

Public Kryptographic Key is available on request
-------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-config" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw

Tiemo -- Please clarify what you are doing.

First, when you write --

Quoted 9 lines

Then I try to mount the CF Card (which is VFAT and VFAT is in my kernel) with

mount -t vfat /dev/hdxx /mnt

The response is then:

kmod: failed to exec /sbin/modprobe -s -k block-major-33, errno = 2
mount: /dev/hde is not a valid block device

what actual command are you entering? The "hdxx" in your command line is inconsistent with the "hde" in the result. I'm *guessing* that when you write "hdxx", you mean you actually type something like "hde1". But that should return an error with respect to (in my example) hde1, not hde.

Second, I'm uncertain as to why you are getting a modprobe message (you seem to be saying that you did everything right but it still doesn't work, and that's not the sort of description that anyone can intelligently troubleshoot), but the block-major-33 just refers to hde, hdf, and the various hde* and hdf* devices (which differ by their minor number). Simliarly, block-major-22 is hdc and hdd, and 3 is hda and hdb. Do you have an /etc/modules.conf file in your root filesystem? If yes, what is block-major-33 an alias for?

All this suggests to me that either your kernel lacks IDE support, or your hardware uses a non-standard IDE controller.

During the boot/init process, does the kernel report finding any of the IDE devices? (For that matter, are there any IDE devices other than the CF? What is the kernel loading from? What is your root filesystem on, or loaded from if it is a RAM disk)

A standard Linux kernel (I just checked 2.4.17) should need only these choices included

<*> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
<*> Include IDE/ATA-2 DISK support

to support regular IDE drives. So if you have a hard disk on the system that you cannot access, as your mention of block-major-3 seems to suggest, then you have a basic problem with the kernel's IDE support. If the devices in question are all CFs (or the same CF moved fom one IDE channel to another), then your problem may be specific to the CF stuff, an area I am not familiar with.

I don't know is this sort of response is helpful or not. If not, I'm sorry.

Quoted 32 lines · Tiemo Krüger - mycable GmbH

Hi,

I'm not sure if I found the right group to place my request, so pls apologize
for any inconvenience.

I'm busy porting 2.4.17 and .18 to a MIPS 32 board.
There is a PCMCIA slot and I want to access a CompactFlash Card in a belonging "CF to PCMCIA" adapter.
Hotplugging of the Card seems to work as I get belonging messages.

Then I try to mount the CF Card (which is VFAT and VFAT is in my kernel) with

mount -t vfat /dev/hdxx /mnt

The response is then:

kmod: failed to exec /sbin/modprobe -s -k block-major-33, errno = 2
mount: /dev/hde is not a valid block device

I don't have modprobe in my root filesystem and during testing I want to work just with in-kernel-compiled modules and not loadable modules.

So it seems that I missed to compile the belonging modules for hda/hdb hdc/hdd hde/hdf into my kernel.
I've tried already some options but didn't found out a correct setting. Is there any essential module which has to be activated?
As far as I've seen there are for the above named devices the block-major 3, 22 and 33 responsible.
Do they correspond to any specific kernel config setting?

Quoted 3 lines

If I remove the "loadable-modules" option from the kernel I just get the message:
mount: /dev/hdx is not a valid block device

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs