LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-06-2009, 07:51 AM   #1
pleomax
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
Grub Startup


I was able to boot up and select which OS to start, Ubuntu 8.10 or Windows XP pro, without any problem. Unfortunately I had cause to reinstall Windows XP pro, which appears to have overwritten Grub. As Windows now starts automatically when I boot up

Can anyone help me to sort this problem out, without having to reinstall Ubuntu 8.10 again, as this would mean, I believe, losing all my current files.

Thanks in anticipation
 
Old 04-06-2009, 07:59 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Welcome to LQ!!

From any Linux "live CD", you can re-install grub. Open a terminal (or ctrl-alt-F1 (or F2) for a command prompt) and:

fdisk -l ##confirm what partitions are seen by the system. Let's assume that Linux /boot is on /dev/sda2. To grub, this is (hd0,1).
grub ##opens the GRUB shell
root (hd0,1) ##Points GRUB to the the Linux /boot partition
setup (hd0) ##Puts GRUB on the MBR of the first drive.
 
Old 04-07-2009, 08:31 AM   #3
pleomax
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Grub startup

Quote:
Originally Posted by pixellany View Post
Welcome to LQ!!

From any Linux "live CD", you can re-install grub. Open a terminal (or ctrl-alt-F1 (or F2) for a command prompt) and:

fdisk -l ##confirm what partitions are seen by the system. Let's assume that Linux /boot is on /dev/sda2. To grub, this is (hd0,1).
grub ##opens the GRUB shell
root (hd0,1) ##Points GRUB to the the Linux /boot partition
setup (hd0) ##Puts GRUB on the MBR of the first drive.
What do you mean by:

1 - "Live CD"? All I have is the CD I created from the Ubuntu download.
2 - I am sorry, but I don't understand what you are trying to tell me.

I am new to Linux and as yet do not fully understand the "techie" talk.
Please excuse my ingorance.
 
Old 04-07-2009, 09:41 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
Quote:
"Live CD"? All I have is the CD I created from the Ubuntu download
Exactly. That's what pixellany is referring to. Live CD because it has the operating system and can be used for many purposes without installing to your hard drive. You insert your installation CD, let it load and open a terminal/konsole and enter the commands pixellany suggested:

sudo fdisk -l #(lower case Letter L)This give partition info so you know which partition has Ubuntu boot files. Assuming your Ubuntu partitions is sda2 you would enter command suggested above. If the partition is different you need to make appropriate changes.
 
Old 04-07-2009, 09:57 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Sorry if it was confusing.

Many different versions of Linux give you a full install live from the CD. From there, you can open a terminal from the menus.

For just about ANY bootable Linux disk, you can get a terminal using ctrl-alt-F1.

Once you have a terminal, you enter the commands in order. (Note that I put comments in with ##--the only thing to be entered is the stuff before the ##)

Take the time to learn the basics in a terminal (AKA "console" or "command-line") This is the most efficient way to do some things---and has largely been taken away from Windows users.
 
Old 04-07-2009, 11:23 AM   #6
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Rep: Reputation: 70
I don't see how reinstalling Grub will help in this instance. If the OP re-installed Windows, it's probably overwritten the Ubuntu installation entirely. Windows AFAIK assumes it's the only OS in the world and can therefore use the entire disk.
 
Old 04-07-2009, 12:05 PM   #7
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
Quote:
Originally Posted by Completely Clueless View Post
I don't see how reinstalling Grub will help in this instance. If the OP re-installed Windows, it's probably overwritten the Ubuntu installation entirely. Windows AFAIK assumes it's the only OS in the world and can therefore use the entire disk.
The assumption is that the OP is using seperate disks.
 
Old 04-07-2009, 12:27 PM   #8
ANO1453
Member
 
Registered: Dec 2008
Location: Portugal
Distribution: OpenSuse Leap 42.1
Posts: 54

Rep: Reputation: 27
Try to download and use SUPERGRUB. It worked for me.

It has a help menu that explains everything. Read everything carefully. You ill be able to install a GRUB with dual boot or at least boot into UBUNTU and from there you can reinstall GRUB with the old specifications.
 
Old 04-07-2009, 01:34 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Completely Clueless View Post
I don't see how reinstalling Grub will help in this instance. If the OP re-installed Windows, it's probably overwritten the Ubuntu installation entirely. Windows AFAIK assumes it's the only OS in the world and can therefore use the entire disk.
If I recall correctly, Windows DOES give you the option to install on a partition which is smaller than the whole disk.
 
Old 04-07-2009, 03:50 PM   #10
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
pixellany you are right unless it is a recovery disc.
 
Old 04-09-2009, 06:17 AM   #11
pleomax
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Talking

Thank you pixellany, your explanation worked completely.

I am now fully up and running.

Thank you once again.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub Error 21 on startup Dutch72 Linux - Newbie 5 06-30-2008 07:42 AM
LXer: Startup Manager: configuring grub and usplash LXer Syndicated Linux News 0 01-07-2008 01:10 PM
no grub menu after startup in dual boot FC3 and XP Remko Fedora - Installation 6 01-19-2005 04:44 AM
difference between various linuxes at grub startup riseanranger Linux - Software 2 09-01-2004 05:31 PM
Why does my grub show me both kernels at startup? Santorres Linux - Newbie 2 06-28-2003 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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