Linux - GeneralThis 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
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.