Re: Grub dilemma

2008-10-19 Thread Sjoerd Hiemstra
Op Sun, 19 Oct 2008 13:28:11 -0400 Frank wrote:
> I've been using Debian for years but this Grub stuff is above me !

There's an article about Grub at newbie level that might interest you.
www.tuxmagazine.com , click 'Download' at the right side, download issue
#8 and read pages 31 through 38: 'Give multiple distros the boot'.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Grub dilemma

2008-10-19 Thread Daniel Burrows
On Sun, Oct 19, 2008 at 01:28:11PM -0400, Frank <[EMAIL PROTECTED]> was heard 
to say:
> Daniel Burrows wrote:
> >   Also, it sounds like grub looks for its menu.lst on hda3.  If that's
> > the case, you'll want to change it before you wipe hda3 to install a
> > new distribution.
> > 
> >   Daniel
> > 
> > 
>OK would this require a Grub reinstall ??? I've been using Debian for
> years but this Grub stuff is above me !

  I think that grub-install(8) will do what you want.  e.g., run
"grub-install /dev/hdXX".

  You probably want to have an alternate way of booting before you do
this, of course...

  Daniel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Grub dilemma

2008-10-19 Thread Frank
Daniel Burrows wrote:
> On Sat, Oct 18, 2008 at 06:21:52PM +0200, Dotan Cohen <[EMAIL PROTECTED]> was 
> heard to say:
>> 2008/10/18 Frank McCormick <[EMAIL PROTECTED]>:
>>>  I am not installing Ubuntu - it's already installed on hda3. I say
>>> again I want to install another Linux on hda3 which uses Lilo...not
>>> Grub. I'm asking whether Lilo will screw up Grub. I don't know whether
>>> the install will give me the option to skip installing Lilo. If it does
>>> there is no problem...but if it doesn't will there be a problem.
>>>
>> If the distro writes LILO to the MBR, then yes that will destroy grub.
>> Do you feel confident that you can restore grub from the boot disk in
>> the event that it is needed? It is a trivial task but only for those
>> who have done it before. In any case, be sure to back it up.
> 
>   Also, it sounds like grub looks for its menu.lst on hda3.  If that's
> the case, you'll want to change it before you wipe hda3 to install a
> new distribution.
> 
>   Daniel
> 
> 
   OK would this require a Grub reinstall ??? I've been using Debian for
years but this Grub stuff is above me !

Cheers




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Grub dilemma

2008-10-19 Thread Daniel Burrows
On Sat, Oct 18, 2008 at 06:21:52PM +0200, Dotan Cohen <[EMAIL PROTECTED]> was 
heard to say:
> 2008/10/18 Frank McCormick <[EMAIL PROTECTED]>:
> >  I am not installing Ubuntu - it's already installed on hda3. I say
> > again I want to install another Linux on hda3 which uses Lilo...not
> > Grub. I'm asking whether Lilo will screw up Grub. I don't know whether
> > the install will give me the option to skip installing Lilo. If it does
> > there is no problem...but if it doesn't will there be a problem.
> >
> 
> If the distro writes LILO to the MBR, then yes that will destroy grub.
> Do you feel confident that you can restore grub from the boot disk in
> the event that it is needed? It is a trivial task but only for those
> who have done it before. In any case, be sure to back it up.

  Also, it sounds like grub looks for its menu.lst on hda3.  If that's
the case, you'll want to change it before you wipe hda3 to install a
new distribution.

  Daniel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Grub dilemma

2008-10-19 Thread Osamu Aoki
On Sun, Oct 19, 2008 at 03:15:49AM +0200, Michael Wagner wrote:
> * Osamu Aoki <[EMAIL PROTECTED]> 18.10.2008
>  
> > This is for grub package /boot/grub/menu.lst.  If you are installing
> > grub-pc, you have /boot/grub/grub.cfg
> > 
> > menuentry "Debian GNU/Linux" {
> > set root=(hd0,1)
> > linux /vmlinuz root=/dev/sda1 ro
> > initrd /initrd.img
> > }
> 
> Hello Osamu,
> 
> these are the first lines in my /boot/grub/grub.cfg on Debian
> 
> # DO NOT EDIT THIS FILE
> #
> # It is automatically generated by /usr/sbin/update-grub using templates
> # from /etc/grub.d and settings from /etc/default/grub
> 
> So I think it's not the right way to edit /boot/grub/grub.cfg. Better
> edit the templates in /etc/grub.d and then run "update-grub".

Yes I know that too.

"*edit*/boot/grub/grub.cfg" is not the right thing.
"*inspect* /boot/grub/grub.cfg" is good  thing.

If other partition has an old broken grub configuration due to broken grub
installation caused by rc2 d-i, update-grub does not work as expected.
So as a last resort measure, we can edit it (but do not blame others if
your modificatio is overwritten by runing "update-grub".)

