LinuxQuestions.org
Review your favorite Linux distribution.
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 02-16-2010, 07:13 PM   #1
TheWoodchuck
Member
 
Registered: Jun 2001
Posts: 34

Rep: Reputation: 15
MBR help. Vista and Fedora 12


Hello, heres the issue.
I have a gateway laptop with Vista 64 previously installed with 2 partitions: C and D and an "invisible" 10gb recovery partition. I installed Fedora 12 without issue, but now when grub loads it gives me 2 options: Fedora and Other.
Instead of "Other" going to Windows it now goes to the Gateway recovery tool. Which i believe resides on that 10gb "invisible" partition.

I dont think this will be a hard fix. Im sure its just a file i need to edit. Just not sure where to find it, kinda new and such. Any help that can be given i will greatly appreciate.
 
Old 02-16-2010, 07:19 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

Please paste the output of the command "fdisk -l", if you are not logged in as root but have sudo you may have to do "sudo /sbin/fdisk -l" instead. With this if you could then also output the the content of "/boot/grub/menu.lst" or "/boot/grub/grub.conf". We should be able to tell you what to change, I suspect if you are right then you may have done an update to Fedora that updated a driver that allowed it to see that partition, if this is the case then it might be just a case of changing the reference of hd(0,0) to hd(0,1) but let's see the output first before messing around with boot scripts .
 
Old 02-16-2010, 07:31 PM   #3
TheWoodchuck
Member
 
Registered: Jun 2001
Posts: 34

Original Poster
Rep: Reputation: 15
[root@Gateway Dan]# fdisk -l

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbfa4073f

Device Boot Start End Blocks Id System
/dev/sda1 1 1306 10485760 27 Unknown
/dev/sda2 * 1306 12832 92579840 7 HPFS/NTFS
/dev/sda3 12832 21569 70185026+ 7 HPFS/NTFS
/dev/sda4 21570 24321 22105440 5 Extended
/dev/sda5 21570 21595 204800 83 Linux
/dev/sda6 21595 24321 21900287+ 8e Linux LVM

Disk /dev/dm-0: 16.1 GB, 16114515968 bytes
255 heads, 63 sectors/track, 1959 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 6308 MB, 6308233216 bytes
255 heads, 63 sectors/track, 766 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table
 
Old 02-16-2010, 07:46 PM   #4
TheWoodchuck
Member
 
Registered: Jun 2001
Posts: 34

Original Poster
Rep: Reputation: 15
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,4)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_gateway-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.31.5-127.fc12.x86_64)
root (hd0,4)
kernel /vmlinuz-2.6.31.5-127.fc12.x86_64 ro root=/dev/mapper/vg_gateway-lv_root LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.31.5-127.fc12.x86_64.img
title Other
rootnoverify (hd0,0)
chainloader +1
 
Old 02-16-2010, 08:50 PM   #5
TheWoodchuck
Member
 
Registered: Jun 2001
Posts: 34

Original Poster
Rep: Reputation: 15
And with your help i fixed it :-D .

From grub.conf .....

title Other
rootnoverify (hd0,0)

changed too

title Other
rootnoverify (hd0,1)

And now instead of booting into the recovery console it boots into windows.
 
Old 02-16-2010, 08:52 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by TheWoodchuck View Post
title Other
rootnoverify (hd0,1) <<< ===
chainloader +1
Maybe change the title to something meaningful while you're at it.
Personally I prefer to see the menu, so comment out the hiddenmenu line - add "#" at start of the line.
 
Old 02-17-2010, 10:55 AM   #7
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by TheWoodchuck View Post
And with your help i fixed it :-D .
Probably as I guessed a driver update that caused it to be able to see a partition that was previously not viewable under the previous driver for the Hard Drive controller. Only curious thing if this is the case is why it didn't break your linux installation as well. But everything seems to be working for now so it should be fine. It might be fedora fixed it's own configuration at the same time of compiling the driver into the kernel.

Quote:
Originally Posted by syg00 View Post
Maybe change the title to something meaningful while you're at it.
I would say I agree with this, I myself do this just for normal installations but I go further with my hosted server where I work to make things a bit more obvious.

A typical kernel line would be like the following (please note this is from the domain-0 of a xen server)
title CentOS (2.6.18-164.11.1.el5xen)

I change this on my server to
title CentOS, Kernel: 2.6.18-164.11.1.el5xen (current)

on top of this I label previous Kernels as (old) and none Xen Kernels as (do not use) as Xen was installed post installation since the usage of the server changed and I did not reinstall it I still get none Xen Kernels but if Xen did develop a problem I still have the back-up of a none-xen kernel to fix things from, however these won't bring up my Virtual Machines so I label these as (do not use).
 
  


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
[SOLVED] vista multiple linux boot mbr problem vbdanl Fedora 5 01-08-2010 01:29 PM
fedora/vista dual boot - partimage: restored vista - vista won't let me log on redmoon zero Linux - General 1 12-31-2007 07:21 PM
Dual booting Vista and Slackware; How Can I Fix My MBR if I Bust it? Dark Jirachi Linux - General 3 09-16-2007 12:21 PM
Removing Vista from my MBR -- Help! kofi Linux - Software 3 02-07-2007 05:52 PM

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

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