Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-26-2009, 01:11 AM
|
#1
|
LQ Newbie
Registered: Dec 2009
Posts: 3
Rep:
|
Defunct WinXP in Ubuntu boot menu after upgrading from a dual-boot
Hey everyone,
I'm a new Linux user and also new to these forums. I started out with WinXP and two partitions, C and D. WinXP was installed on C. Needing Linux to run some computational software I decided to install Ubuntu 9.10. It had an install-within-Windows option so I did that and decided to dump it onto the D drive. A couple of days later (yesterday) I decided to upgrade from WinXP to Win7 while still keeping Ubuntu. After backing everything up and installing Win7 on top of WinXP, I noticed that Ubuntu was still intact - good news!
The boot menu was a little weird though. There were initially 3 options:
Previous Version of Windows
Windows 7
Ubuntu
Selecting Windows 7 boots Win7, great. Selecting either of the other two options brings me to the Linux boot menu (GNU Grub v1.97~beta4), where I get to select some version of Ubuntu in regular mode or recovery mode... and then an extra option at the bottom:
Microsoft Windows XP Professional (on /dev/sda1)
Selecting this option brings up an error: unknown command 'drivemap'.
I like having everything nice and clean so I set out to fix these problems. I first removed the "Previous Version of Windows" using a tool called EasyBCD in Win7, but that program does not detect anything Linux. So now I would like to remove the extraneous "Microsoft Windows XP Professional" selection item in grub. Well, either that, or update it to a bootable version of Win7, which I guess is fine also. I probably have to edit some file in Ubuntu, right? Following advice on some other thread, I checked /boot/grub/menu.lst but the file doesn't exist. Can anybody offer some advice?
Thanks so much in advance, and merry belated Christmas to all!
|
|
|
12-26-2009, 01:13 AM
|
#2
|
LQ Newbie
Registered: Dec 2009
Posts: 3
Original Poster
Rep:
|
Oh, a clarification. Ubuntu itself starts up and works perfectly fine. I just wanted to fix an annoyance in the boot menu, is all. Thanks!
|
|
|
12-26-2009, 03:33 AM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,249
|
Quote:
Originally Posted by xph
I like having everything nice and clean so I set out to fix these problems.
|
Uh oh ... I hear alarm bells ...
Quote:
... using a tool called EasyBCD in Win7, but that program does not detect anything Linux.
|
It certainly does - one of its primary uses (for me at least).
Quote:
I probably have to edit some file in Ubuntu, right? Following advice on some other thread, I checked /boot/grub/menu.lst but the file doesn't exist.
|
Indeed - that advice was for the previous version of grub. You are using grub2 with Karmic - see this for some (good) background.
Last edited by syg00; 12-26-2009 at 03:35 AM.
|
|
1 members found this post helpful.
|
12-26-2009, 11:51 AM
|
#4
|
LQ Newbie
Registered: Dec 2009
Posts: 3
Original Poster
Rep:
|
Thanks so much for your response. The link was very helpful. update-grub was the key command I was missing. The problem has been solved now.
Thanks again!
|
|
|
12-27-2009, 10:48 AM
|
#5
|
Member
Registered: Oct 2009
Location: Dayton, Ohio
Distribution: ubuntu, centos
Posts: 68
Rep:
|
Quote:
Originally Posted by xph
Hey everyone,
I'm a new Linux user and also new to these forums. I started out with WinXP and two partitions, C and D. WinXP was installed on C. Needing Linux to run some computational software I decided to install Ubuntu 9.10. It had an install-within-Windows option so I did that and decided to dump it onto the D drive. A couple of days later (yesterday) I decided to upgrade from WinXP to Win7 while still keeping Ubuntu. After backing everything up and installing Win7 on top of WinXP, I noticed that Ubuntu was still intact - good news!
The boot menu was a little weird though. There were initially 3 options:
Previous Version of Windows
Windows 7
Ubuntu
Selecting Windows 7 boots Win7, great. Selecting either of the other two options brings me to the Linux boot menu (GNU Grub v1.97~beta4), where I get to select some version of Ubuntu in regular mode or recovery mode... and then an extra option at the bottom:
Microsoft Windows XP Professional (on /dev/sda1)
Selecting this option brings up an error: unknown command 'drivemap'.
I like having everything nice and clean so I set out to fix these problems. I first removed the "Previous Version of Windows" using a tool called EasyBCD in Win7, but that program does not detect anything Linux. So now I would like to remove the extraneous "Microsoft Windows XP Professional" selection item in grub. Well, either that, or update it to a bootable version of Win7, which I guess is fine also. I probably have to edit some file in Ubuntu, right? Following advice on some other thread, I checked /boot/grub/menu.lst but the file doesn't exist. Can anybody offer some advice?
Thanks so much in advance, and merry belated Christmas to all!
|
I think you are getting the WinXP entry in your boot menu probably because it is still there in the /boot/grub/menu.lst file. But its strange that you say the menu.lst file is not there. Without that, I dont know how you are getting that boot menu
You can try this: Boot up your computer in Ubuntu and then open a terminal window and type:
Code:
sudo vi /boot/grub/menu.lst
You can replace 'vi' with the editor you are comfortable with. Scroll all the way down and you should see the entry for WinXP and Win7. Comment out or remove the WinXP portion. This will get rid of the WinXP option from the boot menu.
|
|
|
All times are GMT -5. The time now is 04:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|