aboutsummaryrefslogtreecommitdiffstats
path: root/core/install.html
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2018-12-15 19:07:28 +0000
committerSilvino Silva <silvino@bk.ru>2018-12-15 19:07:28 +0000
commit57a604e35930f4f58aabe93c8c51de5ee378813c (patch)
treec525b26849561aaef85abd50b36c7d6f6344cbae /core/install.html
parent7dd5f7d9c2875f8d8b5ad7ba92484d805e94dabb (diff)
parentd29168d07293ffd1c8c1a186c42fc70f5461e928 (diff)
downloaddoc-57a604e35930f4f58aabe93c8c51de5ee378813c.tar.gz
doc-0.4.0 release
Diffstat (limited to 'core/install.html')
-rw-r--r--core/install.html112
1 files changed, 51 insertions, 61 deletions
diff --git a/core/install.html b/core/install.html
index dfde50a..fb1a546 100644
--- a/core/install.html
+++ b/core/install.html
@@ -75,7 +75,7 @@
installations. Partition size 128M;</p>
<pre>
- (parted) mkpart ESP fat32 4 125
+ (parted) mkpart ESP fat32 4 132
(parted) name 2 efi
(parted) set 2 boot on
</pre>
@@ -83,70 +83,74 @@
<h3>/boot</h3>
<p>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;</p>
<pre>
- (parted) mkpart primary ext4 125 1128
+ (parted) mkpart primary ext4 132 1132
(parted) name 3 boot
</pre>
<h3>/</h3>
- <p>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;</p>
+ <p>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;</p>
<pre>
- (parted) mkpart primary ext4 1128 5128
+ (parted) mkpart primary ext4 1132 21132
(parted) name 4 root
</pre>
<h3>/var</h3>
<p>Var partition is recommended 1G-5G depending on how
- system is configured. Partition size 1G;</p>
+ system is configured. Partition size 2G;</p>
<pre>
- (parted) mkpart primary ext4 5128 6128
+ (parted) mkpart primary ext4 21132 23132
(parted) name 5 var
</pre>
- <h3>/usr</h3>
-
- <p>User partition with 4G-8G is recommended for a desktop
- setup, with dedicated partition for ports. Partition size
- 8G;</p>
-
- <pre>
- (parted) mkpart primary ext4 6128 14128
- (parted) name 6 usr
- </pre>
-
<h3>Swap (ram)</h3>
<p>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;</p>
+ To build firefox is necessary at least 34G. Partition size 4G;</p>
+
+ <p>Is better to create swap partition later using
+ <a href="../tools/lvm.html">lvm</a>.</p>
<pre>
- (parted) mkpart primary linux-swap 14128 18128
- (parted) name 3 swap
+ (parted) mkpart primary linux-swap 23132 27132
+ (parted) name 6 swap
</pre>
+
<h3>/home</h3>
- <p>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;</p>
+ <p>Home partition on desktop fill the rest of disk
+ space while on server this partition can be unnecessary.
+ Fill the rest of disk space;</p>
+
+ <p>Is better to create home partition later using
+ <a href="../tools/lvm.html">lvm</a>.</p>
+
+ <pre>
+ (parted) mkpart primary ext4 27132 100%
+ (parted) name 7 home
+ </pre>
+
+ <h3>Create filesystems</h3>
<pre>
- (parted) mkpart primary ext4 18128 100%
- (parted) name 8 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
</pre>
<h2 id="step3">1.1.3. Prepare Install</h2>
@@ -156,41 +160,25 @@
create file systems, install packages, configure host
metadata and setup ports;</p>
- <pre>
- $ export CHROOT=/mnt
- </pre>
+ <p>Export target root partition;</p>
- <h3>Create filesystems</h3>
-
- <pre>
- $ export DEV=/dev/sda
- </pre>
+ <pre>
+ $ export BLK_ROOT=/dev/sda
+ </pre>
- <pre>
- $ 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"
- </pre>
+ <p>Export target root directory you want to install;</p>
<pre>
- $ 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
+ $ export CHROOT=/mnt
</pre>
+ <p>If you are installing to a directory and not partitions you don't need to mount;</p>
+
<pre>
$ sudo mount $BLK_ROOT $CHROOT
</pre>
- <p>Create directories and mount target partitions;</p>
+ <p>Create follow directories;</p>
<pre>
$ sudo mkdir -p $CHROOT/boot
@@ -203,7 +191,11 @@
$ sudo mkdir -p $CHROOT/tmp
$ sudo mkdir -p $CHROOT/proc
$ sudo mkdir -p $CHROOT/sys
+ </pre>
+
+ <p>If partition layout is different or target is a directory is not necessary to mount, create only the directories;</p>
+ <pre>
$ sudo mount $BLK_BOOT $CHROOT/boot
$ sudo mkdir -p $CHROOT/boot/efi
$ sudo mount $BLK_EFI $CHROOT/boot/efi
@@ -211,8 +203,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
</pre>
@@ -226,7 +216,7 @@
$ sudo mount -vt sysfs sysfs $CHROOT/sys
</pre>
- <p>Mount iso on target partition;</p>
+ <p>Mount iso or copy packages to target /mnt directory;</p>
<pre>
# modprobe isofs
@@ -354,7 +344,7 @@
<a href="index.html">Core OS Index</a>
<p>This is part of the Hive System Documentation.
Copyright (C) 2018
- c9 team.
+ Hive Team.
See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a>
for copying conditions.</p>