LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 12-15-2011, 02:52 AM   #1
Seviath
LQ Newbie
 
Registered: Feb 2008
Distribution: suse 10.1
Posts: 6

Rep: Reputation: 0
How to keep a tidy boot loader (GRUB2)?


Hello everyone,

my lapto has a quite long history of OS installations (not always successful unfortunately) and I am now in the process of cleaning a bit of the mess which has been produced :P

More specifically:
at the moment I have Windows Vista (working as fine as Windows allows), Ubuntu 9.10 (working great) and Ubuntu Wubi (not working at all).
I have grub2 and when I boot I can initially choose between:
(1) Ubuntu, Linux 2.6.31-14-generic and
(2) Windows Vista.
If I choose (2) Windows, then again I am asked to choose between:
(2a) Windows and
(2b) Ubuntu.
As I said they all work, but the wubi (2b). Actually I don't know if wubi works or not, because if I choose (2b) I see a grub shell, so that actually the OS is not loaded at all.

I would like to remove all of the Ubuntu installations and install instead Ubuntu 11.10. And have only one boot loader at the beginning between Windows and Ubuntu.

However I am a bit afraid of making any change because I had some bad experience with grub2 after an installation. Some days ago in fact I had only Windows and Ubuntu 11.10 and, for some reason too long and too boring to explain, I had to use Wubi to re-install Ubuntu.

And so I did. I downloaded the windows installer from the official Ubuntu webpage and run it. I formatted all of the partitions where Ubuntu had been installed previously and installed it again following the installer instructions.

Everything went fine, but when I booted I was prompted to grub rescue! the grub.cfg was missing completely. I tried to run grub-install using a live CD, but it didn't work. So I had to install Ubuntu again from the live CD. And this take us to the situation at the present time: a working Windows installation, a non working wubi (or only a wrong boot loader from the wubi installation), and a working Ubuntu.

This is the present situation:
> sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4162f6de


Device Boot Start End Blocks Id System
/dev/sda1 1 1567 12586896 27 Unknown
/dev/sda2 * 1568 34202 262140637+ 7 HPFS/NTFS
/dev/sda3 34203 35377 9435136 b W95 FAT32
/dev/sda4 35377 38913 28404577 f W95 Ext'd (LBA)
/dev/sda5 35377 37222 14816808 7 HPFS/NTFS
/dev/sda6 37223 38836 12964423+ 83 Linux
/dev/sda7 38837 38913 618471 82 Linux swap / Solaris


How do you suggest to proceed in order to have a final set-up with only Windows and Ubuntu? Keep in mind that:
1. I have no recovery or insallation CD for Windows;
2. I do not want to re-install windows or format that partition (sda2);
3. I have no data on the Ubuntu installation, and all other partitions can be formatted with no problems.

Can you also please comment on how one can change the GRUB properties after each
installation, or in general on how one can modify it according to the installation one wants to do?

I am quite ignorant about the grub, so I've always relied on it being properly
modified at the end of every ubuntu installation. And actually this is the reason why I am posting here even before trying anything by myself: I'm scared that I could mess up even more with the grub, and then I could lose completely also the windows installation.
 
  


Reply

Tags
dual boot, grub, ubuntu, wubi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How do I change the GRUB2 Boot Loader Background Image? theif519 Linux - Newbie 3 05-01-2011 09:37 PM
LXer: HOWTO: Chainload Grub2 into the Chameleon Boot Loader LXer Syndicated Linux News 0 04-15-2011 03:30 PM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 02:39 PM
[SOLVED] Create independent Grub2 boot loader menu in USB stick. cr4321 Linux - General 27 07-18-2010 12:48 PM
LXer: Transitioning to the new GRUB2 boot loader LXer Syndicated Linux News 1 04-22-2010 07:37 AM


All times are GMT -5. The time now is 10:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration