Grub4dos Commands

You can select OS in your harddrive and start each one with Grub4dos. You can easily install grub4dos with Puppy Linux or etc OS in Legacy mode. Grub4dos is not for UEFI mode, last distributed in 2009. An example Grub4dos menu.lst file:

# color : setup for menu colors
# black, blue, green, cyan, red, magenta, brown ...
color white/blue black/cyan white/black cyan/black

# timeout : waiting time as seconds in grub4dos screen
timeout 10

# default : 0 is first OS, 1 is second OS, 2 is third OS (and so on).
# After waiting with timeout time and OS chosen with default works.
# Due to following list, Linux Mint 17 Qiana will work.
default 1

# Kali Linux 1.1 OS on sda6 works with these commands
# Be carefully to root (hd0,5) , for example (hd0,0) is sda1 or hda1 as different from grub2.
title Kali Linux 1.1 (sda6)
root (hd0,5)
kernel /vmlinuz root=/dev/sda6 ro
initrd /initrd.img

# kernel ve initrd commands boot OS.
title Linux Mint 17 Qiana (sda3)
uuid 06cece7a-e230-490e-961a-a8d27f24d7f9
kernel /vmlinuz root=/dev/sda3 ro
initrd /initrd.img

# Extract slacko64-6.3.0 iso to PUPPY6.3 folder and you can start PC with puppy linux.
title slacko64-6.3.0
find --set-root --ignore-floppies --ignore-cd /PUPPY6.3/initrd.gz
kernel /PUPPY6.3/vmlinuz psubdir=PUPPY6.3 pmedia=usbflash pfix=fsck
initrd /PUPPY6.3/initrd.gz

# Extract werewolf64 7.3 iso to werewolf64-73 folder and you can start PC with puppy linux.
# You must enter uuid to ID of file system which has werewolf64-73 folder.
# You can learn ID numbers of filesystems with gparted program or "sudo blkid" command.
title werewolf64 7.3 (sda1)
uuid b87edd56-183a-4ef4-939e-143f13419fcd
kernel /werewolf64-73/vmlinuz root=/dev/sda1 ro
initrd /werewolf64-73/initrd.q

# Windows
# this entry searches Windows on the HDD and boot it up
title Windows\nBoot up Windows if installed
map (hd1) (hd0)
map (hd0) (hd1)
map --hook
errorcheck off
find --set-root --ignore-floppies --ignore-cd /bootmgr
chainloader /bootmgr
find --set-root --ignore-floppies --ignore-cd /ntldr
chainloader /ntldr
find --set-root --ignore-floppies --ignore-cd /io.sys
chainloader /io.sys
errorcheck on

# Macpup'ı iso dosyasından çıkarın ve kullanın
title Macpup 550 (sdb1/MACPUP)
find --set-root --ignore-floppies --ignore-cd /MACPUP/initrd.gz
kernel /MACPUP/vmlinuz psubdir=MACPUP pmedia=usbflash pfix=fsck
initrd /MACPUP/initrd.gz

# You can deactivate user login at some Windows versions with Kon-Boot
title Kon-Boot (CURRENT VERSION)
map --mem /konboot.img (fd0)
map --hook
chainloader (fd0)+1
map (hd1) (hd0)
map --hook
rootnoverify (fd0)

title Puppy slacko 5.6.0 (sda1)
uuid b87edd56-183a-4ef4-939e-143f13419fcd
kernel /vmlinuz pmedia=atahd pfix=fsck
initrd /initrd.gz

# File system is checked and authority to transfer it with following commands
# If there is an OS on file systems, you can start it.
title Boot HDD 1 MBR\n
rootnoverify (hd0)
chainloader +1
title Boot HDD 1 Partition 1\n
rootnoverify (hd0,0)
chainloader +1
title Boot HDD 2 MBR\n
rootnoverify (hd1)
chainloader +1
title Boot HDD 2 Partition 1\n
rootnoverify (hd1,0)
chainloader +1
title Boot HDD 3 MBR\n
rootnoverify (hd2)
chainloader +1
title Boot HDD 3 Partition 1\n
rootnoverify (hd2,0)
chainloader +1

title Reboot
reboot

# authority to transfer to Grub2 if there is .
# menuentry "Grub4dos"{legacy_configfile (hd0,msdos1)//menu.lst
# you can turn back to grub4dos with above line command
title Boot LINUXMINT17 GRUB2
rootnoverify (hd0,2)
chainloader +1

# Advanced Menu
title Advanced menu
configfile /menu-advanced.lst

# You can setup grub4dos to MBR with "setup (hd0)" command in grub terminal.




Date of Article: 21.02.2016




HOME GNU/LINUX Random TURKISH