[SOLVED] Grub installed, boot from HDD but "no loaded kernel"
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.
Grub installed, boot from HDD but "no loaded kernel"
I installed Ubuntu having one IDE HDD and I didnt' make any partitions. Bootloader couldn't install, and I continued without installing it. After this, I plugged in a sec HDD SATA.
To install grub I followed what Saikee suggested:
sudo su
mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1
mount --bind /dev /mnt/sda1/dev
grub-install --root-directory=/mnt/sda1 /dev/sda
Installation was a success. Thanks Saikee!
BUT after I did this:
set root=(hd1,1)
configfile /boot/grub/grub.cfg
boot
(and of course changed BIOS to boot from Hard disk) I get the following:
GNU GRUB version 1.98-1ubuntu7
Minimal BASH-like line editing is supported... etc.(info)
and "grub>"
if I type boot I get no loaded kernel.
is there a solution from here?
Thanks.
Did you install Ubuntu (which version, 10.04?) to a computer with no other operating system on it? And what was the messagee when the bootloader couldn't install? to the master boot record? to to root partition? If the bootloader could not install, how were you planning to boot?
Don't get the part about the second hard drive, what was on it?
Hi yancek.
I installed Ubuntu 10.04 LTS on a computer without other OS. When I installed it I had only one Hard disk of 41Gb. The message was simple "cannot install bootloader on selected device I had 2 options: to quit installation of Ubuntu or to proceed without installing the bootloader ("! you can install bootloader manually"). I don't know the difference between MBR and partition, but I had the option to choose the partitions, and since I didn't create any, I left the default choice since none of the 2 choices (dev/sda nor dev/sda1)were ok to load. Basically the bootloader didn't want to install. (I tried 2 times before this reinstallation when I made 2 partitions but even then it didn't work, so I decided this time not to have partitions). I was planing to boot from LIVE CD and install grub manually. Now, I looked around and found how to install it using those 5 commands. And since after this my PC was able to start without live cd, I assumed those 5 commands were good for me. BUT the next message comes up regarding the Grub version.
The 2nd HD I added before I ran the 5 commands to install Grub.(i hope I remember correctly). The 2nd HD was empty, just received it from Seagate as a warranty exchange. Thanks.
at the grub prompt type in the following lines to be able to boot into you ubuntu installation
Quote:
root (hd0,1)
linux /vmlinuz root=/dev/sda1
initrd /initrd.img
To boot I think you have to hit the "b" key but not sure. Then do updates and then reinstall grub. In order to boot on a computer with only ubuntu installed will need to install grub to MBR
Last edited by colorpurple21859; 08-22-2010 at 04:12 PM.
Just had this issue when helping my brother install Ubuntu. Not sure why it happens, seems to happen consistently on certain hardware because it happened to him even after a reinstall. Anyway, here's the way to fix it. Make sure after you use the commands to get booted that you do a sudo update-grub to fix the problem.
BIG mistake ! I unfortunately remove "some" softwares on my OpenSuse10 (preinstalled on my laptop, without cd driver). Then I have only the Grub shell that appears and tu use to solve the problem... tried to boot kernel, but said that it "must be loaded before boot". I must get my important datas back on my hd before "restore to factory settings" (the last option). Any solution ?
BIG mistake ! I unfortunately remove "some" softwares on my OpenSuse10 (preinstalled on my laptop, without cd driver). Then I have only the Grub shell that appears and tu use to solve the problem... tried to boot kernel, but said that it "must be loaded before boot". I must get my important datas back on my hd before "restore to factory settings" (the last option). Any solution ?
You should start a new thread to give this problem the most exposure.
To try and answer your question though I would use a live cd to save my data.
I know this is a little late but next time consider backing up all important data before removing anything. Too many things can happen but usually will not if it is backed up
Last edited by Larry Webb; 08-29-2010 at 11:13 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.