How to set up grub 2 to boot Puppy frugal install

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
ubume2
Posts: 21
Joined: Thu 05 May 2011, 21:35
Location: Middle West, United States

#31 Post by ubume2 »

Thanks nooby for url to that search engine. Am checking into the grub issue now.

It seems to be more thorough than a regular google search

Bruce B

#32 Post by Bruce B »

As far as Ubuntu, I figure I'll probably run into control issues.

One boot manager and one menu for me. The reason why is some
previous severe data loss doing it with two grubs.

~

User avatar
ubume2
Posts: 21
Joined: Thu 05 May 2011, 21:35
Location: Middle West, United States

#33 Post by ubume2 »

HiDeHo wrote:Hi my grub 2 experiences are as follows.
........
2 I then went to /etc/grub.d/custom_40 and.added this.

menuentry 'Puppy Boot' {
search --set --fs-uuid abff01f4-2fbd-498a-bbf3-480beb990594
configfile /Puppy520/grub2.cfg
}

(this option boots, points and loads the grub2.cfg file above). you will need to change the uuid to the one from your hdd where puppy is. then point to the config file

then in the ubuntu os open a terminal and run this. sudo update-grub and your done.

I find this a much cleaner way to do things and you then get all the boot options from the puppy linux os
------------------------------------------------------------------------------

I tried your approach, and did not work with my Ubuntu grub. I did a frugal install of Puppy 525 ext3 inside Ubuntu.

I started using this url:

http://www.murga-linux.com/puppy/viewtopic.php?t=64525

My grub2.cfg file was placed in /puppy525
It reads as follows:
#This is a config file to get grub to boot puppy linux.
menuentry 'LUPUP 5.2.0 BOOT OPTIONS' {
insmod
set root
linux
intird
}

menuentry '01. Puppy Linux' {
insmod ext2
set root='(hd0,5)'
linux /Puppy525/vmlinuz psubdir=Puppy525
initrd /Puppy525/initrd.gz
}
-------------------------------------------
I added to my Ubuntu grub custom menu
menuentry 'Puppy Boot' {
search --set --fs-uuid 9c9e90e7-a00e-4f70-a396-d75dc8124e69
configfile /Puppy525/grub2.cfg
}
and updated the grub menu
When I select it on the menu...I get a press any key message. Doesn't work. Any other suggestions?

IMO trying to use grub 4 dos, is a regression. But I don't think the "how to" above was using that.

HiDeHo
Posts: 311
Joined: Wed 16 Mar 2011, 09:57

#34 Post by HiDeHo »

nooby wrote:Thanks for the list but I did ask for those that was not Ubuntu. Many of these are based on Ubuntu.

Rather many. It is past 11PM here so I look into the list tomorrow.

How did you set up the search?

Have you actually read that their installer use grub2on NTFS HDD in frugal install loading their Iso or does the search just find the word grub2 in the review or something. I am very skeptical to that all of these mention would not be Ubuntu based and at same time using grub2 as installer and boot up after install.

They maybe can be booted by grub2 that is another thing I talk about that they exclusively use grub2 as their main way to install and boot just like the latest Ubuntu does. That is rare outside of Ubuntu inspired OS.
nooby. ubuntu is baised on debian so debian uses grub 2 any debian baised os would also use it. noobyare you new to linux - if so y not do some research into what linux is and how things are. instead of asuming things about linux. I remember it is hard to make the switch from windows o linux, but just do research, it takes some reading tutorials and manuals when you start out and understanding basic things before posting in forums about things.
Last edited by HiDeHo on Sun 22 May 2011, 12:36, edited 1 time in total.

HiDeHo
Posts: 311
Joined: Wed 16 Mar 2011, 09:57

#35 Post by HiDeHo »

ubume2 wrote:
HiDeHo wrote:Hi my grub 2 experiences are as follows.
........
2 I then went to /etc/grub.d/custom_40 and.added this.

menuentry 'Puppy Boot' {
search --set --fs-uuid abff01f4-2fbd-498a-bbf3-480beb990594
configfile /Puppy520/grub2.cfg
}

(this option boots, points and loads the grub2.cfg file above). you will need to change the uuid to the one from your hdd where puppy is. then point to the config file

then in the ubuntu os open a terminal and run this. sudo update-grub and your done.

I find this a much cleaner way to do things and you then get all the boot options from the puppy linux os
------------------------------------------------------------------------------

I tried your approach, and did not work with my Ubuntu grub. I did a frugal install of Puppy 525 ext3 inside Ubuntu.

I started using this url:

http://www.murga-linux.com/puppy/viewtopic.php?t=64525

My grub2.cfg file was placed in /puppy525
It reads as follows:
#This is a config file to get grub to boot puppy linux.
menuentry 'LUPUP 5.2.0 BOOT OPTIONS' {
insmod
set root
linux
intird
}

menuentry '01. Puppy Linux' {
insmod ext2
set root='(hd0,5)'
linux /Puppy525/vmlinuz psubdir=Puppy525
initrd /Puppy525/initrd.gz
}
-------------------------------------------
I added to my Ubuntu grub custom menu
menuentry 'Puppy Boot' {
search --set --fs-uuid 9c9e90e7-a00e-4f70-a396-d75dc8124e69
configfile /Puppy525/grub2.cfg
}
and updated the grub menu
When I select it on the menu...I get a press any key message. Doesn't work. Any other suggestions?

IMO trying to use grub 4 dos, is a regression. But I don't think the "how to" above was using that.

first do you have a working installed os with grub 2 i asume your ubuntu partition does.


then you will need to use that. if you read the post by its-me-again adn his link you will see alot about how to tweek grub 2 read that first then try again. adn let us know how you get on

User avatar
ubume2
Posts: 21
Joined: Thu 05 May 2011, 21:35
Location: Middle West, United States

#36 Post by ubume2 »

HiDeHo wrote: first do you have a working installed os with grub 2 i asume your ubuntu partition does.


then you will need to use that. if you read the post by its-me-again adn his link you will see alot about how to tweek grub 2 read that first then try again. adn let us know how you get on
Yes, I have a grub2 on ubuntu. I can add Puppy on it to boot it. I read the wikka posted on its-me-again's first post. That is a tutorial on how to set up grub2. I use the same procedure.

Where I ran into problems was chrisbear's? list of grub entries and an entry to boot a grub2.cfg within /puppy525. My purpose was to boot up various puppy versions (frugal) located in a separate ext3 partition. Trying to avoid cluttering ubuntu's grub. I can easily add the additional puppy's to ubuntu's grub2 menu and get them to boot.

But I can't get it to chainload (if that's the right term) to the grub2.cfg. That is to have only one puppy entry on ubuntu's grub to boot to grub2.cfg
where other puppy versions can be booted.

I am not certain that can be done unless a full install is done of each puppy version into separate partitions, where a separate /boot/grub/menu.lst exists (grub legacy in Puppy). I did extensive searches using Puppy's google search engine and did not find a solution.

Thank you.

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

#37 Post by nooby »

ubume2 here is how it looks on my grub4dos which is on the third partition.


title lupu-525 processor.max_cstate=1 i915.modeset=1 nosmp
rootnoverify (hd0,2)
kernel /lupu-525/vmlinuz pmedia=scsihd pdev1=sda3 psubdir=lupu-525 puppy nosmp pfix=fsck
initrd /lupu-525/initrd.gz

# Windows

title Windows Vista/2008/7\nBoot up Windows Vista/2008/7 if installed
rootnoverify (hd0,1)
chainloader /bootmgr


end of quote

So that is opposite what you have but kind of accomplish something similar. One only have to change in which order them boot.

As you see it is for windows vista or win 7.

so if you have win xp or only Ubuntu then it should be even more easy but maybe not the word bootmgr there. your bootmgr may be on hd0,0 instead?

So if you are able to set it up like me then the first boot screen would have either

Win 7
Ubuntu 11.04
Puppy Linux

and then if you click on or highlight or go down to Puppy Linux
only then you would see all the puppies you have entered in that grub4dos list.

Me setting the priority opposite see the Puppy linux first with windows in the end after some 20 puppy entries and knoppix and porteus and TCL remix.

HiDeHo I very much appreciate you care about me. Not everybody do so that is a good thing indeed.

What I try to do here now is to help ubume2 because I have what he want only that on my machine it is set up the other way around but basically it is identical so he should be able to mimic my set up and get what he wants.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
ubume2
Posts: 21
Joined: Thu 05 May 2011, 21:35
Location: Middle West, United States

#38 Post by ubume2 »

Hello,
I tried grub4dos and it created a long list of installs.
Frankly, grub 1 and 2 are much more eye appealing, and for me easier to work with.

I don't think chrisbear's method works unless a full install of each Puppy version is done into separate partitions and with separate /boot/grub/menu.lst.

It appears that placing all my puppy installs on my ubuntu grub2 is the answer for me. I can control grub2, since I am familiar with it. Grub4dos certainly was "busy" and created a full screen of menu items.

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

#39 Post by nooby »

ubume2 my guess is that I or somebody more savvy than I should ahve warned you.

From you text I trust you talk about the program grub4dosconfig and not grub4dos as such.

grub4dosconfig try to be a very handy app that do all your work for you. So it list all OS that it could find on every partition and USB too.

So we failed to guess what it would look like from your situation and what you really expected would happen.

grub4dosconfig even need some touch up after so that the titles get names that us humans like. now it will give

Title lupu-535
while we most likely would prefer

Title Lucid Puppy Linux Version 5.2.5
I use Google Search on Puppy Forum
not an ideal solution though

Indy'spup
Posts: 50
Joined: Wed 11 May 2011, 15:32
Location: SoCal

#40 Post by Indy'spup »

I really like Grub4Dos :)

Grub4Dos helped make the configuration of a gfxmenu with a Frugal Install painless..

To be honest I couldn't find many posts with an efficient method to boot a Frugal install using Grub2 with a gfxmenu. Thanks to "mikeb" for adding his knowledge to the gfxmenu for Grub thread, I now have a Graphical Menu 'Cat Style' to boot a Frugal install using Grub4Dos v4.4 and it was so easy..
;)

http://www.murga-linux.com/puppy/viewto ... 032#527032

:)
.
.

gcmartin

GRUB2 and Live media

#41 Post by gcmartin »

Shinobar setup his WARY(s) ISOs so that when booting your Live media (CD/DVD), you were paused at a GRUB4DOS screen.

To my knowledge, "HowTo" do this was never published by him.

Is there a chance that someone (s) could
  1. show us how to do build an ISO that's using GRUB2 on the Live media to boot Puppy?
  2. show us how to boot an Puppy ISO file that one has on a HDD using GRUB2?
Thanks in advance for any guidance on these 2 separate items.
Last edited by gcmartin on Thu 23 Jun 2011, 03:40, edited 1 time in total.

HiDeHo
Posts: 311
Joined: Wed 16 Mar 2011, 09:57

#42 Post by HiDeHo »

ubume2 wrote:
HiDeHo wrote:Hi my grub 2 experiences are as follows.
........
2 I then went to /etc/grub.d/custom_40 and.added this.

menuentry 'Puppy Boot' {
search --set --fs-uuid abff01f4-2fbd-498a-bbf3-480beb990594
configfile /Puppy520/grub2.cfg
}

(this option boots, points and loads the grub2.cfg file above). you will need to change the uuid to the one from your hdd where puppy is. then point to the config file

then in the ubuntu os open a terminal and run this. sudo update-grub and your done.


I find this a much cleaner way to do things and you then get all the boot options from the puppy linux os
------------------------------------------------------------------------------

I tried your approach, and did not work with my Ubuntu grub. I did a frugal install of Puppy 525 ext3 inside Ubuntu.

I started using this url:

http://www.murga-linux.com/puppy/viewtopic.php?t=64525

My grub2.cfg file was placed in /puppy525
It reads as follows:
#This is a config file to get grub to boot puppy linux.
menuentry 'LUPUP 5.2.0 BOOT OPTIONS' {
insmod
set root
linux
intird
}

