Peter Ruskin <[EMAIL PROTECTED]> writes:
> On Wednesday 13 June 2001 14:51, Guillaume Cottenceau wrote:
> > michael <[EMAIL PROTECTED]> writes:
> > > Today's cooker install, recommended, went fine until Network Setup when
> [···]
> > > "kernel panic: VFS: Unable to mount root fs on 21:05".
> >
> > This seems to be /dev/hde5. Please verify that the kernel correctly
>
> [20:54 peter@penguin:~]$ ls -la /dev/hde5
> brw-rw---- 1 root disk 33, 5 Apr 14 12:06 /dev/hde5
>
> Pardon me for butting in, but would someone please explain where the "21"
> comes from? It looks as if the 05 after the colon is the minor number - I've
> often wondered about these messages.
[gc@obiwan ~] printf "%d\n" 0x21
33
Here's the code which prints the dev in readable format:
const char * kdevname(kdev_t dev)
{
static char buffer[32];
sprintf(buffer, "%02x:%02x", MAJOR(dev), MINOR(dev));
return buffer;
}
--
Guillaume Cottenceau - http://mandrakesoft.com/~gc/