PDA

View Full Version : [SOLVED] Removing An Ubuntu dist



thelugnut
July 16th, 2010, 09:45 AM
I have multiple Op systems on one hard drive. I now wish to remove one of the Ubuntu o.s.
It so happens that this is the o.s. that loads the GRUB2 loader.
I would like to switch to another Ubuntu o.s. and use its GRUB2 loader.
I need some advice on how to accomplish this.

digitalcitizenx
July 16th, 2010, 10:41 AM
The boot loader is in the master boot record of the hard drive - not in the OS.

If you are going to replace the OS on that partition, simply put the disc in the CD drive and tell the installer to use the partition the OS you would like to replace resides.

ajgreeny
July 16th, 2010, 11:21 AM
It will be simpler just to boot to the OS from which you wish to use grub and run
sudo grub-install /dev/sda if it's another ubuntu OS that uses sudo.

This assumes that you already have that OS installed, and that /dev/sda is the hard disk in use, of course. If you are replacing the current OS by a new install, it will all be done for you, as digitalcitizenx said.

thelugnut
July 17th, 2010, 11:12 AM
Thanks for the replies, I'll give it a try this Saturday.:P

Nick_Jinn
July 17th, 2010, 11:20 AM
Couldnt you just use a live disk and delete it with Gparted?

thelugnut
July 17th, 2010, 11:55 AM
To ajgreeny:
Okay, that worked like a champ. Many thanks. I had been trying to designate the partition I wanted and kept receiving the warning message that this wasn't a safe thing to do. When I followed your sage advice and dropped the partition designation, things worked good. Live and learn, sin and burn as they say.
Again, thank you.

ajgreeny
July 17th, 2010, 06:11 PM
Couldnt you just use a live disk and delete it with Gparted?
The OP would still have needed to install grub from somewhere as the deleted partition would have contained all the grub configuration files, so why not change grub before removing the OS partition that is supplying the grub configuration files.

Nick_Jinn
July 18th, 2010, 06:35 AM
The OP would still have needed to install grub from somewhere as the deleted partition would have contained all the grub configuration files, so why not change grub before removing the OS partition that is supplying the grub configuration files.

Cant you update grub from the command line from a live disk or USB drive? Just type in apt-get update grub or something like that?


I am trying to learn myself. I am not arguing. Im trying to learn.

ajgreeny
July 18th, 2010, 08:11 PM
Cant you update grub from the command line from a live disk or USB drive? Just type in apt-get update grub or something like that?


I am trying to learn myself. I am not arguing. Im trying to learn.
I did not think you were arguing.

I was trying to explain that the easiest way to do what was needed was to put grub from the OS that already was running and was going to remain as the main OS onto the MBR. The old OS partition could then be deleted completely if that was the intention, and no shocks would follow at the next boot when no grub menu appeared.

Why mess around with a live CD install of grub when it was already there on the machine and available with just one simple command?

I hope that helps you understand a bit more about the way grub works.

Nick_Jinn
July 19th, 2010, 01:55 PM
Totally. I was confused for a second thinking things were more difficult than they were.

Are there problems when you have multiple versions of linux? I know some conflict like Mint and Moon conflict, and maybe GOS. If I have XP on the same disk on a different partition and Win7 on a second hard drive, but most of the primary hard drive is devoted to Ubuntu and I also have a few other odd versions of linux, can I get them all to be recognized by grub by typing that command?