menuentry '01. Puppy Linux' {
insmod ext2
set root='(hd0,5)'
linux /Puppy525/vmlinuz psubdir=Puppy525
initrd /Puppy525/initrd.gz
}
-------------------------------------------
I added to my Ubuntu grub custom menu
menuentry 'Puppy Boot' {
search --set --fs-uuid 9c9e90e7-a00e-4f70-a396-d75dc8124e69
configfile /Puppy525/grub2.cfg
}
and updated the grub menu
When I select it on the menu...I get a press any key message. Doesn't work. Any other suggestions?

IMO trying to use grub 4 dos, is a regression. But I don't think the "how to" above was using that.
thats because you are aproaching it all wrong.

i did document it fully did you read the first post link by its-me-again
then my links they kinda go together.

now the puppy grub is just with the puppy boot options. you need to find the uuid for the partition that the puppy grub is on. and add that to the puppy grub entry in /etc/grub.d/custom_40 then in ubuntu run "sudo update-grub" in a terminal and then it will update teh grub config of ubuntu.

HiDeHo
Posts: 311
Joined: Wed 16 Mar 2011, 09:57

#43 Post by HiDeHo »

ubume2 wrote:
HiDeHo wrote: first do you have a working installed os with grub 2 i asume your ubuntu partition does.


then you will need to use that. if you read the post by its-me-again adn his link you will see alot about how to tweek grub 2 read that first then try again. adn let us know how you get on
Yes, I have a grub2 on ubuntu. I can add Puppy on it to boot it. I read the wikka posted on its-me-again's first post. That is a tutorial on how to set up grub2. I use the same procedure.

Where I ran into problems was chrisbear's? list of grub entries and an entry to boot a grub2.cfg within /puppy525. My purpose was to boot up various puppy versions (frugal) located in a separate ext3 partition. Trying to avoid cluttering ubuntu's grub. I can easily add the additional puppy's to ubuntu's grub2 menu and get them to boot.

But I can't get it to chainload (if that's the right term) to the grub2.cfg. That is to have only one puppy entry on ubuntu's grub to boot to grub2.cfg
where other puppy versions can be booted.

I am not certain that can be done unless a full install is done of each puppy version into separate partitions, where a separate /boot/grub/menu.lst exists (grub legacy in Puppy). I did extensive searches using Puppy's google search engine and did not find a solution.

