Re: resizing the root file system

Edgar Fuß <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
> Well, you need to either mount -o reload or reboot.
Ah, thanks.
But I cannot see /etc/rc.d/resize_root doing that.

> If you'd checked with df instead of fsck, you probably would have never
> seen it to begin with.
OK.

> meaning mount -o remount
You mean -o reload as above?

> Or you can use a normal fsck, let it set the size back down, and then 
> resize it again when you're done.
I think I'll try that one.

> But I _think_ you can't convert a read/write mount to read-only without 
> an unmount, which for the root filesystem means a reboot.
But mount(8) says (regarding -u):

also a file system can be changed from read-only to read-write or vice versa. 
An attempt to change from read-write to read-only will fail if any files on 
the file system are currently open for writing unless the -f flag is also 
specified.

and I tried it on /altroot which surely had no files open on it.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.