Subject: Re: Can't boot /netbsd
To: Stephen Borrill <netbsd@precedence.co.uk>
From: Hisashi T Fujinaka <htodd@twofifty.com>
List: netbsd-users
Date: 02/28/2007 12:28:06
On Wed, 28 Feb 2007, Stephen Borrill wrote:

> On Tue, 27 Feb 2007, Hisashi T Fujinaka wrote:
>
>> On Tue, 27 Feb 2007, Andy Ruhl wrote:
>> 
>>> On 2/27/07, Hisashi T Fujinaka <htodd@twofifty.com> wrote:
>>>> I can boot /onetbsd, I can boot /netbsd.gz, but I can't boot /netbsd.
>>>> This is on my i386-current machine. Any ideas?
>>> 
>>> Not enough info. Standard questions:
>>> 
>>> What is the output?
>>> Did you verify that the kernel file is not corrupt?
>>> Anything else to report?
>>> 
>>> Can't help if there isn't enough info.
>> 
>> Let me first say that I rebuild daily, so I have some experience with
>> odd errors. This one happens early in the boot process, when the kernel
>> is loading. Usually you get the fake ASCII spinny gadget but in this
>> instance it stops with "/".
>
> What's your disk layout (fdisk + disklabel)?
>
> On my laptop with an 80G drive, I've got a 30GB NTFS partition at the start 
> followed by a 1GB FAT with the rest as NetBSD. If I only have one NetBSD 
> partition, then booting works after a first installation, but if I copy new 
> kernels on, etc. at some point it will fail. This is because the BIOS calls 
> used by /boot can't read from the drive after (I guess) the 32GB boundary and 
> the kernel has moved away from the start of the partition. Old kernels (or 
> perhaps gzipped copies of new ones) would potentially boot depending on where 
> the file actually was on the disk. My solution was to have a 1GB / with the 
> rest on /usr.

That's probably the problem. I had a few separate partitions for /usr
/home /var and / but I has having problems with inodes so I consolidated
everything. Oh, well.

disklabel:
# /dev/rwd0d:
type: unknown
disk: kerry
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 310101
total sectors: 312581808
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# microseconds
track-to-track seek: 0	# microseconds
drivedata: 0

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
  a: 310483152        63     4.2BSD   2048 16384     0  # (Cyl.      0*- 308019*)
  b:   2098593 310483215       swap                     # (Cyl. 308019*- 310100)
  c: 312581745        63     unused      0     0        # (Cyl.      0*- 310100)
  d: 312581808         0     unused      0     0        # (Cyl.      0 - 310100)


Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 310101, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 312581808

BIOS disk geometry:
cylinders: 1024, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 312581808

Partition table:
0: NetBSD (sysid 169)
     start 63, size 312581745 (152628 MB, Cyls 0-310100), Active
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.

-- 
Hisashi T Fujinaka - htodd@twofifty.com
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte