How to set up grub 2 to boot Puppy frugal install

How to do things, solutions, recipes, tutorials
Message
Author
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.

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

#51 Post by ubume2 »

It's been a while since I have read this thread.

I have several distros, some that use grub2 and some grub1.

Using grub2 in my ubuntu install, I can pick up all grub1 and grub2 entries, and XP so I can boot into any distro I want. Exception is Puppy (frugally installed inside my Ubuntu partition), which has to be manually entered into 40_custom or other whatever custom number:

menuentry "Puppy 525 on /dev/sda5" {
insmod ext2
set root=(hd0,5)
linux /puppy525/vmlinuz psubdir=puppy525
initrd /puppy525/initrd.gz
}
And it works great.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#52 Post by rcrsn51 »

You might want to include the argument "pdev1=sda5". That will save Puppy from searching through the other partitions looking for its core files.

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

#53 Post by ubume2 »

rcrsn51 wrote:You might want to include the argument "pdev1=sda5". That will save Puppy from searching through the other partitions looking for its core files.
Where? At the end of the linux line? Substitute for psubdir?

Thanks.

ICPUG
Posts: 1308
Joined: Mon 25 Jul 2005, 00:09
Location: UK

#54 Post by ICPUG »

At the end of the linux line is best. Leave psubdir there.

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

#55 Post by ubume2 »

ICPUG wrote:At the end of the linux line is best. Leave psubdir there.
Thanks. It works.

Post Reply