How to have a graphical GRUB (Updated Package Available)

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
droope
Posts: 801
Joined: Fri 01 Aug 2008, 00:17
Location: Uruguay, Mercedes

#101 Post by droope »

Wow :shock: :shock: :shock: :shock: :shock: :shock:

Amazing job! Congratulations!
What seems hard is actually easy, while what looks like impossible is in fact hard.

“Hard things take time to do. Impossible things take a little longer.â€￾ –Percy Cerutty

[url=http://droope.wordpress.com/]Mi blog[/url] (Spanish)
User avatar
kazzamozz
Posts: 70
Joined: Sat 25 Jul 2009, 09:09
Location: Melbourne, Australia
Contact:

How to

#102 Post by kazzamozz »

Hooray
I wish I had spotted this prior to setting up my sons system. This looks awesome I will be trying it out this week. The standard Grub sucks.

Will let you know how it goes. I learnt quickly what not to do in a grub menu, and have his system set up with multiple puplets to choose from. Now I can add a bit of bling for him

Cheers for this

Kazzamozz
User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#103 Post by Aitch »

Fully agree with all the support for this - mainstream it!!

I have called for it's inclusion into 4.4CE

Catdude, do you know if it can be modified to add a list of SFS's to be loaded, maybe as a sub-menu?
I have suggested it in that thread....

4.4CE here

http://www.murga-linux.com/puppy/viewto ... &start=105

Aitch :)
User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#104 Post by CatDude »

Hi

@ droope & kazzamozz
Thanks, you are both very welcome.
Aitch wrote: Catdude, do you know if it can be modified to add a list of SFS's to be loaded, maybe as a sub-menu?
I honestly wouldn't have a clue about that mate.
In fact i don't think i fully understand the question,
surely Puppy controls what .sfs files gets loaded, doesn't he ?

CatDude
.
Image
User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#105 Post by Aitch »

OK....I don't know, either....
Someone will pick it up, hopefully....I'm just seeding ideas, atm :)

Aitch :)
Roger Hunter
Posts: 218
Joined: Sat 05 Jan 2008, 17:41

#106 Post by Roger Hunter »

catdude;

I have the same problem. I installed the .pet, reinstalled grub, reboot, and get the same old menu.lst as before.

It looks like gfxmenu isn't being executed.

Roger
User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#107 Post by CatDude »

Hello Roger Hunter
Roger Hunter wrote: I have the same problem. I installed the .pet, reinstalled grub, reboot, and get the same old menu.lst as before.

It looks like gfxmenu isn't being executed.
What .pet package did you use ? (please provide the link)

Could you also provide the global section from your menu.lst

Code: Select all

# Start GRUB global section
What is in this section here
# End GRUB global section 
Also, do you have a message file: /boot/grub/whatever-message-file
if so, which one is it. (please provide the link)

What Puppy are you using and what kind of install (just so i can do a test, using the same.)

CatDude
.
Image
Roger Hunter
Posts: 218
Joined: Sat 05 Jan 2008, 17:41

#108 Post by Roger Hunter »

catdude;
What .pet package did you use ? (please provide the link)
It's the link on the first post of this thread.
Could you also provide the global section from your menu.lst
No, I've already reset it, sorry. But it was a copy of your example.

gfxmenu /boot/grub/message.pup2
Also, do you have a message file: /boot/grub/whatever-message-file
if so, which one is it. (please provide the link)
It's your message.pup2 on /boot/grub of sda3
What Puppy are you using and what kind of install (just so i can do a test, using the same.)
I'm multibooting several puppies plus Win XP. Puppy 4.3 is the master boot puppy on sda3.

The others are on sdb

My PC is a Compaq Presario,2.80GHz/1Gb RAM/80Gb/250Gb drives

Roger
User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#109 Post by CatDude »

Hello Roger
Roger Hunter wrote: It's the link on the first post of this thread.
There are two links in that first post.
One for the original package: grub-gfxboot-for-puppy.tar.gz
and another to the NEW updated package: grub-gfxboot-for-puppy-updated.tar.gz
Roger Hunter wrote: It's your message.pup2 on /boot/grub of sda3
Well, if you happened to use the original package, then that is why is did not work.
Message files: message.pup1 to message.pup16 (inclusive)
will not work with the package: grub-gfxboot-for-puppy.tar.gz
PLEASE NOTE: These messages will not work with my previous .pet package.
They are too big.
You need to use the updated package.

CatDude
.
Image
Roger Hunter
Posts: 218
Joined: Sat 05 Jan 2008, 17:41

#110 Post by Roger Hunter »

catdude;

Never mind. I gave up. Switched the main boot puppy to Puppy 4.3, thus losing the graphics menu stuff.

This before/after 4.31 is causing me all sorts of grief figuring out which needs what and why.

Roger
User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#111 Post by CatDude »

Hi
Roger Hunter wrote: Never mind. I gave up. Switched the main boot puppy to Puppy 4.3, thus losing the graphics menu stuff.
I am sorry to hear that,
i have made a few changes to my original post, in an effort to make things easier to follow.
Maybe you could take a look and see if things are any better.

I have hopefully removed all references from this thread that refer to my original package,
so there is now only the one package available.

CatDude
.
Last edited by CatDude on Sat 05 Dec 2009, 20:26, edited 1 time in total.
Image
Roger Hunter
Posts: 218
Joined: Sat 05 Jan 2008, 17:41

#112 Post by Roger Hunter »

CatDude;

I'm sorry but I'm just about to leave for the afternoon. I'll try redoing everything later tonite or tomorrow because I really would like the graphical boot menu.

Roger
Roger Hunter
Posts: 218
Joined: Sat 05 Jan 2008, 17:41

#113 Post by Roger Hunter »

CatDude;

Sorry, no good.

Instead of the menu I get a grub prompt.

I'm using Puppy 4.3 in sda3 for the master boot puppy

Here's the menu.lst

Code: Select all

# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'.  Sun Dec  6 09:18:38 2009
#
# The backup copy of the MBR for drive '/dev/sda' is
# here '/boot/grub/mbr.sda.16780'.  You can restore it like this.
# dd if=/boot/grub/mbr.sda.16780 of=/dev/sda bs=512 count=1
#
# Start GRUB global section
  timeout 30
  default 3
  color light-gray/blue black/light-gray
  gfxmenu /boot/grub/pupsta1
# End GRUB global section

# Other bootable partition config begins
  title Windows (on /dev/sda1)
  rootnoverify (hd0,0)
  makeactive
  chainloader +1
# Other bootable partition config ends

# Linux bootable partition config begins
  title Linux (on /dev/sda3)
  root (hd0,2)
  kernel /boot/vmlinuz root=/dev/sda3 ro vga=normal
# Linux bootable partition config ends

# Linux bootable partition config begins
  title Linux (on /dev/sdb3)
  root (hd1,2)
  kernel /boot/vmlinuz root=/dev/sdb3 ro vga=normal
# Linux bootable partition config ends

# Linux bootable partition config begins
  title Linux (on /dev/sdb6)
  root (hd1,5)
  kernel /boot/vmlinuz root=/dev/sdb6 ro vga=normal
# Linux bootable partition config ends

# Linux bootable partition config begins
  title Linux (on /dev/sdb7)
  root (hd1,6)
  kernel /boot/vmlinuz root=/dev/sdb7 ro vga=normal
# Linux bootable partition config ends

# Linux bootable partition config begins
  title Linux (on /dev/sdb8)
  root (hd1,7)
  kernel /boot/vmlinuz root=/dev/sdb8 ro vga=normal
# Linux bootable partition config ends

# Linux bootable partition config begins
  title Linux (on /dev/sdb9)
  root (hd1,8)
  kernel /boot/vmlinuz root=/dev/sdb9 ro vga=normal
# Linux bootable partition config ends

# Linux bootable partition config begins
  title Linux (on /dev/sdb10)
  root (hd1,9)
  kernel /boot/vmlinuz root=/dev/sdb10 ro vga=normal
# Linux bootable partition config ends

# Linux bootable partition config begins
  title Linux (on /dev/sdb11)
  root (hd1,10)
  kernel /boot/vmlinuz root=/dev/sdb11 ro vga=normal
# Linux bootable partition config ends

title Install GRUB to floppy disk (on /dev/fd0)
pause Insert a formatted floppy disk and press enter.
root (hd0,2)
setup (fd0)
pause Press enter to continue.
title Install GRUB to Linux partition (on /dev/sda3)
root (hd0,2)
setup (hd0,2)
pause Press enter to continue.
title -     For help press 'c', then type: 'help'
root (hd0)
title -     For usage examples, type: 'cat /boot/grub/usage.txt'
root (hd0)
Roger
User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#114 Post by CatDude »

