[solved] reinstall XP, dual boot ruined

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
Paul Unger
Senior Member
Senior Member
Posts: 551
Joined: Mon Jun 14, 2004 8:18 am
Location: Solomon Islands / Canada

[solved] reinstall XP, dual boot ruined

#1 Post by Paul Unger » Sun Mar 16, 2008 8:53 am

I'm currently trying to regain access to the Linux portion of my dual-boot setup. I had to reinstall XP, which overwrote the GRUB. A friend helped me restore the GRUB, but now it get an error when I try to boot to Ubuntu . . . Here's the GRUB list I see when I boot:

Ubuntu 7.10, kernel 2.6.22-14-generic
Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
Ubuntu 7.10, memtest86+
Other operating systems:
Microsoft Windows XP Pro
Windows NT/2000/XP

If I try option 1 or 2 (Ubuntu 7.10) I get "Error 17: Cannot mount selected partition. Press any key to continue". Option 4 (XP Pro) works just fine. Do I need to reinstall Ubuntu, or can I fix this?
Last edited by Paul Unger on Sun Mar 16, 2008 5:08 pm, edited 1 time in total.
T430s 2352-CTO 2.60GHz (i5), 4.0GB, 500GB (7200rpm), 14" HD+, W7 (64)
X201 3249-CTO 2.53GHz (i5), 8.0GB, 500GB (7200rpm), 12" WXGA, W7 (64)
T42 2373-3UU 1.7GHz (PM), 2.0GB, 80GB, 14" SXGA+, XP SP3 / Ubuntu 9.04
T42 2373-4TU 1.7GHz (PM), 1.5GB, 60GB, 14" XGA, XP SP3

aaa
ThinkPadder
ThinkPadder
Posts: 1062
Joined: Fri Jun 08, 2007 2:36 pm

#2 Post by aaa » Sun Mar 16, 2008 9:15 am

Start->Run->diskmgmt.msc

Check if the Ubuntu partition's still there. It will be listed as an "unknown" partition. Then you have to figure out what number the partition is, if it's still there. So you need to know if it's the second primary partition, or first logical partition, etc.

Paul Unger
Senior Member
Senior Member
Posts: 551
Joined: Mon Jun 14, 2004 8:18 am
Location: Solomon Islands / Canada

#3 Post by Paul Unger » Sun Mar 16, 2008 9:35 am

I see four partitions in the order:

______ | Healty (Unknown Partition) | 27.67 GB
______ | Healty (Unknown Partition) | 1.23 GB
Preload (C:) | Healty (System) | 58.68 GB
SERVICE001 | Healthy (EISA Configuration) | 5.55 GB

These are ordered:
Preload (C:) 58.68 GB | _____ 27.67 GB | _____ 1.23 GB | SERVICE001 5.57 GB
in the 'graphical display' of disk usage. They are all dark blue (i.e., Primary) except the _____ 1.23 GB which is light blue (i.e., Logical). Hope that helps.
T430s 2352-CTO 2.60GHz (i5), 4.0GB, 500GB (7200rpm), 14" HD+, W7 (64)
X201 3249-CTO 2.53GHz (i5), 8.0GB, 500GB (7200rpm), 12" WXGA, W7 (64)
T42 2373-3UU 1.7GHz (PM), 2.0GB, 80GB, 14" SXGA+, XP SP3 / Ubuntu 9.04
T42 2373-4TU 1.7GHz (PM), 1.5GB, 60GB, 14" XGA, XP SP3

carbon_unit
Moderator Emeritus
Moderator Emeritus
Posts: 2988
Joined: Sat Apr 24, 2004 9:10 pm
Location: South Central Iowa, USA

#4 Post by carbon_unit » Sun Mar 16, 2008 10:19 am

Is that the entire error message?
T60 2623-D7U, 3 GB Ram.
Dual boot XP and Linux Mint.
Registered linux user #160145

al7kz
Freshman Member
Posts: 117
Joined: Thu Dec 15, 2005 5:06 pm
Location: Juneau, Alaska

#5 Post by al7kz » Sun Mar 16, 2008 12:01 pm

You should be able to use the command line or edit feature of grub. I would try command line. So at the grub menu hit 'c' for command line. That will get the grub prompt.

Then type
> find /boot/grub/stage1

that will give the partition where the grub files are found, say (hd0,2). Enter that

> root (hd0,2)

then enter

> cat /boot/grub/menu.lst

and scroll down for the command entries for 'generic' & write them down. You need two:

kernel
initrd

enter each of those at the grub prompt, then enter
>boot

K0LO
Senior Member
Senior Member
Posts: 659
Joined: Wed Sep 07, 2005 12:14 pm
Location: State College, PA, USA

#6 Post by K0LO » Sun Mar 16, 2008 12:45 pm

GRUB Error 17 from the GRUB Manual:
17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.
So, more than likely you are getting this error because the menu.lst file is probably pointing to the Windows partition instead of the Ubuntu partition.

Your Windows partition should be (hd0,0) and the Ubuntu partition should be (hd0,1), according to your posted Windows Disk Management data. If your entry for Ubuntu was referencing (hd0,0) then you would get that error message when trying to boot.

So, I agree with AL7KZ - let the GRUB menu come up, scroll to the Ubuntu menu item and type 'e' (for edit) and examine the boot stanza. If it starts with:

root (hd0,0)

then manually edit it to:

root (hd0,1)

and then try it out. If it boots correctly, edit the menu.lst file to make the change permanent.
Mark

X61T 7764-CTO, Core 2 Duo L7500 LV 1.6 GHz, 4 GB RAM, 120 GB Intel X25M SSD
Multiboot w/Grub4DOS -- Windows 10, MustangPE, PartedMagic
My ex: X41T (2005 - 2009)

Paul Unger
Senior Member
Senior Member
Posts: 551
Joined: Mon Jun 14, 2004 8:18 am
Location: Solomon Islands / Canada

#7 Post by Paul Unger » Sun Mar 16, 2008 3:08 pm

carbon_unit wrote:Is that the entire error message?
Yep. Just "Error 17: Cannot mount selected partition. Press any key to continue".
T430s 2352-CTO 2.60GHz (i5), 4.0GB, 500GB (7200rpm), 14" HD+, W7 (64)
X201 3249-CTO 2.53GHz (i5), 8.0GB, 500GB (7200rpm), 12" WXGA, W7 (64)
T42 2373-3UU 1.7GHz (PM), 2.0GB, 80GB, 14" SXGA+, XP SP3 / Ubuntu 9.04
T42 2373-4TU 1.7GHz (PM), 1.5GB, 60GB, 14" XGA, XP SP3

Paul Unger
Senior Member
Senior Member
Posts: 551
Joined: Mon Jun 14, 2004 8:18 am
Location: Solomon Islands / Canada

#8 Post by Paul Unger » Sun Mar 16, 2008 4:21 pm

OK, I found my way in using k0lo's instructions. I typed 'e', root was (hd0,2), I changed it to (hd0,1), and it booted Ubuntu. Now I'm looking at menu.lst in gedit and see this:

Code: Select all

title		Ubuntu 7.10, kernel 2.6.22-14-generic
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=11f17d7b-75fc-4401-8a4e-cd7206dd7a7d ro quiet splash
initrd		/boot/initrd.img-2.6.22-14-generic
quiet

title		Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=11f17d7b-75fc-4401-8a4e-cd7206dd7a7d ro single
initrd		/boot/initrd.img-2.6.22-14-generic

title		Ubuntu 7.10, memtest86+
root		(hd0,2)
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		Microsoft Windows XP Professional
root		(hd0,0)
savedefault
makeactive
chainloader	+1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title		Windows NT/2000/XP
root		(hd0,1)
savedefault
makeactive
chainloader	+1
I'm thinking that I need to change all the Ubuntu root lines to (hd0,1) and the Windows NT/2000/XP root line to (hd0,2). Is that a fair assumption?
T430s 2352-CTO 2.60GHz (i5), 4.0GB, 500GB (7200rpm), 14" HD+, W7 (64)
X201 3249-CTO 2.53GHz (i5), 8.0GB, 500GB (7200rpm), 12" WXGA, W7 (64)
T42 2373-3UU 1.7GHz (PM), 2.0GB, 80GB, 14" SXGA+, XP SP3 / Ubuntu 9.04
T42 2373-4TU 1.7GHz (PM), 1.5GB, 60GB, 14" XGA, XP SP3

K0LO
Senior Member
Senior Member
Posts: 659
Joined: Wed Sep 07, 2005 12:14 pm
Location: State College, PA, USA

#9 Post by K0LO » Sun Mar 16, 2008 4:29 pm

Paul:

Yes; that is correct.

And the current entry for Windows XP Professional is correct as-is (hd0,0), but you already knew that since XP was booting correctly.
Mark

