| Author |
Message |
jamalexa

Joined: 18 Jul 2007 Posts: 86 Location: Philadelphia, PA. United States
|
Posted: Sun 04 Apr 2010, 22:41 Post subject:
Frugal Install and Grub 2 |
|
does anyone how would you do a frugal install with Grub 2. The old method with grub was a simple cut and paste into menu.lst but I can't understand how to modify Grub 2 it does not have a menu.lst file.
|
|
Back to top
|
|
 |
nooby
Joined: 29 Jun 2008 Posts: 9385 Location: SwedenEurope
|
Posted: Mon 05 Apr 2010, 11:44 Post subject:
|
|
I had dualboot with Linux Mint KDE CE on an older computer and the installer of Mint did a Grub2 install so I used this suggestion.
| Quote: | davesurrey wrote:
Well I'm not a grub2 expert (who is??) but let's try to help you.
Ubuntu 9.10 uses a new type of grub which is often termed grub2 but I think ubuntu 9.10 actually uses version 1.97. No matter.
Instead of the /boot/grub/menu.lst file which puppy still uses and you may be used to, Ubuntu now uses a /boot/grub/grub.cfg file but you should not edit it. If you do your changes won't persist.
Instead you need to edit file /etc/grub.d/40_custom or add a similar one.
To make it easy we'll just edit the 40_custom file.
In ubuntu go to a terminal and type
Code:
sudo gedit
type in your password and then use gedit to open the 40_custom file.
Add:
Code:
menuentry "Puppy 431 frugal on sda6" {
set root=(hd0,6)
linux /puppy431/vmlinuz psubdir=puppy431
initrd /puppy431/initrd.gz
}
EOF
to the bottom of the file.
Then save the file and go back to the terminal to make the file executable by typing
Code:
sudo chmod +x /etc/grub.d/40_custom
And finally in terminal type
Code:
sudo update-grub
Hopefully when you reboot Ubuntu's grub will show a screen giving you the choice of Ubuntu or Puppy 431.
Note this assumes that you have installed puppy431 to /sda6/puppy431 sub-directory. If you have installed it instead to /sda6/ then change the 40_custom file accordingly.
Tell us how it goes.
HTH
Dave
|
this part is most important I guess
menuentry "Puppy 431 frugal on sda6" {
set root=(hd0,6)
linux /puppy431/vmlinuz psubdir=puppy431
initrd /puppy431/initrd.gz
}
EOF
Grub4DOS has title but grub2 should always have
menuentry "Puppy 431 frugal on sda6" {
and the "text about the entry in " quotes followed by the special sign
set root=(hd0,6) instead of just root
linux /puppy431/vmlinuz psubdir=puppy431 instead of kernel
initrd /puppy431/initrd.gz
}
EOF
I had to take away EOF to work on my machine. Try both to see if there is any difference.
Tell us if it worked.
ffrom this thread
http://www.murga-linux.com/puppy/viewtopic.php?p=404326&sid=d96e8a225d301f9067f8fa058971f9d2
_________________
I'm a noob so I use Google Search of Puppy Forum
|
|
Back to top
|
|
 |
lemmy999
Joined: 12 Jan 2008 Posts: 90
|
Posted: Mon 05 Apr 2010, 12:10 Post subject:
|
|
I have amended the file and now get " Error : unknown command EOF"
|
|
Back to top
|
|
 |
