public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* NFS-mounted, read-only /dev unusable in 2.6
@ 2004-08-03  8:09 Frank Steiner
  2004-08-03 14:13 ` Dick Streefland
  0 siblings, 1 reply; 13+ messages in thread
From: Frank Steiner @ 2004-08-03  8:09 UTC (permalink / raw)
  To: linux-kernel

Hi,

we boot diskless clients using nfsroot. The server exports
its own / with "ro,no_root_squash" and the clients mount it via
the nfsroot parameter. Then I run my own init script to mount
client specific /dev, /var, /etc all rw.

In this scenario, the 2.6.7 kernel fails to open an initial
console, since /dev is ro.

The 2.4 kernel was able to open an initial console, and
I could also echo sth. explicitely to /dev/console, even
when it was still the ro-mounted fs from the server.

With the 2.6.7 kernel, this will fail with "permission denied",
and that's why the kernel cannot open an initial console.
It will go on silently until I mount the client-specific
/dev in my init script and redirect all output.

Similar, using /dev/ram0 for creating an initial ramdisk
will fail when / is mounted ro from the server, and server
and client use both kernel 2.6.7. If the client runs
2.4, it is possible...

Is that change between 2.4 and 2.6 desired or a bug? It sounds
correct that one cannot use a node "/dev/console" for writing
if it is mounted read-only from a NFS server, but it was very
useful in 2.4.

Or is there any other way to get an initial console or
output any messages from an init script if one boots via nfsroot
and  / (and thus, /dev) is only exported read-only from the
server?

I need that to get possible error messages from my own init
script to see what fails before I mount the client /dev.

cu,
Frank
-- 
Dipl.-Inform. Frank Steiner   Web:  http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik    Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17           Phone: +49 89 2180-4049
80333 Muenchen, Germany       Fax:   +49 89 2180-99-4049


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-08-05  6:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-03  8:09 NFS-mounted, read-only /dev unusable in 2.6 Frank Steiner
2004-08-03 14:13 ` Dick Streefland
2004-08-03 14:42   ` Frank Steiner
2004-08-03 17:28     ` L A Walsh
2004-08-04  6:27       ` Frank Steiner
2004-08-03 21:09   ` Miquel van Smoorenburg
2004-08-04  6:34     ` Frank Steiner
2004-08-04  6:47       ` Miquel van Smoorenburg
2004-08-04  7:00         ` Frank Steiner
2004-08-04  7:05         ` Neil Brown
2004-08-04 10:35           ` Frank Steiner
2004-08-04 11:02             ` Neil Brown
2004-08-05  6:30               ` Frank Steiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox