NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

install/54745: Sysinst generates strange i386 partition table

>Number:         54745
>Category:       install
>Synopsis:       Sysinst generates strange i386 partition table
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 07 15:20:00 +0000 2019
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current, source date 2019.
System: NetBSD
Architecture: i386
Machine: i386

When I try to install a week-old NetBSD-current/i386 on an unused
MBR partition of a laptop with an existing Linux installation,
I end up with the following sysinst screen.  It's confusing me
because there is no swap partition, the NetBSD portion of the
disk is called "b" rather than "c", and the whole disk is called
"c" rather than "d":

   We now have your disklabel partitions for wd1 below.  This is your last 
   chance to change them. 

   Flags: (N)ewfs.  Total size: 75G, free: 128M

        Start (MB)     End (MB)    Size (MB)  FS type Flag Filesystem
      ------------ ------------ ------------ -------- ---- ----------------
   a:        76294       152459        76166    FFSv2 N    /
   b:        76294       152587        76294 NetBSD partition
   c:            0       238474       238475 Whole disk
      ------------ ------------ ------------ -------- ---- ----------------
   e: Add a partition
   f: Change input units (sectors/cylinders/MB/GB)
   g: Edit name of the disk
   h: Clone external partition(s)
   i: Cancel
  >x: Partition sizes ok


Build a NetBSD-current/i386 install image using "
install-image" and uncompress it into NetBSD-9.99.18-i386-install.img.

Save the following uuencoded copy of the actual MBR from the laptop as

begin 644 mbr

Create a hard disk image of the same size as the laptop disk, as a
sparse file so that it won't take up too much acutal space:

  uudecode mbr.uu
  cp mbr hd
  dd if=/dev/zero of=hd bs=512 seek=488397167 count=1

Boot the install image in qemu:

  qemu-system-i386 -nographic -snapshot -hda NetBSD-9.99.18-i386-install.img -hdb hd

Choose your terminal type

Choose your keyboard type

Answer the other sysinst prompts as follows:

a: Install NetBSD to hard disk  
Shall we continue? b: Yes
a: wd1 (232G)
a: This is the correct geometry 
a: Edit the MBR partition table
b:         76294         76294      Linux native
a:        type : Linux native
b: NetBSD
x: Partition OK
x: Partition table OK
Do you want to install the NetBSD bootcode? a: Yes
a: Set sizes of NetBSD partitions

You will now end up at the strange partition table shown at beginning
of the PR.


Home | Main Index | Thread Index | Old Index