Jim1911
Joined: 19 May 2008 Posts: 2353 Location: Texas, USA
|
Posted: Mon 05 Apr 2010, 13:59 Post subject:
|
|
Try this thread which has a number of success stories booting with Grub2.
|
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 2457 Location: Ontario
|
Posted: Sat 08 May 2010, 12:02 Post subject:
grub2 setup Subject description: success with Lucid |
|
I just installed ubuntu 10.04 lucid and Grub2 was automatically installed.
It was setup to bootup Ubuntu not Puppy linux.I had to go to the Ubuntu support pages and find out about Grub2. It's quite simple to setup.
First the setup file has been already been created at installation of the system software, so while running the Ubuntu operating system[not puppy] open the file up with the terminal command:
sudo nano /etc/grub.d/40_custom
Let's say I have 2 folders named lighthouse443 and quirky1 on the first partion of the first hard drive(sda1) containing the relevant puppy kernels.
I write the following script:
#!/bin/sh
echo "Adding 40_custom menu entries." >&2
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "lighthouse" {
set root=(hd0,1)
linux /lighthouse443/vmlinuz pmedia=atahd psubdir=lighthouse443
initrd /lighthouse443/initrd.gz
}
menuentry "quirky1" {
set root=(hd0,1)
linux /quirky1/vmlinuz pmedia=atahd psubdir=quirky1
initrd /quirky1/initrd.gz
}
EOF
Now write out and exit. One last terminal command is needed:
sudo update-grub
You can now reboot.Hold the shift key down to get the grub screen and choose your operating system.
Note 1:The second line of script was a suggestion from Ubuntu to
provide visual notification that the '40_custom' file was being read
Note 2:The '40_custom' file is a script and must be made executable but
it is already so no need to worry, but if you aren't sure you can always run:
sudo chmod +x /etc/grub.d/40_custom
|
|
Back to top
|
|
 |
