Re: altroot

David Holland <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
On Wed, Nov 13, 2024 at 08:42:30AM +1100, matthew green wrote:
 > > Whats the point of /altroot? hier(7) says "Alternate root file system, 
 > > in case of disaster." Is there a way to boot such that / is not inode 2, 
 > > but that of altroot?
 > 
 > it's a mountpoint for that file system.
 > 
 > on my main devbox, when i boot -current, /altroot is the -10 install, and
 > when i boot -10, /altroot is the -current install.

If you put / on wd0a, /usr on wd0e, /altroot on wd1a, and /altroot/usr
on wd1e, and make sure both disks have bootblocks, it takes a very
exotic set of failures to force you to go and dig up rescue media.

-- 
David A. Holland
[email protected]
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.