LinuxQuestions.org
Register a domain and help support LQ
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 08-18-2008, 04:29 AM   #1
mathewmndeme
LQ Newbie
 
Registered: Aug 2008
Posts: 6

Rep: Reputation: Disabled
Question Why my Windows Xp is not booting after installationg Fedora core 8?


Hello, I am a begginer to linux. I have a dell Latitude D630 laptop. It has a 150G hard drive in which I have made two partitions one of size 103G with windows and the rest I have just installed fedora core 8 and I have configure grub to boot windows first.

The boot loader gives me booting options but when I choose to boot Windows XP it doesn't boot anyone but fedora boots fine.

Previously I had three partions in which one of them I installed fedora after windows installation and It was doing the same thing. I thougt that was the problem so I decide to format and create two partitions in which one I installed windows and there after fedora 8 in the rest.

What might be the problem? please help me.

Mndeme
 
Old 08-18-2008, 05:22 AM   #2
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Rep: Reputation: 31
you have to go to gives us some more information. here is what we need.
open up a terminal and becoame root. then go to:
nano /boot/grub/menu.lst
and attach over here the output. press contol+x to exit
 
Old 08-18-2008, 05:22 AM   #3
osamaensyviswinkel
LQ Newbie
 
Registered: Sep 2007
Location: Stellenbosch, South Africa
Distribution: Ubuntu 12.10 at home, Mac OS X on laptop
Posts: 20

Rep: Reputation: 0
How does your grub.conf look and what errors are you receiving on bootup?
 
Old 08-18-2008, 05:32 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by osamaensyviswinkel View Post
How does your grub.conf look and what errors are you receiving on bootup?
In the more recent distros, the config file is almost always called menu.lst

Look in /boot/grub and you will see what you have.

What you are looking for in the config file is an entry like this:

Code:
title windows
root (hd0,0)
makeactive
chainloader +1
 
Old 08-18-2008, 09:54 AM   #5
mathewmndeme
LQ Newbie
 
Registered: Aug 2008
Posts: 6

Original Poster
Rep: Reputation: Disabled
Talking more detail from grub.conf

Binary Dreamer;

Below is what appears in menu.lst

# 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,1)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.1-42.fc8)
root (hd0,1)
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.23.1-42.fc8.img
title Windows Xp
rootnoverify (hd0,4)
makeactive
chainloader +1
~
I edited it by adding make active but no change


When booting windows I i stack just at strat up with the message on the black scree;
Booting Windows XP
rootnoverify (dh0,4)
makeactive


Error 12: Invalid device requested

Press any key to continue.....


When pressed it gets me back to the grup boot option




And here are my disks partitions
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 48419836 3617172 42303352 8% /
/dev/sda2 295555 16270 264024 6% /boot
tmpfs 512572 12 512560 1% /dev/shm
/dev/sda5 103731672 44936368 58795304 44% /media/disk

Last edited by mathewmndeme; 08-18-2008 at 11:25 AM.
 
Old 08-18-2008, 03:06 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
According to your GRUB config file, it is looking for Windows on partition 5 of the first disk. (GRUB counts from 0)

Please post the output of "fdisk -l". Assuming that Windows is really on sda1 (as implied by the above), then change the Windows entry accordingly. In "grubese", sda1 is hd0,0
 
Old 08-18-2008, 04:00 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Your entry in the grub.conf you posted shows (hd0,4) as the partition to boot windows. You didn't post your fdisk output so we're just guessing but what do you have on sda1, Recovery partition. (hd0,4) is your fifth partition which would make it a logical and windows won't boot from a logical partition unless another verison of windows is on a primary according to microsoft.com. There's a menu.lst in Fedora but it's a link to grub.conf. Most every other distro uses menu.lst. Posting your fdisk -l output would be a good idea.
 
Old 08-19-2008, 01:53 AM   #8
mathewmndeme
LQ Newbie
 
Registered: Aug 2008
Posts: 6

Original Poster
Rep: Reputation: Disabled
Below is the output for fdisk -l

