NetBSD-Bugs archive

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

install/54996: sysinst on arm messes up partitioning install disk (NetBSD 9 and later)

>Number:         54996
>Category:       install
>Synopsis:       sysinst on arm messes up partitioning install disk (NetBSD 9 and later)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 21 18:15:00 +0000 2020
>Originator:     Dave Tyson
>Release:        NetBSD 9.99.37
System: NetBSD 9.99.37 NetBSD 9.99.37 (RPI.202001150240UTC) #17: Mon Jan 20 08:15:13 JST 2020 evbarm
Architecture: evbarm
Machine: Raspberry Pi B
Sysinst on some arm platforms seems to have trouble handling custom values when partitioning a hard disk.
When separate /, /usr, /var ... partitions are configured and sizes set these are accepted, however on
completion of the menu screen and moving onto the next screen to confirm there are missing partitions
and the (a) / partition is changed to /usr and there is no / partition. Accepting the values results in
sysinst complaining about a missing root partition
Problem noted under NetBSD 9.0 on Banana Pi with sata controller, reproduced below on NetBSD-current with
a Raspberry Pi usb attached disk and Jun Ebihara image: 
Problems using sysinst on arm to partition a hard disk.

sysinst dialogue:

NetBSD/evbarm 9.99.37                                                                                                                                                             
 This menu-driven tool is designed to help you install NetBSD to a hard disk, or upgrade an existing NetBSD system, with a minimum of work.                                        
 In the following menus type the reference letter (a, b, c, ...) to select an item, or type CTRL+N/CTRL+P to select the next/previous item.                                        
 The arrow keys and Page-up/Page-down may also work.                                                                                                                               
 Activate the current selection from the menu by typing the enter key.                                                                                                             
 If you booted from a floppy, you may now remove the disk.                                                                                                                         
 Thank you for using NetBSD!                                                                                                                                                       
                                                                 ? NetBSD-9.99.37 Install System                 ?                                                                 
                                                                 ?                                               ?                                                                 
                                                                 ?>a: Install NetBSD to hard disk                ?                                                                 
                                                                 ? b: Upgrade NetBSD on a hard disk              ?                                                                 
                                                                 ? c: Re-install sets or install additional sets ?                                                                 
                                                                 ? d: Reboot the computer                        ?                                                                 
                                                                 ? e: Utility menu                               ?                                                                 
                                                                 ? f: Config menu                                ?                                                                 
                                                                 ? x: Exit Install System                        ?                                                                 

select install and yes to continue

 On which disk do you want to install NetBSD?

                                                                           ? Available disks          ?                                                                            
                                                                           ?                          ?                                                                            
                                                                           ?>a: sd0 (6.0G)            ?                                                                            
                                                                           ? b: Extended partitioning ?                                                                            
                                                                           ? x: Exit                  ?                                                                            

     ? The disk seems not to have been partitioned before. Please select    ?
     ? a partitioning scheme from the available options below.              ?
     ?                                                                      ?
     ?>a: BSD disklabel                                                     ?
     ? b: Master Boot Record (MBR)                                          ?
     ? x: Exit                                                              ?

You can now change the sizes for the system partitions.  The default is to allocate all the space to the root file system.  However, you may wish to have separate /usr
 (additional system files), /var (log files etc) or /home (users' home directories) file systems.

 Free space will be added to the partition marked with a '+'.

       Size (MB)                             Filesystem
       ----------------------------------- - --------------------
   >a: 16                                    /boot
    b: 808 (6005)                          + /
    c: 128                                   <swap>
    d: 0                                     /tmp (mfs)
    e: 0                                     /usr
    f: 0                                     /var
       ----------------------------------- - --------------------
    h: Add a user defined partition
    i: Clone external partition(s)
    j: Change input units (sectors/cylinders/MB/GB)
    x: Go on.  Free space 5197 MB.

I want a custom install with separate /usr, /var and /home 

changed a: to be 64   - OK
        b: to be 256a - OK
        c: to be 512  - OK

changed e: to be 3072  -  on pressing return this is set OK but b: now is reported to be 18446744073709551072

changed f: to be 1024 - OK
added a partition g for /home and use the rest of the free space (2021) -OK

screen now looks like:

      Size (MB)                             Filesystem
       ----------------------------------- - --------------------
    a: 64                                    /boot
    b: 18446744073709551072                  /
    c: 512                                   <swap>
    d: 0                                     /tmp (mfs)
    e: 3072                                  /usr
    f: 1024                                  /var
   >g: 2021                                  /home
       ----------------------------------- - --------------------
    i: Add a user defined partition
    j: Clone external partition(s)
    k: Change input units (sectors/cylinders/MB/GB)
    x: Go on.  Free space 0 MB.

let go on...

This is what is shown:

 We now have your disklabel partitions for sd0 below.  This is your last chance to change them.
 Flags: (I)nstall, (N)ewfs.  Total size: 6150M, free: 1478M
      Start (MB)     End (MB)    Size (MB)  FS type Flag Filesystem
    ------------ ------------ ------------ -------- ---- ----------------
 a:          576         3647         3072   4.2BSD N    /usr
 b:           64          575          512     swap
 c:            0         6148         6149 Whole disk
 d:            0           63           64    MSDOS N    /boot
 e:         3648         4671         1024   4.2BSD N    /var
    ------------ ------------ ------------ -------- ---- ----------------
 g: Change input units (sectors/cylinders/MB/GB)
 h: Edit name of the disk
 i: Clone external partition(s)
 j: Cancel
>x: Partition sizes ok
Notice the root partition (a) is now /usr and there is no root partition. /home has also gone. The (b) partition is the correct size so the 
large number is just an artifact.  If you select partition sizeis are OK then it complains about no root partition

There must be a single partition marked to be mounted on '/'. 
                                                              ? Do you want to re-edit the disklabel partitions?    ?
                                                              ?                                                     ?
                                                              ?>a: Re-edit                                          ?
                                                              ? b: Use this partitions anyway                       ?
                                                              ? c: Abort installation                               ?

manually partition the disk using disklabel


Home | Main Index | Thread Index | Old Index