Install HD

HOW TO INSTALL exGENT version 170407 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 9 – see below set root= ‘hd1,msdos7’. If you have installed exGENT on (for example) /dev/sda5 said line should be set root=’hd0,msdos5.

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 2017 (sdb7)’ –class gentoo –class gnu-linux –class gnu –class os $menuentry_id_option ‘gnulinux-simple-d7d79a1f-0867-470a-90f7-e6243daabfe4’ {
load_video
if [ “x$grub_platform” = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_msdos
insmod ext2
set root=’hd1,msdos7′
if [ x$feature_platform_search_hint = xy ]; then
search –no-floppy –fs-uuid –set=root –hint-bios=hd0,msdos11 –hint-efi=hd1,msdos7 –hint-baremetal=ahci0,msdos11 d7d79a1f-0867-470a-90f7-e6243daabfe4
else
search –no-floppy –fs-uuid –set=root d7d79a1f-0867-470a-90f7-e6243daabfe4
fi
echo ‘Loading Linux x86_64-4.10.4-aufs-gentoo-exton-big …’
linux /boot/kernel-genkernel-x86_64-4.10.4-aufs-gentoo-exton-big root=UUID=d7d79a1f-0867-470a-90f7-e6243daabfe4 ro init=/usr/lib/systemd/systemd
echo ‘Loading initial ramdisk …’
initrd /boot/initramfs-genkernel-x86_64-4.10.4-aufs-gentoo-exton-big
}
#################### 

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.cfgIf 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.10.4-aufs-gentoo-exton-big root=/dev/sdb7 rw
initrd /boot/initramfs-genkernel-x86_64-
4.10.4-aufs-gentoo-exton-big
######################

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 pre-installed 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.

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 /170407

EXTON logo

 

Gentoo Linux Live