HOW TO INSTALL exGENT version 170309 TO HARD DRIVE

Notes on a hard drive installation of exGENT
1. You need to install exGENT on an ext3 partition. You must ensure that the current partition is created and formatted before you start the installation. Run the command mke2fs -L / -I 128 -F -j -O dir_index /dev/sdaX
NOTE: You must use this command when formatting. Your Grub Legacy installation won't work otherwise.
2. Before you can format, you must unmount the current install partition. This is done with the command umount /dev/sdXX. ("X" must of course be replaced by the letter and number of your current partition, e.g. /dev/sdb7 or...).
3. You should/must also create a SWAP space of about 2000 MB.

IMPORTANT: Be sure to unmount ALL partitions on your computer before you proceed.

Then follow these steps:

1. So first create a Linux partition of about 20 GB and a swap space of about 2000 MB. If you use an existing Linux partition, you must make sure it is formatted before running the commands listed below. Hereinafter the Linux partition /dev/sdb7 and SWAP partition /dev/sda2. (You must of course enter the correct name for your new or already existing Linux partition and SWAP partition).
2. Boot up the computer from the exGENT cd and open up a terminal as root.
3. Run the command umount /dev/sdb7 (if mounted)
4. Run the command mke2fs -L / -I 128 -F -j -O dir_index /dev/sdb7
5. Run the command cd /root/install
6. Run the command ./install.sh /dev/sdb7 /dev/sda2 (IMPORTANT: The correct order of the installation partition and the SWAP partition)
7. If you do not already have a Linux system on your computer and want to use Grub2 as boot loader, you should eventually run the command ./install-boot.sh /dev/sdb7 /dev/sda (Comment: This will install Grub on the install partition and in MBR - /dev/sda).
Done! See below how it looks when the above installation commands are executed.
INSTALL exGENT

Check Grub (/mnt/sdb7/boot/grub/grub.cfg)

Before you restart your computer after a Grub install you should mount your install partition and check that the install program got it right. Check especially line 5 - see below set root= 'hd1,gpt7'. If you have installed exGENT on (for example) /dev/sda5 said line should be set root='hd0,gpt5'.

Grub2
If you are using Grub2 (new GRUB) as boot loader, you should instead add the following lines in the file /etc/grub.d/40_custom and then run the command update-grub (in the system where you have installed Grub2).
####################
menuentry 'exGENT (sdb7)' --class gnu-linux --class gnu --class os {
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='hd1,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt7 --hint-efi=hd1,gpt7 --hint-baremetal=ahci1,gpt7 2e3a100b-6ae5-48f4-b298-fdb94e7ac417
else
search --no-floppy --fs-uuid --set=root 2e3a100b-6ae5-48f4-b298-fdb94e7ac417
fi
linux /boot/kernel-genkernel-x86_64-
4.9.12-aufs-gentoo-exton root=/dev/sdb7 rw init=/usr/lib/systemd/systemd

initrd /boot/initramfs-genkernel-x86_64-4.9.12-aufs-gentoo-exton
}
####################
NOTE: When installing exGENT in VirtualBox or VMware you should start up your installation from the hard drive and then run this command: grub-mkconfig -o /boot/grub/grub.cfg

If you do that you will get a much nicer Grub2 boot screen- see a screenshot.

GRUB Legacy installation
If you are using Grub Legacy as boot loader, add instead the following lines in GRUB (menu.lst) and restart your computer. I.e. edit /boot/grub/menu.lst on the Linux partition where you have installed GRUB Legacy in the past.

######################
# exGENT - Gentoo - (sdb7)
title exGENT
root (hd1,6)
kernel /boot/kernel-genkernel-x86_64-
4.9.12-aufs-gentoo-exton root=/dev/sdb7 rw init=/usr/lib/systemd/systemd
initrd /boot/initramfs-genkernel-x86_64-
4.9.12-aufs-gentoo-exton
######################

To do after a hard drive install of exGENT
First you should open up a terminal and run the commands source /etc/profile followed by emerge --sync. After that you can install new packages (for example Libreoffice). Command emerge --ask libreoffice. That way you'll get to know dependencies and if you have to make any changes to the file /etc/portage/make.conf before you can go on and install LibreOffice with emerge libreoffice. Please read about Gentoo's Portage (package manager) before you install any programs. You can also (if you like) use Porthole Package Manager, which is preinstalled in exGENT version 170309. Porthole is a front-end for Portage, the Gentoo Package management system. It allows you to browse through available software packages and install them easy as pie. You can for example install the LXDE Desktop Environment. It will look like this.

Create new users
Maybe you want your own ordinary user after a hard drive install. This is done (as root) with the following two commands:
useradd -m -G users,audio,wheel username
passwd username

Good luck!

exton /170309


EXTON logo