[299] in netbsd-help mailing list archive

home help back first fref pref prev next nref lref last post

Re: Reinstalling NetBSD

daemon@ATHENA.MIT.EDU (John Hawkinson)
Wed Aug 30 19:27:53 1995

Date: Wed, 30 Aug 1995 19:27:42 -0400
To: ray@MIT.EDU
Cc: netbsd-help@MIT.EDU
In-Reply-To: "[295] in netbsd-help mailing list archive"
From: John Hawkinson <jhawk@MIT.EDU>

> 	  My IP address changed due to a dorm move, so I decided to
> reinstall NetBSD rather than figuring out how to change my IP
> address and hostname etc. through NetBSD (don't ask me why).

For your reference, you need to change /etc/hosts, /etc/myname,
and /etc/hostname.FOO where FOO is the ethernet interface
you're using (ed0, ep0, fe0, etc.).  You also need to change
/etc/mygate to point to your new default router.

> 	  I used pfdisk and fdisk to try to remove the partition,
> but when I reassign the partition using pfdisk and boot the install
> disk, the program says that I don't have any free partitions.
> 	  
> 	  Then, when I try to boot up NetBSD from my hard disk, it crashes
> (I guess that's to be expected now).  How can I reinstall NetBSD?

Do you know what version of the install disk you're using? If you
used an old one, please try making a new one and see if that helps.

ACTION ITEM: The install script should print it's verion
and build date ($Revision$ $Date$) at startup time.


We added some logic to the script to try and partition automatically
if there's no partition. It sounds like that's broken for you.

At what point does the install script crap out saying you have no
free partitions?

Is the error message you were getting:


	Didn't find any NetBSD partitions or blocks of free
	sectors.  You must free up space on your hard disk
	before installing.

If so, are you sure you set the partition type properly
in pfdisk  (165 decimal or A5 hex)? Could you forward what
you get if you hit ^C and then type

	/mnt/sbin/fdisk /dev/rwd0d
(if you have an IDE drive) or

	/mnt/sbin/fdisk /dev/sd0d
(if you have a SCSI drive)

Lastly, try deleting your partition with fdisk and letting the
install script create it by itself (both should work, but...).

Thanks!

Sorry it took a day to get back to you...

--jhawk


home help back first fref pref prev next nref lref last post