Defunct WinXP in Ubuntu boot menu after upgrading from a dual-boot
Linux - NewbieThis 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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.