[[HomePage]] > [[ComponentHowTo Components and HowTos]] > [[BootIndex Booting]] / [[InstallationIndex Install]] > [[Bootloaders Boot Loaders]] {{include pagesGRUB}} ====GRUB2 example==== ~Example of a menu entry for Puppy Linux in GRUB2. GRUB2's menu is configured in the plain text file ##/boot/grub/grub.cfg##. Menu entry usually come after the line ## ""###BEGIN /etc/grub.d/10_linux ###"" ## : ~%% menuentry 'Slacko 531 Linux (harddrive 1, partition 3)' --class gnu-linux --class gnu { echo '1. settings' insmod ext2 set root='(hd0,3)' search --no-floppy --fs-uuid --set 65555554-aaaf-bbb2-a4a5-a4a5a4a5a4a5 echo '2. loading vmlinuz' linux /slacko531/vmlinuz pmedia=atahd psubdir=slacko531 echo '3. loading initrd' initrd /slacko531/initrd.gz } %% ~##insmod ext2## - use Linux format filesystem - ~##set root='(hd0,3)'## - sets location to look for files (unless harddrive and partition are specified). In this example, the first harddrive is specified ##hd0## (typically sda), (counts harddrives from 0). The third partition is specified ##,3##, (counts partitions from 1). The single quotes in ##'(hd0,3)'## are critical, missing them will result in boot failure. - ~##search --no-floppy --fs-uuid --set 65555554-aaaf-bbb2-a4a5-a4a5a4a5a4a5## - sets the partition to search by uuid (different for each partition on different, can be found using [[GParted]]). - ~##linux /slacko531/vmlinuz pmedia=atahd psubdir=slacko531## - location of vmlinuz on partition, ##psubdir## specifics location to look for Puppy save file (if frugal installation). ---- ==Categories== [[CategoryInstallation]] [[CategoryTutorial]]