Thank you.
i boot frugal installs all the time. from ubuntu grub 2 it seems pritty clair on how to do it from what its-me-again and i have said.
each partition has a unique uuid on it. you need to find that and replace the one in the example below. which is taken from /mnt/sda3/etc/grub.d/40_custom
menuentry 'Puppy520 Grub' {
search --set --fs-uuid c1f178e6-6f47-4318-9223-1dc1c750c06f
configfile /Puppy520/grub2Pup520.cfg

to find teh uuid for your partitions in terminal type blkid it will find all psrtitions that are mounted.

HiDeHo
Posts: 311
Joined: Wed 16 Mar 2011, 09:57

#44 Post by HiDeHo »

nooby wrote:ubume2 here is how it looks on my grub4dos which is on the third partition.


title lupu-525 processor.max_cstate=1 i915.modeset=1 nosmp
rootnoverify (hd0,2)
kernel /lupu-525/vmlinuz pmedia=scsihd pdev1=sda3 psubdir=lupu-525 puppy nosmp pfix=fsck
initrd /lupu-525/initrd.gz

# Windows

title Windows Vista/2008/7\nBoot up Windows Vista/2008/7 if installed
rootnoverify (hd0,1)
chainloader /bootmgr


end of quote

So that is opposite what you have but kind of accomplish something similar. One only have to change in which order them boot.

As you see it is for windows vista or win 7.

so if you have win xp or only Ubuntu then it should be even more easy but maybe not the word bootmgr there. your bootmgr may be on hd0,0 instead?

So if you are able to set it up like me then the first boot screen would have either

Win 7
Ubuntu 11.04
Puppy Linux

and then if you click on or highlight or go down to Puppy Linux
only then you would see all the puppies you have entered in that grub4dos list.

Me setting the priority opposite see the Puppy linux first with windows in the end after some 20 puppy entries and knoppix and porteus and TCL remix.

HiDeHo I very much appreciate you care about me. Not everybody do so that is a good thing indeed.

What I try to do here now is to help ubume2 because I have what he want only that on my machine it is set up the other way around but basically it is identical so he should be able to mimic my set up and get what he wants.
nooby thanks but this post is about how to get grub 2 to boot puppy linux frugal installs. adn grub4dos is different to grub 2 ok

HiDeHo
Posts: 311
Joined: Wed 16 Mar 2011, 09:57

#45 Post by HiDeHo »

ok well another thing you can do to make life even easier. what i now have found and do is this.

with the main os that has grub2 mine mint 9 (built on ubuntu 10.04) i usually disable os-prober (this is the separate app included with grub 2 that gives the auto detection of os.) i removed the extra os i added from the file 40_cusom (mentioned in my post above to) and put them in the new custom.config file. /boot/grub/.custom.config then reboot and they are added. you do not need to run the command "sudo update-grub" if you use the custom.config file. this is handy because you can add the entries now from puppy without needing to boot into my mint os anymore. awesome.

Hope this makes things even easier. for all those of you who prefer grub. this makes grub 2 pretty similar and just as user-friendly again. still need to know the new grub 2 structure.
Last edited by HiDeHo on Sun 26 Jun 2011, 14:43, edited 1 time in total.

gcmartin

Your GRUB2 instructions

#46 Post by gcmartin »

Thanks @HiDeHo

If I understand, you offer, here, "a method of transforming a GRUB Menu.lst formatted file into a GRUB2 configuration for a GRUB2 boot". Is that correct?

It appears to me to suggest that I use my system that already has GRUB2 operational, to create the configuration needed for Puppy to do the same thing via a directory "/Puppy520" on the running system.

Now, so that I am totally clear, "in what folder/directory should your last steps, here, be executed?" (in other words, when I open a terminal, what folder should I 'cd ...' to run the script?)

Thanks in advance
Last edited by gcmartin on Thu 23 Jun 2011, 14:01, edited 1 time in total.

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

Re: GRUB2 and Live media

#47 Post by nooby »

gcmartin wrote:Shinobar setup his WARY(s) ISOs so that when booting your Live media (CD/DVD), you were paused at a GRUB4DOS screen.

To my knowledge, "HowTo" do this was never published by him.

Is there a chance that someone (s) could
  1. show us how to do build an ISO that's using GRUB2 on the Live media to boot Puppy?
  2. show us how to boot an Puppy ISO file that one has on a HDD using GRUB2?
Thanks in advance for any guidance on these 2 separate items.


Hi gc

25 April you wrote this "successful launch of booting any ISO from a menu.lst"

Some iso:s can be booted from grub4dos but not everyone. Those that are grub2 seems to need grub2 to boot the iso?

Unless you are on an USB and use mapping which mimic CDROM booting if I get it.

If one have grub2 that would most likely boot many more isos even on NTFS HDD.

I have only tested to boot Ubuntu, Peppermint and some others.

This question
show us how to do build an ISO that's using GRUB2 on the Live media to boot Puppy?
has not been done yet. And none seems to see any usage of it. The Puppy community seems to say No to that one.

The second part of your question
that one has on a HDD using GRUB2
That seems to get accomplished if one install one of those many many Linux distros that make use of grub2 but then one need to know how to do that without destroying the Windows install one already have unless one have ditched that one.

A compromise would be to install a grub2 distro to a USB and that way boot up any iso on the hdd.

I nagged so much that rcrsn51 did a one time offer to make such a one and it was based on what Lance did for Pendrivelinux but rcrsn51 adjusted it to work on Puppy but it has some limitations but I did boot some three or four isos with it. But it is way above my ability to give good advices on it.

But I do give my grub2 code in that thread as examples.
but it would most likely not be proper to give them here.

We could continues in that thread or using PM
How to Make a Bootable Flash Drive using GRUB2

http://www.murga-linux.com/puppy/viewtopic.php?t=67235
I use Google Search on Puppy Forum
not an ideal solution though

HiDeHo
Posts: 311
Joined: Wed 16 Mar 2011, 09:57

#48 Post by HiDeHo »

ubume2 wrote:
HiDeHo wrote: first do you have a working installed os with grub 2 i asume your ubuntu partition does.


then you will need to use that. if you read the post by its-me-again adn his link you will see alot about how to tweek grub 2 read that first then try again. adn let us know how you get on
Yes, I have a grub2 on ubuntu. I can add Puppy on it to boot it. I read the wikka posted on its-me-again's first post. That is a tutorial on how to set up grub2. I use the same procedure.

Where I ran into problems was chrisbear's? list of grub entries and an entry to boot a grub2.cfg within /puppy525. My purpose was to boot up various puppy versions (frugal) located in a separate ext3 partition. Trying to avoid cluttering ubuntu's grub. I can easily add the additional puppy's to ubuntu's grub2 menu and get them to boot.

But I can't get it to chainload (if that's the right term) to the grub2.cfg. That is to have only one puppy entry on Ubuntu's grub to boot to grub2.cfg
where other puppy versions can be booted.

