about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2017-01-14 03:25:14 +0000
committerSilvino Silva <silvino@bk.ru>2017-01-14 03:30:05 +0000
commit836980a6f974f34d5e5f43aee7c5b5aa6a92c8a0 (patch)
treeec0dab6fc4f71747a2e47835b1d7248cc788d4ad
parent5d480f5d8fc61cc5313e8a92d4b007ddfea3c763 (diff)
downloaddoc-836980a6f974f34d5e5f43aee7c5b5aa6a92c8a0.tar.gz
core install prepare target bug fix
-rw-r--r--core/install.html153
-rw-r--r--tools/storage.html20
2 files changed, 84 insertions, 89 deletions
diff --git a/core/install.html b/core/install.html
index f95910f..be98a0d 100644
--- a/core/install.html
+++ b/core/install.html
@@ -18,6 +18,13 @@
         <a href="http://crux.nu/Main/Handbook3-2">Hand book 3.2</a>,
         .</p>
 
+        <p>If you are booting from crux iso and is not your keyboard
+        layout of choice run;</p>
+
+        <pre>
+        # loadkeys dvorak
+        </pre>
+
         <h2 id="step1">1.1.1. Download Iso</h2>
 
         <a href="http://crux.nu/Main/Download">Download Page</a>
@@ -33,143 +40,114 @@
 
         <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, var, tmp,
-        usr, ports, swap and home. Information about
+        separate partitions such as;
+        bios grub, EFI, swap, boot, root, var, usr and home.
+        Information about
         <a href="http://devil-detail.blogspot.pt/2013/07/install-grub2-on-gpt-disk-dedicated-partition.html">gpt partition table</a>.
         </p>
 
+        <p>Create gpt label and set unit size to use;</p>
         <pre>
         (parted) mklabel gpt
+        (parted) unit mib
+        </pre>
+
+        <h3>bootloader</h3>
+
+        <p>Partition used by grub boot loader. Partition size 2M;</p>
+
+        <pre>
+        mkpart primary 1 3
+        name 1 grub
+        set 1 bios_grub on
         </pre>
 
         <h3>/boot/efi</h3>
 
         <p>EFI System Partition, ESP type EF00. Partition
         with between 500M and 100M is recommended for standard
-        installations.</p>
+        installations. Partition size 128M;</p>
 
         <pre>
-        (parted) mkpart ESP fat32 1MiB    120MiB
+        (parted) mkpart ESP fat32 3 131
+        (parted) name 2 boot
+        (parted) set 2 boot on
         </pre>
 
+        <h3>Swap (ram)</h3>
+
+        <p>Swap partition general advice is same size as memory ram,
+        ports system configured to build on ram need at least 34G
+        to build firefox. Other swap partitions can be added later for port
+        build on ram. Partition size 512M;</p>
+
         <pre>
-        (parted) align-check opt 1
+        (parted) mkpart primary linux-swap 131 643
+        (parted) name 3 swap
         </pre>
 
         <h3>/boot</h3>
 
-        <p>Boot partition. Partition with 1G provides
-        room for crux iso to boot directly from grub.</p>
-
-        <pre>
-        (parted) mkpart primary ext4 120MiB 1000MiB
-        </pre>
+        <p>Boot partition. Partition with 1G provide room for kernels and
+        crux iso that can be directly boot from grub (without root partition).
+        Partition size 1G;</p>
 
         <pre>
-        (parted) align-check optimal 2
+        (parted) mkpart primary ext4 643 1667
+        (parted) name 4 boot
         </pre>
 
         <h3>/</h3>
 
-        <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>
+        <p>Normal core crux installation root partition uses approximately 2G,
+        without /usr 200MB-500M. Minimum 2G is recommended. Partition size 2.4G;</p>
 
         <pre>
-        (parted) mkpart primary ext4 1000MiB 3000MiB
+        (parted) mkpart primary ext4 1667 4096
+        (parted) name 5 root
         </pre>
 
-        <pre>
-        (parted) align-check optimal 3
-        </pre>
+        <p>Core system can be installed from here, additional partitions can be
+        created now or later.</p>
 
         <h3>/var</h3>
 
-        <p>Var partition is recommended 100MiB-500MiB, we will
-        use 1G;</dd>
-
-        <pre>
-        (parted) mkpart primary ext4 3000MiB 4000MiB
-        </pre>
-
-        <pre>
-        (parted) align-check optimal 4
-        </pre>
-
-        <h3>/tmp</h3>
-
-        <p>Temp partition with 20M-50M;</dd>
-
-        <pre>
-        (parted) mkpart primary ext4 4000MiB 4050MiB
-        </pre>
+        <p>Var partition is recommended 100MiB-500MiB. Partition size 1G;</dd>
 
         <pre>
