On Wednesday 13 June 2001 22:16, Guillaume Cottenceau wrote:
> Peter Ruskin <[EMAIL PROTECTED]> writes:
> > On Wednesday 13 June 2001 14:51, Guillaume Cottenceau wrote:
> > > michael <[EMAIL PROTECTED]> writes:
> > [···]
> > > > "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;
> }
Thanks very much, Guillaume - now it's crystal clear and I feel silly for
asking.
--
Linux Mandrake release 8.0 (Traktopel) for i586
Linux 2.4.3-20mdk-win4lin-pnr, KDE: 2.1.2, Qt: 2.3.0
Uptime 1 day 1 hour 2 minutes