LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-04-2008, 05:14 AM   #1
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Removing mandriva from dual boot with ubuntu


Hey all,

I have a dual boot of Ubuntu gutsy and Mandriva2008.
My primary OS is Gutsy I need to remove mandriva to free space for usage.
I have done this with red Hat but I never with Ubuntu.
Can I reinstall grub the same way as in RH. Can I boot from cd and get into rescue mode using same procedures as of RH?
 
Old 07-04-2008, 06:51 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Hello all,

Can anyone give me any idea on how to reinstall grub? How can I go into rescue mode once I have booted into using Gutsy CD ?
 
Old 07-04-2008, 06:58 AM   #3
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I suppose that you could do that but I think that there is an easier way, depending on how much configuration you've done with Ubuntu. I am guessing that you want to eliminate the Mandriva partition and merge the freed space into an existing partition.

On the Ubuntu system edit the /boot/grub/menu.lst file to remove the entry for Mandriva. Next I would perform a full system backup. The backup should include the master boot record for the disk. You could use partimage for this. Partimage saves the disk master boot record automatically as long as you don't select bz2 compression. You will have to boot a live CD to use partimage. It will not back up a partition that is in use. The backup is going to be required regardless of how your disk partitions are laid out.

The next step depends on how your partitions are laid out. If the Mandriva partition is adjacent to the partition that you want to expand then you can use parted or gparted to do this. I don't want to write the exact steps because instructions are available on line.

If the Mandriva partition is not adjacent to the partition that you want to expand then you will have to edit the partition table with cfdisk to move things around. Then you will have to format the new partition and restore the contents from your backup.

The method that you asked about, reinstalling the whole system, makes sense if you didn't do much system configuration. Otherwise performing a backup and doing what I recommended might require less thinking to reconfigure a fresh system.

Last edited by stress_junkie; 07-04-2008 at 07:00 AM.
 
Old 07-04-2008, 07:21 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Its ok if I can not merge the partitions. i dont need to.
I just need to eliminate mandriva. The grub presently used is the one installed by mandriva. Now I just need to format the mandriva partition ( /dev/sda5 ).
I can mount the partition in Ubuntu once I get it free.
I just want to know if I can boot from Ubuntu cd in rescue mode so that I can reinstall the grub. That will solve my problem.
 
Old 07-04-2008, 08:01 AM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Yes you could boot the installation CD once the Mandriva partition is reformatted. However now that I know that you are happy just to mount the reformatted Mandriva partition I can say that I would format the Mandriva partition, run Ubuntu from the hard disk, open a terminal window, invoke sudo -i, then check the /etc/grub.conf file to see if it is accurate, then reinstall grub using the grub-install command. Once the Mandriva partition is reformatted the other steps should take all of twenty minutes or less.

Otherwise you could do what you ask. I would reformat the Mandriva partition first. The way Ubuntu creates a menu.lst file would cause it to include Mandriva if Mandriva still exists.
 
Old 07-05-2008, 01:35 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
It was one of the most idiotic question I asked here.
Why do I need cd in the first place.
I removed mandriva formatted the partition, mounted it in ubuntu and finally installed grub by grub-install.
My problems over.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Ubuntu from a Dual Boot Dell Laptop ruairi_burns Linux - Newbie 3 06-13-2007 04:35 PM
Dual boot with FC4 and XP removing the partition with boot.ini fakie_flip Linux - Software 1 01-07-2006 02:48 PM
Dual Boot Ubuntu, Suse, Mandriva & Fedora rickbman Linux - Newbie 3 11-26-2005 04:05 PM
removing dual boot? xperience Linux - Newbie 5 12-07-2003 08:23 AM
Removing dual-boot setup ianunderwood Linux - Newbie 5 05-09-2003 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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