Revision [14999]

This is an old revision of grub2tut made by r1tz on 2011-05-28 14:42:51.

 

How to Set up Grub2 for puppy


For distros which uses grub2


Firstly, please take note that this How-to is only applicable if you are running other distros with uses grub2 (eg mint/ubuntu).

Note1: You do all this from the distro which uses grub2.
Note2: Paths in Grub2 is case sensitive.


1. Make a folder and place it at the root directory of a drive/partition.

(In this how-to, we are going to assume that the name of the folder is 'puppy')



2. Mount the ISO and copy the files into the folder.

2b. If you have burn a CD, you can copy the contents of the CD out into the folder.



3. If you have made the folder a drive/partition with an existing grub2 entry.
Go to /boot/grub/grub.cfg then copy the top part of the menuentry. For example,
menuentry "Vista" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set dcdc98a0dc98768c



4. Edit the file "/etc/grub.d/40_custom" as root.
You can do this with the command "sudo [name-of-text-editor] /etc/grub.d/40_custom" without the quotes.
Insert something like:

menuentry "Puppy linux" {
set root='(hd0,#)'
linux /puppy/vmlinuz
initrd /puppy/initrd.gz
}




menuentry "Puppy linux(pfix=ram)" {
< You can change the name to whatever you want
set root='(hd0,#)'
< The # is which sda/hda# it is in. Eg. sda3 will be '(hd0,3)' Also, note that the single quotes are VERY important
linux /puppy/vmlinuz pfix=ram
< Assuming your folder name is "puppy". also, you can insert boot param as shown
initrd /puppy/initrd.gz
}



If you have done step 3, you can use it like that

menuentry "Puppy" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set dcdc98a0dc98768c
linux /puppy/vmlinuz
initrd /puppy/initrd.gz
}





5. After you have edited that file as root and save it, run "sudo update-grub"

6. Check if your entry appeared in /boot/grub/grub.cfg

7. Boot into puppy.


If you do not use other distro which uses grub2, you can edi the grub.cfg directly.
However, it would be a good idea to use other bootloaders like grub4dos which is more user friendly for puppy.
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki