From 2832cbc97478441927b7d4fa0b6127518d012b61 Mon Sep 17 00:00:00 2001
From: Silvino Silva
- (parted) mkpart ESP fat32 4 125 + (parted) mkpart ESP fat32 4 132 (parted) name 2 efi (parted) set 2 boot on@@ -83,70 +83,62 @@
Boot partition. Partition with 1G provide room for kernels - and crux iso that can be directly boot from grub (without root + and bootable iso's that can be directly boot from grub (without root partition). Partition size 1G;
- (parted) mkpart primary ext4 125 1128 + (parted) mkpart primary ext4 132 1132 (parted) name 3 boot
Normal core crux installation root partition uses - approximately 2G, without /usr 200MB-500M. Minimum 2G - is recommended to give room to root home directory with - dedicated (separated) usr and var partition. - Partition size 4G;
+Core collection installation on root partition uses + approximately 2G. Partition with 8G-20G is recommended + for a server or desktop with dedicated ports partition + or using only compiled packages. Partition size 20G;
- (parted) mkpart primary ext4 1128 5128 + (parted) mkpart primary ext4 1132 21132 (parted) name 4 root
Var partition is recommended 1G-5G depending on how - system is configured. Partition size 1G;
+ system is configured. Partition size 2G;- (parted) mkpart primary ext4 5128 6128 + (parted) mkpart primary ext4 21132 23132 (parted) name 5 var-
User partition with 4G-8G is recommended for a desktop - setup, with dedicated partition for ports. Partition size - 8G;
- -- (parted) mkpart primary ext4 6128 14128 - (parted) name 6 usr --
Swap partition general advice is to have the same size as memory ram, ports system will be configured to build on ram. - To build firefox is necessary at least 34G, swap partitions - will be added to lvm and this partition removed. - Partition size 4G;
+ To build firefox is necessary at least 34G. Partition size 4G; + +Is better to create swap partition later using + lvm.
- (parted) mkpart primary linux-swap 14128 18128 - (parted) name 3 swap + (parted) mkpart primary linux-swap 23132 27132 + (parted) name 6 swap
Home partition general advice is to fill the rest of disk - space. Home partition will be added later to lvm and this - partition removed. Fill the rest of disk space;
+Home partition on desktop fill the rest of disk + space while on server this partition can be unnecessary. + Fill the rest of disk space;
+ +Is better to create home partition later using + lvm.
- (parted) mkpart primary ext4 18128 100% - (parted) name 8 home + (parted) mkpart primary ext4 27132 100% + (parted) name 7 home
This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.
-- cgit 1.4.1-2-gfad0 From 68c8048b2ef871cb18c5c6b58f586519c9f13f22 Mon Sep 17 00:00:00 2001 From: Silvino SilvaHome partition on desktop fill the rest of disk @@ -141,6 +142,17 @@ (parted) name 7 home +
+ $ sudo mkfs.fat -F 32 /dev/sda2 + $ sudo mkfs.ext4 /dev/sda3 + $ sudo mkfs.ext4 /dev/sda4 + $ sudo mkfs.ext4 /dev/sda5 + $ sudo mkswap /dev/sda6 + $ sudo mkfs.ext4 /dev/sda7 ++
From now on script @@ -152,37 +164,11 @@ $ export CHROOT=/mnt -
- $ export DEV=/dev/sda -- -
- $ export BLK_EFI="${DEV}2" - $ export BLK_BOOT="${DEV}3" - $ export BLK_ROOT="${DEV}4" - $ export BLK_VAR="${DEV}5" - $ export BLK_USR="${DEV}6" - $ export BLK_SWP="${DEV}7" - $ export BLK_HOME="${DEV}8" -- -
- $ sudo mkfs.fat -F 32 $BLK_EFI - $ sudo mkfs.ext4 $BLK_BOOT - $ sudo mkfs.ext4 $BLK_ROOT - $ sudo mkfs.ext4 $BKL_VAR - $ sudo mkfs.ext4 $BKL_USR - $ sudo mkswap $BLK_SWAP - $ sudo mkfs.ext4 $BKL_HOME --
$ sudo mount $BLK_ROOT $CHROOT-
Create directories and mount target partitions;
+Create follow directories;
$ sudo mkdir -p $CHROOT/boot @@ -195,7 +181,11 @@ $ sudo mkdir -p $CHROOT/tmp $ sudo mkdir -p $CHROOT/proc $ sudo mkdir -p $CHROOT/sys ++
If partition layout is different or target is a directory is not necessary to mount, create only the directories;
+ +$ sudo mount $BLK_BOOT $CHROOT/boot $ sudo mkdir -p $CHROOT/boot/efi $ sudo mount $BLK_EFI $CHROOT/boot/efi @@ -203,8 +193,6 @@ $ sudo mount $BLK_VAR $CHROOT/var $ sudo mkdir -p $CHROOT/var/lib/pkg - $ sudo mount $BLK_USR $CHROOT/usr - $ sudo mount $BLK_HOME $CHROOT/home@@ -218,7 +206,7 @@ $ sudo mount -vt sysfs sysfs $CHROOT/sys -
Mount iso on target partition;
+Mount iso or copy packages to target /mnt directory;
# modprobe isofs -- cgit 1.4.1-2-gfad0 From 440f91f7895197575e33dc50bbd6f32a60a98dbf Mon Sep 17 00:00:00 2001 From: Silvino SilvaDate: Sat, 15 Dec 2018 06:26:33 +0000 Subject: core install directory instructions --- core/install.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/install.html') diff --git a/core/install.html b/core/install.html index 0005873..4a07d46 100644 --- a/core/install.html +++ b/core/install.html @@ -160,10 +160,14 @@ create file systems, install packages, configure host metadata and setup ports; + Export target root directory you want to install;
+$ export CHROOT=/mnt+If you are installing to a directory and not partitions you don't need to mount;
+$ sudo mount $BLK_ROOT $CHROOT-- cgit 1.4.1-2-gfad0 From 8233dafb72ff5a1e36b22dda1764fc68097d6ca3 Mon Sep 17 00:00:00 2001 From: Silvino SilvaDate: Sat, 15 Dec 2018 19:02:40 +0000 Subject: fix core install prepare install --- core/install.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/install.html') diff --git a/core/install.html b/core/install.html index 4a07d46..fb1a546 100644 --- a/core/install.html +++ b/core/install.html @@ -160,6 +160,12 @@ create file systems, install packages, configure host metadata and setup ports; + Export target root partition;
+ ++ $ export BLK_ROOT=/dev/sda ++Export target root directory you want to install;
-- cgit 1.4.1-2-gfad0