X61T 7764-CTO, Core 2 Duo L7500 LV 1.6 GHz, 4 GB RAM, 120 GB Intel X25M SSD
Multiboot w/Grub4DOS -- Windows 10, MustangPE, PartedMagic
My ex: X41T (2005 - 2009)

Paul Unger
Senior Member
Senior Member
Posts: 551
Joined: Mon Jun 14, 2004 8:18 am
Location: Solomon Islands / Canada

#10 Post by Paul Unger » Sun Mar 16, 2008 5:07 pm

Yay! Solved. Thanks, guys!
T430s 2352-CTO 2.60GHz (i5), 4.0GB, 500GB (7200rpm), 14" HD+, W7 (64)
X201 3249-CTO 2.53GHz (i5), 8.0GB, 500GB (7200rpm), 12" WXGA, W7 (64)
T42 2373-3UU 1.7GHz (PM), 2.0GB, 80GB, 14" SXGA+, XP SP3 / Ubuntu 9.04
T42 2373-4TU 1.7GHz (PM), 1.5GB, 60GB, 14" XGA, XP SP3

K0LO
Senior Member
Senior Member
Posts: 659
Joined: Wed Sep 07, 2005 12:14 pm
Location: State College, PA, USA

#11 Post by K0LO » Sun Mar 16, 2008 5:16 pm

Paul:

Excellent! Ya gotta love Linux at times like this. It's almost always possible to nurse a non-booting or defective system back to life without resorting to a reinstall.
Mark

X61T 7764-CTO, Core 2 Duo L7500 LV 1.6 GHz, 4 GB RAM, 120 GB Intel X25M SSD
Multiboot w/Grub4DOS -- Windows 10, MustangPE, PartedMagic
My ex: X41T (2005 - 2009)

tylerwylie
Junior Member
Junior Member
Posts: 475
Joined: Wed Dec 19, 2007 5:40 pm
Location: Champaign, IL
Contact:

#12 Post by tylerwylie » Sun Mar 16, 2008 5:43 pm

Paul Unger wrote:Yay! Solved. Thanks, guys!
I was kinda rooting for Windows to be gone forever and you go "screw it" but good for you anyways :)
Samuel Adams wrote:The natural liberty of man is to be free from any superior power on Earth, and not to be under the will or legislative authority of man, but only to have the law of nature for his rule.

Paul Unger
Senior Member
Senior Member
Posts: 551
Joined: Mon Jun 14, 2004 8:18 am
Location: Solomon Islands / Canada

#13 Post by Paul Unger » Sun Mar 16, 2008 5:58 pm

tylerwylie wrote:
Paul Unger wrote:Yay! Solved. Thanks, guys!
I was kinda rooting for Windows to be gone forever and you go "screw it" but good for you anyways :)
So you've been lurking behind a virtual tree, hoping I'd bite the bullet, eh? :twisted: :lol: Well, Windows was always working--it took over, after all--but I enjoy Linux enough that I wanted to get it back. I hope that's some consolation . . . :wink:
T430s 2352-CTO 2.60GHz (i5), 4.0GB, 500GB (7200rpm), 14" HD+, W7 (64)
X201 3249-CTO 2.53GHz (i5), 8.0GB, 500GB (7200rpm), 12" WXGA, W7 (64)
T42 2373-3UU 1.7GHz (PM), 2.0GB, 80GB, 14" SXGA+, XP SP3 / Ubuntu 9.04
T42 2373-4TU 1.7GHz (PM), 1.5GB, 60GB, 14" XGA, XP SP3

tylerwylie
Junior Member
Junior Member
Posts: 475
Joined: Wed Dec 19, 2007 5:40 pm
Location: Champaign, IL
Contact:

#14 Post by tylerwylie » Sun Mar 16, 2008 6:00 pm

Paul Unger wrote:
tylerwylie wrote:I was kinda rooting for Windows to be gone forever and you go "screw it" but good for you anyways :)
So you've been lurking behind a virtual tree, hoping I'd bite the bullet, eh? :twisted: :lol: Well, Windows was always working--it took over, after all--but I enjoy Linux enough that I wanted to get it back. I hope that's some consolation . . . :wink:
I'd do it for my friends too, if they dual boot I'd try to make it so Windows doesn't work, and they go screw it I'll learn Linux instead. It never works :(
Samuel Adams wrote:The natural liberty of man is to be free from any superior power on Earth, and not to be under the will or legislative authority of man, but only to have the law of nature for his rule.

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: axur-delmeria and 1 guest