LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-24-2011, 06:53 PM   #1
hilyard
Member
 
Registered: Jan 2010
Location: Inland PNW
Distribution: Lite | siduction
Posts: 291

Rep: Reputation: 66
Messed UP Boot Order on dual-boot, don't know GRUB2, need help -- another's PC


I am working on another's Dell Inspiron 530 with Vista 64-bit; see below:

root@xxxxxxx:~# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x596dfeb6

Device Boot Start End Blocks Id System
/dev/sda1 43287 44353 8570677+ 83 Linux
/dev/sda2 1 1917 15398271 7 HPFS/NTFS
/dev/sda3 * 1918 43286 332286996 7 HPFS/NTFS
/dev/sda4 44354 60801 132118560 5 Extended
/dev/sda5 44354 60018 125829081 83 Linux
/dev/sda6 60019 60618 4819468+ 83 Linux
/dev/sda7 60619 60801 1469916 82 Linux swap / Solaris

Partition table entries are not in disk order
root@xxxxxxx:~# lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82562V-2 10/100 Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IR (ICH9R) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)


The PROBLEM is that, wanting a dual-boot, 500GB hdd was formatted as above, Win Vista x64 Recovery CD was created, and antiX-M11 (as Swift Linux 0_1_1) installed. Now, at startup, machine boots to antiX and not Vista. User wants it the other way around.

I think I should have reordered the partitions and not installed GRUB in MBR. EasyBCD is the preferred boot loader for User.

This is a learning experience but due to time constraints and not being at my home where references are available, I need your help, please. I'm rushed.

EasyBCD is on a USB stick -- should I boot to the Vista Recovery CD and then try to install EasyBCD to sda3 from it, uninstall antiX (but this will not fix the MBR problem, will it?), or edit fstab or what. Sorry if answer is in the archives, but I'm intimidated by GRUB2 and do not like it much.

Will do what I have to, however. This is not my machine.

Last edited by hilyard; 06-24-2011 at 06:55 PM. Reason: spelling, clarity
 
Old 06-24-2011, 10:16 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
Now, at startup, machine boots to antiX and not Vista. User wants it the other way around.
a) Does this mean that you don't see a grub menu listing Windows and Linux, allowing you to select which to boot,
b) Does this mean that you do see the grub menu listing Windows and Linux, but the default boot is Linux (and you want it to be Vista),

If a), search Linuxquestions and google for instructions on how to add a menuentry for Windows to your /boot/grub/grub.cfg file.

If b), it's as easy as cut and paste. As root, open /boot/grub/grub.cfg and look for this:
Quote:
### BEGIN /etc/grub.d/10_linux ###
menuentry
. Cut out the menuentry stanza for Windows and paste it back in ahead of the Linux menuentry, and on subsequent boots you will see windows above Linux in the grub menu.
 
Old 06-24-2011, 10:56 PM   #3
hilyard
Member
 
Registered: Jan 2010
Location: Inland PNW
Distribution: Lite | siduction
Posts: 291

Original Poster
Rep: Reputation: 66
No, bigrigdriver, it means I do not see Windows listed anywhere -- not in /boot/grub/menu.lst and not as a menuentry in the file /etc/grub.d/10_linux!

I tried editing the former, only to have it fail to boot and had to use lucid puppy to restore. I think I need an example of how to edit the /grub/menu.lst to include Vista -- either that or a) delete GRUB2 and install LILO properly or, b) delete GRUB2 and somehow boot into Vista so EasyBCD.exe file can be installed or, c) another alternative.

I was starting to grasp the concept of legacy GRUB then along comes GRUB2 and things changed. Overwriting MBR is first thing I did wrong.
 
Old 06-25-2011, 12:16 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
Your post indicates the machine has antiX and vista installed. You refer to Grub Legacy and Grub2, which do you have. It's not likely that antix uses both and I expect it is Grub Legacy. You need to check to see if you have a /boot/grub/menu.lst (Grub Legacy)file or a /boot/grub/grub.cfg (Grub2)file. Not likely to have both.

Your fdisk output shows sda3 as bootable so, if that is the system partition and it has the boot files, the following entry for Grub Legacy should work:

Quote:
title vista
rootnoverify (hd0,2)
chainloader +1
 
1 members found this post helpful.
Old 06-25-2011, 12:57 AM   #5
hilyard
Member
 
Registered: Jan 2010
Location: Inland PNW
Distribution: Lite | siduction
Posts: 291

Original Poster
Rep: Reputation: 66
Thumbs up Solved

Thanks much, yancek, that did the trick!
GRUB Legacy is what it is -- no /boot/grub/grub.cfg exists (but the file /etc/grub.d/10_linux does).

Thanks, too, to bigrigdriver.
 
  


Reply

Tags
boot order, dual-boot, grub2, vista



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
Slackware13.1/ubuntu10.10 dual-boot grub2 question ewsmith Slackware 13 02-19-2011 08:27 AM
[SOLVED] Editing the grub2 boot menu in a dual boot machine Chriscrof Linux - Newbie 13 07-15-2010 01:14 AM
GRUB2 - FreeBSD-8.0 does not show up in triple boot menu, dual boot menu it does.. wiliweld *BSD 7 05-03-2010 01:05 PM
Grub2 boot entries don't change adunamia Linux - Software 10 02-09-2010 03:35 PM
Problems with dual boot, grub2 auto os prober mhbell Ubuntu 2 11-04-2009 10:11 AM

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

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