Osamu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Grub dilemma

2008-10-18 Thread Michael Wagner
* Osamu Aoki <[EMAIL PROTECTED]> 18.10.2008
 
> This is for grub package /boot/grub/menu.lst.  If you are installing
> grub-pc, you have /boot/grub/grub.cfg
> 
> menuentry "Debian GNU/Linux" {
> set root=(hd0,1)
> linux /vmlinuz root=/dev/sda1 ro
> initrd /initrd.img
> }

Hello Osamu,

these are the first lines in my /boot/grub/grub.cfg on Debian

# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/update-grub using templates
# from /etc/grub.d and settings from /etc/default/grub

So I think it's not the right way to edit /boot/grub/grub.cfg. Better
edit the templates in /etc/grub.d and then run "update-grub".

Just my 2 cents
Michael

-- 
"Every production of genius must be the production 
 of enthusiasm."
--Benjamin Disraeli 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Grub dilemma

2008-10-18 Thread Dotan Cohen
2008/10/18 Frank <[EMAIL PROTECTED]>:
> Dotan Cohen wrote:
>> 2008/10/18 Frank McCormick <[EMAIL PROTECTED]>:
>>>  I am not installing Ubuntu - it's already installed on hda3. I say
>>> again I want to install another Linux on hda3 which uses Lilo...not
>>> Grub. I'm asking whether Lilo will screw up Grub. I don't know whether
>>> the install will give me the option to skip installing Lilo. If it does
>>> there is no problem...but if it doesn't will there be a problem.
>>>
>>
>> If the distro writes LILO to the MBR, then yes that will destroy grub.
>> Do you feel confident that you can restore grub from the boot disk in
>> the event that it is needed? It is a trivial task but only for those
>> who have done it before. In any case, be sure to back it up.
>>
>
> No I have never done it before - got any good web sources for info...or
> maybe I just google it.
>

These two remain in my Bookmarks:

http://www.daniweb.com/blogs/entry708.html
http://www.fedoranews.org/contributors/bob_kashani/grub/

But google as well, and if you have access to another 'net-enabled
computer that might help to to google if you get stuck in the middle.
Failing that, if you are stuck and have no computer to boot, you can
can me but I'm no expert either: (972) 54-788-1700.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

ä-ö-ü-ß-Ä-Ö-Ü


Re: Grub dilemma

2008-10-18 Thread Koh Choon Lin
>> 2008/10/18 Frank McCormick <[EMAIL PROTECTED]>:
>>>  I am not installing Ubuntu - it's already installed on hda3. I say
>>> again I want to install another Linux on hda3 which uses Lilo...not
>>> Grub. I'm asking whether Lilo will screw up Grub. I don't know whether
>>> the install will give me the option to skip installing Lilo. If it does
>>> there is no problem...but if it doesn't will there be a problem.
>>>

You can install LILO onto hda3 instead of hda for chain loading.



-- 
In Liberty
Koh Choon Lin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Grub dilemma

2008-10-18 Thread Frank
Dotan Cohen wrote:
> 2008/10/18 Frank McCormick <[EMAIL PROTECTED]>:
>>  I am not installing Ubuntu - it's already installed on hda3. I say
>> again I want to install another Linux on hda3 which uses Lilo...not
>> Grub. I'm asking whether Lilo will screw up Grub. I don't know whether
>> the install will give me the option to skip installing Lilo. If it does
>> there is no problem...but if it doesn't will there be a problem.
>>
> 
> If the distro writes LILO to the MBR, then yes that will destroy grub.
> Do you feel confident that you can restore grub from the boot disk in
> the event that it is needed? It is a trivial task but only for those
> who have done it before. In any case, be sure to back it up.
> 

No I have never done it before - got any good web sources for info...or
maybe I just google it.


Thanks


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Grub dilemma

2008-10-18 Thread Dotan Cohen
2008/10/18 Frank McCormick <[EMAIL PROTECTED]>:
>  I am not installing Ubuntu - it's already installed on hda3. I say
> again I want to install another Linux on hda3 which uses Lilo...not
> Grub. I'm asking whether Lilo will screw up Grub. I don't know whether
> the install will give me the option to skip installing Lilo. If it does
> there is no problem...but if it doesn't will there be a problem.
>

If the distro writes LILO to the MBR, then yes that will destroy grub.
Do you feel confident that you can restore grub from the boot disk in
the event that it is needed? It is a trivial task but only for those
who have done it before. In any case, be sure to back it up.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

ä-ö-ü-ß-Ä-Ö-Ü


Re: Grub dilemma

