Subject: Re: kernel and root on different filesystems?
To: Miles Nordin <carton@Ivy.NET>
From: David Laight <>
List: port-sparc64
Date: 07/29/2007 19:47:04
On Sun, Jul 29, 2007 at 01:21:11PM -0400, Miles Nordin wrote:
> >>>>> "gd" == Gert Doering <> writes:
>     gd> On Linux, I'd just pass "root=/dev/hdb1" on the boot command
>     gd> line
> yeah AFAIK you can't do this.  you can use 'boot -a' to ask the
> operator interactively, or burn it into the kernel using the 'config'
> directive that you found.  I hadn't thought of Tobias's RAIDframe
> trick---that sounds neat.

It would be relatively easy to make 'boot' read the kernel from
other that the root filesystem.
The problem is deciding what the command line UI would be...

> Remember to put a copy of your kernel onto the root filesystem.  Part
> of the reason for assuming the kernel was loaded at boot time from the
> root filesystem, is that tools like 'ps' 'netstat' 'top' 'systat' all
> need to read the file from which the kernel was loaded.

Except they normally don't.
They either use sysctl, or the in kernel namelist.


David Laight: