LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-25-2012, 02:28 PM   #1
ineuw
LQ Newbie
 
Registered: Nov 2003
Location: Canada
Distribution: Linux Miny 19.3
Posts: 29

Rep: Reputation: 2
How to eliminate one OS from a triple boot drive


Can someone please mark this as solved? Thanks

To begin with, my data drive sdb is separate and protected from the boot disk drive sda.

sda is configured as follows:

sda1 = Win XP
sda4 = swap
sda5 = Win 7
sda6 = Xubuntu 12.04

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. Reason: Solved
 
Old 07-25-2012, 07:16 PM   #2
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
o.k so what I would do is edit the grub list first before erasing any partition.
Code:
gksudo mousepad /boot/grub/menu.lst
you can just put # symbols infront of the entry you dont need anymore,
#title...............
#root partition (x,y)
#kernel..............
#whatever else.......

However Ubuntu is using grub2 nowaday and I havent have to play with it so I dont know if what I suggested above will work.

Last edited by TroN-0074; 07-25-2012 at 07:22 PM.
 
Old 07-27-2012, 02:26 AM   #3
ineuw
LQ Newbie
 
Registered: Nov 2003
Location: Canada
Distribution: Linux Miny 19.3
Posts: 29

Original Poster
Rep: Reputation: 2
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.

I will cross post this in the Ubuntu Forum.
 
Old 07-27-2012, 02:40 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by ineuw View Post
... 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.
 
1 members found this post helpful.
Old 07-27-2012, 02:41 AM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
0ost output of
Quote:
fdisk -l
 
Old 07-27-2012, 05:16 AM   #6
VDP76
Member
 
Registered: Apr 2010
Location: Bayreuth, Germany
Distribution: CrunchBang Linux (#!)
Posts: 111

Rep: Reputation: 19
I think the easiest solution would be to:
- backup!
- 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
Code:
sudo update-grub
(that's how you modify grub menu in grub2, check this out)

hope this would help
 
Old 07-27-2012, 07:48 AM   #7
austintx
Member
 
Registered: Jul 2012
Location: Austin, Texas
Distribution: Linux Mint 17 Cinnamon
Posts: 34

Rep: Reputation: 4
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 Customiser
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
Grub Customizer.

Either of those can be installed with apt-get or synaptic or software center
 
1 members found this post helpful.
Old 07-27-2012, 08:07 AM   #8
austintx
Member
 
Registered: Jul 2012
Location: Austin, Texas
Distribution: Linux Mint 17 Cinnamon
Posts: 34

Rep: Reputation: 4
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.
 
Old 07-27-2012, 08:10 AM   #9
austintx
Member
 
Registered: Jul 2012
Location: Austin, Texas
Distribution: Linux Mint 17 Cinnamon
Posts: 34

Rep: Reputation: 4
I have to add a warning.
Grub Customiser does not save your changes when you exit the program.
You have to save your changes before you exit.
 
1 members found this post helpful.
Old 07-27-2012, 08:17 AM   #10
VDP76
Member
 
Registered: Apr 2010
Location: Bayreuth, Germany
Distribution: CrunchBang Linux (#!)
Posts: 111

Rep: Reputation: 19
Quote:
Originally Posted by austintx View Post
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!
 
1 members found this post helpful.
Old 07-28-2012, 06:35 AM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Try hiren,s-Boot-cd it has mini-winsxp open command console &repair windowsxp boot loader then eras windows 7, change xubuntu /etc/fstab then reinstall grub.
http://www.hirensbootcd.org/download/
http://www.microsoft.com/resources/d....mspx?mfr=true
 
1 members found this post helpful.
Old 07-28-2012, 12:28 PM   #12
ineuw
LQ Newbie
 
Registered: Nov 2003
Location: Canada
Distribution: Linux Miny 19.3
Posts: 29

Original Poster
Rep: Reputation: 2
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.

------

Comments:

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.

I hope this helps others.

This was also posted to Ubuntu Forums
 
Old 07-28-2012, 12:33 PM   #13
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Great job mark thread as solved using thread tools so others can benefit from it.
 
Old 07-28-2012, 12:39 PM   #14
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
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!
 
Old 07-28-2012, 12:43 PM   #15
VDP76
Member
 
Registered: Apr 2010
Location: Bayreuth, Germany
Distribution: CrunchBang Linux (#!)
Posts: 111

Rep: Reputation: 19
Glad you sorted it out, as TroN-0074 said this thread will be useful to someone in future!

Have fun!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how can I incorporate windows boot loader into grub? Triple boot, single hard drive olkirf Linux - Newbie 8 10-24-2010 08:36 AM
LXer: How to Triple-Boot Your Mac with Windows and Linux, No Boot Camp Required LXer Syndicated Linux News 0 05-05-2010 09:30 AM
Installing goblinX in triple boot laptop... no boot in the other linux OS amalgam Linux - Newbie 2 02-14-2008 01:08 PM
triple boot and second internal hard drive cgl72 Linux - Hardware 2 08-11-2006 11:00 AM
Triple BOOT on 1 DRIVE Bobymc Linux - General 5 05-07-2006 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration