LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-11-2009, 04:06 AM   #1
MCRan
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Rep: Reputation: 0
Smile My Linux won't boot after fixing bootloader


I had Vista installed after SUSE which then resulted in the Grub disappearing. Now after getting the solution on how to re-install Grub from openSUSE site, I get the boot menu but my SUSE linux won't boot. The solution was as follows (so anyone who's familiar, please help out):

In rescue mode:
I enter ----------------------> grub
Computer returns like this------> grub>
I enter ------------------------> find /boot/grub/menu.lst
Computer returns like this------> (hd0,6)
I enter ------------------------> root(hd0,6)
Computer returns like this------> File system type is ext2fs, partition type 0x83
I enter ------------------------> setup(hd0)

Then I see 4-5 lines like this: checking if /boot/grub/stage1 exists...yes
Computer finally returns: succeeded...Done

I enter -----------------------> quit
I enter -----------------------> reboot

____________________________________________________________________

However, upon booting I get the following error message on screen a few seconds before the boot menu appears: "root(hd0,5)/boot/message: file not found"

Then the boot menu appears, and when I choose SUSE I get the following error: "Error 17: cannot mount selected partition"


Help will be greatly appreciated.
 
Old 10-11-2009, 04:10 AM   #2
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893

Rep: Reputation: 119Reputation: 119
can you copy and paste /boot/grub/menu.lst
 
Old 10-11-2009, 04:18 AM   #3
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 52
We need more info...

on grub prompt, enter
Code:
geometry (hd0)
to see available partition.

You can see available root by typing root ( on grub prompt followed by TAB. (don't miss the bracket)

If you miss the bracket, grub will give you 'root and rootnoverify' options
 
Old 10-11-2009, 09:13 AM   #4
MCRan
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Entering "geometry (hd0)" on grub prompt I get the following:
__________________________________________________________________
drive 0x80:C/H/S=7296/255/63, The number of sectors:117210240, dev/sda
Partition num:0, Filesysyem unknown, partition type 0x7
Partition num:1, Filesysyem unknown, partition type 0x7
Partition num:5, Filesysyem unknown, partition type 0x82
Partition num:6, Filesysyem is ext2fs, parttition type 0x83
Partition num:7, Filesysyem is ext2fs, parttition type 0x83

----------------------------------------------------------------------
Typing root ( followed byTAB doesn't seem to do anything...
 
Old 10-11-2009, 09:32 AM   #5
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
Take a look at the grub help page. Grub
 
Old 10-11-2009, 10:16 AM   #6
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 52
in your post it read

Quote:
root(hd0,5)/boot/message: file not found
Quote:
Error 17: cannot mount selected partition
this addresses to swap partition, hence it cannot find the kernel.

Change it to root (hd0,6) might solve the problem...

You can manually change it from boot menu, when it appears, press 'e' to enter edit mode (or 'c' to get grub prompt),

when finish editing press Esc to back to menu and retry select the edited menu.

If succeed booting then manually edit your menu.lst.

CMIIW
 
Old 10-11-2009, 03:28 PM   #7
MCRan
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Hey hurry_hui, thx 4 the feedback...
I still don't succeed booting; I edited the "root (hd0,5)" to "root (hd0,6)" and pressed ENTER. Now when I press 'b' to boot it seems that it might boot, but then prompts me to enter the root password. Upon entering the password it gives the "(repair filesystem)#" prompt, and I don't know how to proceed from there (sorry I'm a bit n00bish).
Another thing, do you think I should edit the other entries on the boot menu as well? For example, when enter 'e' for edit when it's the "windows" entry highlighted on the menu, I get these 2 lines:
rootnoverify (hd0,5)
chainloader (hd0,0)+1

The other 2 entries other than openSUSE (i.e. Failsafe and XEN) also have the line "root (hd0,5)",so I wonder if I have2 edit that as well to "root (hd0,6)"?
And how do I save after editing in the grub prompt?
 
Old 10-11-2009, 04:31 PM   #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
If you use the "repair filesystem" you should not have to modify anything. You should have some options with the repair and one of them should be repair boot or grub. It has been a while but if I remember it will repair grub then let you opt out on repairing (overwriting) operating system.

Last edited by Larry Webb; 10-11-2009 at 04:35 PM.
 
  


Reply



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
Boot Camp (fixing boot loaders, learning your way around boot & chainloaders) Siljrath Linux - General 8 01-20-2015 11:00 AM
fixing boot/mbr via linux stevewm Linux - Newbie 9 05-20-2009 02:03 AM
Help set up Boot to Linux via WinXp Bootloader Halsafar Linux - Newbie 4 09-24-2005 06:04 AM
Need help fixing boot problem on Ubuntu/WinXp dual-boot Ay-Karamba! Linux - General 5 09-06-2005 09:20 PM
How to boot Linux from WinXP's bootloader? Z3RatuL Linux - General 3 03-01-2004 10:03 AM

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

All times are GMT -5. The time now is 10:11 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
Open Source Consulting | Domain Registration