[SOLVED] How to eliminate one OS from a triple boot drive
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!
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.
On boot, Grub lists the Win 7 loader, which in turn lists Win XP as the older OS. Now that the 30 day trial expired, I want to erase Win 7 and focus on learning Xubuntu while still using XP productively.
In Xubuntu, I have GParted 0.11.0 and Grub Customizer 2.5.7 installed. I can reformat the Win 7 drive from Xubuntu, but what is the precedure to point Grub to boot into Win XP directly so that I can safely eliminate Win 7?
Last edited by ineuw; 07-28-2012 at 12:30 PM.
Thanks for your reply but it doesn't apply. In Grub2 the file (is named grub.cfg) has a different structure. I tried adding code for the XP - by manual edit and using the Grub customizer, but it didn't work.
... but what is the precedure to point Grub to boot into Win XP directly so that I can safely eliminate Win 7?
You can't. The Win7 install replaced the XP loader code - in the XP partition. If you eliminate the Win7 partition you'll be unable to boot either Win7 (obviously) nor XP.
You'll need to rebuild the boot code on the XP partition first - there may be something on Technet, but it's not something I'd expect M$oft to encourage.
I think the easiest solution would be to:
- backup again!
- backup the backup!
- boot any linux live cd
- unmount all your sdaX drives
- use gparted to erase Win7 partition
- use gparted to move/resize the other partitions to fill the void or just create a new data partition
- reboot into Xubuntu
- open a terminal and type
(that's how you modify grub menu in grub2, check this out)
As TroN-0074 said, the first step is to fix grub2 to boot from a different OS
There are two gui programs that will allow you to change the default boot OS to WinXP or Xubuntu
Boot and Grub repair from sourceforge.net
Boot-Repair is a graphical tool that will repair these problems,
generally by reinstalling GRUB, which then restores access to the
operating systems you had installed before the issue.
Boot-Repair also has advanced options for reinstalling GRUB, adding
kernel options, restoring a generic MBR, or repair a broken filesystem.
It can also restore the original bootsector if it has been saved
previously by Clean-Ubiquity.
Grub Customizer is a graphical configuration tool to modify the grub2/burg
settings with focus on the individual list order - without losing the
dynamical behavior of grub - also usable on live cds.
Settings like the background or timeouts are also changeable using
Either of those can be installed with apt-get or synaptic or software center
You did say that you had Grub Customiser installed already. I missed that.
That is all you need.
You have to click the Preferences button in Grub Customiser to choose the default OS.
I missed that last paragraph too...anyway I would point grub on Xubuntu because even if you remove Win7 partition, it will be still listed in grub until you change it, and for that matter you need linux.
If something goes wrong while deleting partitions and messing with grub, so that you cannot boot anymore into one/any OS, this is great grub recovery tool!
Many thanks for all the advice given. It added to my hazy knowledge but it was up to me to sort out, try, and eliminate non-working options.
svg000's comment was the clue which confirmed my suspicion that the Win7 boot loader cannot be eliminated and rebuild XP boot from Ubuntu.
I used the XP install CD to boot into the recovery command prompt and use FIXBOOT to overwrite the Win7 loader and re-access XP. Then, I used the Xubuntu live CD to fix Grub2 to boot into Ubuntu.
In Ubuntu, Boot-repair was used to purge and rebuild Grub2, and then used Grub Customizer to set the preferred default OS to boot.
In the XP recovery console, FIXMBR repairs the XP boot but doesn't eliminate the Win7 boot loader.
After fixing the XP boot, in Ubuntu, editing the 30_os-loader and adding Win XP info manually, then updating Grub2 (either with Grub Customizer or Boot Repair) fails because the examples of the code and the procedure on the web are, either out of date, or missing crucial information for an ignorant newbie.
After removing the Win7 boot loader, if no partition change is planned, it's preferable to reformat the old Win7 OS partition from Windows instead of using Gparted from Ubuntu. Doing it from Ubuntu it is more work.
Hiren s-Boot-cd would have been a great tool but it was posted after I fixed everything.
The following are the recommended steps to remove Win7, where the order of OS installation was 1 = XP, 2 = Win7, 3 = Ubuntu 12.04:
1. Use any Windows boot utility CD to fix the Windows XP boot record. Reboot to see if XP is accessed correctly. Boot.ini may need modifying through the Control panel\System\Advanced options.
2. Use (X)ubuntu live CD to repair grub2 to boot into (X)ubuntu.
3. Use Boot-repair to rebuild Grub2 and reboot to test.
4. Use Grub Customizer to set the desired boot order & default. Reboot to test.
4. Use GParted to manage the freed Win7 partition to resize, or reformat. Reboot to test for boot time mount errors. This can be corrected if needed with ntfs-config.
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Yo! I am glad to heard you fixed your boot loader the way you wanted. I am sure lot of people out there will find your post really helpful. If you want to mark it as Solve you can do that from the thread tool tab on your first post.
Have fun with your dual boot and good luck to you!