Subject: Re: MEMORY_DISK_SERVER
To: None <netbsd-help@netbsd.org>
From: Jukka Salmi <j+nbsd@2004.salmi.ch>
List: netbsd-help
Date: 12/27/2004 11:33:52
Luke Mewburn --> netbsd-help (2004-12-27 12:07:18 +1100):
> On Fri, Dec 24, 2004 at 02:06:06PM +0100, Jukka Salmi wrote:
>   | I'm playing around with md(4) and just noticed the MEMORY_DISK_SERVER
>   | option in an online article[1]:
>   | 
>   | 	options MEMORY_DISK_SERVER=1  # make the ramdisk writeable
>   | 
>   | Hmm, writeable? I tried this, but my md root device is still read-only.
>   | I read src/sys/dev/md.c but still don't understand what this option
>   | really does. Explanations are appreciated!
> 
> Have you tried using
> 	mount -u /
> to change the mountpoint to read-write ?

# mount
root_device on / type ffs (read-only, local)
mfs:7 on /dev type mfs (synchronous, local)
mfs:1158 on /mnt/mfs type mfs (synchronous, local)
# mount -u /
mount_ffs: root_device on /: No such file or directory

Hmm, I still don't get it. Should it be possible at all to mount
a root md read-write? Is this configurable with the MEMORY_DISK_SERVER
setting?


TIA, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~