xfs
[Top] [All Lists]

Re: Can't get initial console

To: James Simmons <jsimmons@xxxxxxxx>
Subject: Re: Can't get initial console
From: Steve Lord <lord@xxxxxxx>
Date: Thu, 18 Jan 2001 15:07:42 -0600
Cc: utz lehmann <xfs@xxxxxxxxxx>, "Marcelo E. Magallon" <marcelo.magallon@xxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx
Comments: In-reply-to James Simmons <jsimmons@suse.com> message dated "Thu, 18 Jan 2001 12:51:00 -0800."
In-reply-to: <Pine.LNX.4.21.0101181248510.264-100000@euclid.oak.suse.com>
References: <Pine.LNX.4.21.0101181248510.264-100000@euclid.oak.suse.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
Right, the problem is that xfs does it's own permissions checking, and
there is no special case for opening a device read/write on a readonly
filesystem - which is what happens to the console at boot time.

I am working on the fix, should be along shortly.

Steve
 
> > i have the same problem:
> > 
> > Start mounting filesystem: ide0(3,6)
> > Ending clean XFS mount for filesystem: ide0(3,6)
> > VFS: Mounted root (xfs filesystem) readonly.
> > Freeing unused kernel memory: 200k freed
> > Warning: unable to open an initial console.
> > 
> > this happens with console on VT or serial.
> 
> Do you have /dev on the XFS partition? Most important you need
> /dev/console on that partition. From linux/init/main.c:
> 
>         /*
>          * Ok, we have completed the initial bootup, and
>          * we're essentially up and running. Get rid of the
>          * initmem segments and start the user-mode stuff..
>          */
>         free_initmem();
>         unlock_kernel();
> 
>         if (open("/dev/console", O_RDWR, 0) < 0)
>                 printk("Warning: unable to open an initial console.\n");
> 
>         (void) dup(0);
>         (void) dup(0);
> 
>  

<Prev in Thread] Current Thread [Next in Thread>