Ozviking
Joined: 04 Dec 2010 Posts: 3
|
Posted: Sat 04 Dec 2010, 00:29 Post subject:
Grub2 problems Subject description: Problem add boot entry to grub with frugal install |
|
I installed Puppy 5.11 on my dual boot system, with Pinguy Os (ubuntu 10.04) and win xp and used frugal.
Only problem that the add boot entry (that you get from Puppy) is for the old grub that use the "menu.ls".
The new grub2 use the "grub.conf"
I have tried the Nooby"s instructions and a few more but no luck....I manage to get puppy 5.11 in to the grub but when I boot from it I get this:
error: unknown command `'.
error: unknown filesystem.
error: you need to load kernel first.
Here is some part of the Grub.conf
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-26-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set 9e7bf572-9771-4fd3-bff2-6a70dced3bf3
linux /boot/vmlinuz-2.6.32-26-generic root=UUID=9e7bf572-9771-4fd3-bff2-6a70dced3bf3 ro quiet splash
initrd /boot/initrd.img-2.6.32-26-generic
}
menuentry "Puppy 511 frugal on sda6" {
set root=(hd0,6)
linux /puppy511/vmlinuz psubdir=puppy511
initrd /puppy511/initrd.gz
}
EOF
}
Puppy is installed on /dev/sda7
Any one that could help me??
Patrick
Last edited by Ozviking on Sat 04 Dec 2010, 20:02; edited 2 times in total
|
|
Back to top
|
|
 |
shinobar

Joined: 28 May 2009 Posts: 2252 Location: Japan
|
Posted: Sat 04 Dec 2010, 01:21 Post subject:
Re: Grub2 problems Subject description: Problem add boot entry to grub with frugal install |
|
| Ozviking wrote: | | The new grub2 use the "grub.conf" |
grub.cfg? Yes the new grub2 uses the grub.cfg, but you never edit the grub.cfg manally.
I recommend you to revert it with running 'sudo update-grub' from ubuntu.
If you cannot handle grub2, you can use grub4dos instead. Grub4dos and grub2 can co-exist.
See the topic 'Try the Grub4Dos and make a rescue':
http://www.murga-linux.com/puppy/viewtopic.php?t=61348
| Ozviking wrote: | menuentry "Puppy 511 frugal on sda6" {
set root=(hd0,6)
linux /puppy511/vmlinuz psubdir=puppy431
initrd /puppy511/initrd.gz
}
Puppy is installed on /dev/sda7 |
Where is your puppy files? /mnt/sda6/puppy511', '/mnt/sda7/puppy511' or '/mnt/sda7/puppy431'...?
I recommend you to use the 'Frugalinstaller'.
Another topic, Enrich 'Frugal' instead of doing full install:
http://www.murga-linux.com/puppy/viewtopic.php?t=62476
_________________ Multilingual Wary-511
Lucid Puppy Quickset edition
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Last edited by shinobar on Sat 04 Dec 2010, 01:38; edited 1 time in total
|
|
Back to top
|
|
 |
Ozviking
Joined: 04 Dec 2010 Posts: 3
|
Posted: Sat 04 Dec 2010, 01:35 Post subject:
Re: Grub2 problems Subject description: Problem add boot entry to grub with frugal install |
|
| shinobar wrote: | | Ozviking wrote: | | The new grub2 use the "grub.conf" |
grub.cfg? Yes the new grub2 uses the grub.cfg, but you never edit the grub.cfg manally.
If you cannot handle grub2, you can use grub4dos instead. Grub4dos and grub2 can co-exist.
See the topic 'Try the Grub4Dos and make a rescue':
http://www.murga-linux.com/puppy/viewtopic.php?t=61348
| Ozviking wrote: | linux /puppy511/vmlinuz psubdir=puppy431
Puppy is installed on /dev/sda7 |
Where is your puppy files?
I recommend you to use the 'Frugalinstaller'.
Another topic, Enrich 'Frugal' instead of doing full install:
http://www.murga-linux.com/puppy/viewtopic.php?t=62476 |
My puppy frugal is on a ext4 partition, I'll check the link
Cheers
|
|
Back to top
|
|
 |
Ozviking
Joined: 04 Dec 2010 Posts: 3
|
Posted: Sat 04 Dec 2010, 20:14 Post subject:
Grub2 problems solved Subject description: puppy 5.11 frugal install |
|
I just got it working
The grub2 use the same numbers as you see on Ubuntu, in my case I installed on "/dev/sda7" before you use to drop one number down to 6 but I just used the same number and it works fine
Here is what i used:
}
menuentry "Puppy 511 frugal on sda7" {
set root=(hd0,7)
linux /puppy511/vmlinuz psubdir=puppy511
initrd /puppy511/initrd.gz
}
EOF
}
And I used Nooby's instructions with modify the /etc/grub.d/40_custom
Cheers
|
|
Back to top
|
|
 |
Thauriswulfa
Joined: 31 Jul 2010 Posts: 5
|
Posted: Thu 13 Jan 2011, 07:55 Post subject:
help needed to make puppylinux custom entry in grub2 |
|
i just installed ubuntu10.10 and its grub2 didn't detect my puppy510 as i have very little knowledge of linux and grub.
and don't have much time these days to study grub manual so please help me to
add custom menuentry to the file 40_custom
other entries in my grub.cfg file is
| Code: | menuentry 'Ubuntu, with Linux 2.6.35-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos4)'
search --no-floppy --fs-uuid --set 3e9bc03c-8e94-4759-af71-7e6ac4973155
linux /boot/vmlinuz-2.6.35-24-generic root=UUID=3e9bc03c-8e94-4759-af71-7e6ac4973155 ro vga=792 splash quiet splash
initrd /boot/initrd.img-2.6.35-24-generic |
i tried many times editing it and using command but no success.
my frugal install is on sda3 , ext4 files system in directory puppy510 and uuid is
ab4b85ab-02a0-46f0-b4aa-f5e3af480087
please help me in adding this custom menu entry....................[/code]
|
|
Back to top
|
|
 |
nooby
Joined: 29 Jun 2008 Posts: 9385 Location: SwedenEurope
|
Posted: Thu 13 Jan 2011, 13:35 Post subject:
Re: help needed to make puppylinux custom entry in grub2 |
|
| Thauriswulfa wrote: |
please help me in adding this custom menu entry....................[/code] |
Have you read through this thread?
http://www.murga-linux.com/puppy/viewtopic.php?t=45961
There you have several successes so it should be possible to learn from them.
My experience are too old but I remember that one can do it manually if one don't update it. Or if it get updated then just add it manually again.
So try that out. Even I managed to do it and I am not good at computers.
_________________
I'm a noob so I use Google Search of Puppy Forum
|
|
Back to top
|
|
 |
attila3453
Joined: 22 Aug 2011 Posts: 2
|
Posted: Mon 22 Aug 2011, 05:01 Post subject:
|
|
When I do update-grub, there is an error at the end:
/etc/grub.d/40_custom: 1: dem#!/bin/sh: not found
|
|
Back to top
|
|
 |
nooby
Joined: 29 Jun 2008 Posts: 9385 Location: SwedenEurope
|
Posted: Mon 22 Aug 2011, 06:23 Post subject:
|
|
| attila3453 wrote: | When I do update-grub, there is an error at the end:
/etc/grub.d/40_custom: 1: dem#!/bin/sh: not found |
The following is my low quality answer so look for better answers from those who know more first. Only use mine when nothing else works.
You write your first post into a thread that has been silent for some 7 months so maybe not many look into it. But who knows. I will most likely not read here again. I know too little.
Which Linux are you in when you do that update-grub?
How did you install Puppy. I am not good at logistic things but maybe you have a greater chance if you have your own thread in beginners and there tells as much as is needed about what sort of puppy and how it is installed and what linux you have grub2 on and how that one is installed too.
There are so many ways to combine linux os. partitions and formatting and external usb and full install and frugal install and so on.
One maybe need to be fluent in how the other OS with grub 2 works?
if one have control over the other OS so it does not do unwanted updates then one can manually add the needed code to grub.cfg even if it warns that it will be overwritten next upgrade and then make a backup of that entry so one can add it in if it get overwritten. Cheat but if that is the only way to add puppy then why not.
_________________
I'm a noob so I use Google Search of Puppy Forum
|
|
Back to top
|
|
 |
fyujj
Joined: 04 Apr 2009 Posts: 103
|
Posted: Thu 05 Apr 2012, 16:26 Post subject:
update |
|
I boot Wary 5.3 frugal from the HD with grub 1.99, version 19.fc17 from Fedora.
My /etc/grub.d/39_puppy:
| Code: | #!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Wary-5.3" {
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set=root e811049c-dd64-4a31-b0a0-45a107b8e26b
linux /Wary_5.3/vmlinuz pdev1=sda3 psubdir=Wary_5.3 pmedia=atahd pfix=fsck
initrd /Wary_5.3/initrd.gz
}
menuentry "Wary-5.3 fresh" {
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set=root e811049c-dd64-4a31-b0a0-45a107b8e26b
linux /Wary_5.3/vmlinuz pdev1=sda3 psubdir=Wary_5.3 pmedia=atahd pfix=fsck,ram
initrd /Wary_5.3/initrd.gz
}
|
Note that --set=root is needed otherwise grub will complain of a missing argument (it will boot after a while or a key press, though).
I didn't search if having "--set=root <UUID>" can dispense with the "set root=(hdx,y)" line.
|
|
Back to top
|
|
 |
nooby
Joined: 29 Jun 2008 Posts: 9385 Location: SwedenEurope
|
Posted: Fri 06 Apr 2012, 03:12 Post subject:
|
|
Thanks
So you have changed /etc/grub.d/40_custom to /etc/grub.d/39_puppy:
Does that mean it will update both /etc/grub.d/39_puppy: and /etc/grub.d/40_custom or have you renamed /etc/grub.d/40_custom to /etc/grub.d/39_puppy?
I mean you don't have any /etc/grub.d/40_custom so that one will not rewrite
the grub.conf?
I agree about the conclusion you make
| Quote: | Note that --set=root is needed otherwise grub will complain of a missing argument (it will boot after a while or a key press, though).
I didn't search if having "--set=root <UUID>" can dispense with the "set root=(hdx,y)" line. |
Maybe it is the uuid that is needed too.
But that it complain if you don't add root=(hdx,y) that is good to know.
Maybe that explains why some of my entries are invisible. I should look
if they have the root=(hdx,y) in those examples and the uuid too.
So to me now the big mystery is the 39_puppy does it go for the number
and don't care if it says puppy or custom? It only look for the number?
Would that mean that one can have
35_slitaz
36_porteus
37_antix
38_knoppix
39_puppy
files and all will be considered in that order by the update prog in grub2?
_________________
I'm a noob so I use Google Search of Puppy Forum
|
|
Back to top
|
|
 |
|