Hi all,

this is a diff to faq4.html (the install faq) so that it mentions
/altroot for the installing user before he partitions his drive. Now,
the altroot feature is described in daily(8), which you only read when
you already have a system installed, your disk is already partitioned,
and typically you don't have the spare partition (of size at least that
of /) to use for /altroot.

The current partitioning example uses a 20G disk with a pre-existing
1.5G windows partition. In the diff I use a 80G disk with a pre-existing
6G windows partition. I believe these are more realistic numbers
nowadays (also, I don't have a 20G disk around :-). The 6G figure is
used to stay below 8G, which INSTALL.i386 mentions as possible BIOS
limit. I suppose the current example uses a 1.5G win partition to stay
below 2G (which might be a BIOS limit on even older hardware) - is it so?

Is using a larger disk in the example a problem? Using a 20G disk makes
the point of showing how usable the system is even on a small disk, but
20G disks don't really exist anymore.

Also, some disklabel messages and the output of disklabel's 'p' command
have changed (either that, or the current faq which shows sizes in
sectors as an output of 'p m' is mistaken).

        Jan


PS: As this is a small diff, I edited (my copy of) faq4.html manually;
but if I was to write up something bigger - is there some script(1)-like
log of the whole installation, or can I create one? Drop into shell at
the very beginning, and run 'install' inside script(1), or pipe it
through tee, neither of which exists in bsd.rd? Or do something just
before halt-and-reboot? Thanks.


Index: faq4.html
===================================================================
RCS file: /cvs/www/faq/faq4.html,v
retrieving revision 1.254
diff -r1.254 faq4.html
773c773
<   Disk: wd0       geometry: 2586/240/63 [39100320 Sectors]
---
>   Disk: wd0       geometry: 9729/255/63 [156301488 Sectors]
778c778
<   *0: 0B    0   1  1 -  202 239 63 [          63:     3069297 ] Win95 FAT-32
---
>   *0: 0B    0   1  1 -  764 254 63 [          63:    12289662 ] Win95 FAT-32
829c829
< Our drive here has a 1.5G partition for Windows 2000 (using the FAT 
---
> Our drive here has a 6G partition for Windows 2000 (using the FAT 
831c831
< that the Windows partition occupies through cylinder 202 on the drive.
---
> that the Windows partition occupies through cylinder 764 on the drive.
833,835c833,835
< at cylinder 203.  You could also calculate OpenBSD's starting sector of
< 3069360 by adding the existing partition's starting sector (63) and its
< size (3069297).
---
> at cylinder 765.  You could also calculate OpenBSD's starting sector of
> 12289662 by adding the existing partition's starting sector (63) and its
> size (12289662).
854,855c854,855
<   BIOS Starting cylinder [0 - 2585]: [0] <b>203</b>
<   BIOS Starting head [0 - 239]: [0] <b><i>Enter</i></b>
---
>   BIOS Starting cylinder [0 - 9728]: [0] <b>765</b>
>   BIOS Starting head [0 - 254]: [0] <b><i>Enter</i></b>
857,858c857,858
<   BIOS Ending cylinder [0 - 2585]: [0] <b>2585</b>
<   BIOS Ending head [0 - 239]: [0] <b>239</b>
---
>   BIOS Ending cylinder [0 - 9728]: [0] <b>9728</b>
>   BIOS Ending head [0 - 254]: [0] <b>254</b>
861c861
<   Disk: wd0       geometry: 2586/240/63 [39100320 Sectors]
---
>   Disk: wd0       geometry: 9729/255/63 [156301488 Sectors]
864c864
<    #: id    C   H  S -    C   H  S [       start:      size   ]
---
>    #: id    C   H  S -    C   H  S [       start:        size ]
866,867c866,867
<   *0: 0B    0   1  1 -  202 239 63 [          63:     3069297 ] Win95 FAT-32
<    1: A6  203   0  1 - 2585 239 63 [     3069360:    36030960 ] OpenBSD
---
>   *0: 0B    0   1  1 -  764 254 63 [          63:    12289662 ] Win95 FAT-32
>    1: A6  765   0  1 - 9728 254 63 [    12289725:   144006660 ] OpenBSD
871c871
<   Disk: wd0       geometry: 2586/240/63 [19092 Megabytes]
---
>   Disk: wd0       geometry: 9729/255/63 [76319 Megabytes]
874c874
<    #: id    C   H  S -    C   H  S [       start:      size   ]
---
>    #: id    C   H  S -    C   H  S [       start:       size ]
876,879c876,879
<   *0: 0B    0   1  1 -  202 239 63 [          63:        1499M] Win95 FAT-32
<    1: A6  203   0  1 - 2585 239 63 [     3069360:       17593M] OpenBSD
<    2: 00    0   0  0 -    0   0  0 [           0:           0M] unused
<    3: 00    0   0  0 -    0   0  0 [           0:           0M] unused
---
>   *0: 0B    0   1  1 -  764 254 63 [          63:       6001M] Win95 FAT-32
>    1: A6  765   0  1 - 9728 254 63 [    12289725:      70316M] OpenBSD
>    2: 00    0   0  0 -    0   0  0 [           0:          0M] unused
>    3: 00    0   0  0 -    0   0  0 [           0:          0M] unused
912c912
<   Disk: wd0       geometry: 2586/240/63 [39100320 Sectors]
---
>   Disk: wd0       geometry: 9729/255/63 [156301488 Sectors]
915c915
<    #: id    C   H  S -    C   H  S [       start:      size   ]
---
>    #: id    C   H  S -    C   H  S [       start:        size ]
917,918c917,918
<    0: 0B    0   1  1 -  202 239 63 [          63:     3069297 ] Win95 FAT-32
<   *1: A6  203   0  1 - 2585 239 63 [     3069360:    36030960 ] OpenBSD
---
>    0: 0B    0   1  1 -  764 254 63 [          63:    12289662 ] Win95 FAT-32
>   *1: A6  765   0  1 - 9728 254 63 [    12289725:   144006660 ] OpenBSD
949c949
<   Disk: wd0       geometry: 2586/240/63 [39100320 Sectors]
---
>   Disk: wd0       geometry: 9729/255/63 [156301488 Sectors]
954,955c954,955
<    0: 0B    0   1  1 -  202 239 63 [          63:     3069297 ] Win95 FAT-32
<   *1: A6  203   0  1 - 2585 239 63 [     3069360:    36030960 ] OpenBSD
---
>    0: 0B    0   1  1 -  764 254 63 [          63:    12289662 ] Win95 FAT-32
>   *1: A6  765   0  1 - 9728 254 63 [    12289725:   144006660 ] OpenBSD
969,971c969,970
<   # using MBR partition 1: type A6 off 3069360 (0x2ed5b0) size 36030960 
(0x225c9f0)
< 
<   Treating sectors 3069360-39100320 as the OpenBSD portion of the disk.
---
>   # Inside MBR partition 1: type A6 start 12289725 size 144006660
>   Treating sectors 12289725-156296385 as the OpenBSD portion of the disk.
1035c1034
< In this system, we have over 17G available for OpenBSD.  That's a lot 
---
> In this system, we have over 70G available for OpenBSD.  That's a lot 
1055c1054,1055
< /var, /usr, /home</tt>) along with a swap partition:
---
> /var, /usr, /home</tt>) along with a swap partition, and an <tt>/altroot</tt>
> partition to be used for backups of the root partition:
1059c1059,1062
< <li><i><b>wd0d: /tmp</b></i> - 120M.  <tt>/tmp</tt> is used for building
---
> <li><i><b>wd0d: /altroot</b></i> - 150M. This is where the root partition
>   will be backed up <a 
> href="http://www.openbsd.org/cgi-bin/man.cgi?query=daily&amp;sektion=8";>daily</a>.
>   Obviously, it needs to be at least as big as <tt>/</tt>.
> <li><i><b>wd0e: /tmp</b></i> - 120M.  <tt>/tmp</tt> is used for building
1061c1064
< <li><i><b>wd0e: /var</b></i> - 80M.  If this were to be a web or mail
---
> <li><i><b>wd0f: /var</b></i> - 80M.  If this were to be a web or mail
1073c1076
< <li><i><b>wd0h: /home</b></i> - 4G.  This will allow plenty of user file
---
> <li><i><b>wd0h: /home</b></i> - 40G.  This will allow plenty of user file
1077c1080
< Now, if you add those up, you will see over 6G of space is unused!
---
> Now, if you add those up, you will see over 20G of space is unused!
1093c1096
<   label: ST320011A
---
>   label: WDC WD800JB-00FM
1096,1100c1099,1103
<   tracks/cylinder: 16
<   sectors/cylinder: 1008
<   cylinders: 16383
<   total sectors: 39102336
<   free sectors: 36030960
---
>   tracks/cylinder: 255
>   sectors/cylinder: 16065
>   cylinders: 9729
>   total bytes: 76319.1M
>   free bytes: 70315.8M
1105,1108c1108,1109
<     a:      17593.2M       1498.7M  unused      0     0      
<     c:      19092.9M          0.0M  unused      0     0      
<     i:       1498.7M          0.0M  MSDOS                   
<   > <b>d a</b>
---
>     c:      76319.1M          0.0M  unused      0     0      
>     i:       6000.8M          0.0M  MSDOS                   
1110,1112c1111,1113
<   offset: [3069360] <b><i>Enter</i></b>
<   size: [36030960] <b>150m</b>
<   Rounding to cylinder: 317520
---
>   offset: [12289725] <b><i>Enter</i></b>
>   size: [144006660] <b>150m</b>
>   Rounding to cylinder: 321300
1116,1118c1117,1119
<   offset: [3386880] <b><i>Enter</i></b>
<   size: [35713440] <b>300m</b>
<   Rounding to cylinder: 619920
---
>   offset: [12611025] <b><i>Enter</i></b>
>   size: [143685360] <b>300m</b>
>   Rounding to cylinder: 626535
1121,1122c1122,1129
<   offset: [4006800] <b><i>Enter</i></b>
<   size: [35093520] <b>120m</b>
---
>   offset: [13237560] <b><i>Enter</i></b>
>   size: [143058825] <b>150m</b>
>   Rounding to cylinder: 321300
>   FS type: [4.2BSD] <b><i>Enter</i></b>
>   mount point: [none] <b>/altroot</b>
>   > <b>a e</b>
>   offset: [13558860] <b><i>Enter</i></b>
>   size: [142737525] <b>120m</b>
1126,1129c1133,1136
<   > <b>a e</b>
<   offset: [4263840] <b><i>Enter</i></b>
<   size: [34836480] <b>80m</b>
<   Rounding to cylinder: 166320
---
>   > <b>a f</b>
>   offset: [13815900] <b><i>Enter</i></b>
>   size: [142480485] <b>80m</b>
>   Rounding to cylinder: 176715
1133,1134c1140,1141
<   offset: [4430160] <b><i>Enter</i></b>
<   size: [34670160] <b>6g</b>
---
>   offset: [13992615] <b><i>Enter</i></b>
>   size: [142303770] <b>6g</b>
1139,1141c1146,1148
<   offset: [17025120] <b><i>Enter</i></b>
<   size: [22075200] <b>4g</b>
<   Rounding to nearest cylinder: 8391600
---
>   offset: [26587575] <b><i>Enter</i></b>
>   size: [129708810] <b>40g</b>
>   Rounding to nearest cylinder: 83891430
1148c1155
<   label: ST320011A
---
>   label: WDC WD800JB-00FM
1151,1155c1158,1162
<   tracks/cylinder: 240
<   sectors/cylinder: 15120
<   cylinders: 2586
<   total bytes: 19092.9M
<   free bytes: 6681.4M
---
>   tracks/cylinder: 255
>   sectors/cylinder: 16065
>   cylinders: 9729
>   total bytes: 76319.1M
>   free bytes: 11371.8M
1159,1167c1166,1175
<   #             size        offset  fstype [fsize bsize  cpg]
<     a:           155.0M          1498.7M  4.2BSD   2048 16384   16 # /
<     b:           302.7M          1653.8M    swap
<     c:         19092.9M             0.0M  unused      0     0
<     d:           125.5M          1956.4M  4.2BSD   2048 16384   16 # /tmp
<     e:            81.2M          2082.0M  4.2BSD   2048 16384   16 # /var
<     g:          6149.9M          2163.2M  4.2BSD   2048 16384   16 # /usr
<     h:          4097.5M          8313.0M  4.2BSD   2048 16384   16 # /home
<     i:          1498.7M             0.0M   MSDOS
---
>   #                size           offset  fstype [fsize bsize  cpg]
>     a:           156.9M          6000.8M  4.2BSD   2048 16384   16 # /
>     b:           305.9M          6157.7M    swap
>     c:         76319.9M             0.0M  unused      0     0
>     d:           156.9M          6463.7M  4.2BSD   2048 16384   16 # /altroot
>     d:           125.5M          6620.5M  4.2BSD   2048 16384   16 # /tmp
>     e:            86.3M          6746.0M  4.2BSD   2048 16384   16 # /var
>     g:          6149.9M          6832.3M  4.2BSD   2048 16384   16 # /usr
>     h:         40962.6M         12982.2M  4.2BSD   2048 16384   16 # /home
>     i:          6000.8M             0.0M   MSDOS
1197,1198c1205,1207
<   Mount point for wd0d (size=128520k)? (or 'none' or 'done') [/tmp] 
<b><i>Enter</i></b>
<   Mount point for wd0e (size=83160k)? (or 'none' or 'done') [/var] 
<b><i>Enter</i></b>
---
>   Mount point for wd0d (size=160650k)? (or 'none' or 'done') [/altroot] 
> <b><i>Enter</i></b>
>   Mount point for wd0e (size=128520k)? (or 'none' or 'done') [/tmp] 
> <b><i>Enter</i></b>
>   Mount point for wd0f (size=88357k)? (or 'none' or 'done') [/var] 
> <b><i>Enter</i></b>
1200,1201c1209,1210
<   Mount point for wd0h (size=4195800k)? (or 'none' or 'done') [/home] 
<b><i>Enter</i></b>
<   Mount point for wd0d (size=128520k)? (or 'none' or 'done') [/tmp] 
<b>done</b>
---
>   Mount point for wd0h (size=41945715k)? (or 'none' or 'done') [/home] 
> <b><i>Enter</i></b>
>   Mount point for wd0d (size=160650k)? (or 'none' or 'done') [/altroot] 
> <b>done</b>
1206,1207c1215,1217
<   wd0d /tmp
<   wd0e /var
---
>   wd0d /altroot
>   wd0e /tmp
>   wd0f /var
1213c1223,1227
<   newfs: reduced number of fragments per cylinder group from 19840 to 19760 
to enl
---
>   newfs: reduced number of fragments per cylinder group from 20080 to 19992 
> to enl
>   arge last cylinder group
>   /dev/rwd0a: 156.9MB in 321300 sectors of 512 bytes
>   5 cylinder groups of 39.05, 2499 blocks, 5120 inodes each
>   newfs: reduced number of fragments per cylinder group from 20080 to 19992 
> to enl
1215,1216c1229,1230
<   /dev/rwd0a: 155.0MB in 317520 sectors of 512 bytes
<   5 cylinder groups of 38.59MB, 2470 blocks, 4992 inodes each
---
>   /dev/rwd0d: 156.9MB in 321300 sectors of 512 bytes
>   5 cylinder groups of 39.05, 2499 blocks, 5120 inodes each
1219c1233
<   /dev/rwd0d: 125.5MB in 257040 sectors of 512 bytes
---
>   /dev/rwd0e: 125.5MB in 257040 sectors of 512 bytes
1221c1235
<   newfs: reduced number of fragments per cylinder group from 10392 to 10344 
to enl
---
>   newfs: reduced number of fragments per cylinder group from 11040 to 10992 
> to enl
1223,1224c1237,1238
<   /dev/rwd0e: 81.2MB in 166320 sectors of 512 bytes
<   5 cylinder groups of 20.20MB, 1293 blocks, 2688 inodes each
---
>   /dev/rwd0f: 86.3MB in 176712 sectors of 512 bytes
>   5 cylinder groups of 21.47MB, 1374 blocks, 2816 inodes each
1227,1228c1241,1242
<   /dev/rwd0h: 4097.5MB in 8391600 sectors of 512 bytes
<   21 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
---
>   /dev/rwd0h: 40962.6MB in 83891428 sectors of 512 bytes
>   203 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each

Reply via email to