menu.lst entry for Sabayon 6 [Solved]

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

Re: menu.lst entry for Sabayon 6

Postby houndhen » Wed Sep 14, 2011 22:56

BlackNoxis wrote:Good, so the next thing you will do is to look for the sabayon image and add is a entry, I showed you which was the way, but there is another thing here, can you acces grub.conf ? (It's a menu.lst)
Yes, I got into grub.cfg on/sda9 and the first entry is this:
Code: Select all
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux, with Linux x86-2.6.39-sabayon' --class sabayon --class gnu-linux --class gnu --class os {
   load_video
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos9)'
   search --no-floppy --fs-uuid --set=root d49f9672-6945-4f61-ac94-475de8980835
   echo   'Loading Linux x86-2.6.39-sabayon ...'
   linux   /boot/kernel-genkernel-x86-2.6.39-sabayon ro  init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet dokeymap keymap=us domdadm resume=swap:UUID=7186653c-be0c-4f02-a4e1-72d040d19dca real_resume=UUID=7186653c-be0c-4f02-a4e1-72d040d19dca root=UUID=d49f9672-6945-4f61-ac94-475de8980835 docrypt
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initramfs-genkernel-x86-2.6.39-sabayon
}
Surely, I don't need all that for an entry in my menu.lst file?
houndhen
Young Hen
 
Posts: 26
Joined: Sun Jan 02, 2011 16:31

Re: menu.lst entry for Sabayon 6

Postby houndhen » Wed Sep 14, 2011 23:02

Fitzcarraldo wrote:I've skimmed over it, so read the SL Wiki article: HOWTO: Restore Grub2 for the full details.
Don't want to appear to be stubborn, but I don't like grub2 and want to use grub legacy if possible. If I restore grub2 then I am back where I started from. I don't have any idea why when I reset the MBR from inside Mepis that it missed writing the entry for Sabayon into the menu.lst file.

I do appreciate everyone's help. You all are much more knowledgeable than I.
houndhen
Young Hen
 
Posts: 26
Joined: Sun Jan 02, 2011 16:31

Re: menu.lst entry for Sabayon 6

Postby BlackNoxis » Thu Sep 15, 2011 7:54

houndhen wrote:Yes, I got into grub.cfg on/sda9 and the first entry is this:
Code: Select all
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux, with Linux x86-2.6.39-sabayon' --class sabayon --class gnu-linux --class gnu --class os {
   load_video
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos9)'
   search --no-floppy --fs-uuid --set=root d49f9672-6945-4f61-ac94-475de8980835
   echo   'Loading Linux x86-2.6.39-sabayon ...'
   linux   /boot/kernel-genkernel-x86-2.6.39-sabayon ro  init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet dokeymap keymap=us domdadm resume=swap:UUID=7186653c-be0c-4f02-a4e1-72d040d19dca real_resume=UUID=7186653c-be0c-4f02-a4e1-72d040d19dca root=UUID=d49f9672-6945-4f61-ac94-475de8980835 docrypt
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initramfs-genkernel-x86-2.6.39-sabayon
}
Surely, I don't need all that for an entry in my menu.lst file?


Hmm, it's a bit too many useless things there, like the echos or the insmodes. Watch this one :

Code: Select all
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux, with Linux x86-2.6.39-sabayon'
   set root='(hd0,X)'
   search --no-floppy --fs-uuid --set=root d49f9672-6945-4f61-ac94-475de8980835
   linux   /boot/kernel-genkernel-x86-2.6.39-sabayon ro  init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet dokeymap keymap=us domdadm resume=swap:UUID=7186653c-be0c-4f02-a4e1-72d040d19dca real_resume=UUID=7186653c-be0c-4f02-a4e1-72d040d19dca root=UUID=d49f9672-6945-4f61-ac94-475de8980835 docrypt
   initrd   /boot/initramfs-genkernel-x86-2.6.39-sabayon


In the X thingy, you gotta put your sabayon drive, so I presume you know how to find it. And about the /boot/initramfs-genkernel-x86-2.6.39-sabayon, I presume also you have the image prepared somewhere there. If not, the only solution is (as Fitz said) Restore Grub2
BlackNoxis
Growing Hen
 
Posts: 110
Joined: Tue Oct 06, 2009 10:37
Location: Cluj-Napoca, Transylvania, Romania

Re: menu.lst entry for Sabayon 6

Postby houndhen » Thu Sep 15, 2011 13:00

Hmm, it's a bit too many useless things there, like the echos or the insmodes. Watch this one :

Code: Select all
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux, with Linux x86-2.6.39-sabayon'
   set root='(hd0,X)'
   search --no-floppy --fs-uuid --set=root d49f9672-6945-4f61-ac94-475de8980835
   linux   /boot/kernel-genkernel-x86-2.6.39-sabayon ro  init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet dokeymap keymap=us domdadm resume=swap:UUID=7186653c-be0c-4f02-a4e1-72d040d19dca real_resume=UUID=7186653c-be0c-4f02-a4e1-72d040d19dca root=UUID=d49f9672-6945-4f61-ac94-475de8980835 docrypt
   initrd   /boot/initramfs-genkernel-x86-2.6.39-sabayon


