How can I get back to Windows XP??

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
hoe

Re: How can I get back to Windows XP??

Post by hoe »

First, l would boot up with the Mint Live CD and install again and see if that works.

Wayne
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Aging Technogeek

Re: How can I get back to Windows XP??

Post by Aging Technogeek »

Check this article in the Mint Wiki:

http://linuxmint.com/wiki/index.php/If_ ... annot_boot

With one pata and one sata (or one internal and one external) hard drive it sounds like this is exactly what you are looking for.
Aging Technogeek

Re: How can I get back to Windows XP??

Post by Aging Technogeek »

In terminal type

Code: Select all

gksu gedit /boot/grub/device.map
and enter your password when prompted

This will open the folder and allow you to make the needed changes. Just remember to save the changed file before closing.
User avatar
newW2
Level 5
Level 5
Posts: 821
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

Re: How can I get back to Windows XP??

Post by newW2 »

I seen this so many times .... when I mis-spelled something. And I would swear that I hadn't done something like divice ... :oops: :oops:
You can verify that the file device map isn't blank by opening the file browser File System --> boot --> grub then right click on the file device.map and select open with "Text Editor"

And I no (Know) i didint miss spell anythunng fir shurr.
Aging Technogeek

Re: How can I get back to Windows XP??

Post by Aging Technogeek »

You should see something there if it was set up properly when the installer installed grub, but it may not be much. I'm dual booting Mint 7 Main Edition and Mint 7 64 bit. My device map looks like this:

Code: Select all

(hd0)	/dev/sda
.

This is the identifier for the single hard drive in this computer. On my laptop (6 way booting Mint 7 main & 64 and Mint 6 main, XFCE, KDE, and Fluxbox) with 2 hard drives, my device map says

hd(0) dev/sda
hd(1) dev/sdb

Identifying the two hard drives.

This is the information that may be incorrect on your system, causing the Bios to look in the wrong place for the grub bootloader stage 1. If the file is empty, it would surely cause problems. As newW2 suggests, navigate to the folder in Nautilus (Computer=>File System=>Boot=>Grub=>device.map) and open it with Text Editor to verify its status.
User avatar
newW2
Level 5
Level 5
Posts: 821
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

Re: How can I get back to Windows XP??

Post by newW2 »

Oh this is interesting. Grub isn't where you expect to find it. You can find out where and repair it as described here:
http://www.linuxmint.com/wiki/index.php ... _your_grub
However grub not being located where you expect it appears to be a symptom of the different disk types.
What is the output of running this command in the terminal?

Code: Select all

sudo fdisk -l
User avatar
newW2
Level 5
Level 5
Posts: 821
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

Re: How can I get back to Windows XP??

Post by newW2 »

Ok. I'd expect our device map to be:
(hd0) /dev/sda
(hd1) /dev/sdb
However, your grub isn't where we expected it to be.
User avatar
newW2
Level 5
Level 5
Posts: 821
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

Re: How can I get back to Windows XP??

Post by newW2 »

here''s another thing you can do, so we can take a look at the menu.lst and device.map files.
Open your browser and enter the path to to those files (one at a time of course) as if it were a url. For example:
/boot/grub/menu.lst
Post the results here.
/boot/grub/device.map
Post the results here.
Fred

Re: How can I get back to Windows XP??

Post by Fred »

new2linux,

oops, didn't realize you were using the live cd. The partition Linux is on has to be mounted. The command to put into the browser would then be /media/whatever_the_mount_point_is/boot/grub/menu.lst

Fred
User avatar
newW2
Level 5
Level 5
Posts: 821
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

Re: How can I get back to Windows XP??

Post by newW2 »

So if you aren't able to boot still now do as indicated in the Aging Technogeek post and do the following.
Find out your different UUIDs run the following in a terminal

Code: Select all

sudo blkid


You will get soming like this as output
/dev/sdb1: UUID="5365349a-733f-42c7-9ff3-5d8897b2aa1e" TYPE="ext4"
Copy the UUID (without the quotes) to the line in your menu.lst file that starts with kernel
Actually yuou will replace the /dev/sdb1 with the UUID
Like this. Here's your Gloria entry in the menu.lst file. You need to edit as I show in the NOW: changes with what you got for UUID from the command: sudo blkid output for /dev/sdb1

## ## End Default Options ##
WAS:
title Linux Mint 7 Gloria, kernel 2.6.28-11-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sdb1 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

NOW:
title Linux Mint 7 Gloria, kernel 2.6.28-11-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.28-11-generic root=5365349a-733f-42c7-9ff3-5d8897b2aa1e ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

WAS:
title Linux Mint 7 Gloria, kernel 2.6.28-11-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sdb1 ro single
initrd /boot/initrd.img-2.6.28-11-generic

NOW:
title Linux Mint 7 Gloria, kernel 2.6.28-11-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.28-11-generic root=5365349a-733f-42c7-9ff3-5d8897b2aa1e ro single
initrd /boot/initrd.img-2.6.28-11-generic
User avatar
newW2
Level 5
Level 5
Posts: 821
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

Re: How can I get back to Windows XP??

Post by newW2 »

You must edit the file as root. in the terminal enter:

Code: Select all

sudo gedit /boot/grub/menu.lst
You will be asked for your password. Make the edits and save.
Note: you can also drag the file from the file browser to the terminal where you entered sudo gedit
Locked

Return to “Installation & Boot”