How can I get back to Windows XP??

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

How can I get back to Windows XP??

Postby new2linux on Sat Jun 27, 2009 4:02 pm

I'm a first time user of Linux. I attempted to install Linux Mint 7 onto my machine. It was previously running Windows XP Home on the PATA drive that came with my Sony PCV-RS430G desktop. I attempted to install Linux Mint on a SATA drive connected by a SATA PCI card.

My intentions were to have a dual boot machine. When installing Linux to the SATA drive I used the 'select partitions manually' option and installed to a 16 gig primary partition along with a 2 gig swap partition.

Now when I boot my machine it times out almost right away and in the black screen I am getting a grub error 21.

I can't go back into Windows XP now nor boot into Linux.

My two questions are:

1. How do I resolve the issue with Linux booting?
2. Can I get back to a dual boot with Windows some how?

Thanks in advance for any help or advice you may offer.
new2linux
Level 1
Level 1
 
Posts: 9
Joined: Sat Jun 27, 2009 3:20 pm

Linux Mint is funded by ads and donations.
 

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

Postby hoe on Sat Jun 27, 2009 5:01 pm

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

Wayne
hoe
Level 3
Level 3
 
Posts: 150
Joined: Tue Sep 16, 2008 3:58 pm

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

Postby new2linux on Sat Jun 27, 2009 6:12 pm

Thanks for the suggestion Wayne. I am just returning from having done that and still get 'error 21' right at start up. I'm going to poke around on the forums here as well as goolge as time permits.

I will continue to watch here for helpful advice and I will update if I stumble across something on my own.
new2linux
Level 1
Level 1
 
Posts: 9
Joined: Sat Jun 27, 2009 3:20 pm

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

Postby Aging Technogeek on Sat Jun 27, 2009 7:42 pm

Check this article in the Mint Wiki:

http://linuxmint.com/wiki/index.php/If_your_installed_Mint_cannot_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.
Image

Registered Linux User 483387
User avatar
Aging Technogeek
Level 13
Level 13
 
Posts: 4605
Joined: Sun Jan 11, 2009 9:54 am
Location: Right about here

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

Postby new2linux on Sun Jun 28, 2009 12:09 pm

Thank you for the link. After reading it, I agree that it sounds like the problem that I'm having.

I have been able to list my UUID's per the instructions in the Wiki document but, I cannot seem to figure out how to locate and edit the /boot/grub/device.map.

Can anyone help me with this?
new2linux
Level 1
Level 1
 
Posts: 9
Joined: Sat Jun 27, 2009 3:20 pm

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

Postby Aging Technogeek on Sun Jun 28, 2009 12:29 pm

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

Registered Linux User 483387
User avatar
Aging Technogeek
Level 13
Level 13
 
Posts: 4605
Joined: Sun Jan 11, 2009 9:54 am
Location: Right about here

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

Postby new2linux on Sun Jun 28, 2009 3:28 pm

When I enter that command into the terminal a blank document opens. I think I was expecting to see pre-existing data that I would amend and save.

Is it correct for me to see a blank page here?

Thanks.
new2linux
Level 1
Level 1
 
Posts: 9
Joined: Sat Jun 27, 2009 3:20 pm

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

Postby newW2 on Sun Jun 28, 2009 4:48 pm

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.
User avatar
newW2
Level 6
Level 6
 
Posts: 1081
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

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

Postby Aging Technogeek on Sun Jun 28, 2009 6:19 pm

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

Registered Linux User 483387
User avatar
Aging Technogeek
Level 13
Level 13
 
Posts: 4605
Joined: Sun Jan 11, 2009 9:54 am
Location: Right about here

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

Postby new2linux on Sun Jun 28, 2009 6:47 pm

I don't find a folder for grub in computer/file system/boot.

Perhaps this has something to do with my issues?!

Also, if it matters, I think I am getting past grub 1 and getting the error 21 message when it is trying to connect to grub 1.5.
new2linux
Level 1
Level 1
 
Posts: 9
Joined: Sat Jun 27, 2009 3:20 pm

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

Postby newW2 on Sun Jun 28, 2009 7:54 pm

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 6
Level 6
 
Posts: 1081
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

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

Postby new2linux on Sun Jun 28, 2009 8:34 pm

I will review the link you posted next, but following is the output from the command line you posted previously:

mint@mint ~ $ sudo fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4c213995

Device Boot Start End Blocks Id System
/dev/sda1 1 654 5253223+ 12 Compaq diagnostics
/dev/sda2 * 655 5031 35158252+ 7 HPFS/NTFS
/dev/sda3 5032 14593 76806765 f W95 Ext'd (LBA)
/dev/sda5 5032 14593 76806733+ 7 HPFS/NTFS

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf1f3fe91

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2289 18386361 83 Linux
/dev/sdb2 2551 121601 956277157+ f W95 Ext'd (LBA)
/dev/sdb3 2290 2550 2096482+ 82 Linux swap / Solaris
/dev/sdb5 2551 121601 956277126 7 HPFS/NTFS

Partition table entries are not in disk order
new2linux
Level 1
Level 1
 
Posts: 9
Joined: Sat Jun 27, 2009 3:20 pm

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

Postby newW2 on Sun Jun 28, 2009 8:51 pm

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 6
Level 6
 
Posts: 1081
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

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

Postby newW2 on Sun Jun 28, 2009 10:19 pm

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.
User avatar
newW2
Level 6
Level 6
 
Posts: 1081
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

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

Postby new2linux on Sun Jun 28, 2009 11:58 pm

I'm using the firefox browser that is onboard with the linux mint cd. I get 'file not found' for each address. I copied and pasted them from your previous post.
new2linux
Level 1
Level 1
 
Posts: 9
Joined: Sat Jun 27, 2009 3:20 pm

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

Postby Fred on Mon Jun 29, 2009 12:18 am

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
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

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

Postby new2linux on Mon Jun 29, 2009 12:26 am

Ok. I've found the grub folder along wint menu.lst and device.map. When looking in filesystem I think i was looking at the CD that I am currently running mint off of. I found the grub folder in the drive... here it comes... where I installed mint 7... duh.

I did run though the grub setup found in the last wiki link prior to discovering the folder. Dunno if that had anything to do with suddenly finding it.

Anyhow, here are the contents of menu.lst and device.map:

device.map:::
(hd0) /dev/sda
(hd1) /dev/sdb

----------------------------------------------------
menu.lst:::
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

## Graphical boot menu location
gfxmenu=/boot/gfxmenu/linuxmint.message

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sdb1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

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

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

title Linux Mint 7 Gloria, memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows NT/2000/XP
rootnoverify (hd0,0)
savedefault
chainloader +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Microsoft Windows XP Home Edition
rootnoverify (hd0,1)
savedefault
chainloader +1
new2linux
Level 1
Level 1
 
Posts: 9
Joined: Sat Jun 27, 2009 3:20 pm

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

Postby newW2 on Mon Jun 29, 2009 1:37 am

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 6
Level 6
 
Posts: 1081
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

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

Postby new2linux on Mon Jun 29, 2009 1:48 am

When I attempt to save the menu.lst file after making the appropriate edits, I get a 'could not save' pop-up explaining that I don't have the necessary permissions to save the file.
new2linux
Level 1
Level 1
 
Posts: 9
Joined: Sat Jun 27, 2009 3:20 pm

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

Postby newW2 on Mon Jun 29, 2009 1:55 am

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
User avatar
newW2
Level 6
Level 6
 
Posts: 1081
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: Derek_S and 19 guests