In the X thingy, you gotta put your sabayon drive, so I presume you know how to find it. And about the /boot/initramfs-genkernel-x86-2.6.39-sabayon, I presume also you have the image prepared somewhere there. If not, the only solution is (as Fitz said) Restore Grub2
Sabayon is /dev/sda9. I copied and pasted your code and pasted into my menu.lst. I then changed 'menuentry' to 'title' and put '8' for the X because grub legacy starts counting at zero.

Thanks for your help. I will let you know if it works.Will probably be a few hours before I post back. Have to leave.
Harold
houndhen
Young Hen
 
Posts: 26
Joined: Sun Jan 02, 2011 16:31

Re: menu.lst entry for Sabayon 6

Postby houndhen » Thu Sep 15, 2011 19:23

houndhen wrote:
Hmm, it's a bit too many useless things there, like the echos or the insmodes. Watch this one :

Code: Select all
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux, with Linux x86-2.6.39-sabayon'
   set root='(hd0,X)'
   search --no-floppy --fs-uuid --set=root d49f9672-6945-4f61-ac94-475de8980835
   linux   /boot/kernel-genkernel-x86-2.6.39-sabayon ro  init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet dokeymap keymap=us domdadm resume=swap:UUID=7186653c-be0c-4f02-a4e1-72d040d19dca real_resume=UUID=7186653c-be0c-4f02-a4e1-72d040d19dca root=UUID=d49f9672-6945-4f61-ac94-475de8980835 docrypt
   initrd   /boot/initramfs-genkernel-x86-2.6.39-sabayon


In the X thingy, you gotta put your sabayon drive, so I presume you know how to find it. And about the /boot/initramfs-genkernel-x86-2.6.39-sabayon, I presume also you have the image prepared somewhere there. If not, the only solution is (as Fitz said) Restore Grub2
Sabayon is /dev/sda9. I copied and pasted your code and pasted into my menu.lst. I then changed 'menuentry' to 'title' and put '8' for the X because grub legacy starts counting at zero.

Thanks for your help. I will let you know if it works.Will probably be a few hours before I post back. Have to leave.
Harold
After copying, pasting, and editing the menu.lst as stated above, I tried it and got this;
Code: Select all
initrd /boot/initramfs-genkernel-x86-2.6.39-Sabayon
error 19: Linux Kernel must be loaded before initrd
press any key....
Now I did notice while looking in the /boot folder of /dev/sda9 that file 'initramfs-genkernel-x86-2.6.39-sabayon' is a gzip type file. Could this be causing the menu.lst to get errors?

Don't remember if I said this earlier in this diatribe but, after the install and allowing grub2 to re-write the mbr, I rebooted and updated from the CL. It took hours to update with DSL. Then the next day I wanted grub legacy back, so I booted into Mepis and did the gui resetting of the mbr. When I rebooted I had grub legacy back but no menu entry for Sabayon. Since then I have reset the mbr from inside Mepis with the same result. I am not really efficient from the CL and am not able to use man pages to help me, but I am wondering if the files needed to boot Sabayon are located in different places than Ubuntu or Mepis and grub legacy can't find what it needs to boot Sabayon. Just a thought.
houndhen
Young Hen
 
Posts: 26
Joined: Sun Jan 02, 2011 16:31

Re: menu.lst entry for Sabayon 6

Postby BlackNoxis » Thu Sep 15, 2011 21:49

Well, your thought is partially right, but you need to do a thing ... restore Grub2 from the Sabayon, that's now the only option remaining. Reply here after you did it. Good luck !
BlackNoxis
Growing Hen
 
Posts: 110
Joined: Tue Oct 06, 2009 10:37
Location: Cluj-Napoca, Transylvania, Romania

Re: menu.lst entry for Sabayon 6

Postby houndhen » Thu Sep 15, 2011 22:41

BlackNoxis wrote:Well, your thought is partially right, but you need to do a thing ... restore Grub2 from the Sabayon, that's now the only option remaining. Reply here after you did it. Good luck !
Got grub2 restored and rebooted into Sabayon.
houndhen
Young Hen
 
Posts: 26
Joined: Sun Jan 02, 2011 16:31

Re: menu.lst entry for Sabayon 6

Postby BlackNoxis » Thu Sep 15, 2011 23:15

Do you see the other OSes ?
BlackNoxis
Growing Hen
 
Posts: 110
Joined: Tue Oct 06, 2009 10:37
Location: Cluj-Napoca, Transylvania, Romania

Re: menu.lst entry for Sabayon 6

Postby houndhen » Thu Sep 15, 2011 23:50

Yes, I see the other OSes.
houndhen
Young Hen
 
Posts: 26
Joined: Sun Jan 02, 2011 16:31

Re: menu.lst entry for Sabayon 6

Postby BlackNoxis » Fri Sep 16, 2011 0:13

Then I believe this case is Solved ?
BlackNoxis
Growing Hen
 
Posts: 110
Joined: Tue Oct 06, 2009 10:37
Location: Cluj-Napoca, Transylvania, Romania

PreviousNext

Return to Sabayon Linux General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest