Subject: disklabel/fdisk
To: None <port-cobalt@netbsd.org>
From: Ted Unangst <tedu@stanford.edu>
List: port-cobalt
Date: 09/30/2001 18:03:36
I'm having trouble getting my partition / disklabel info to "stick" to the
disk.  I write it out, but then it seems to disappear.  And I'm plagued by
these "wd0: no disklabel" messages.  I'm hoping that I've got something
trivial wrong.

Partition table:
0: sysid 131 (Linux native)
    start 1, size 19844 (9 MB), flag 0x0
        beg: cylinder    0, head   0, sector  2
        end: cylinder   20, head  14, sector 63
1: sysid 169 (NetBSD)
    start 20480, size 8401360 (4102 MB), flag 0x0
        beg: cylinder   21, head  10, sector  6
        end: cylinder  719, head  14, sector 63

that part is consistent.  after each boot, it's still there.  but
disklabel always resets itself to this now:

  c:  8401360    20480     unused        0     0         # (Cyl.   21*- 8911)
  d:  8421840        0     unused        0     0         # (Cyl.    0 - 8911)
  e:    19844        1 Linux Ext2        0     0         # (Cyl.    0*- 20)
  f:  8401360    20480     unused        0     0         # (Cyl.   21*- 8911)
  g:   410130   877905     unused        0     0         # (Cyl.  929 - 1362)
  h:  7133805  1288035     unused        0     0         # (Cyl. 1363 - 8911)
disklabel: boot block size 0
disklabel: super block size 0

I can mount the linux partition alright:
Filesystem           1K-blocks     Used    Avail Capacity  Mounted on
10.10.10.10:/nfsroot   2837026  1050456  1644719    38%    /
/dev/wd0e                 9603       13     9094     0%    /mnt

and it works.  but newfs won't work until i correct the disklabel.  i'd
like something like this, right?  but after i write it, newfs /dev/wd0a
runs for a while, prints lots of numbers, and then stops.  The qube is
hung.  So I reboot.  However, after the reboot, the disklabel is back to
the wrong one above.

Help?




--
"I am clearly more popular than Reagan.  I am in my third term.
Where's Reagan?  Gone after two!  Defeated by George Bush and
Michael Dukakis no less."
      - M. Barry, Mayor of Washington, DC