LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-25-2010, 03:03 AM   #1
FeathersMc
LQ Newbie
 
Registered: Dec 2004
Location: Sydney
Distribution: Suse
Posts: 12

Rep: Reputation: 0
How to remove OS under Grub2 ?


Hello,

I have Suse 11.2 and Win XP running from a Grub2 boot loader. I want to remove Win XP from the machine. What is the best way to do that? Is it safe just to replace the partition that Win XP is on with a Linux partition?

Assuming that is OK, will Grub then boot OK, and recognise automatically that the Win XP OS is gone, or do I also need to update the Grub configuration manually?

I did try looking at the Grub Wiki, but I find it very hard to use

Thanks in advance
FMc
 
Old 04-25-2010, 03:58 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hello,

There are several options. If Grub is installed in the MBR just removing the WinXP partition will not affect booting into SuSE as far as I know. You'll only get errors if trying to start WinXP I believe.

1. You can startup from a Gparted Live CD and manually remove the partition that holds WinXP. After that you'll have to update your Grub configuration, either manually or via update-grub command.

2. If you want to install another Linux distro onto that partition then you can just start from the install media and go ahead with the installation. Furthermore if the 'new' distro you're installing also uses Grub2 then you can let the installer take care of updating Grub.

3. If you want to use the space that becomes free by deleting WinXP, then you can boot from a Gparted Live CD and use that to add the space to your SuSE partition.

Kind regards,

Eric
 
Old 04-25-2010, 04:00 AM   #3
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,610

Rep: Reputation: 584Reputation: 584Reputation: 584Reputation: 584Reputation: 584Reputation: 584
Grub lives in /boot, and usually in the start of /dev/sda1 or whatever your boot disk is.

Presuming windows is also on sda1, you can remove away all m$ files; but if you change filesystem type, or remove the partition, you will not be able to boot. As a safety manouvre, I would do this
dd if=/dev/sda of=/boot/sdabootsector bs=512 count=1
dd if=/dev/sda1 of=/boot/sda1bootsector bs=512 count=1

Then you have copies of your boot sectors, and can dd them back afterward.

Remove the grub entries manually unless you are reinstalling some windows for neatness. They are harmless.
 
Old 04-25-2010, 09:30 PM   #4
FeathersMc
LQ Newbie
 
Registered: Dec 2004
Location: Sydney
Distribution: Suse
Posts: 12

Original Poster
Rep: Reputation: 0
Hi,

Thanks ppl - I used a GPartEd Live CD, but backed up my boot sectos as suggested. Seems to have worked fine. Now on to virtualisation ...

FMc
 
Old 04-26-2010, 01:11 AM   #5
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hi,

Glad it worked out. Have fun 'virtualizing'.

If you consider your problem/question solved please mark the thread as such using the Thread Tools.

Kind regards,

Eric
 
  


Reply

Tags
grub, remove, windows, xp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
grub2 psmurthy Linux - Newbie 2 03-16-2010 12:20 PM
GRUB2 - Howmany thebob Linux - General 5 01-16-2010 06:05 PM
grub2 mbvo Slackware 7 11-12-2009 07:06 AM
Safe to remove old grub files after upgrading to grub2? CT_0000 Linux - Software 2 10-14-2009 01:05 AM
Editing GRUB2 ssinustwo Fedora - Installation 1 07-20-2004 10:16 PM


All times are GMT -5. The time now is 09:27 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration