Can't boot to Windows on Mepis 3.4
Well, things have been going fine, not had too much trouble. Untill I decided to move my 2nd hard drive.
I've got Mepis and Windows XP on different partitions of my SATA hard drive and I sued to have a backup IDE drive for my things I wanted to make sure I didn't loose. Whenever I used to boot into Windows, the grub menu would show 3 entries, Linux, HDA1, and SDA1, Windows is on the sata drive but for some reason if I selected that it wouldn't work, I'd go into some kind of prompt screen. Nothing from a normal command prompt would work. However, if I chose to boot from the backup drive, SDA1, I would then boot to Windows, no problem. Since then I no longer have that drive, I've given it to a mate who needs a spare drive, so now I can't boot into Windows. I have no idea how I could fix this, I mean I can't find anything about boot up in the control center and know next to nothing of what I could do in the command line, which I'm guessing is where I'll have to fix it from :D If anyone can save me from loosing all my "My Documents" things and another HUGE install I'd be oh so gratefull. Regards, ~evo |
First, you can mount your Windows partition(s) under Linux and access your files.
Second, we cannot help you without knowing your disks layout, please post output of fdisk -l. Furthermore, we need to see the contents of your /boot/grub/grub.conf and /boot/grub/device.map. |
It's not so much accessing my files I need, more actually being able to use Windows too. Here's the things you asked for:
fdisk -l: Code:
Disk /dev/hda: 6488 MB, 6488294400 bytes Code:
(hd0) /dev/hda ~evo |
Well, you really need to find your grub.conf.
You have quite a mess there. GRUB is obviously installed to the MBR of hda, everything else is on sda. One way to get your Windows to boot is by mapping drives in grub.conf, Windows won't boot if it finds itself on the second drive. This is how Windows section in your grub.conf should look like: Code:
rootnoverify (hd1,0) Edit: Mepis may have menu.lst file instead of grub.conf. |
Ok thanks for your intrest, your correct, there is a menu.lst file, here is it's contents:
Code:
timeout 15 |
Well, am I correct assuming BIOS is set to boot from IDE? If yes, then add those map lines to the Windows section. Probably this makeactive line is not needed, it won't hurt either.
title Windows at sda1 rootnoverify (hd1,0) map (hd0) (hd1) map (hd1) (hd0) makeactive chainloader +1 |
no, sorry, it's set to boot from my sata drive. I don't know why there is a boot flag for my IDE drive. As far as I can tell it boots from my second partition(Mepis root) of my sata drive.
|
If BIOS is set to boot from SATA, then you need to swap entries in device.map.
(hd0) /dev/sda (hd1) /dev/hda Your menu.lst should look like this: title MEPIS at sda2, kernel 2.6.15-1-586tsc root (hd0,1) kernel /boot/vmlinuz-2.6.15-1-586tsc root=/dev/sda2 nomce quiet vga=791 title Windows at sda1 rootnoverify (hd0,0) makeactive chainloader +1 Edit: Also make sure GRUB is installed to the MBR of sda or it wont work. |
ok I just changed my menu.lst, so it looks like this:
Code:
timeout 15 Thanks, ~evo |
Did you also correct your device.map? And you should add makeactive to Windows section because sda1 is not bootable for Windows if partition is not active.
If you get GRUB prompt then it is already installed to the MBR. Edit: just saw you still have (hd1,0) under Windows, fix it. |
I'm typing this from Windows :D You fixed my problem, thank you so much. I learnt a little along the way too :) Again, thanks, it's really appreciated.
Regards, ~evo |
Glad to hear it. :)
|
All times are GMT -5. The time now is 10:31 AM. |