LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora - Installation (https://www.linuxquestions.org/questions/fedora-installation-39/)
-   -   Dual-Boot screen disappears after XP installation (https://www.linuxquestions.org/questions/fedora-installation-39/dual-boot-screen-disappears-after-xp-installation-507070/)

soundwave 12-03-2006 07:05 AM

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-

reddazz 12-03-2006 07:14 AM

Take a look at this article.

soundwave 12-03-2006 07:51 AM

Thanks for the super-fast reply! :)
I'll read the article and give it a go.

soundwave 12-03-2006 12:39 PM

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-

reddazz 12-03-2006 01:48 PM

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".

soundwave 12-03-2006 02:07 PM

ahhhmm... how can I run gparted if I can't boot into FC6?

reddazz 12-03-2006 02:27 PM

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).

PTrenholme 12-03-2006 02:40 PM

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>

soundwave 12-08-2006 03:28 PM

Resolved :D
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-


All times are GMT -5. The time now is 09:43 PM.