Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok, without sounding like a complete idiot here. I'll try my best to be as descriptive as possible.
The scenario:
I needed to tune my kernel in order for Rosegarden to start so I did.
>>> modified kernel time to 1000MHz
The next thing I know, I tried to reboot the laptop to use the modified kernel and I got this error message:
>>>error 13 Invalid or unsupported executable format
Ok, no panic yet... I'll just insert the openSUSE disk, boot from there and go back to my orginal settings.
>>> that didn't work still got the same error.
Ok, so next step would be for me to again try the openSUSE disk and try to reinstall grub..
>>>error 21 Selected disk does not exist
Since I'm totally clueless on how to map the only drive I have.. (i'm assuming that takes place in the /boot/grub menu.lst file)
Now I'm totally confused at this point .. so I try to write generic boot code to the MBR. That didn't work ..
But now my menu.lst file looks like the following:
# Modified by YaST2. Last modification on Mon Mar 12 18:37:10 CDT 2007
default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,2)/message
##YaST - activate
###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.2
root (hd0,2)
kernel /vmlinuz root=/dev/hda2 vga=0x317 resume=/dev/hda1 splash=silent showopts
initrd /initrd
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.2
root (hd0,2)
kernel /vmlinuz root=/dev/hda2 vga=normal showopts ide=nodma apm=off acpi=off noresume edd=off 3
initrd /initrd
Should I try and use the chainloader +1 option at this point? Or just make the boot partition active with the make active command?
Any help towards the right direction would be crucial at this point. As I don't want to have re-install the OS because of my screw-up.
The entry for openSuse doesn't look quite right, unless you have a separate boot partition.
root (hd 0,2) refers to the third partition (Grub counts from 0) but then the next line locates root in the second partition (root=/dev/hda2 = second partition as this counts from 1).
Since / and /boot are in different partitions, the menu.lst entries have to be adjusted accordingly, thusly:
title Linux-whatever
root (hd0,2)
kernel <name> root=/dev/hda2 <otherstuff>
Note that <name> has no "/boot" in the path since /boot is the grub root partition----ie "root (hd0,2)" already has sent grub to /boot.
Another clarification: The first root tells grub where to find its files, the second one tells the kernel where to mount the filesystem---2 totally different things.....
root (hdX,Y) refers to the location of the kernel and the grub config files. Thus is has to point to /boot
kernel <name> root=/dev/hdX,Y (Here <name> is the path to the kernel, starting from the first root statement. If root (hdX,Y) is /boot, then <name> would simply be vmlinuzxxxxxx. The "root" statement after the kernel name tells the kernel where to mount the filesystem root (/) )
Also, specifying the grub root (1st line), and then putting it before the kernel name, is redundant
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.