S-5.2 entry for GrubLegacy menu.lst

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

S-5.2 entry for GrubLegacy menu.lst

Postby flon » Sun Mar 28, 2010 0:00

Sabayon 5.2 instaled on sdb1, I dont want this grub-2thing on my MBR.

Using info kept on grub.conf I tried an entry for my legacy, but... [@#£æ€º§-CL] it dont work:

Code: Select all
title    Sabayon
root   (hd1,0)
kernel   /boot/kernel-genkernel-x86_64-2.6.33-sabayon ro single
initrd   /boot/initramfs-genkernel-x86_64-2.6.33-sabayon

and I cant do better.

Some help ?
f
------------------
flon
Young Hen
 
Posts: 20
Joined: Tue Apr 24, 2007 4:22

Re: S-5.2 entry for GrubLegacy menu.lst

Postby micia » Sun Mar 28, 2010 0:30

Hi,
Automated tools are your friend :mrgreen:
if you have grub legacy installed, why don't you try:
Code: Select all
grub-install <hard disk>


Substituting <hard disk> with the appropriate device, for example /dev/sda.
Hope it helps.
micia
Sagely Hen
 
Posts: 2718
Joined: Wed Nov 26, 2008 16:41

Re: S-5.2 entry for GrubLegacy menu.lst

Postby flon » Sun Mar 28, 2010 2:07

Bad english too?!

(Legacy) grub installed on MBR is from an (old) Debian-thing on sdb2 I want to preserve after 4 tries given to grub2.

f
-----------------------
flon
Young Hen
 
Posts: 20
Joined: Tue Apr 24, 2007 4:22

Re: S-5.2 entry for GrubLegacy menu.lst

Postby micia » Sun Mar 28, 2010 11:46

Since you provided no information about it I assumed that you were trying to install Legacy Grub from Sabayon, hence my advice to run grub-install, sorry if my English is far from perfect, but I am Italian and nobody is paying me for trying to help you using your language...

However my Sabayon menu entry on grub.conf looks like this:
Code: Select all
title Sabayon Linux
   root (hd0,5)
   kernel /boot/kernel-genkernel-x86-2.6.33-sabayon  root=/dev/ram0 ramdisk=8192 real_root=UUID=521bd849-1910-41ec-a093-a04ff987f0e3 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 quiet resume=swap:/dev/sda1 real_resume=swap:/dev/sda1
   initrd /boot/initramfs-genkernel-x86-2.6.33-sabayon
   savedefault

Obviously you have to use your root partition in the root (hd0,5) entry and your kernel image.

You have to change the "real_root" entry using the UUID from your Sabayon root partition, you can obtain it with:
Code: Select all
ls -l /dev/disk/by-uuid/

you could also change it using the /dev/<partition> syntax.
You should replace the "resume" and "real_resume" entries to use your swap partition.
The "vga" entry depends on your monitor, check this table to find out how you should set it up:
http://pierre.baudu.in/other/grub.vga.modes.html

I think that everything else should work.

Probably it will be something like:
Code: Select all
title Sabayon Linux
   root (hd1,0)
   kernel /boot/kernel-genkernel-x86_64-2.6.33-sabayon  root=/dev/ram0 ramdisk=8192 real_root=/dev/sdb1 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 quiet resume=swap:/dev/sda1 real_resume=swap:/dev/sda1
   initrd /boot/initramfs-genkernel-x86_64-2.6.33-sabayon
   savedefault

if your swap is on /dev/sda1.

I am assuming that you don't use a separate boot partition.
micia
Sagely Hen
 
Posts: 2718
Joined: Wed Nov 26, 2008 16:41


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 2 guests