LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2006, 10:24 AM   #1
galego
LQ Newbie
 
Registered: Aug 2006
Posts: 21

Rep: Reputation: 15
Arrow I dont want GRUB!!


to make a long story short, i deleted my primary partition by accident and totally jacked grub. i was able to restore it and get two of three entries back (windows, SLED 10) but i cannot seem to able to get ubuntu back. i think i killed the root file. anyways i would like to re-install but i do not want to replace the grub that i am currently using from SLED10. i dont recall from the original install if i had a choice of installing grub (i dont think i did), so that is my question; can i install ubuntu and choose NOT to install grub?

or

install ubuntu let it install grub, then reinstall grub from SLED10 and it will pick up the new addition (ubuntu). is this a correct assumption?
 
Old 08-31-2006, 10:49 AM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
Originally Posted by galego
to make a long story short, i deleted my primary partition by accident and totally jacked grub. i was able to restore it and get two of three entries back (windows, SLED 10) but i cannot seem to able to get ubuntu back. i think i killed the root file. anyways i would like to re-install but i do not want to replace the grub that i am currently using from SLED10. i dont recall from the original install if i had a choice of installing grub (i dont think i did), so that is my question; can i install ubuntu and choose NOT to install grub?

or

install ubuntu let it install grub, then reinstall grub from SLED10 and it will pick up the new addition (ubuntu). is this a correct assumption?
You can either use alternate ubuntu installation that will give you the option not to install grub OR you can backup your current grub config file and let ubuntu install the grub. Once you boot back into ubuntu, you can replace the ubuntu's grub config file with the backup grub config file. You would have to make grub entry for ubuntu to boot it.

Tux,
 
Old 08-31-2006, 12:21 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
If you have 100 Linux distros and only one Linux to control all of them the trick is to put the Grub (or Lilo) of every other Linux inside its root partition. Thereafter you can boot any of them by "chainloading".

If you have Ubuntu in hda6 say and have installed Grub in its root partition then these lines in /boot/grub/menu.lst of Sled10 will fire it up
Code:
title My ubuntu in hda6
root (hd0,5)
chainloader +1
Grub counts from 0 as hda disk is the first disk and hda6 is known to Grub as (hd0,5).

The above is called indirect booting. It is the same technique how a Linux boots Windows. It can be done because a Window's standard installation is put its bootloader inside its own "C" drive.

In 99% of the distros you are given the alternative to install Grub (or Lilo) in the root partition, in addition to the MBR.
 
Old 08-31-2006, 01:13 PM   #4
galego
LQ Newbie
 
Registered: Aug 2006
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by saikee
If you have 100 Linux distros and only one Linux to control all of them the trick is to put the Grub (or Lilo) of every other Linux inside its root partition. Thereafter you can boot any of them by "chainloading".

If you have Ubuntu in hda6 say and have installed Grub in its root partition then these lines in /boot/grub/menu.lst of Sled10 will fire it up
so just to make sure i am following, when i install ubuntu it will put grub in the root partition which is; in turn, in the same partition of ubuntu?! so this is the default of 99% linux distros?
right?
 
Old 08-31-2006, 04:27 PM   #5
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,634

Rep: Reputation: 144Reputation: 144
99% yes. But as tuxrules said in Ubuntu's case you will need the alternate install ISOs. If you look at their site you will find Desktop, Server and Alternate ISOs.

Edit: fixed typo
 
Old 09-01-2006, 07:24 AM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Simple distros are written to install their bootloaders only in the MBR but just about any decent Linux will allow its bootloader to place in

(a) a floppy so that it can be booted from it without the MBR assistance
(b) MBR of the first bootable disk to boot automatically from the hard disk
(c) the root partition where the Linux has been installed there, so that it can be booted by another operating system be it a Linux, a Window, Dos or BSD.

If one installs 100 distros there is only one MBR. So after the first Linux taking over it the remaining 99 distros can have their bootloaders installed in the respective root partitions and everyone can be booted by chainloading by the first one. This is standard technique and definitely the quickest and easiest. More importantly chainloading works for Lilo too by its "other=" statement and so all the Linux can be mixed and booted together by one boot loader. Lilo has a fixed screen restricting its ability to displace no more than 27 entries for booting. Grub has a scrolling screen and so over 100 distros can be accommodated.

The other method is to boot the 99 distros directly by naming the kernel and initrd files locations in the /boot/grub/menu.lst for Grub or /etc/lilo.conf for Lilo that controlling the MBR.

Within each distro you can tell Grub to place itself in floppy, MBR or root partition (Say hda7) respectively any time you please by commands
Code:
grub-install /dev/fd0
grub-install /dev/hda
grub-install /dev/hda7
Same for Lilo with commands
Code:
lilo -b /dev/fd0
lilo -b /dev/hda
lilo -b /dev/hda7
Putting the bootloader at a location is a freedom any user can choose to suit his/her need. There should never be a need to destroy any boot loader once it is installed.
 
  


Reply

Tags
grubinstall


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual operating system: Grub dont detect Windows Xp installed in Sata Harddisk sanjeebko Linux - Hardware 2 04-05-2006 07:30 PM
Just installed dual-boot, dont get GRUB jmorris8 Linux - Newbie 4 09-27-2005 04:50 AM
Okay I dont know what to do now. Guts Linux - Newbie 19 03-16-2005 03:17 PM
new to linux dont what distro to use dont no much command xman2007 Linux - Newbie 3 01-02-2004 05:32 PM
Things dont work when you dont understand withoutaclue Linux - Newbie 3 03-12-2003 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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