LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-09-2010, 06:42 PM   #1
bieszke2
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Rep: Reputation: 0
had windows 7, installed fedora 12 on partition, now windows won't boot


i think I explained the problem pretty well. If you need more info to help, let me know. Just so you guys know, I am pretty new to linux. I like it, but I also want the option of booting windows.
 
Old 02-09-2010, 07:27 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,597
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
Look at this tutorial:
http://en.gentoo-wiki.com/wiki/Grub2

It's about grub2 configuration on gentoo, but I guess it's not distro specific.
 
Old 02-09-2010, 07:36 PM   #3
bieszke2
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Original Poster
Rep: Reputation: 0
well, do you have any suggestions about what to do? I am fairly familiar with commands, and I know what grub is, but I don't know how to change it.

Last edited by bieszke2; 02-09-2010 at 07:37 PM.
 
Old 02-09-2010, 07:40 PM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,597
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
First of all, what's your partition setup?
Can you post the output of (as root)
fdisk -l
 
Old 02-09-2010, 07:58 PM   #5
bieszke2
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa0000000

Device Boot Start End Blocks Id System
/dev/sda1 1 4 32098+ de Dell Utility
/dev/sda2 5 664 5295104 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 665 1309 5180962+ 5 Extended
/dev/sda4 1310 19131 143149052 7 HPFS/NTFS
/dev/sda5 * 665 690 204800 83 Linux
/dev/sda6 690 1309 4975615+ 8e Linux LVM

Disk /dev/dm-0: 2977 MB, 2977955840 bytes
255 heads, 63 sectors/track, 362 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: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table
 
Old 02-09-2010, 08:07 PM   #6
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,597
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
I assume that /dev/sda2 is where your windows system is.

Add this entry to /etc/grub/grub.cfg

Code:
menuentry "Window 7" {
        set root=(hd0,2)
        chainloader +1
}

I don't know how windows 7 boots up so you might also add another one:

Code:
menuentry "Window 7 sda1" {
        set root=(hd0,1)
        chainloader +1
}
Once you have saved it, reboot the computer and see if you can boot into windows from one of those two entries.
 
Old 02-09-2010, 08:16 PM   #7
bieszke2
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Original Poster
Rep: Reputation: 0
how would I go about adding the entry? I got to to folder, I'm not sure what to do after that.

Last edited by bieszke2; 02-09-2010 at 08:21 PM.
 
Old 02-09-2010, 08:24 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Does F12 even use grub2 ?. Not mentioned in the release notes, and I don't recall it when I installed.
(This post to remind me to look when I get home)

@bieszke2, let's see the optput from "ls /boot/grub"
 
Old 02-09-2010, 08:25 PM   #9
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,597
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
Go to the command line (terminal/konsole) type 'su' to become root.
Then type:
Code:
nano /etc/grub/grub.cfg
Copy and paste the two entries. Save it and then close it:
ctrl+o ===> 'Enter' ===> ctrl+x.
 
Old 02-09-2010, 08:28 PM   #10
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,597
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
Quote:
Originally Posted by syg00 View Post
Does F12 even use grub2 ?. Not mentioned in the release notes, and I don't recall it when I installed.
(This post to remind me to look when I get home)

@bieszke2, let's see the optput from "ls /boot/grub"
For god's sake, why did I assume that it's grub2?!!! I think it still uses grub.
My apologies for it.
 
Old 02-09-2010, 08:33 PM   #11
bieszke2
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Original Poster
Rep: Reputation: 0
device.map grub.conf minix_stage1_5 stage2
e2fs_stage1_5 iso9660_stage1_5 reiserfs_stage1_5 ufs2_stage1_5
fat_stage1_5 jfs_stage1_5 splash.xpm.gz vstafs_stage1_5
ffs_stage1_5 menu.lst stage1 xfs_stage1_5
 
Old 02-09-2010, 08:33 PM   #12
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,597
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
Please, disregard whatever I've written so far. I wrongly assumed Fedora is using the latest version of grub.
As syg00 suggested, try:
Code:
ls /boot/grub
If you can see the file called menu.lst

open it with nano and add the following entries

Code:
title Windows 7 A
root (hd0,0)
makeactive
chainloader +1

title Windows 7 B
root (hd0,1)
makeactive
chainloader +1
 
Old 02-09-2010, 08:52 PM   #13
bieszke2
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Windows A did not work.
Windows B kind of worked.
It displayed "BOOTMGR is missing"
Is there anything I can do about that?

Last edited by bieszke2; 02-09-2010 at 09:34 PM.
 
Old 02-10-2010, 04:12 AM   #14
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,597
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
Boot your computer with windows 7 dvd and use the repair feature. It will overwrite grub, but that's something that can be easily restored either with fedora dvd or even easier with supergrub cd.
 
Old 02-10-2010, 11:13 AM   #15
bieszke2
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Yeah, I just did that yesterday. It didn't overwrite the grub, it just put in a new bootmgr. I guess Windows 7 is famous for deleting its own bootmgr. All works fine now, thanks for the help.
 
  


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
Installed Windows on separate partition and now cannot boot Linux schulte3 Linux - Newbie 5 02-04-2010 02:46 AM
boot a windows partition without win/longhorn installed theacerguy Linux - General 3 08-16-2009 08:47 AM
Wine installed a program onto my windows partition, Windows BSOD on boot. DJGCrusader Linux - Enterprise 9 08-14-2009 09:25 AM
installed Fedora core 3 and now windows XP can't boot kiljoix Linux - Newbie 7 10-24-2005 06:42 PM
installed fedora 2...and now windows won't boot! Skawaii Linux - Newbie 4 10-02-2004 10:31 AM


All times are GMT -5. The time now is 09:37 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration