Subject: Re: Error No Operating System
To: None <david@l8s.co.uk, port-i386@netbsd.org>
From: John R. Shannon <john@johnrshannon.com>
List: port-i386
Date: 04/03/2006 14:39:57
David Laight wrote:
> On Mon, Apr 03, 2006 at 06:23:15AM -0600, John R. Shannon wrote:
>> I also can't boot hd0a:netbsd from the bootloader on an installation cd, 
>> although, if I mount /dev/wd0a /mnt, everything appears to be there.
> 
> You should also be able to get /boot (from the install cd) to do a
> directory listing of /.
> (probably: device hd0a\n ls)
> 
> What does 'dumpfs -s /dev/rwd0a' give ?
> 
> You might need to mount the filesystem, then chroot into it in order
> to run a dynamically linked dumpfs.
> 
> 	David
> 

 >dev hd0a
 >ls
ls No such file or directory

# dumpfs -s /dev/rwd0a
file system: /dev/rwd0a
endian  little-endian
magic   11954 (UFS1)
superblock location     8192    id      [ 44310de9 2e8bc4dc ]
cylgrp  dynamic inodes  4.4BSD  sblock  FFSv1   fslevel 4
nbfree  28947   ndir    59      nifree  61328   nffree  218
ncg     6       size    262584  blocks  254503
bsize   8192   shift   13      mask    0xffffe000
fsize   1024    shift  10      mask    0xfffffc00
frag    8       shift   3       fsbtodb 1
bpg     5471    fpg     43768   ipg     10624
minfree 5%      optim   time    maxcontig 8     maxbpg  2048
symlinklen 60   trackskew 0     interleave 1    contigsumsize 7
maxfilesize 0x000400801017fff
nindir  2048    inopb   64
avgfilesize 16384       avgfpdir 64
sblkno  16       cblkno  24      iblkno  32      dblkno  1360
sbsize  2048    cgsize  8192
csaddr  1360    cssize  1024
cgrotor 0       fmod    0       ronly   0       clean   0x02
flags   none
fsmnt   /mnt



I was able to boot NetBSD using the FreeBSD bootloader after installing 
both operating systems. I don't really want FreeBSD there, I just wanted 
to see the disk geometry.

# dumpfs -s /dev/rwd0a
file system: /dev/rwd0a
endian  little-endian
magic   11954 (UFS1)    time    Mon Apr  3 07:36:14 2006
superblock location     8192    id      [ 4431087b 5e13f080 ]
cylgrp  dynamic inodes  4.4BSD  sblock  FFSv1   fslevel 3
nbfree  11825   ndir    40      nifree  27174   nffree  724
ncg     2       ncyl    113     size    115200  blocks  113367
bsize   16384   shift   14      mask    0xffffc000
fsize   2048    shift   11      mask    0xfffff800
frag    8       shift   3       fsbtodb 2
cpg     95      bpg     12160   fpg     97280   ipg     14336
minfree 8%      optim   time    maxcontig 7     maxbpg  4096
rotdelay 0ms    headswitch 1144064123us trackseek 1578365056us  rps     60
ntrak   1       nsect   4096    npsect  4096    spc     4096
symlinklen 60   trackskew 0     interleave 1    contigsumsize 7
maxfilesize 0x000400400402ffff
nindir  4096    inopb   128     nspf    4
avgfilesize 16384       avgfpdir 64
sblkno  8       cblkno  16      iblkno  24      dblkno  920
sbsize  2048    cgsize  16384   offset  1024    mask    0xffffffff
csaddr  920     cssize  2048    shift   10      mask    0xfffffc00
cgrotor 0       fmod    0       ronly   0       clean   0x01
flags   none
fsmnt   /mnt
(no rotational position table)

# fdisk wd0
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 144073, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 145226112

BIOS disk geometry:
cylinders: 1023, heads: 240, sectors/track: 11 (2640 sectors/cylinder)
total sectors: 145226112

Partition table:
0: FreeBSD or 386BSD or old NetBSD (sysid 165)
     start 24, size 20969064 (10239 MB, Cyls 0/2/3-7942/200/9)
1: NetBSD (sysid 169)
     start 20969088, size 124255488 (60672 MB, Cyls 
7942/200/9-55009/74/3), Active
2: <UNUSED>
3: <UNUSED>


-- 
John R. Shannon, CISSP
john@johnrshannon.com
jshannon@dsci-usa.com
john.r.shannon@us.army.mil
shannonjr@NetBSD.org