LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-20-2010, 09:28 PM   #1
rockonwarock
LQ Newbie
 
Registered: Aug 2010
Posts: 13

Rep: Reputation: 0
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.
 
Old 08-21-2010, 09:01 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,508

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
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?
 
1 members found this post helpful.
Old 08-22-2010, 03:57 PM   #3
rockonwarock
LQ Newbie
 
Registered: Aug 2010
Posts: 13

Original Poster
Rep: Reputation: 0
Grub installed on Ubuntu 10.04 LTS

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.
 
Old 08-22-2010, 04:10 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
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.
 
1 members found this post helpful.
Old 08-22-2010, 04:32 PM   #5
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 794

Rep: Reputation: 56
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.

Linkage

Last edited by dudeman41465; 08-22-2010 at 06:43 PM.
 
1 members found this post helpful.
Old 08-24-2010, 09:48 PM   #6
rockonwarock
LQ Newbie
 
Registered: Aug 2010
Posts: 13

Original Poster
Rep: Reputation: 0
THANKS TO ALL OF YOU.

I followed dudeman41465's link and it worked perfect on Asus P5N SL, nVidia graphics and intel.

Thanks man. keep on posting. Cheers.
 
Old 08-29-2010, 09:44 AM   #7
Msi100SuSe10
LQ Newbie
 
Registered: Jan 2010
Posts: 17

Rep: Reputation: 0
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 ?
 
Old 08-29-2010, 11:09 AM   #8
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by Msi100SuSe10 View Post
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.
 
Old 08-29-2010, 09:57 PM   #9
Msi100SuSe10
LQ Newbie
 
Registered: Jan 2010
Posts: 17

Rep: Reputation: 0
ok thanks Larry
 
  


Reply

Tags
grub



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub error - "Linux kernal must be loaded before initrd" MarkMark Linux - General 10 12-27-2006 04:58 PM
GRUB boot loader "kernel" options?? registering Mandriva 4 08-18-2005 07:12 AM
Have installed Slackware 9.0 and all i get when i boot is "GRUB" rockpc Slackware - Installation 5 11-29-2004 04:31 PM
"No kernel packages were installed... Boot loader will not be changed..." error messa ptexpress Linux - Newbie 1 11-03-2003 03:54 AM
how to change "kernel arguments" in grub boot loader permanently stupid_guy Linux - Newbie 7 06-09-2003 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration