Do I have to Change something in Grub before erasing a OS?
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Do I have to Change something in Grub before erasing a OS?
Hi Guys,
I have a quick question which is probably pretty easy to answer for an Linux Pro.
I have my HD split in 3 primary partition and one extended partition. The extended partition is then subdivided in logical partitions like swap, a big storage partition and some unallocated space... Hope I got
I run Bodhi on one Primary partition and Xubuntu on another Primary Partition.
I want to put Peppermint on the partition which is occupied by Xubuntu right now.
Now my question, do I have to change something in Grub or not? Could I just go ahead, format and install Peppermint on the partition with Xubuntu on it?
A few years ago I didn't understand anything about partitions, grub or Linux for that matter and just deleted a OS and later had difficulties with grub not finding the OS anymore.
Now my question, do I have to change something in Grub or not?
That depends on your setup. Is Bodhi grub installation written to the MBR, or is it the Xubuntu grub? If Xubuntu grub is written to the MBR, boot into Bodhi and run /usr/sbin/update-grub to set Bodhi as the primary grub installation. Then you can go ahead with your plan to replace Xubuntu.
After verifying that Grub from Bodhi is in the master boot record, install Peppermint to the same partition on which you now have Xubuntu and select to format that partition. Make sure when you see the 'Device for bootloader installation' in Peppermint, you select the partition on which you install it. You should then be able to boot Bodhi and run sudo update-grub and get an entry to boot Peppermint also.
I might have been tempted to just use the next installer to load over the one you want to remove and let the distro do what it wants. (this does assume a lot of things, some noted above) Generally I don't erase a distro, I simply load over use the installer to delete the partition then create and load.
I have a spare partition which has been used for dozens of distros alongside my working CentOS. I just use the method that Yancek recommends and it works fine. You do have to pay attention to what the installer is telling you: clicking on "confirm" before reading that the default option is "erase and use the whole disk" is not a happy experience.
hey Guys... I thank you all for your answers!really great!
My Idea has changed a little though :-) will Install Peppermint on that other Primary partition for now.
When Xubuntu has served its purpose and I want another OS on that partition I just load it on top of it. Yes Xubuntu Grub is written to the MBR. So I would have to change that before I put a new OS over it.
Found this great program called Grub Customizer can really recommend it to do all sorts of Grub customizations.
When Xubuntu has served its purpose and I want another OS on that partition I just load it on top of it. Yes Xubuntu Grub is written to the MBR. So I would have to change that before I put a new OS over it.
Not really. If you have only the one hard drive and are going to be replacing Xubuntu (which has Grub in the MBR) you can do it during the installation of Peppermint. There will be an option during the install for "Device for bootloader installation" and in your case, leave the default, /dev/sda.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.