David Laight | 7 May 21:17 2003
Picon

revamping disk partitioning during installation

The current disklabel editing code in sysinst is slightly user-unfriendly,
not least because the menu box overlays part of the text you need to see!

It looks something like:

 We now have your BSD-disklabel partitions as (Start, End and Size in MB):

    Start     End       Size      FStype Bsize Fsize Preserve Mount point
    --------- --------- --------- ------ ----- ----- -------- -----------
 a: 2055      2587      533       4.2BSD 8192  1024  No
 b: 2588      3612      1024      swap   
 c: 2055      6101      4047      unused 
 d: 0         19546     19547     unused 
 e: 3613      6101      2489      4.2BSD 8192  1024  No
 f: 0         2054      2055      MSDOS  
 g: 17924     19546     1622      4.2BSD 8192  1024  No
 h: 15876     17923     2048      4.2BSD 8192  1024  No
 i: 6102      12110  lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
 j: 12111     14110  x>a: Change a                        x
 k: 14111     15875  x b: Change b                        x
 l: 0         0      x c: NetBSD partition - can't change x
 m: 0         0      x d: Whole disk - can't change       x
 n: 0         0      x e: Change e                        x
 o: 0         0      x f: Change f                        x
 p: 0         0      x g: Change g                        x
                     x h: Change h                        x
                     x <: page up, >: page down           x
                     mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

I think it should be possible to make the partition display itself be the
(Continue reading)

Perry E. Metzger | 7 May 22:18 2003

Re: revamping disk partitioning during installation


David Laight <david <at> l8s.co.uk> writes:
> I think it should be possible to make the partition display itself be the
> menu - drawn without a title or box.
> 
> The user could then select the partition to edit by moving the highlighted
> entry up and down.
> 
> Once selected the information for that partition could be displayed
> vertically as another menu, allowing the user to highlight the field
> to change.

That seems rather reasonable. There are other obvious changes that
would be of use, of course -- the whole thing is terribly user
unfriendly.

.pm

David Laight | 7 May 22:31 2003
Picon

Re: revamping disk partitioning during installation

> That seems rather reasonable. There are other obvious changes that
> would be of use, of course -- the whole thing is terribly user
> unfriendly.

Indeed, but one has to start somewhere.

The code isn't very friendly to the developer either.
I might try to reduce the amount of stuff in the 'language dependant'
and 'port dependant' category - especially when ports share features.
At the moment minor changes can require 60+ files being edited.
I guess it is fortunate there are only 3 languages (English, French and
(I think) Polish [1]).

	David

[1] I had to add a message to the menus.md.pl file, I hope 'nie zmiena'
means 'do not change'.

--

-- 
David Laight: david <at> l8s.co.uk

Andrzej Szeszo | 10 May 04:16 2003
Picon

Re: revamping disk partitioning during installation

On Wed, 7 May 2003 21:31:59 +0100
David Laight <david <at> l8s.co.uk> wrote:

> [1] I had to add a message to the menus.md.pl file, I hope 'nie
> zmiena' means 'do not change'.
It is 'nie zmieniaj' and it means 'do not change' indeed.

--

-- 
Best regards,     -- listen to the smashing pumpkins --
 Andrzej

grant beattie | 13 May 11:12 2003
Picon

[talin <at> twistd.org: Practical installation]

gmane.os.netbsd.devel.installation
From: Dag Henrik Fjær <talin <at> twistd.org>
Subject: Practical installation
Date: 2003-05-13 09:02:06 GMT

Hi!
I've formerly used various linux distributions and FreeBSD/OpenBSD.
I guess you can say that I've been new to a lot of systems and I've
gone through a myriad of installations. At a first glance, I noticed two
minor things that I think the NetBSD installation lacks.
 
*
The partitioning program did not display the amount of free disk space.
It takes a small amount of time to calculate this yourself, but if you are
doing 50 installations in one day, it can get bothersome.
 
**
The keyboard layout you select during installation must be manually
set after the installation is complete. Making the installation set this
in /etc/wscons.conf would give new users an easier start. After the install,
most users are eager to explore their new system. This is hard when
you're handicapped by an unfamiliar keymap and your first encounter
with NetBSD will be a problem. Since this is something you do just once,
you might even have forgotten how to do it by the time you do your
second NetBSD installation.
 
(Continue reading)

David Laight | 30 May 20:08 2003
Picon

disk layout for sysinst for prep

I'm trying to sanitise some of the sysinst code.
In partictular using common code for all the disk partitioning (instead
of slightly different copies of a big routine in each port).

The 'prep' port has me slightly stumped though.

The code seems to look for an mbr disklabel, then:
- fails to set C up at all
- sets D to be the whole disk
- then sets D to be /usr

It also can't make its mind up whether there are 8 or 16 partitions.

My suspicion is that is just broken - so I can't make it worse.
I'll probaly leave it as an mbr install.  So C is the netbsd partition,
D the whole disk and E /usr.

	David

--

-- 
David Laight: david <at> l8s.co.uk

Jochen Kunz | 30 May 23:36 2003
Picon

Re: disk layout for sysinst for prep

On 2003.05.30 20:08 David Laight wrote:

> My suspicion is that is just broken - so I can't make it worse.
Yes. At the moment (at least in 1.6-release, haven't tried -current on
my prep machine) sysinst doesn't produce a bootable system. Sysinst must
create two MBR partitions: one small of about 2 MB of sysid 65 "Personal
RISC boot" for the kernel, and an extra MBR partition for NetBSD. 
--

-- 

tschüß,
       Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/

David Laight | 31 May 08:44 2003
Picon

Re: disk layout for sysinst for prep

On Fri, May 30, 2003 at 11:36:17PM +0200, Jochen Kunz wrote:
> On 2003.05.30 20:08 David Laight wrote:
> 
> > My suspicion is that is just broken - so I can't make it worse.
> Yes. At the moment (at least in 1.6-release, haven't tried -current on
> my prep machine) sysinst doesn't produce a bootable system. Sysinst must
> create two MBR partitions: one small of about 2 MB of sysid 65 "Personal
> RISC boot" for the kernel, and an extra MBR partition for NetBSD. 

Ok so it does need C to be the netbsd partition and D the rest of the disk
and have 16 partitions - like i386.  Which is what I've done.

It probably needs something for the boot partition as well...
It is easy to stop make_bsd_partitions() using F and set that up in the
MD code after make_bsd_partitions has finished.
Then it is just a matter of forcing the mbr code to DTRT.

	David

--

-- 
David Laight: david <at> l8s.co.uk


Gmane