I am not certain that can be done unless a full install is done of each puppy version into separate partitions, where a separate /boot/grub/menu.lat exists (grub legacy in Puppy). I did extensive searches using Puppy's Google search engine and did not find a solution.

Thank you.
ok well it is fairly straight forward. first check you point to the correct file on your computer. and use the correct uuid. for your partiti0n.

I generally put each puppy in its own folder. so for puppy 520 i would put it in a folder /pup520 on the partition the puppy is on. then make sure i have the files needed to boot the os taken from the iso. or cd and my separate grub520.config file created with the boot options for the particular puppy in it. and i make sure that the initial Ubuntu grub menu is pointing to the exact folder and file name of the puppy config for the os i am pointing to.

then i need to make sure in the puppy grub config that it is pointing to the correct path that my files are for that puppy. then it should boot. it takes tweaking and changing configs like mine to what you have.

i hope that helps

HiDeHo
Posts: 311
Joined: Wed 16 Mar 2011, 09:57

Re: GRUB2 and Live media

#49 Post by HiDeHo »

gcmartin wrote:Shinobar setup his WARY(s) ISOs so that when booting your Live media (CD/DVD), you were paused at a GRUB4DOS screen.

To my knowledge, "HowTo" do this was never published by him.

Is there a chance that someone (s) could
  1. show us how to do build an ISO that's using GRUB2 on the Live media to boot Puppy?
  2. show us how to boot an Puppy ISO file that one has on a HDD using GRUB2?
Thanks in advance for any guidance on these 2 separate items.
good idea i suggest a new post start for this

HiDeHo
Posts: 311
Joined: Wed 16 Mar 2011, 09:57

Re: Your GRUB2 instructions

#50 Post by HiDeHo »

gcmartin wrote:Thanks @HiDeHo

If I understand, you offer, here, "a method of transforming a GRUB Menu.lst formatted file into a GRUB2 configuration for a GRUB2 boot". Is that correct?

It appears to me to suggest that I use my system that already has GRUB2 operational, to create the configuration needed for Puppy to do the same thing via a directory "/Puppy520" on the running system.

Now, so that I am totally clear, "in what folder/directory should your last steps, here, be executed?" (in other words, when I open a terminal, what folder should I 'cd ...' to run the script?)

Thanks in advance
it is a grub 2 post not grub1 there cant be converted as far as i am told.

yes i used an os that had grub 2 already installed but if you install it separately it will work the same. you need a boot-loader installed. you need to use the grub 2 format not any of the default puppy ones as the grub 1 and grub for dos are not recognized by grub 2

you need to cd to a folder where you put puppy Linux. i don't use terminal much i use the file browser and point to where i want the tile to go and save it via a txt editor when i have it.. you ned to cd to the folder where you are wanting or have things set up.

Post Reply