[root@localhost ~]# fdisk -|
> ;
bash: syntax error near unexpected token `;'
[root@localhost ~]# fdisk -l

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

Device Boot Start End Blocks Id System
/dev/sda1 2 12915 103731705 f W95 Ext'd (LBA)
/dev/sda2 * 12916 12953 305235 83 Linux
/dev/sda3 12954 19176 49986247+ 83 Linux
/dev/sda4 19177 19457 2257132+ 82 Linux swap / Solaris
/dev/sda5 2 12915 103731673+ 7 HPFS/NTFS
[root@localhost ~]#
 
Old 08-19-2008, 02:20 AM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
It would be easier to read the fdisk output if you posted it inside [ code ] [ /code ] blocks.

It looks like the NTFS partition (/dev/sda5) was created inside an extended partition (/dev/sda1). That does seem odd. Normally you would have an NTFS partition on /dev/sda1. Reduce the size before installing Linux. Create a /boot and /swap partition and the put the root / and /home inside an extended partition.

I wonder if you entered the grub shell when booting and entered:
rootnoverify (hd0,0)
makeactive
chainloader +1

it it would boot. Maybe there really isn't an extended partition at all and instead you have 4 regular partitions.
I prefer using fdisk -ul so that the start and end blocks are listed instead of the cylinders. You don't get rounding errors then. Normally the first partition would start at block 36 but don't bet the farm on it. I think that you need to post the output of "sudo /sbin/fdisk -lu" so we can see on which block /dev/sda1 and /dev/sda5 are supposed to start.
 
Old 08-19-2008, 11:28 AM   #10
mathewmndeme
LQ Newbie
 
Registered: Aug 2008
Posts: 6

Original Poster
Rep: Reputation: Disabled
Below is the outpu for fdisk -ul

NB
In the linux partition, I have 300M for boot, 2200 for Swap and the rest 48800MB for root



Code:
[root@localhost ~]# fdisk -ul

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x41ab2316

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1           16065   207479474   103731705    f  W95 Ext'd (LBA)
/dev/sda2   *   207479475   208089944      305235   83  Linux
/dev/sda3       208089945   308062439    49986247+  83  Linux
/dev/sda4       308062440   312576704     2257132+  82  Linux swap / Solaris
/dev/sda5           16128   207479474   103731673+   7  HPFS/NTFS
 
Old 08-19-2008, 12:11 PM   #11
masterclassic
Member
 
Registered: Jun 2007
Distribution: Knoppix
Posts: 140

Rep: Reputation: 23
/dev/sda5 seems to be really a logical partition, and not flagged as bootable of course.
I wonder how win agreed to install there. Did you boot into xp after this installation? I can't imagine how.

I think a simple solution is to delete anything and reinstall both, xp first (don't make the first partition extended, leave it for the 2nd, 3rd or 4th place). So, xp will be in a primary partition, that you will check that is flagged bootable. Linux partitions don't need to be primary and don't need the boot flag set. Of course, backup any important files before reintalling.
 
Old 08-19-2008, 12:26 PM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Was on the microsoft support site which indicates xp needs a primary partition (supposedly, vista can boot from a logical?). The exception to this is that you could put xp on a logical in two circumstances. The first I mentioned above, another windows OS on a primary. The second is a boot partition on a primary?

I'd agree with masterclassic, that seems the only solution. Maybe someone else will have another solution??
 
Old 08-20-2008, 03:34 AM   #13
osamaensyviswinkel
LQ Newbie
 
Registered: Sep 2007
Location: Stellenbosch, South Africa
Distribution: Ubuntu 12.10 at home, Mac OS X on laptop
Posts: 20

Rep: Reputation: 0
windows normally wants to be first... the lil' cry baby. then do a grub-install that you can boot with the grub bootloader.
 
Old 08-20-2008, 10:58 AM   #14
mathewmndeme
LQ Newbie
 
Registered: Aug 2008
Posts: 6

Original Poster
Rep: Reputation: Disabled
Smile I got it...at last it worked

Than you for your assistance.

I formated the whole dist, then I installed Win XP in 50GB partition. there after I installed fedora in the rest of the disk and i force boot, swap and root to be primary partition.

It was a miracle when I saw it boot since I strugled with it the whole of this week removing and installing OS till yesterday when it worked. I have fedora core 8 and win Xp all working fine.

But one more question? how do I make my wireless card work in fedora. it works fine in windows but never seen in linux.
please help
 
Old 08-20-2008, 11:56 AM   #15
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
First you need to do some research and find out which chipset your wireless card uses. Some of the chipsets have linux drivers and some have to use ndiswrapper with windows drivers.
 
  


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
Dual boot -fedora core 4 and windows xp- problem booting from windows xp cd r_desu Linux - Newbie 4 06-17-2007 05:33 PM
Dual Booting Windows XP and Fedora Core 5 nv_prakash Linux - General 4 09-04-2006 04:46 AM
Dual Booting Windows XP and Fedora Core 4? 07mackenzie Fedora 8 03-08-2006 01:58 PM
need help with Windows 98 se and fedora core 4 dual booting Albuca Linux - Newbie 7 09-06-2005 09:18 AM
need help with Windows 98 se and fedora core 4 dual booting Albuca Linux - Newbie 1 09-04-2005 09:06 PM


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