Subject: RE: Imaging.
To: paul@abyss.co.nz, Mac 68k NetBSD <port-mac68k@netbsd.org>
From: Richard Unger <runger@cim.mcgill.ca>
List: port-mac68k
Date: 01/02/2002 02:54:39
Hi!

You should have no problems doing what you propose. Since you boot into
MacOS first and use the util to boot netBSD, there is no issue with boot
sectors or anything like that. You just have to make sure the settings
in the boot utility match the scsi id of your new disk.

The tarballs of the distribution are not in any way special, as I
understand it, so a tarball you make yourself will 'install' just fine.
Just make sure you create the tarball with the right options (-zrpe? -
check the tar manpage) so you keep all your permissions and file
attributes.

When it comes to restoring the system, you will have to watch out more
for things like the devices, and getting the partitions and scsi IDs
back in order. Files like /etc/fstab may need modification for the new
drive.

Richie

PS: Oh - my knowledge is also for 1.4.2... I can't imagine the newer
distributions have changed that much though...


On Wed, 2002-01-02 at 00:05, Paul Thompson wrote:
> Hi,
> 
> I guess what I was wanting to do is make my own "base.tgz" in fact that's
> what I called it, I want to burn it to a CD, if I want to remake the machine
> for some reason, I can use the standard mac tools to build the MacOS stuff,
> Once I've got it booting, I can then use the "hacked" Apple HD SC, to make
> the disk partitions, then use the MKFS tool to format them, then use the
> Installer to push my version of base.tgz onto the machine.
> 
> I assume that the making the standard base.tgz must be documented somewhere,
> I would like to get hold of that information so I can replicate it for my
> version of base.tgz.
> 
> Does this make some form of sense? I'm not trying to package the
> partitioning or boot blocks.
> 
> I've got a spare disk floating around, I might just test my theory.
> 
> Cheers, Paul.
> 
> -----Original Message-----
> From: port-mac68k-owner@netbsd.org
> [mailto:port-mac68k-owner@netbsd.org]On Behalf Of Don Yuniskis
> Sent: Wednesday, 2 January 2002 6:00 p.m.
> To: paul@abyss.co.nz; 'MacBSD'
> Subject: Re: Imaging.
> 
> 
> Greetings!
> 
> >I've got my NetBSD server pretty much set up how I want it now, What I
> >would like to do is make a TAR image of the box.
> >
> >What I would like to know is, If I tar and gzip the / partition, can I use
> >the installer to push the setup directly back onto the box should it
> >"hose" itself? What are the implications of doing this?
> >
> >Anyone done this?
> 
> If you mount an MFS as /, you can disklabel, newfs, etc.
> your (hosed) disk.  Then, mount it at, e.g., /mnt...
>     cd /mnt
>     tar xzpf /wherever_your_tarball_resides (e.g., /dev/mt0)
> Note that the tarball won't include the boot blocks.  So,
> you will need to reinstall them (assuming your drive was
> *completely* hosed) before you could reboot to it.
> 
> Have I forgotten anything?
> 
> *Ouch!*  This is netbsd-mac68k... I'm not sure how you
> deal with the damn MacOS "boot partition"  :-(  I wonder if
> it isn't easier to just do a SCSI copy to restore the entire
> drive (including the MacOS partition)...?
> 
> --don
> 
>