Subject: Re: How to "hide" the system?
To: None <netbsd-users@netbsd.org>
From: Douglas A. Tutty <dtutty@porchlight.ca>
List: netbsd-users
Date: 10/20/2007 11:57:18
On Sat, Oct 20, 2007 at 12:34:33PM +0200, Zbigniew Baniewski wrote:
> I'm wondering, what could be the simplest way to "hide" the existing
> installation of NetBSD? I mean:
> 
> - to make it non-bootable
> - to remove any signs, that it has been installed there (no boot messages at
>   all, as it were quite "clean" HDD)
> - ...and to keep the possibility to bring it back entirely, using Live-CD
> 
> I suppose, it'll some MBR and/or boot-sector manipulation, but not sure
> exactly, what has to be done. Perhaps someone has a hint?

Assuming that you're talking about i386, the whole MBR and partition
table, I think, is contained in the first 64 sectors.  So, use dd to
pull the first 64 sectors into a file then use dd to put random data
onto the first 64 sectors.  To reverse, use dd to put your saved file
back.

Doug.