LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-08-2008, 09:10 PM   #1
Mckraken12
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
Need help with MBR and GRUB


okay, so i as of right now i have four partitions on my 80GB hardrive, hd0. i have windows vista on a 46.9GB partition, Fedora FC8 on a 15.6GB partition, a 1.3GB swap partition for linux, and a 10.6GB partition for windows XP.

i just recently installed XP and because of it, XP now is the only thing that boots. i was able to get Vista to boot just by putting in the repair disk and fixing the start up options. so now Vista is the only booting system. what i could do is use EasyBCD to allow both XP and vista to boot, but i want to use GRUB so Fedora can boot too.

the problem is i cant get GRUB to boot.

i've looked around various forums, and have tried many things.
first i tried putting in the Fedora disk and using the recover system option to get to a command line. this is what i have done so far:
# grub
// which brings me to the grub command line)
# find /boot/grub/stage1/
// now i know where the grub bootloader is (i think)
# setup (hd2)
Error 12: Invalid device request
// i also tried this
# root (hd0,0)
# setup (hd0)

this did not work so i exited the grub menu and went back to the command line for the system

i then tried this:
#chroot /mtn/sysimage
#/sbin/grub-install /dev/hda
// it says that there is no such file or directory for '/dev/hda'
// i also tried '/dev/hda2' and '/dev/hda0'

this also did not work.

i have yet to make a GRUB floppy or disk, mainly because i dont know how make one or how to use it, so that will be a last case senario.

so i ask "what can i do?"
i really dont want to have to reinstall Fedora.
i need help here guys
how can i get Grub to start again.
 
Old 10-08-2008, 10:49 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Boot into your Fedora rescue CD. If the rescue CD has the option to boot an existing Linux partition then use that to get to your Fedora system.

If the fedora rescue won't boot an existing partition then mount the Fedora partition from the rescue CD and use the chroot command to change your root to the Fedora / partition.

However you get to your Fedora system then run the grub-install command to put grub back on the MBR.

------------------
Steve Stites
 
Old 10-10-2008, 07:49 AM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
it looks like you have
hd0,0 vista
hd0,1 core
hd0,2 linux sw
hd0,3 xp

you appear to have not shown the result of the grub find command but IMHO it is (hd0,1)

so try

Code:
su
grub
find /boot/grub/stage1....and whatever it is is the correct one
root (hd0,1)
setup (hd0)
quit
 
Old 10-13-2008, 02:41 PM   #4
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
insert any of the linux cd.press ctrl+alt+f2
then u will get a shell prompt

enter the following code
Code:
mkdir /linux
mount /dev/sdax /linux
chroot /linux

grub
>root (hd0,x-1) 
>setup(hd0)
>quit
>restart
replace x with ur fedora linux partition
 
Old 10-13-2008, 02:50 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
When your frustration levels exceed your ability to deal with grub, google Super Grub Disk.
 
  


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
need some help with the MBR and grub nyheat Linux - General 5 02-07-2007 12:51 PM
GRUB on MBR ... dipenchaudhary Linux - General 12 02-16-2006 11:52 AM
grub to mbr rekaye1005 Linux - General 1 10-18-2005 07:20 PM
GRUB MBR overwritten by WIN98 MBR TOuseef Linux - General 7 11-14-2004 04:25 PM
Grub and MBR, need some help entm Linux - General 3 05-13-2002 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:13 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