How to add boot options.in Grub 2 (SOLVED)

Using applications, configuring, problems
Post Reply
Message
Author
HiDeHo
Posts: 311
Joined: Wed 16 Mar 2011, 09:57

How to add boot options.in Grub 2 (SOLVED)

#1 Post by HiDeHo »

Hi i am wanting to know how i can modify A Grub 2 entry so i can add other boot options eg pfix=ram. pfix=nox etc.

this entry will boot into a normal boot.

menuentry 'Puppy Linux' {
insmod ext2
set root='(hd0,3)'
linux /Puppy520/vmlinuz psubdir=Puppy520
initrd /Puppy520/initrd.gz

i am not sure but if i changed psubdir=puppy520 to pfix=ram of another boot parameter if it will work.

any ideas.


Edit: this post has been solved by me with some help from some of the wonderful users on our irc channel #puppylinux. and i posted what i did here http://www.murga-linux.com/puppy/viewtopic.php?t=64525[/b]
Last edited by HiDeHo on Sat 18 Jun 2011, 12:17, edited 3 times in total.

cthisbear
Posts: 4422
Joined: Sun 29 Jan 2006, 22:07
Location: Sydney Australia

#2 Post by cthisbear »

Yes!.... boot options.

I'm running plenty of Puppies on USB.

How can I edit the menu to make those Puppies boot >>old style.

Here are some from here....bottom of page....text zip.

http://murga-linux.com/puppy/viewtopic. ... 5&start=30

""""""""""""

title Puppy Lucid 520 (sdc1/lucid520)
find --set-root --ignore-floppies /lucid520/initrd.gz
kernel /lucid520/vmlinuz pmedia=usbflash psubdir=lucid520 pfix=fsck
initrd /lucid520/initrd.gz

title Ecomoney Seafarer Cybercafe (sdc1/ecomonesf)
find --set-root --ignore-floppies /ecomonesf/initrd.gz
kernel /ecomonesf/vmlinuz pmedia=usbflash psubdir=ecomonesf
pfix=fsck
initrd /ecomonesf/initrd.gz

title Fluppy 006 (sdc1/fluppy006)
find --set-root --ignore-floppies /fluppy006/initrd.gz
kernel /fluppy006/vmlinuz pmedia=usbflash psubdir=fluppy006
pfix=fsck
initrd /fluppy006/initrd.gz

title Puppy Studio 3 (sdc1/puppystudio3)
find --set-root --ignore-floppies /puppystudio3/initrd.gz
kernel /puppystudio3/vmlinuz pmedia=usbflash psubdir=puppystudio3
pfix=fsck
initrd /puppystudio3/initrd.gz

title Fluppy 009 (sdc1/fluppy009)
find --set-root --ignore-floppies /fluppy009/initrd.gz
kernel /fluppy009/vmlinuz pmedia=usbflash psubdir=fluppy009
pfix=fsck
initrd /fluppy009/initrd.gz

//////////

Chris.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#3 Post by nooby »

cthisbear but then you have to show the OP how to chainboot into grub2 and it would not asnwer his or her questions still

Not criticism just me wanting to grasp what the OP says and my English is very homegrown. Moon shining style.

So here is my wild guess.

Grub2 is rather new to most puppy users. We have several threads asking about it though so some answers is possible to find.

Many ahve successfully booted using grub2 so it sure should be rather easy to find them if you use grub2 as one of the search words :)

Now to the puppy specific kernel cheat codes as some name them.

If you are very unlucky then maybe grub2 ignore some of them but puppy should care about them.

So you have to try. if a specific one fail there is always the possibility to boot into a prompt and there you add the argument or that you make a Bash script that add it as a prgram to start i nthe startup thing.

I have only used grub2 once and that was a dual install with Ubuntu and puppy worked as usual caring about the puppy specific one gave it.

The only thing you need to consider is that if you dual boot with ubuntu then when ubuntu upgrade it can write over the file so you need to see to it that you write where it should be and then it will get upgraded too to be included. But if it get over written it is easy to manually put it back.

Even I managed to do that. So it is supereasy when one know how to. :)
Last edited by nooby on Sun 27 Mar 2011, 20:01, edited 1 time in total.
I use Google Search on Puppy Forum
not an ideal solution though

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#4 Post by nooby »

menuentry 'Puppy Linux' {
insmod ext2
set root='(hd0,3)'
linux /Puppy520/vmlinuz psubdir=Puppy520
initrd /Puppy520/initrd.gz

Does it not miss the final needed } there in the end

Now to how to find the grub2 threads

There is another one today so read that one too.
How to set up grub 2 to boot Puppy frugal install
http://www.murga-linux.com/puppy/viewtopic.php?t=64525

well use this search engine
http://www.wellminded.com/puppy/pupsearch.html

How to configure dual-boot of Puppy and Ubuntu?

http://www.murga-linux.com/puppy/viewto ... 332#378332

and so on. Write grub2 or grub 2 in the search and try to see what is nearest your question.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
Bernie_by_the_Sea
Posts: 328
Joined: Wed 09 Feb 2011, 18:14

Re: How to add boot options.in Grub 2

#5 Post by Bernie_by_the_Sea »

HiDeHo wrote: menuentry 'Puppy Linux' {
insmod ext2
set root='(hd0,3)'
linux /Puppy520/vmlinuz psubdir=Puppy520
initrd /Puppy520/initrd.gz

i am not sure but if i changed psubdir=puppy520 to pfix=ram of another boot parameter if it will work.
I've used Grub and Grub4dos but not Grub 2. That said, I think you can add pfix=ram and any other options to the linux line like this:

Code: Select all

	linux /Puppy520/vmlinuz psubdir=Puppy520 pfix=ram
	initrd /Puppy520/initrd.gz 
If you try this let us know if it worked.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#6 Post by nooby »

Bernie_by_the_Sea yes sorry I should have thought of that too.

That is most likely the way to do it.
Sometime they say one need puppy pfix=ram

but I am not sure that could be when one use CD or DVD.

Hes asked the same in another thread but hopefully find this one again
I use Google Search on Puppy Forum
not an ideal solution though

Post Reply