Convert your favorite image in xpm for using in grub
$ convert image123.png -colors 14 -resize 640x480 grubimg.xpm * size must be 640?480 pixels * only has 14 colors * save it in XPM format Edit /boot/grub/menu.lst and add...
View ArticleRemove the boot loader from a usb stick
$ dd if=/dev/zero of=/dev/sdb bs=446 count=1 If you don't want your computer to try to boot form a USB stick that used to be used as a boot device (maybe for a live linux distro), you will have to...
View ArticleAutomagically update grub.conf labels after installing a new kernel
$ LATEST=`readlink /boot/vmlinuz`; OLD=`readlink /boot/vmlinuz.old`; cat /boot/grub/grub.conf | sed -i -e 's/\(Latest \[[^-]*\).*\]/\1-'"${LATEST#*-}"]'/1' -e 's/\(Old...
View ArticleReboot as a different OS in Grub
$ echo "savedefault --default=2 --once" | grub --batch; sudo reboot This will reboot as the Grub 2 option. View this command to comment, vote or add to favourites View all commands by matthewbauer Diff...
View Articleshow framebuffer console modes to use in grub vga option
$ sudo hwinfo --framebuffer look at /boot/grub/menu.lst for somethig like: ## additional options to use with the default boot option, but not with the ## alternatives ## e.g. defoptions=vga=791...
View ArticleFix grub2 boot failure using live cd
$ sudo grub-install --root-directory=/media/ubuntu /dev/sda From live CD mount(open) the Ubuntu installed drive. Copy the location (press Ctrl+l, Ctrl+c ) eg: /media/ubuntuuuu Open terminal...
View ArticleAdding kernel boot parameters after loading kernel and initrd
$ echo "root=/dev/sda7" > /proc/param.conf Then exit from the shell. exit some time need to exit twice exit exit Now the OS will boot with the new parameters. View this command to comment, vote or...
View Article