LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-29-2009, 09:51 PM   #1
katesfb
Member
 
Registered: Nov 2006
Posts: 58

Rep: Reputation: 15
MBR problem - cant boot system


Hi,
I have a problem booting my laptop. I currently have xubuntu 8.10 dual booted with windows XP i then decided to try xubuntu 9.04 by putting it on to a USB flash drive using the setup file xu904p.exe and the iso file for xubuntu 9.04. Everything seemed to go fine except when i went to reboot i got a blank screen nad that was it. I assume the MBR has been overwritten/corupted. I can boot into windows if i use Gparted and select the 'boot from 1st partition' option of Gparted but cant seem to boot into Xubuntu using any of the other options.

If i try to boot (using Gparted) using the 'Boot MBR on first hard drive' option i get teh following:

rootnoverify (HD0)
chainloader +1

Then nothing happens. I assume there must be a command that i can use under Gparted to boot xubuntu. However i still have teh problem of how to fix the MBR to dual boot the two systems again.

I had this problem once in the past and got around it buy reinstalling linux as this writes a new MBR but not to keen to do this. Another option would be just to upgrade to Xubuntu 9.04 but do i need ot get access to old system to do this or could i do it from a live CD.

Any help would be much apreciated as i mostly use Xubuntu now.

Cheers.
 
Old 06-29-2009, 10:04 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You can install GRUB from any Linux Live CD.
 
Old 06-29-2009, 10:33 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I'm back---I had to check something.....

Running from a live CD, get into a terminal (command line) and enter "fdisk -l" to confirm the disk partitions. Let's assume you have one drive and you want to install GRUB on /dev/sda, and the grub config files (including menu.lst) are on /dev/sda1.

enter "grub" to start the GRUB shell
enter "root (hd0,0)" ---GRUB should confirm that it finds a filesystem there.
enter "setup (hd0)"
reboot

If you have a complex setup with multiple drives, you may have to experiment a bit. The trick is to know what the drive/partition order will be when the system boots from hard drive. For more help, post your complete configuration--number and type of drives, etc.

Note that grub numbering starts from zero, so drive 1, partition 1 is "hd0,0"
 
Old 06-30-2009, 09:35 PM   #4
katesfb
Member
 
Registered: Nov 2006
Posts: 58

Original Poster
Rep: Reputation: 15
Hi Pixellany,
It worked perfectly, so many thanks for that. It is also usefull information to know for the future, all i need to know now is why installing a live .iso to a usb flash drive should have over written the MBR in the first place so that i dont have the same problem agian although at least i can fix it now. Agian, many thanks.

Cheers.
 
  


Reply


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
Re-installing Linux on a dual-boot system: what happens with Grub and the MBR? jem Linux - Newbie 5 11-26-2008 02:47 PM
MBR And Boot Problem password Linux - Software 13 12-16-2005 10:12 AM
mbr issue on dual boot rhl7.1 dominant system m3rajk Linux - Software 8 12-04-2003 06:17 PM
How to boot up from hdc1? Don't write lilo to mbr. Just leave minimum system files. bxxxr Linux - General 2 08-28-2003 05:22 AM
Do not want lilo in my MBR, want to use System Commander to boot rdaves@earthlink.net Linux - General 4 09-21-2001 11:55 PM

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

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