Subject: Disklabel partitions and the new "+"
To: None <port-sgimips@netbsd.org>
From: Florian Stoehr <netbsd@wolfnode.de>
List: port-sgimips
Date: 12/28/2004 21:36:28
Hi,

I experienced trouble installing an Indigo2-HD. I thought this was a disk 
failure.

Now on my O2, I experienced the same problem and found out it has 
something to do with the new "+" in disklabling (add free space to a 
partition).

Seems like this tries to go beyond the end of the disk? I manually set the 
sizes, leaving some MB free after partition "g", now things work.

Others also seeing this?

Problem occured only on sgimips for me, here's some info on a failed 
installation:

      Status: Command failed
     Command: /sbin/newfs -O 1 -b 8192 -f 1024  /dev/rsd0g
      Hit enter to continue
--------------------------------------------------------------------------------
/dev/rsd0g: 1000.7MB (2049408 sectors) block size 8192, fragment size 1024
         using 22 cylinder groups of 45.49MB, 5823 blks, 11264 inodes.

wtfs: write error for sector 2049407: Invalid argument

Here is the original label:

  We now have your BSD-disklabel partitions as:
  This is your last chance to change them.

     Start  MB   End  MB  Size  MB FS type    Newfs Mount Mount point
     --------- --------- --------- ---------- ----- ----- -----------
  a:         1       215       214 FFSv1      Yes   Yes   /
  b:       216      1239      1024 swap
  c:         0      4340      4341 Whole disk
  d:         0         0         1 Boot partition
  e:      1240      2739      1500 FFSv1      Yes   Yes   /usr
  f:      2740      3340       600 FFSv1      Yes   Yes   /var
  g:      3341      4340      1000 FFSv1      Yes   Yes   /home
  h:         0         0         0 unused
  i: Show all unused partitions
  j: Change input units (sectors/cylinders/MB)
>x: Partition sizes ok

-Florian