LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 11-15-2013, 02:27 PM   #1
Deerslayer
Member
 
Registered: May 2005
Distribution: CentOS 7
Posts: 34

Rep: Reputation: 15
Removing an OS in a multi-boot system


I recently installed Ubuntu 12.04 alongside my Debian Wheezy and Win 7 partitions. I decided that I didn't like Ubuntu, and wanted to remove it. I backed up the entire drive, then booted into Debian and deleted the Ubuntu / and home partitions with gparted. I then ran update-grub, which seemed to work fine; it found the remaining bootable partitions, wrote grub.cfg, and closed without error.

However, on reboot I got the dreaded grub rescue> prompt. At this point, I took the easy way out and reinstalled Ubuntu from the DVD. This worked; grub is back to normal now.

But I still want to remove Ubuntu. How can I do this without messing up grub?
 
Old 11-15-2013, 04:38 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I don't have Ubuntu (or Debian for that matter) around the house, but I'll bet update-grub only builds the cfg. Have a look for grub-install to actually write the MBR.
 
1 members found this post helpful.
Old 11-15-2013, 04:59 PM   #3
Deerslayer
Member
 
Registered: May 2005
Distribution: CentOS 7
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
I don't have Ubuntu (or Debian for that matter) around the house, but I'll bet update-grub only builds the cfg. Have a look for grub-install to actually write the MBR.
Thanks; I actually figured that out and tried to update the post, but the site was down. I don't why it hadn't occurred to me that update-grub didn't actually write to the MBR. I deleted the partition again, ran update-grub again just to be on the safe side, then did grub-install /dev/sda, and now it boots with the updated grub.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] what's the difference between a multi-cpu , multi-core and a multi-thread system ? entz Linux - Hardware 11 12-20-2011 04:49 PM
Multi-disk, multi-boot system does not boot after fresh install anth0ny5 Linux - Software 8 08-17-2011 02:02 AM
help with multi-boot system pyn Linux - Newbie 9 01-18-2007 12:16 AM
Multi boot system sfzab SUSE / openSUSE 1 04-08-2006 12:42 PM
multi-boot system? batard Linux - Newbie 1 01-31-2005 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:45 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