LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 12-03-2006, 07:05 AM   #1
soundwave
Member
 
Registered: Nov 2006
Location: israel
Distribution: Fedora Core 6
Posts: 55

Rep: Reputation: 15
Dual-Boot screen disappears after XP installation


Hi all.
I've encountered a problem after re-installing WinXP on my dual-boot machine.

When I first installed Linux (currently FC6), XP was already installed.
GRUB created a dual-boot screen and all was well.

WinXP (as it does more often than not) crashed due to a trojen or whatever and I had to reinstall.
After the installation, the dual-boot screen has vanished and I can't boot into Linux anymore.

How can I reconfigure GRUB to let me dual boot?
(damn windows trying to take over my machine)

Thanks!
-soundwave-
 
Old 12-03-2006, 07:14 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Take a look at this article.
 
Old 12-03-2006, 07:51 AM   #3
soundwave
Member
 
Registered: Nov 2006
Location: israel
Distribution: Fedora Core 6
Posts: 55

Original Poster
Rep: Reputation: 15
Thanks for the super-fast reply!
I'll read the article and give it a go.
 
Old 12-03-2006, 12:39 PM   #4
soundwave
Member
 
Registered: Nov 2006
Location: israel
Distribution: Fedora Core 6
Posts: 55

Original Poster
Rep: Reputation: 15
Ok, still not there..

I've booted the FC6 DVD and gone into Rescue Mode.
I've typed
Code:
# chroot /mnt/sysimage/
# grub-install /dev/sda
All went fine.
(when I tried it with "dev/hda" like the article suggested, I got a message that the device doesn't contain any boot info. I suppose it's because I'm using a serial-ATA drive)

I've exited the shell and the system rebooted.
GRUB loaded fine, but when I try to boot into FC6, I get this message:
Code:
Booting 'Fedora Core (2.6.18-1.2849.fc6)'
root(hd0,1)
  Filesystem type unknown, partition type 0xf
Kenel /vmlinuz-2.6.18-1.2849.fc6 ro root=/dev/VolGroup00/LogVol00 rhgh quiet

Error 17: cannot mount selected partition

Press any key to continue...
Afterwards, it goes back to the selection screen. WinXP boots fine.

Could it be that the linux partition had been damaged somehow?
I can think of one thing...
2 days ago, I downloaded "g-parted", a partitioning software for Gnome.
I wanted to resize my "boot" partition, and give some of its GBs to the root partition.
When I launched g-parted, it scanned for devices, and when I selected "sda", it gave me a list of that drive's partitons.
It showed 3 partitions: the XP partition (100gb), the boot parition (80gb) and the root partition (40gb). Sizes aren't accurate, can't remember the actual values... but the ratio is about right.

Anyway, all 3 partitions were locked, so I couldn't resize them or do anything to them... the root parition's detected filesystem was "unknown" by the software.
The boot partition was ext3. (I may be wrong about which partition was unknown... maybe it was the boot).
XP's partition was ntfs.
I then exited the software without applying any changes.
But I could boot into FC6 without problems...

Any ideas?
or would I have to reinstall?
Thanks!

-soundwave-
 
Old 12-03-2006, 01:48 PM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
It seems like there is something wrong with your root partition and its not being identified as a partition supported by Linux. Run gparted again and close the gparted app itself when it loads. After that start a terminal session and enter "fdisk -l /dev/sda".
 
Old 12-03-2006, 02:07 PM   #6
soundwave
Member
 
Registered: Nov 2006
Location: israel
Distribution: Fedora Core 6
Posts: 55

Original Poster
Rep: Reputation: 15
ahhhmm... how can I run gparted if I can't boot into FC6?
 
Old 12-03-2006, 02:27 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by soundwave
ahhhmm... how can I run gparted if I can't boot into FC6?
Oops my bad. If Windows is working fine, download the gparted live cd from here and run that (its only about 30 or so megabytes).
 
Old 12-03-2006, 02:40 PM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Boot from your DVD using linux rescue, do the chroot, and you should be in your FC6 system as "root." (Just as you did in post 4.) Then a "startx" should put you into GNOME. But before you do that, try a fdisk -l /dev/sda to see where your /boot partition is located. (It should be the only type 83 partition listed if you used the default Fedora install options.)

Your problem may be that the XP install reordered the partitions. The root (0,1) is telling GRUB that your FC6 is on partition 2 of your first disk and XP may have "snuck" another partition into there. Try using GRUB's e option, and see what happens if you change the (0,1) to (0,2). If the b fails to boot you, you'll just come back to the GRUB screen, so no harm done. If you do boot, you'll have to edit /boot/grub/grub.conf to have the correct root value, since GRUB does not save the edited boot command lines. You should also correct the map file that GRUB uses if partition numbering is the problem. (See info grub for how to do all this.)

<edit>
I'm not sure, but I think than a "7f" partition type is a XP "volume group" partition.
</edit>

Last edited by PTrenholme; 12-03-2006 at 02:44 PM.
 
Old 12-08-2006, 03:28 PM   #9
soundwave
Member
 
Registered: Nov 2006
Location: israel
Distribution: Fedora Core 6
Posts: 55

Original Poster
Rep: Reputation: 15
Resolved
Thanks for all the help, guys.

I used Grub's "e" option to try different partitions... it booted into FC6 from (hd0,2).
I edited grub.conf to boot FC6 from "sda2" and all is well now.
WinXP tries to confuse our machines so it could dominate

Thanks again!
-soundwave-
 
  


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
Mouse disappears off right hand side of screen ironfistchamp Linux - Hardware 4 01-05-2006 02:32 PM
No dual boot screen with Xp (installed first) and Linspire superwhat Linux - Newbie 21 10-27-2005 02:06 AM
Login screen disappears upon disconnection of network arch13 Linux - General 1 10-21-2005 05:33 AM
Dual Boot = No Boot (hangs at bios splash screen) nedwardss Debian 4 12-03-2004 04:09 AM
Blank Screen, and Dual Boot phekno Linux - Newbie 1 05-23-2003 08:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

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