about summary refs log tree commit diff stats
path: root/core/install.html
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2016-08-20 05:35:06 +0100
committerSilvino Silva <silvino@bk.ru>2016-08-20 05:35:06 +0100
commitc178db81d64eed21177b4c5d78ab3db7a785b7fe (patch)
tree986f5a2a25b3e7ab65de1fcba71648b1c405064f /core/install.html
parentaa990cd7e4f7be6e760e9cbdd402041dfecca8c7 (diff)
downloaddoc-c178db81d64eed21177b4c5d78ab3db7a785b7fe.tar.gz
initial ports, scripts revision
Diffstat (limited to 'core/install.html')
-rw-r--r--core/install.html127
1 files changed, 62 insertions, 65 deletions
diff --git a/core/install.html b/core/install.html
index 93f2625..74e5cd0 100644
--- a/core/install.html
+++ b/core/install.html
@@ -33,8 +33,8 @@
 
         <p>Prepare disk or target location where new system will
         be installed. Follow steps describe how to create efi and
-        separate partitions such as; boot, root, swap, var, tmp,
-        user, home and srv.</p>
+        separate partitions such as; boot, root, var, tmp,
+        usr, ports, swap and home.</p>
 
         <h3>/boot/efi</h3>
 
@@ -42,18 +42,20 @@
         with between 500M and 100M is recommended for standard
         installations.</p>
 
-        <pre>(parted) mkpart ESP fat32 2M 514M</pre>
+        <pre>
+        (parted) mkpart ESP fat32 1MiB    120MiB
+        </pre>
 
         <pre>
-        (parted) align-check optimal 1
+        (parted) align-check opt 1
         </pre>
 
         <h3>/boot</h3>
 
-        <p>Boot partition. Partition with 2G provides
-        room for bootable ISO.</p>
+        <p>Boot partition. Partition with 1G provides
+        room for crux iso to boot directly from grub.</p>
 
-        <pre>(parted) mkpart primary ext4 516M 2524M</pre>
+        <pre>(parted) mkpart primary ext4 120MiB 1000MiB</pre>
 
         <pre>
         (parted) align-check optimal 2
@@ -61,97 +63,91 @@
 
         <h3>/</h3>
 
-        <p>Root partition with 2G is used in this example since i
-        usr and var are mounted on other partitions</p>
+        <p>Normal installation root partition uses 200MB-500MB, being
+        1G recommended. Since we have plenty of space a partition
+        with 2G will be used to host a complete backup of final installation
+        configuration.</p>
 
-        <pre>(parted) mkpart primary ext4 2548M 4564M</pre>
+        <pre>
+        (parted) mkpart primary ext4 1000MiB 3000MiB
+        </pre>
 
         <pre>
         (parted) align-check optimal 3
         </pre>
 
-        <h3>Swap (ram)</h3>
-
-        <p>Swap partition with same memory as ram, example with
-        4G. Other swap partitions can be added later for port
-        build on ram.</p>
-
-        <pre>(parted) mkpart primary linux-swap 4568M 8576M</pre>
-
         <h3>/var</h3>
 
-        <p>Var partition with 2G;</dd>
+        <p>Var partition is recommended 100MiB-500MiB, we will
+        use 1G;</dd>
 
-        <pre>(parted) mkpart primary ext4 8584M 10592M</pre>
+        <pre>
+        (parted) mkpart primary ext4 3000MiB 4000MiB
+        </pre>
 
         <pre>
-        (parted) align-check optimal 5
+        (parted) align-check optimal 4
         </pre>
 
         <h3>/tmp</h3>
 
-        <p>Temp partition with 1G;</dd>
+        <p>Temp partition with 20M-50M;</dd>
 
-        <pre>(parted) mkpart primary ext4 10640M 11648M</pre>
+        <pre>
+        (parted) mkpart primary ext4 4000MiB 4050MiB
+        </pre>
 
         <pre>
-        (parted) align-check optimal 6
+        (parted) align-check optimal 5
         </pre>
 
         <h3>/usr</h3>
 
-        <p>User partition with 8G;</dd>
+        <p>User partition with 4G is recommended for a desktop
+        setup, we will use 8G;</dd>
 
-        <pre>(parted) mkpart primary ext4 11656M 19664M</pre>
+        <pre>
+        (parted) mkpart primary ext4 4050MiB 12000MiB
+        </pre>
 
         <pre>
-        (parted) align-check optimal 7
+        (parted) align-check optimal 6
         </pre>
 
->>>        <h3>/home</h3>
+        <h3>/home</h3>
 
-        <p>Home partition with 220G;</dd>
+        <p>Home partition with 180G;</dd>
 
-        <pre>(parted) mkpart primary ext4 19672M 220000M</pre>
+        <pre>
+        (parted) mkpart primary ext4 12000MiB 192000MiB
+        </pre>
 
         <pre>
-        (parted) align-check optimal 8
+        (parted) align-check optimal 7
         </pre>
 
-        <h3>/srv</h3>
+        <h3>/usr/ports</h3>
 
-        <p>Server data partition 300G, will contain services data,
+        <p>Ports partition with 120G allows to host sources, package
         backups and ports;</dd>
 
-        <pre>(parted) mkpart primary ext4 220008M 220016M</pre>
-
         <pre>
-        (parted) align-check optimal 9
+        (parted) mkpart primary ext4 192000MiB 312000MiB
         </pre>
 
-        <p>Check partition layout;</p>
-
         <pre>
-        (parted) print
-        Model: ATA TOSHIBA MQ01ABD1 (scsi)
-        Disk /dev/sda: 1000GB
-        Sector size (logical/physical): 512B/512B
-        Partition Table: gpt
-        Disk Flags:
+        (parted) align-check optimal 8
+        </pre>
+
+        <h3>Swap (ram)</h3>
 
-        Number  Start   End     Size    File system     Name     Flags
-         1      2097kB  514MB   512MB   fat32           ESP
-         2      516MB   2524MB  2008MB  ext4            primary
-         3      2548MB  4564MB  2016MB  ext4            primary
-         4      4568MB  8576MB  4009MB  linux-swap(v1)  primary
-         5      8584MB  10.6GB  2008MB  ext4            primary
-         6      10.6GB  11.6GB  1008MB  ext4            primary
-         7      11.7GB  19.7GB  8008MB  ext4            primary
->>>         8      238GB   260GB   21.7GB  ext4                     boot, esp
-        10      260GB   277GB   17.8GB  ext4
-        11      277GB   371GB   93.7GB  ext4
+        <p>Swap partition general advice is same size as memory ram,
+        ports system configured to build on ram need at least 30G
+        to build firefox. Other swap partitions can be added later for port
+        build on ram.</p>
 
-        (parted) quit
+        <pre>
+        (parted) mkpart primary linux-swap 312000MiB 342000MiB
         </pre>
 
         <p>Create filesystems;</p>
@@ -160,12 +156,12 @@
        $ export BLK_EFI=/dev/sda1
        $ export BLK_BOOT=/dev/sda2
        $ export BLK_ROOT=/dev/sda3
-       $ export BLK_SWAP=/dev/sda4
-       $ export BLK_VAR=/dev/sda5
-       $ export BLK_TMP=/dev/sda6
-       $ export BLK_USR=/dev/sda7
->>>    $  # export BLK_HOME=/dev/sda8
-       $ export BLK_SRV=/dev/sda10
+       $ export BLK_VAR=/dev/sda4
+       $ export BLK_TMP=/dev/sda5
+       $ export BLK_USR=/dev/sda6
+       $ export BLK_HOME=/dev/sda7
+       $ export BLK_PRT=/dev/sda8
+       $ export BLK_SWAP=/dev/sda9
         </pre>
 
         <pre>
@@ -182,8 +178,8 @@
        $ sudo mkfs.ext4 $BKL_VAR
        $ sudo mkfs.ext4 $BKL_TMP
        $ sudo mkfs.ext4 $BKL_USR
->>>    $ sudo mkfs.ext4 $BKL_HOME
-       $ sudo mkfs.ext4 $BKL_SRV
+       $ sudo mkfs.ext4 $BKL_HOME
+       $ sudo mkfs.ext4 $BKL_PRT
         </pre>
 
         <h2 id="step3">1.1.3. Prepare Target</h2>
@@ -218,8 +214,9 @@
         $ sudo mkdir -p $CHROOT/var/lib/pkg
 
         $ sudo mount $BLK_USR $CHROOT/usr
+        $ sudo mount $BLK_PRT $CHROOT/usr/ports
+
         $ sudo mount $BLK_HOME $CHROOT/home
->>>
         </pre>
 
         <p>Activate Chroot;</p>