NOTES on a hard drive installation of CruxEX

1.
You need to install CruxEX on an ext4 partition. You must ensure that the current partition is created and formatted before you start the installation. In a Linux system, run the command mkfs.ext4 /dev/sdaX. (Replace X vith the number of your install partition for example sda6). You can also use GParted in Linux. In Windows Vista/7/8.1/10 you can create and format your partitions with for example PartitionMagic.
2. Before you format, you must unmount the current partition (if it is mounted). This is done with the command umount /dev/sdaX. ("X" must of course be replaced by the number of your current partition, e.g. /dev/sda6).
3. You must/should 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 4 GB and a swap space of about 2000 MB or twice the size of your computer's RAM (if you have RAM of 1024 MB or less). 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/sda6 and SWAP partition /dev/sda8. (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 your CruxEX Live CD or USB stick and open up a terminal
3. Run the command umount /dev/sda6
4. Run the command mkfs.ext4 /dev/sda6
5. Run the command cd /root/install
6. Run the command ./install.sh /dev/sda6 /dev/sda8 (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/sda6 /dev/sda (Comment: This will install Grub2 on the install partition and in MBR - /dev/sda).
Done! See below how it looks when the above installation commands are executed.
INSTALL CruxEX

Please note this

If you use the script install-boot.sh to install Grub2 in MBR (/dev/sda) you must edit /boot/grub/grub.cfg on /dev/sda6 (example) before you restart the computer. When the installation is ready grub.cfg will look like this:

menuentry "CruxEX 3.3 64bit 170315" {
linux (hd0,msdos1)/boot/vmlinuz-4.9.9-exton root=/dev/sda6 quiet
}


Change line 2 to linux (hd0,msdos6)/boot/vmlinuz-4.9.9-exton root=/dev/sda6 quiet

NOTE: On one of my computers I installed CruxEX on an external USB 2.0 drive. Normally that drive will get the device name /dev/sdb, but to get CruxEX to boot from /dev/sdb7 I had to use these lines in /boot/grub/grub.cfg:

menuentry 'CruxEX (sdb7) 170315' {
linux (hd1,msdos7)/boot/vmlinuz-4.9.9-exton root=/dev/sda7 quiet
}


No GRUB installation


If you already 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. You can mount it with command (examples) mkdir /mnt/sda3 and mount /dev/sda3 /mnt/sda3.

######################
title CruxEX 3.3 64bit
root (hd0,5)
kernel /boot/vmlinuz-4.9.9-exton root=/dev/sda6
boot
######################
NOTE: Be sure that the device name is correct. See above. Maybe it is /dev/sdb6 instead of /dev/sda6 or...

Grub 2

If you already are using Grub 2 (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). You can also directly edit /boot/grub/grub.cfg and NOT run update-grub.
######################
menuentry "CruxEX 3.3 64bit" {
linux (hd0,msdos6)/boot/vmlinuz-4.9.9-exton root=/dev/sda6 quiet
}

######################
NOTE: Be sure that the device name is correct. See above. Maybe it is /dev/sdb6 instead of /dev/sda6 or...

One example of how grub.cfg can look if you have Windows 10, CruxEX and one more Linux system installed

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="0"

GRUB_TIMEOUT=25

menuentry 'CruxEX 3.3 64bit /dev/sda11'  {
    linux (hd0,msdos11)/boot/vmlinuz-4.9.9-exton root=/dev/sda11 quiet
}
menuentry 'Windows 10 (sda2 - boot)' --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos2)'
    search --no-floppy --fs-uuid --set=root D4AAA52BAAA50B56
    chainloader +1
}
menuentry 'Mint 18.1 64bit (/dev/sda7)' --class linuxmint --class gnu-linux --class gnu --class os {
    recordfail
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos7'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 62fe65eb-fdd2-4bdb-b2d0-c906bfb7154e
    else
      search --no-floppy --fs-uuid --set=root 62fe65eb-fdd2-4bdb-b2d0-c906bfb7154e
    fi
    linux    /boot/vmlinuz-4.8.0-18-exton root=UUID=62fe65eb-fdd2-4bdb-b2d0-c906bfb7154e rw quiet splash $vt_handoff
    initrd    /boot/initrd.img-4.8.0-18-exton
}
############################

About /etc/fstab

You must check the file /mnt/sda6/etc/fstab before you restart your computer. I should look like this. Change it to suit your installation of CruxEX.

NOTE: See above about "wrong" device names etc.


Good luck!

exton /170315


LOGO