Hello Roger
Roger Hunter wrote: Sorry, no good.

Instead of the menu I get a grub prompt.
That is odd. (i'll explain why later)

There has been a lot of posts recently concerning inode sizes
and Puppies GRUB being incompatible with partitions with an inode size of 256
Here is just one such post

I am afraid to say, that my package will not work with such partitions.


From my tests,
GParted in both Puppy-4.30 and Puppy-4.31 creates partitions with an inode size of 256

GParted in both Puppy-4.20 and Puppy-4.21 creates partitions with an inode size of 128
in fact both of these versions (4.20 and 4.21) already have my graphical grub installed in them.
So if you used either of those to create your partitions and install GRUB,
you then only need to change the boot message to that which you wish to use.


As to my earlier comment "That is odd"
Well, i used Puppy-4.31 (from LiveCD with puppy pfix=ram)
to totally erase my hard drive, then create 3 partitions (1 for GRUB, 1 for Puppy-4.31 frugal, and a SWAP).
I then installed my package and copied the message file to /boot/grub
and made the necessary edit to the menu.lst

When i rebooted (i created a save file) i was greeted to the graphical GRUB boot screen (see image below)
but i was unable to boot up Puppy, i got an error message:

Code: Select all

Error 2: Bad file or directory type

Press any key to continue...
that is what i meant by odd.

Anyway i think this could be the reason you are having trouble getting this to work,
i have add to my original post to reflect these issues.

Hope this helps
CatDude
.
Attachments
gfxmenu.jpg
(47.95 KiB) Downloaded 1200 times
Image
Roger Hunter
Posts: 218
Joined: Sat 05 Jan 2008, 17:41

#115 Post by Roger Hunter »

CatDude;

That solved the problem.

I had a CD of BoxPup 421 so I deleted sda3, made a new one wit BoxPup, installed BoxPup in it and there was the graphic menu.

Happily, I did not have to recreate the sdb partitions so now I'm back in business except that MacPup won't boot. Error is bad file or directory but that's another thread.

Thanks a bunch. Things look much nicer now.

Roger
vellowax
Posts: 45
Joined: Fri 20 Nov 2009, 00:57
Location: still playing in the backyard

#116 Post by vellowax »

Hi catdude,

For some reason, I should use ext4 as filesystem for my partition, is there any available package, so that my NOP431 have a graphical grub too?
I was download and installed the gfx-boot-xxx.ext4-patch.pet ( I have forgotten where i was downloaded that pet ) but still won't work.
User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#117 Post by CatDude »

Hello Roger
Roger Hunter wrote: That solved the problem.
Glad you eventually got it sorted.

Roger Hunter wrote: Happily, I did not have to recreate the sdb partitions so now I'm back in business except that MacPup won't boot. Error is bad file or directory but that's another thread.
The partition that Macpup resides on does not have an inode size of 256 by any chance does it ?
because that Error looks awfully familiar.

CatDude
.
Image
User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#118 Post by CatDude »

Hello vellowax
vellowax wrote: For some reason, I should use ext4 as filesystem for my partition, is there any available package, so that my NOP431 have a graphical grub too?
As i state at the top of the first post in this thread,
my package will not work with ext4 partitions.
vellowax wrote: I was download and installed the gfx-boot-xxx.ext4-patch.pet ( I have forgotten where i was downloaded that pet ) but still won't work.
I don't know anything about that .pet,
but i wouldn't mind getting my hands on a copy of it, if you ever manage to recall where you got it from.

CatDude
.
Image
vellowax
Posts: 45
Joined: Fri 20 Nov 2009, 00:57
Location: still playing in the backyard

#119 Post by vellowax »

thanks catdude for your concern about my case, i think someone else might have the same problem,
i found this link.
http://mirror.internode.on.net/pub/pupp ... ackages-4/
i also attach the package that i intend.
Roger Hunter
Posts: 218
Joined: Sat 05 Jan 2008, 17:41

#120 Post by Roger Hunter »

CatDude;
The partition that Macpup resides on does not have an inode size of 256 by any chance does it ?
because that Error looks awfully familiar.
I don't know. The partitions were made with Puppy 4.3 and Puppy 2.14, Puppy 4.3.1 and Teen Puppy all boot but MacPup won't.

Roger
Post Reply