Subject: Re: 1.4 - Disklabel Problem
To: Kevin McQuiggin <mcquiggi@sfu.ca>
From: Chuck McManis <cmcmanis@mcmanis.com>
List: port-vax
Date: 07/09/1999 14:38:47
```#
# Disk Label for Kevin (9-Jul-99)
#
# Used the RA81 entry for a start.
#
# total sectors avail 633672 (Kevin's *second* disk drive)
#
# Prime factors for the total count are: 2 2 2 3 3 13 677
# Assume 677 cylinders, 13 heads, 72 sectors/track
# That yields 932 sec/cylinder or 468K/cylinder
# "Generic" partitioning, we'll assume at least
#			a: 24MB root
#				(24 * 1024) / 468 = 52.xx -> 53 cylinders
#			b: 16MB Swap
#				(16 * 1024) / 468 = 35.01 -> 35 cylinders
#			c: whole disk
#				= 677 cylinders
#			g: xxxMB User (all the rest for /usr)
#				(677 - (53+35)) = 589 cyl = 269MB
#
#			Note that some prefer a /var partition too.
#
kevin|Kevins ESDI Disk:\
:ty=winchester:ns#72:nt#13:nc#677:\
:dt=MSCP:\
:pa#49608:oa#0:ba#8192:fa#1024:\
:pb#33880:ob#49608:bb#8192:fb#1024:tb=swap:\
:pc#633672:oc#0:bc#8192:fc#1024:\
:pg#548948:og#83488:bg#8192:fg#1024:

Put the above into /etc/disktab and type
disklabel -w ra1 kevin

Note that since your two disks return a different number of sectors you
will have to create your own label for the ra0 drive...

--Chuck

At 01:30 PM 7/9/99 -0700, Kevin McQuiggin wrote:
>Hi Group:
>
>Here's a logged session that shows what happens when I try to make disklabels
>on my ra0 and/or ra1 drives. These are ESDI drives that are connected to the
>MicroVax II via a qd32 controller, a combination that worked with no problem
>under NetBSD 1.2G a couple of years ago.
>
>Sysinst dumps core and I can't get disklabel to do anything with the drives.
>
>Any help would be appreciated. Thanks already to Chuck McManis for a few
>suggestions that have been unsuccessful. Any other ideas?
>
>Kevin
>
>Excerpt from console follows:
>
>--------------------------------------------
>
>>boot netbsd.gz -a
>
>...
>
>
>Copyright (c) 1996, 1997, 1998, 1999
>Copyright (c) 1982, 1986, 1989, 1991, 1993
>
>NetBSD 1.4 (INSTALL) #8: Fri May  7 17:59:32 CEST 1999
>    ragge@vs4000:/usr/src/sys/arch/vax/compile/INSTALL
>
>MicroVAX II
>realmem = 13619200
>avail mem = 9465856
>Using 166 buffers containing 679936 bytes of memory.
>mainbus0 (root)
>cpu0 at mainbus0: KA630
>uba0 at mainbus0: Q22
>mtc0 at uba0 csr 174500 vec 774 ipl 17
>mscpbus0 at mtc0: version 5 model 3
>mscpbus0: DMA burst size set to 4
>mt0 at mscpbus0 drive 0: TK50
>uda0 at uba0 csr 172150 vec 770 ipl 17
>mscpbus1 at uda0: version 5 model 13
>mscpbus1: DMA burst size set to 4
>ra0 at mscpbus1 drive 0: RA81
>ra1 at mscpbus1 drive 1: RA81
>uda1 at uba0 csr 160334 vec 764 ipl 17
>mscpbus2 at uda1: version 5 model 13
>mscpbus2: DMA burst size set to 4
>ra2 at mscpbus2 drive 0: RA81
>qe0 at uba0 csr 174440 vec 760 ipl 17
>dhu0 at uba0 csr 160440 vec 300 ipl 17
>dhu0: rom(1) version 2 rom(0) version 2
>md0: internal 1200K image area
>boot device: <unknown>
>root device (default md0a):
>dump device (default md0b):
>file system (default generic):
>root on md0a dumps on md0b
>Clock has lost -19421 day(s) - CHECK AND RESET THE DATE.
>root file system type: ffs
>erase ^?, werase ^W, kill ^U, intr ^C
>
> Welcome to sysinst, the NetBSD-1.4 system installation tool.
> disk, or upgrade an existing NetBSD system, with a minimum of work.
> In the following menus, you may change the current selection by
> either typing the reference letter (a, b, c, ...).  Arrow keys may also work.
> You 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!
>
>(I chose "install to hard disk")
>
> You have chosen to install NetBSD on your hard disk.  This will change
> information on your hard disk.  You should have made a full backup
> before this procedure!  This procedure will do the following things:
>         b) Create new BSD file systems
>         c) Load and install distribution sets
>
> (After you enter the partition information but before your disk is
> changed, you will have the opportunity to quit this procedure.)
> Shall we continue?
>
>(I chose "yes")
>
>ra0: no disk label: size 658101 sectors
>ra1: no disk label: size 633672 sectors
>
> On which disk do you want to install NetBSD?  [ra0]: (I hit Enter)
>
> NetBSD uses a BSD disklabel to carve up the NetBSD portion of the disk
> into multiple BSD partitions.  You must now set up your BSD disklabel.
> You have several choices.  They are summarized below.
> -- Standard: the BSD disklabel partitions are computed by this program.
> -- Standard with X: twice the swap space, space for X binaries.
> -- Custom: you specify the sizes of all the BSD disklabel partitions.
>
> The NetBSD part of your disk is 321.34 Megabytes.
> Standard requires at least 132.00 Megabytes.
> Standard with X requires at least 180.00 Megabytes.
>
>(I chose "standard")
>
>uid 0 on /: file system full
>/: write failed, file system is full
>Floating point exception
>
># disklabel ra0
># /dev/rra0c:
>type: floppy
>disk: RA81
>label:
>flags:
>bytes/sector: 512
>sectors/track: 0
>tracks/cylinder: 0
>sectors/cylinder: 0
>cylinders: 0
>total sectors: 658101
>rpm: 300
>interleave: 1
>trackskew: 0
>cylinderskew: 0
>track-to-track seek: 0	# milliseconds
>drivedata: 0
>
>8 partitions:
>#        size   offset     fstype   [fsize bsize   cpg]
>  a:   658101        0     unused        0     0
>  c:   658101        0     unused        0     0
>disklabel: sectors/track 0
># disklabel -r -e ra0
>disklabel: no disk label
># disklabel -e ra0
>/usr/bin/vi: No such file or directory
># disklabel -W ra0
># disklabel -e ra0
>/usr/bin/vi: No such file or directory
># disklabel -r ra0
>disklabel: no disk label
>#
```