LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mandrake 10 + Windows XP Boot problem (https://www.linuxquestions.org/questions/linux-newbie-8/mandrake-10-windows-xp-boot-problem-223520/)

Le_Petit_Lapin 08-28-2004 11:39 AM

Mandrake 10 + Windows XP Boot problem
 
I just installed Mandrake Linux 10 onto a separate partition on the same hard drive as my Windows XP Pro partition.Now, whenever in GRUB I select to boot the Win XP installation I get the following message:

Booting "Windows"
root (hda0,0)
Filesystem Type Unknown. Patition Type 0x7
chainloader +1

How do I fix this? I've used the WinXP repair console and tried writing a new MBR, but neither works. I'm completely new to Linux, so go easy on the code. :confused:

masand 08-28-2004 12:19 PM

>>>>>>>
Booting "Windows"
root (hda0,0)
Filesystem Type Unknown. Patition Type 0x7
chainloader +1>>>>>>>>>>>>>>>>

hi from this above comment
root(hda0,0)
shuld be
root(hd0,0)

also post ur /etc/grub.conf after u boot in to linux

regards

Le_Petit_Lapin 08-28-2004 12:29 PM

umm....
 
There is no /etc/grub.conf that I can find.

I'm doing this right yes: Open terminal, # cd /etc , and then ls to list all files in the folder.

In the list theres nothing called that.

masand 08-28-2004 12:41 PM

hi

look out for grub.conf in /boot/grub
or look out for /etc/grub.conf

regards

Le_Petit_Lapin 08-28-2004 03:47 PM

This it?

timeout 10
color black/cyan yellow/cyan
default 4

title linux
kernel (hd0,6)/boot/vmlinuz root=/dev/hda7 devfs=mount acpi=ht resume=/dev/hda6 splash=silent vga=788
initrd (hd0,6)/boot/initrd.img

title linux-nonfb
kernel (hd0,6)/boot/vmlinuz root=/dev/hda7 devfs=mount acpi=ht resume=/dev/hda6
initrd (hd0,6)/boot/initrd.img

title 263-7
kernel (hd0,6)/boot/vmlinuz-2.6.3-7mdk root=/dev/hda7 devfs=mount acpi=ht resume=/dev/hda6 splash=silent
initrd (hd0,6)/boot/initrd-2.6.3-7mdk.img

title failsafe
kernel (hd0,6)/boot/vmlinuz root=/dev/hda7 failsafe acpi=ht resume=/dev/hda6 devfs=nomount
initrd (hd0,6)/boot/initrd.img

title windows
root (hd0,0)
chainloader +1


If not then I am completely lost, I cannot find a grub.conf anywhere in my filesystems. I've searched through every folder, and there just isnt one.

masand 08-28-2004 03:52 PM

hey
the windows entry should be like this
---------------------------
title windows
rootnoverify (hd0,0)
chainloader +1
---------------------------
u have one change on the "rootnoverify" line as compared to my grub.conf file
replace "root" by "rootnoverify"


edit it and restart ur system

see if it works

regards

Le_Petit_Lapin 08-28-2004 04:06 PM

Now all it does is display:

title windows
rootnoverify (hd0,0)
chainloader +1

....then it stops working. Just hangs. Same as before but with the different wording.

masand 08-28-2004 04:18 PM

hi
so check
if ur windows partion is active or not
by running
"fdisk -l"
u should see a * there
also post ur "fdisk -l" outout here

also see if u can boot windows if u remove ur grub

regards

Le_Petit_Lapin 08-29-2004 08:42 AM

fdisk -l output:

Disk /dev/hda: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 16260 8195008+ 7 HPFS/NTFS
/dev/hda2 16261 158816 71848224 f W95 Ext'd (LBA)
/dev/hda5 16261 142200 63473728+ 7 HPFS/NTFS
/dev/hda6 142201 144272 1044256+ 82 Linux swap
/dev/hda7 144273 158816 7330144+ 83 Linux


None of that means very much to me. I dont know how to remove, or replace, the GRUB so I havent done that.

Is there any way I can install Windows again, (clean format c: (hda1), leave d: (hda2) as my files are stored there? is it possible for me to get a copy of my windows regestry as a file in Linux, so I could save it to CD, then after re-installing Windows, I simply put the registry back, and all the programs (stored on D:) would work without being re-installed?

anyone? ;)

masand 08-29-2004 08:59 AM

hi

----------------
to install grub grab the 1st of ur distro
go to rescue mode

#chroot /mnt/sysimage
and then
#grub-install /dev/hda

--------------

to remove grub to this

boot from a win98 cd
at the command prompt
#fdisk /mbr
will remve grub and rewrite the windows MBR to it


or boot from a winxp/2000 cd in to recovery console
and use "fixmbr"
--------------------------------------

befoe removing grub
u should try to see if u can go to rescue mode and run the grub-install command


also try this also
-------------------
title windows
rootnoverify (hd0,0)
chainloader +1
makeactive
------------------------

also i think we are mising something very small here, because all the options seeem exhausted to me here

regards

Le_Petit_Lapin 08-29-2004 09:39 AM

Ok, Tried using "FixMBR" in the WinXP repair console, now the PC doesnt boot at all. Where GRUB used to come up all it says now is "Error loading Operating System", then hangs.

Running off a Knoppix CD right now (great idea, Knoppix, IMO), so, whats the next step?

I tried to re-install GRUB from the 1st CD, but there doesnt seem to be an option for recsue mode.

Would it be an idea to do a new instalation of Linux? (Theres Suse 9.0 + 9.1, Fedora Core 2, and Mandrake 10 Disks sitting here) and then see what can be done with Windows from there?

Or would it be a better idea to do a re-install of WinXP first? then get Mandrake 10 back with a new installation of GRUB? (still dont know how to re-install GRUB btw)

Also finally, is there any way of getting a copy of the Windows registry exported? That would make life so much easier.

Thanks.

masand 08-29-2004 10:07 AM

hi
thats why i told u to check out the rescue mode first !!!!

if u cannot run windows now also then i think ur windows partiition is not active!!!
do one thing
boot witha win98cd/floppy
run "fdisk"
and then mark a partition active and restart

se if u can make this work

since if this does not work then too u will be having some problems later on(after a new install) ur windows partition should be active!!!!

also the best way is to install windows first and then go for fedora install....

fedora seems quite stable to me

regards

Le_Petit_Lapin 08-29-2004 10:33 AM

I'm not particuluarly bothered that is not booting any operating system, I realised that all my important files are on the d: (hda2) partition, so if windows isnt working, then to hell with it, I'll just re-install the bugger.... (again).

The Windows partition IS marked as active. So it must be just Windows thats gone wrong somewhere. In any case I dont think I'll be installing or using Fedora again, at least until the next release, it caused problems last time I used it.

I was thinking of trying to install a copy of Gentoo, sure it might take a while but isnt it supposed to be the most optimised?

Anyway, does anyone know of a way to Extract the Windows Registry as a file from my broken Windows installation from within Linux?

masand 08-29-2004 10:46 AM

hi there
well it is unfortunates it did not work out
but if we could know what went wrong then ,this could have avoided next time

also for ur registry backup

check out

http://fire.dmzs.com/

here they have a long compilation of tools for recovery
there is some tool for registry here, i haven't tried it but u may have a look at that site

regards

Le_Petit_Lapin 08-29-2004 01:39 PM

Ok, tried re-installing windows as I mentioned in the other thread. Didnt work, It just keeps telling me that theres "error loading operating system"

Now, I've read somewhere tat Fedora and Mandrake (both with kernel 2.6) can mess up an existing Windows Partition, by @writing some incorrect values about the hard drives geometry.

Apparently the cure is to su in a terminal then type:

sfdisk -d /sda | egrep -v
'^(warning|DOS)' | sfdisk --no-read
-H255 /dev/hda

Think it will work? I've no idea what it does nor can I remember the website where I found it. (accidently closed the browser)


All times are GMT -5. The time now is 12:11 PM.