-        (parted) align-check optimal 5
+        (parted) mkpart primary ext4 4096 5120
+        (parted) name 6 var
         </pre>
 
         <h3>/usr</h3>
 
-        <p>User partition with 4G is recommended for a desktop
-        setup, we will use 8G;</dd>
-
-        <pre>
-        (parted) mkpart primary ext4 4050MiB 12000MiB
-        </pre>
+        <p>User partition with 4G-8G is recommended for a desktop setup, we will use 8G;</dd>
 
         <pre>
-        (parted) align-check optimal 6
+        (parted) mkpart primary ext4 5120 13312
+        (parted) name 7 usr
         </pre>
 
         <h3>/home</h3>
 
-        <p>Home partition with 180G;</dd>
-
-        <pre>
-        (parted) mkpart primary ext4 12000MiB 192000MiB
-        </pre>
-
-        <pre>
-        (parted) align-check optimal 7
-        </pre>
-
-        <h3>/usr/ports</h3>
-
-        <p>Ports partition with 120G allows to host sources, package
-        backups and ports;</dd>
-
-        <pre>
-        (parted) mkpart primary ext4 192000MiB 312000MiB
-        </pre>
-
-        <pre>
-        (parted) align-check optimal 8
-        </pre>
-
-        <h3>Swap (ram)</h3>
-
-        <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>
+        <p>Home partition can have limited size for later creation of lvm or fill the rest of
+        disk space;</dd>
 
         <pre>
-        (parted) mkpart primary linux-swap 312000MiB 342000MiB
+        (parted) mkpart primary ext4 13312 -1
+        (parted) name 8 home
         </pre>
 
-        <p>Create filesystems;</p>
+        <h3>Create filesystems</h3>
 
         <pre>
-       $ export BLK_EFI=/dev/sda1
-       $ export BLK_BOOT=/dev/sda2
-       $ export BLK_ROOT=/dev/sda3
-       $ 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
+       $ export BLK_EFI=/dev/sda2
+       $ export BLK_SWAP=/dev/sda3
+       $ export BLK_BOOT=/dev/sda4
+       $ export BLK_ROOT=/dev/sda5
+       $ export BLK_VAR=/dev/sda6
+       $ export BLK_USR=/dev/sda7
+       $ export BLK_HOME=/dev/sda8
         </pre>
 
         <pre>
@@ -184,10 +162,8 @@
        $ sudo mkfs.ext4 $BLK_BOOT
        $ sudo mkfs.ext4 $BLK_ROOT
        $ sudo mkfs.ext4 $BKL_VAR
-       $ sudo mkfs.ext4 $BKL_TMP
        $ sudo mkfs.ext4 $BKL_USR
        $ sudo mkfs.ext4 $BKL_HOME
-       $ sudo mkfs.ext4 $BKL_PRT
         </pre>
 
         <h2 id="step3">1.1.3. Prepare Install</h2>
@@ -222,7 +198,6 @@
         $ 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>
diff --git a/tools/storage.html b/tools/storage.html
index 894873b..109c6fa 100644
--- a/tools/storage.html
+++ b/tools/storage.html
@@ -30,6 +30,20 @@
 
         <h2 id="mv">2. Moving data</h2>
 
+        <p>Temp partition with 20M-50M;</dd>
+
+        <pre>
+        (parted) mkpart primary ext4 4000MiB 4050MiB
+        </pre>
+
+        <p>Ports partition with 120G allows to host sources, package
+        backups and ports;</dd>
+
+        <pre>
+        (parted) mkpart primary ext4 192000MiB 312000MiB
+        </pre>
+
+
         <p>Reboot into single-user mode where services aren't started and networking is offline.<p>
 
         <pre>
@@ -52,8 +66,14 @@
         <p>Edit the <a href="../conf/etc/fstab">/etc/fstab</a>file:</p>
 
         <pre>
+        # Temporary Data /tmp
+        UUID=50bf6e55-6461-4dd4-b315-65b53cac0995 /tmp            ext4    defaults,nodev,nosuid,noexec	0	0
+
         # Server Data /srv
         UUID=6fadcb98-e442-4af7-a5f2-1ddb6100a8c4 /srv            ext4    defaults        0       2
+
+        # Ports Data /usr/ports
+        UUID=d1df6743-d3cb-4d5a-badb-96cef3181095 /usr/ports       ext4    defaults,nodev,nosuid,noexec	0       0
         </pre>
 
         <p>Reboot in normal mode.</p>