2008-10-18 Thread Frank McCormick
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dotan Cohen wrote:
> 2008/10/18 Frank McCormick <[EMAIL PROTECTED]>:
>> I am running two distributions on my machine...Sid on hda1 and another
>> (Ubuntu) on hda3. Grub seems to boot from hda3...as I have to copy Grubs
>> menu.lst to hda3 every time Sid's kernel gets updated. (I don't remember
>> where I installed Grub..it was a long time ago ).
>> I would like to replace Ubuntu on hda3 with something else...but it uses
>> Lilo. Would that mess up my Grub installation.
>>
>> If it does...how tough would it be to re-install Grub, this time in the MBR?
>>
> 
> When you install Ubuntu, have it install Grub (that is actually the
> default). It will automatically add your other OSes. Specific to
> Ubuntu, I have not had any trouble with it's installation of Grub (in
> contrast to Debian, Fedora, and others who's Grub installations I
> always need to go back and fix).



  I am not installing Ubuntu - it's already installed on hda3. I say
again I want to install another Linux on hda3 which uses Lilo...not
Grub. I'm asking whether Lilo will screw up Grub. I don't know whether
the install will give me the option to skip installing Lilo. If it does
there is no problem...but if it doesn't will there be a problem.





-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkj6CisACgkQnQV1aTcQlJsSPgCePxIHaeaKyPd2fRaO1SL+qNVy
BSsAn3Vl50xDvjFqlY1tJEbapEPxB3mG
=F+Ma
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Grub dilemma

2008-10-18 Thread Osamu Aoki
On Sat, Oct 18, 2008 at 04:01:35PM +0200, Cubells wrote:
> En/na Frank McCormick ha escrit:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>>
>> I am running two distributions on my machine...Sid on hda1 and another
>> (Ubuntu) on hda3. Grub seems to boot from hda3...as I have to copy Grubs
>> menu.lst to hda3 every time Sid's kernel gets updated. (I don't remember
>> where I installed Grub..it was a long time ago ).
>>   
>
> No.
>
> You have installed your ubuntu grub on the MBR, but when debian has a  
> kernel upgrade your ubuntu doesn't upgrade its grub configuration file  
> because it isn't a automagic kernel. :-)
>
> You have to edit your grub configuration file and put something like this:
>
> ### END DEBIAN AUTOMAGIC KERNELS LIST
>
> titleDebian
> root(hd0,0)
> kernel/vmlinuz root=/dev/sda1 ro
> initrd/initrd.img
> savedefault

This is for grub package /boot/grub/menu.lst.  If you are installing
grub-pc, you have /boot/grub/grub.cfg

menuentry "Debian GNU/Linux" {
set root=(hd0,1)
linux /vmlinuz root=/dev/sda1 ro
initrd /initrd.img
}
 
please note (hd0,1) : larger number!!!

Osamu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Grub dilemma

2008-10-18 Thread Cubells

En/na Frank McCormick ha escrit:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I am running two distributions on my machine...Sid on hda1 and another
(Ubuntu) on hda3. Grub seems to boot from hda3...as I have to copy Grubs
menu.lst to hda3 every time Sid's kernel gets updated. (I don't remember
where I installed Grub..it was a long time ago ).
  


No.

You have installed your ubuntu grub on the MBR, but when debian has a 
kernel upgrade your ubuntu doesn't upgrade its grub configuration file 
because it isn't a automagic kernel. :-)


You have to edit your grub configuration file and put something like this:

### END DEBIAN AUTOMAGIC KERNELS LIST

titleDebian
root(hd0,0)
kernel/vmlinuz root=/dev/sda1 ro
initrd/initrd.img
savedefault


Then when debian upgrade its kernel, the symlink /vmlinuz point to the 
correct new kernel because kernel instal·lation update the symlink too.


Cheers


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Grub dilemma

2008-10-18 Thread Dotan Cohen
2008/10/18 Frank McCormick <[EMAIL PROTECTED]>:
> I am running two distributions on my machine...Sid on hda1 and another
> (Ubuntu) on hda3. Grub seems to boot from hda3...as I have to copy Grubs
> menu.lst to hda3 every time Sid's kernel gets updated. (I don't remember
> where I installed Grub..it was a long time ago ).
> I would like to replace Ubuntu on hda3 with something else...but it uses
> Lilo. Would that mess up my Grub installation.
>
> If it does...how tough would it be to re-install Grub, this time in the MBR?
>

When you install Ubuntu, have it install Grub (that is actually the
default). It will automatically add your other OSes. Specific to
Ubuntu, I have not had any trouble with it's installation of Grub (in
contrast to Debian, Fedora, and others who's Grub installations I
always need to go back and fix).

In any case, reinstalling or fixing grub is not a problem so long as
your machine can boot from a LiveCD.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

ä-ö-ü-ß-Ä-Ö-Ü