LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-16-2011, 09:30 AM   #1
orcaja
Member
 
Registered: Aug 2008
Posts: 83

Rep: Reputation: 1
Post Grub how to install


Hi everyone!

I had installed debian lenny on virtual box, I updated to squeeze following the steps I found in http://www.howtoforge.com/upgrade-de...w-simple-steps . Apparently it didn't do anything in the last step, updating the grub.

After reboot only an error appeared, but it can not start. I find out how to start the virtual machine using damn small linux and how to mount the disc where debian is installed. But now I don't know what to do.

I was ready to reinstall everything again, but if there is something else I can do before that, I would like to give it a try.

Any help will be very appreciated.

Thanks in advance.
 
Old 05-16-2011, 10:11 AM   #2
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,227
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
Quote:
I was ready to reinstall everything again, but if there is something else I can do before that, I would like to give it a try.
DONT!!!!!!!!!!! Now is the time to learn something! You lucky bumm

First of, try to post the error here, that'll help us help you a bit better.

Okay, you can mount the hard drive, cool. Found the small partition the system boots from? I's tiny, some 100 Mb (in my box)...okay, get into that partition, you'll find a folder called "grub", enter it and try to access the file called "menu.lst".
Try to analyse, ever seen this before? Does it look okay to you? If possible, please post that here too, thanks.

Let's try to wake the old horse up!

Some links:
http://boff.wordpress.com/2007/01/17...rub-boot-menu/
(Ubuntu, but that's Debian based...)
http://www.softpanorama.org/Commerci...own/grub.shtml
(more info)
http://www.gnu.org/software/grub/man...2dinstall.html
(quick howto to install Grub)

Lemme know where we get from here!

Thor
 
Old 05-18-2011, 08:18 AM   #3
orcaja
Member
 
Registered: Aug 2008
Posts: 83

Original Poster
Rep: Reputation: 1
Hi there!

Thanks for your encouragement! I checked the menu.lst, and then I also try with menu.lst.old, which I renamed as menu.lst. Finally I read https://help.ubuntu.com/community/Grub2 in which says that grub2 doesn't use menu.lst. I also found what the problem was: At running upgrade-from-grub-legacy, we have to select one of the choices, ... I didn't know how: I tried with TAB, I tried with an asterisks, and finally I tried with ENTER. By pressing "enter" none of the choices were selected and I ended with Error 15, no file found. If I had only knew that I needed to press "space bar" to select one of the options...

I mounted the system on DSL and tried to run again /mnt/hda1/usr/bin/update-grub , and I got:
/mnt/hda1/usr/sbin/grub-mkconfig: line 94: /usr/lib/grub/grub-mkconfig_lib: no such file or directory

Then I tried the chroot command (that was something new for me)
chroot /mnt/hda1/
FATAL: kernerl too old
uname-r
2.4.31

Then I tried again with DSL-N which has kernel 2.6 (I didn't know that), but I got the same result.

Finally I tried with "system rescue cd" (Also new for me), this has many options to boot, and I selected to boot with one of the installed operating systems. And there you go!, I could get Debian again. I had a look again at http://www.howtoforge.com/upgrade-de...w-simple-steps and tried to run some of the commands at the end of the page and finally ran upgrade-from-grub-legacy and selected both options.

Now Debian started again... in console mode with the error:
Failed to start the X server (your graphical interface). It is likely that it is not set up correctly. Would you like to view the X server output to diagnose the problem?

Again... I don't know where to go from here.
But thanks in advance, interesting adventure so far...
 
Old 05-18-2011, 08:21 AM   #4
orcaja
Member
 
Registered: Aug 2008
Posts: 83

Original Poster
Rep: Reputation: 1
Should I mark this thread as Solved, and start a new one with my new problem?

Thanks everyone
 
Old 05-18-2011, 10:31 AM   #5
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,227
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
Quote:
Should I mark this thread as Solved, and start a new one with my new problem?
Nononononoooooo....the stitchwork continues...

Quote:
Would you like to view the X server output to diagnose the problem?
Possibly something like "no screens found"...if so, there is a step-by-step to help you...nonetheless, we're here to help out too, dont worry...

Quote:
But thanks in advance, interesting adventure so far...
Well, that's Linux for ya! At least (contrary to the "other one") you can get to the plumbing and repair things.

Let's continue the knitwork,okay?

Thor
 
Old 05-18-2011, 08:37 PM   #6
orcaja
Member
 
Registered: Aug 2008
Posts: 83

Original Poster
Rep: Reputation: 1
Hi there!

I found the message "no screens found", then, from http://wiki.debian.org/Xorg , I tried
/etc/init.d/kdm stop
/etc/init.d/gdm stop
/etc/init.d/xdm stop
cd /etc/X11/
Xorg -configure

after that I tried this apt-get install dkms build-essential linux-headers-generic in order to get the virtual box additions,(http://forums.virtualbox.org/viewtopic.php?t=15679) and finally I follow the steps on http://virtualboxes.org/doc/installi...ons-on-debian/

Now I have a new Debian Squeeze running on my Virtual Box, and I'm very happy for that.
Thanks for the advice Thor!

This forum is awesome!
 
Old 05-19-2011, 10:46 AM   #7
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,227
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
Quote:
Thanks for the advice Thor!
No sweat! Glad I could help!

Quote:
This forum is awesome!
You aint seen nothin' yet!!!

Thor
 
  


Reply

Tags
debian, grub, rescue, virtual box


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] cannot install grub (grub-probe says 'unknown fs' with ext4 and md raid) cusco Linux - Software 3 03-15-2011 02:58 AM
Grub - Does fedora automatically install a bootloader like grub? or... mitchell7man Linux - Software 10 05-09-2007 11:49 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 01:55 PM
Need to (re)install GRUB: fedora c4 rescue cd (and GRUB) unable to see the harddisk whencat Fedora 4 03-05-2006 03:01 PM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 02:06 PM


All times are GMT -5. The time now is 10:44 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration