LinuxQuestions.org
Help answer threads with 0 replies.
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 04-12-2013, 07:55 AM   #1
pjc123
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Rep: Reputation: Disabled
Need GRUB help


OK, so I successfully installed LMDE (Linux Mint Debian 201303) yesterday on an old x86 computer with a freshly cleared hard drive and everything is installed and working. But today I needed to install LMDE on my newer computer because I need to test something between the two, but this is the problem that has occurred.

A little background. The computer has 3 hard drives, and I select the drive I want to boot up from the boot menu using the F10 key, and then I can select what OS I want to run from the GRUB menu in the case of the dual boot drives. This is all working:

Drive 1 = /dev/sda = Dual Boot with Centos 5.8 & Scientific Linux 6.2
Drive 2 = /dev/sdb = Windows 7
Drive 3 = /dev/sdc = Dual Boot with Centos 6.2 & Ubuntu 12.04 LTS

So, I want to replace Centos 5.8 on Drive 1 with LMDE. Here is that drives setup:

FIRST OPERATING SYSTEM CENTOS 5.8
/dev/sda1 /boot ext3
/dev/sda2 Volume groups containing root and swap

SECOND OPERATING SYSTEM SCIENTIFIC LINUX 6.0
/dev/sda3 /boot ext4
/dev/sda7 Volume groups for root, home and swap

Before I installed Mint I ran Gparted from a separate disk, removed LVM and deleted the sda1 and sda2 partitions, so I could put Mint Debian in the unallocated space there.

Then I ran the Mint installation program and set up the following. According to everything I read about Mint (Or I guess I should say Debian in general?), is that it does not require a /boot partition, and this is indeed the same setup that worked on my other computer:

/dev/sda1 swap swap
/dev/sda2 / ext4

I also told it to put GRUB in sda (It wanted to default to sdc).

Now when I boot that particular hard disk, all that shows up is an old 0.97 GRUB with a command line prompt and absolutely no operating systems to select. When I look back at my notes, I installed the original Centos 5.4 GRUB (version 0.97) in sda's MBR and the Scientific Linux GRUB (version 0.97) in the first sector of boot partition /dev/sda3. I then chainloaded from Centos 5.4 into Scientific Linux. They are both 0.97 versions. So, I would guess that Mint's GRUB is version 1.99, because that is Debian's Wheezy GRUB version. So, what has happened? Am I not allowed to write GRUB2 over legacy grub, or have I done something else wrong?

EDIT: I found a linux-secure disk which lists very detailed disk information, but my experience with GRUB with respect to where it needs to be on the disks, GRUB vs GRUB2 is very limited (Other then adding things to the menu, chainloading, etc.):

http://paste.ubuntu.com/5701103/

pjc123 Level 1
Level 1 Posts: 7Joined: Tue Apr 09, 2013 2:13 pm
 
Old 04-12-2013, 08:24 AM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
You have a different of OS installed
Did you using 1 Grub ?
Or are you changing the boot order in the BIOS when chance from OS ?
Because windows7 is on SDB you write .
 
Old 04-12-2013, 08:35 AM   #3
pjc123
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Yes, as I stated, I am changing the boot order every time I boot.
 
Old 04-12-2013, 09:22 AM   #4
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
If you change the boot order every time you boot than you also chance the names of the HD
In sort if you install a OS on certain disk than that disk should be the first in the boot order during installation and put GRUB on that specifiek HD
 
Old 04-12-2013, 11:19 AM   #5
pjc123
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
All I need to do is fix the GRUB on /dev/sda so I can select either Mint or Scientific Linux; that's it. I am going to do some more reading, and if I can't figure it out, I will just wipe out the entire drive and start from scratch. Its time to start getting rid of all these legacy GRUB's anyway, because the mix with GRUB2 is a real pain every time I add a new OS. Red Hat 7 (Centos 7) can't come soon enough with GRUB2, and at that point I am wiping out everything (except for Windows 7, which may be my last anyways, after Windows 8 was such a disaster)and starting all over.

I certainly can see from the report at least why there are no operating systems listed at boot. Stage 2 is still looking at Partition 1 for for /grub/grub.conf from the old install, but that partition is now a swap partition and those files would be in Partition 2. I could re-install with a /boot drive and it would look in the correct place, but I am still wondering why GRUB2 was never installed and if that would cause problems. I also see that the boot flag is missing.

Last edited by pjc123; 04-12-2013 at 11:39 AM.
 
Old 04-13-2013, 12:17 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,834

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Boot the liveCD, then just re-write the MBR. See this article - "Fixing a Broken System", section "via the LiveCD terminal".
 
1 members found this post helpful.
Old 04-13-2013, 10:25 AM   #7
pjc123
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Boot the liveCD, then just re-write the MBR. See this article - "Fixing a Broken System", section "via the LiveCD terminal".
That looks like exactly what I need. It will write GRUB2 to the MBR, and fix where it is looking for the grub files. The only question I have is will it overwrite the legacy GRUB in the MBR with GRUB2 (which I want it to do), or will it have a problem with that. I will give it a try.

Last edited by pjc123; 04-13-2013 at 10:36 AM.
 
Old 04-18-2013, 03:03 PM   #8
pjc123
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Boot the liveCD, then just re-write the MBR. See this article - "Fixing a Broken System", section "via the LiveCD terminal".
SOLVED. Thanks, that did the trick; I used the Mint Debian live CD so the proper GRUB2 version would be installed. After I performed that task, the re-install of Mint Debian went smoothly and upon reboot brought up the GRUB2 menu with the Mint Debian OS listed and it started up properly.
 
  


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
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 11:56 PM
[SOLVED] How come I can't edit /boot/grub/grub.conf or /boot/grub/menu.lst in Fedora 14? trien27 Fedora 4 01-22-2011 05:02 PM
GRUB GRUB GRUB.... all over the display while booting with USB. kapsikum Linux - General 5 01-08-2010 05:29 AM
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 07:40 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 01:55 PM


All times are GMT -5. The time now is 02:47 AM.

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