Bug#122142: Happens here too
On Thu, 2002-01-17 at 02:02, Craig Small wrote:
> VFS: Mounted root (ext2 filesystem) readonly.
> Warning: unable to open an initial console.
> Adding Swap: 51184k swap-space (priority -1)
> eth5: Link is up using external transceiver at 100Mb/s, Full Duplex.
>
> Don't know why i get the error about the console, there is a getty on
> ttyS0
That's pretty significant. It must mean that something is wrong with
/dev/console.
> fd = open("/dev/console",O_RDONLY);
>
>
> /* Are we on a serial console? */
> if (ioctl(fd, TIOCGSERIAL, &ser) < 0)
> /* Not on a serial console */
> printf("Not on serial line.\n");
Would you add a check for success to the open() call as well and try it
again?
p.
Reply to: