summaryrefslogtreecommitdiff
path: root/sys/arch/vax/README.edlabel
blob: 5484e72b0ff3ed51ffc0888c5930775e80854e99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
	$OpenBSD: README.edlabel,v 1.2 1997/05/29 00:04:15 niklas Exp $
	$NetBSD: README.edlabel,v 1.1 1995/09/16 12:00:19 ragge Exp $


		How to use edlabel
		------------------


Edlabel is a program to edit disklabels on any disks in a standalone
environment. Mostly it is used to set labels when doing initial
installation procedure. It is started from boot program prompt.
You will here be guided through a session, things with ^^^^ under
is typed in by the user, comments are within /* */.

Nboot
: edlabel
  ^^^^^^^
11700+576+43200 start 0x0
With this program you can modify everything in the on-disk
disklabel. To do something useful you must know the exact
geometry of your disk, and have ideas about how you want
your partitions to be placed on disk. Some hints:
The a partition should be at least ~20000 blocks, the
b (swap) is depending on your use of the machine but it
should almost never be less than ~32000 blocks.

Disk geometry for most DEC disks can be found in the disktab
file, and disknames is listed in the installation notes.

Remember that disk names is given as disk(adapt, ctrl, disk, part)
when using the installation tools.

Label which disk? ra(1,0,0)	/* See INSTALL text for device types */
                  ^^^^^^^^^
getdisklabel: no disk label
ra(1,0,0): no disk label
(E)dit, (S)how, (D)efaults, (W)rite, (Q)uit) : e
                                               ^
First set disk type. Valid types are:
0  unknown
1  SMD
2  MSCP
3  old DEC
4  SCSI
5  ESDI
6  ST506
7  HP-IB
8  HP-FL
9  type 9
10  floppy
11  ccd
12  vnd

Numeric disk type? [0] 2    /* All disks supported this far is MSCP */
Disk name? [] rd54     ^    /* You must know what type your disk is */
badsect? [n]  ^^^^	    /* No badsectoring yet */
ecc? [n] 		    /* ECC is automatic, don't care */
removable? [n] 		    /* Removable or not, like RA60 */
Interleave? [0] 1	    /* All MSCP disks is seen like 1 interleave */
rpm? [0] 3600	^	    /* 3600 rpm is normal */
trackskew? [0] 		    /* don't care */
cylinderskew? [0] 	    /* don't care */
headswitch? [0] 	    /* don't care */
track-to-track? [0] 	    /* don't care */
drivedata 0? [0] 	    /* don't care */
drivedata 1? [0] 	    /* don't care */
drivedata 2? [0] 	    /* don't care */
drivedata 3? [0] 	    /* don't care */
drivedata 4? [0] 	    /* don't care */

bytes/sector? [0] 512	    /* Probably only sive on VAX systems */
                  ^^^
sectors/track? [0] 17	    /* You must know this, check disktab file */
                   ^^
tracks/cylinder? [0] 15	    /* You must know this, check disktab file */
                     ^^
sectors/cylinder? [0] 255   /* sectors/track * tracks/cylinder */
                      ^^^
cylinders? [0] 1221	    /* You must know this, check disktab file */
               ^^^^
a partition: offset? [0]    	/* Partition sizes are set by you. */
             size? [0] 20000 	/* Take default sizes from disktab or */
b partition: offset? [0] 20000	/* calculate your own partition sizes */
             size? [0] 20000
c partition: offset? [0] 
             size? [0] 311200
d partition: offset? [0] 
             size? [0] 
e partition: offset? [0] 40000
             size? [0] 271200
f partition: offset? [0] 
             size? [0] 
g partition: offset? [0] 
             size? [0] 
h partition: offset? [0] 
             size? [0] 

(E)dit, (S)how, (D)efaults, (W)rite, (Q)uit) : s /* Show what you've typed */
                                               ^

disk type 2 (MSCP),  rd54: 
interleave 1, rpm 3600, trackskew 0, cylinderskew 0
headswitch 0, track-to-track 0, drivedata: 0 0 0 0 0

bytes/sector: 512
sectors/track: 17
tracks/cylinder: 15
sectors/cylinder: 255
cylinders: 1221

8 partitions:
     size   offset
a:   20000,    0
b:   20000,    20000
c:   311200,    0
d:   0,    0
e:   271200,    40000
f:   0,    0
g:   0,    0
h:   0,    0

(E)dit, (S)how, (D)efaults, (W)rite, (Q)uit) : w /* Write label to disk */

This program does not (yet) write bootblocks, only disklabel.
Remember to write the bootblocks from the miniroot later with the
command "disklabel -B <diskname>".
(E)dit, (S)how, (D)efaults, (W)rite, (Q)uit) : q



-- Ragge