===== dCore Boot and Installation from GRUB2 =====

A brief dCore installation and boot example from an existing Linux install using GRUB2. No need to burn a CD/DVD or get a USB stick. Simply [[http://tinycorelinux.net/ports.html|download]] the base file system and kernel into the boot directory of your choice. A small seperate boot partition may be preferred (<100mb) but not necessary. Boot the existing Linux install where GRUB2 resides and modify the boot configuration.

This example boots dCore-jessie (vmlinuz-jessie, dCore-jessie.gz) from the root directory of hd1,1 (sdb1) and the tce (extension) directory is located in sdb4:
  * Download and copy dCore-jessie.gz and vmlinuz-jessie to /mnt/sdb1/dCore/boot.
  * Edit /etc/grub.d/40_custom, determine desired tce partition, add required boot codes and modify as needed. 
<code>
        menuentry "dCore" {
            set root=(hd1,1)
            linux /dCore/boot/vmlinuz-jessie nozswap showapps tce=sdb4 desktop=fluxbox
            initrd /dCore/boot/dCore-jessie.gz
        }
</code>
If needed, take a look at the [[https://www.gnu.org/software/grub/manual/grub/html_node/Naming-convention.html|naming convention]] used by Grub2 for numbering drives and partitions. In short, drives are numbered from //zero// onward whereas partitions are numbered from //one// onward (and not from zero as was the case in previous versions of GRUB). Furthermore, the partition numbers for extended partitions are counted from //five// onward, regardless of the actual number of primary partitions on your hard disk. Finally, partitions on a GPT-partionied disk are labeled with "gpt" in front of the partition number.
  * Run ''sudo update-grub''.
  * Reboot and select dCore from the GRUB2 menu.
  * This boots to CLI, install X.org and Fluxbox/Window Manager
  * Reboot and enjoy!

Additional resources:
  * [[http://wiki.tinycorelinux.net/dcore:installations|dCore Installation]]
  * [[http://www.tinycorelinux.net/dCore/x86/README/|Important READMEs]].
  * [[http://wiki.tinycorelinux.net/dcore:desktop-quicky|dCore Desktop Quicky]]

**[[http://wiki.tinycorelinux.net/dcore:welcome|> Return to the dCore Wiki Welcome page]]**
