Subject: Re: newbee questions on fdisk/boot
To: J.D. Bronson <firstname.lastname@example.org>
From: Pavel Cahyna <email@example.com>
Date: 09/14/2006 14:13:28
On Thu, Sep 14, 2006 at 07:04:47AM -0500, J.D. Bronson wrote:
> I know I posted a similar question here last month but I am still missing
> something and need some assistance (please)...
> I have a complete 3.0.1 install and its working fine (i386). No issues!
> This install is 100% netbsd. It does not share any fdisk or boot with any other
> OS. Just Netbsd.
> I have a larger hard drive (current 60gb - new 120GB) and want to *simply*
> migrate over to the new drive. I have done this under freebsd and openbsd and
> never had any issues. However under netbsd, I end up with constant boot
> I am very surprised that there does not appear a section on the netbsd pages
> outlining steps on how to do this? I am sure I am not the 1st idiot to attempt
> this and have issues...
> I will list what I am doing and perhaps someone here can spot what I am missing
> or why things are not working:
> 1. fdisk -u wd2 -> create partition 1 for netbsd.
> 2. fdisk -a wd2 -> make partition 1 the active partition
I think you are missing installation of the mbr bootloader:
fdisk -i wd2
> 3. disklabel wd2 -> slice and dice drive up
> 4. newfs each partition
> 5. mount each partition such as /mnta /mnte/ /mntf and so on
> 6. dump -0f - / | ( cd /mnta ; restore xf - ) for each partition
> 7. verify each old slice matches the new slice via rsync.
> 8. umount all of the temp mount points
> 9. run installboot such as:
> installboot -v -o timeout=5 /dev/rwd1d /usr/mdec/bootxx_ffsv1
> (I also tried this to no avail):
> installboot -v -o timeout=5 /dev/rwd1a /usr/mdec/bootxx_ffsv1
You should use this one...
> Then shut down. Attempt to boot off of the new drive.
> I get an error message saying it cant find '/boot'.
Do you have /boot in wd0a ?