Re: GRUB duplicates kernel entries in menu.lst

2007-05-14 Thread Raffaele Morelli

That is what I thought  Wackojacko has the answer in this thread it is
because
of having the vmlinuz and vmlinuz.old symbolic links in /boot it adds
these
as well. I removed them and updated grub manually I did not get the
duplicates put the links back updated grub and there were the duplicates
again. Which sucks because without the links it does not list my newest
kernel in the grub splash screen first so I would have to select it
manually
instead of getting to boot into it without an action on my part.

Stephen



Hi,
that's what I have in my /boot
-rw-r--r-- 1 root root   70797 2007-03-26 18:32 config-2.6.18-4-k7
drwxr-xr-x 2 root root4096 2007-05-14 09:47 grub
-rw-r--r-- 1 root root 4403522 2006-12-15 10:45 initrd.img-2.6.17-ra2.bak
-rw-r--r-- 1 root root 5025328 2007-05-11 14:24 initrd.img-2.6.18-4-k7
-rw-r--r-- 1 root root  722453 2007-03-27 00:45 System.map-2.6.18-4-k7
-rw-r--r-- 1 root root 1268398 2007-03-27 00:45 vmlinuz-2.6.18-4-k7

as you can see there are no symlinks.

I have removed any other kernel but the recent one in lenny and still
update-grub adds recovery mode duplicates at evry run.

The strange thing I see in that initrd.img-2.6.17-ra2.bak file whose origin
is obscure to me, even if 'ra' is the suffix I use in --revision option when
using make-kpkg.

I have no other custom kernels installed, so I assume it is safe to remove
initrd.img-2.6.17-ra2.bak and send other feedbaks.

regards
raffaele


Re: GRUB duplicates kernel entries in menu.lst

2007-05-14 Thread Raffaele Morelli

That is what I thought  Wackojacko has the answer in this thread it is
 because
 of having the vmlinuz and vmlinuz.old symbolic links in /boot it adds
 these
 as well. I removed them and updated grub manually I did not get the
 duplicates put the links back updated grub and there were the duplicates
 again. Which sucks because without the links it does not list my newest
 kernel in the grub splash screen first so I would have to select it
 manually
 instead of getting to boot into it without an action on my part.

 Stephen


Hi,
that's what I have in my /boot
-rw-r--r-- 1 root root   70797 2007-03-26 18:32 config-2.6.18-4-k7
drwxr-xr-x 2 root root4096 2007-05-14 09:47 grub
-rw-r--r-- 1 root root 4403522 2006-12-15 10:45 initrd.img-2.6.17-ra2.bak
-rw-r--r-- 1 root root 5025328 2007-05-11 14:24 initrd.img-2.6.18-4-k7
-rw-r--r-- 1 root root  722453 2007-03-27 00:45 System.map-2.6.18-4-k7
-rw-r--r-- 1 root root 1268398 2007-03-27 00:45 vmlinuz-2.6.18-4-k7

as you can see there are no symlinks.

I have removed any other kernel but the recent one in lenny and still
update-grub adds recovery mode duplicates at evry run.

The strange thing I see in that initrd.img-2.6.17-ra2.bak file whose
origin is obscure to me, even if 'ra' is the suffix I use in --revision
option when using make-kpkg.

I have no other custom kernels installed, so I assume it is safe to remove
initrd.img-2.6.17-ra2.bak and send other feedbaks.

regards
raffaele



Just removed everything but kernel 2.6.18-4-k7, now /boot is

-rw-r--r-- 1 root root   70797 2007-03-26 18:32 config-2.6.18-4-k7
drwxr-xr-x 2 root root4096 2007-05-14 13:53 grub
-rw-r--r-- 1 root root 5025328 2007-05-11 14:24 initrd.img-2.6.18-4-k7
-rw-r--r-- 1 root root  722453 2007-03-27 00:45 System.map-2.6.18-4-k7
-rw-r--r-- 1 root root 1268398 2007-03-27 00:45 vmlinuz-2.6.18-4-k7

running `update-grub  grep 'kernel 2.6.18-4-k7'  /boot/grub/menu.lst | wc
-l ` still outputs an increasing integer.

Regards
raffaele

a little oddity, my twin machine at home works perfectly...


Re: GRUB duplicates kernel entries in menu.lst

2007-05-12 Thread Raffaele Morelli




That is not what he is saying you get for your example.

 Debian GNU/Linux, kernel 2.6.18-4-k7
 Debian GNU/Linux, kernel 2.6.18-4-k7 (Single User Mode)
 Debian GNU/Linux, kernel 2.6.18-3-k7
 Debian GNU/Linux, kernel 2.6.18-3-k7 (Single User Mode)
 Debian GNU/Linux, kernel 2.6.18-4-k7
 Debian GNU/Linux, kernel 2.6.18-4-k7 (Single User Mode)
 Debian GNU/Linux, kernel 2.6.18-3-k7
 Debian GNU/Linux, kernel 2.6.18-3-k7 (Single User Mode)
 Debian GNU/Linux, kernel 2.6.18-2-k7
 Debian GNU/Linux, kernel 2.6.18-2-k7 (Single User Mode)
 Debian GNU/Linux, kernel 2.6.18-1-k7
 Debian GNU/Linux, kernel 2.6.18-1-k7 (Single User Mode)
 memtest86+

Happens every time I install/remove a kernel here as well then you have to
manually delete the extra 4 entries that are created it is rather
annoying.

Stephen



Yes, that's the point.


Re: GRUB duplicates kernel entries in menu.lst

2007-05-12 Thread Raffaele Morelli




you mean you get multiple entries for the recovery mode of the *same*
kernel? e.g. three recovery mode entries for 2.6.18-4



Yes.

or are you just worried about multiple kernel entries in general. That

is controlled by the howmany= statement in menu.lst.

A



No, I frequently try different kernel setup so I always have 3, 4 or more
kernels installed and multiple kernel entries in menu.lst
As you can guess this lead me to have duplicates for each installed kernel
and a 60kb menu.lst

raffaele


Re: GRUB duplicates kernel entries in menu.lst

2007-05-12 Thread Stephen Cormier
On May 12, 2007 07:27:05 am Raffaele Morelli wrote:
  That is not what he is saying you get for your example.
 
   Debian GNU/Linux, kernel 2.6.18-4-k7
   Debian GNU/Linux, kernel 2.6.18-4-k7 (Single User Mode)
   Debian GNU/Linux, kernel 2.6.18-3-k7
   Debian GNU/Linux, kernel 2.6.18-3-k7 (Single User Mode)
   Debian GNU/Linux, kernel 2.6.18-4-k7
   Debian GNU/Linux, kernel 2.6.18-4-k7 (Single User Mode)
   Debian GNU/Linux, kernel 2.6.18-3-k7
   Debian GNU/Linux, kernel 2.6.18-3-k7 (Single User Mode)
   Debian GNU/Linux, kernel 2.6.18-2-k7
   Debian GNU/Linux, kernel 2.6.18-2-k7 (Single User Mode)
   Debian GNU/Linux, kernel 2.6.18-1-k7
   Debian GNU/Linux, kernel 2.6.18-1-k7 (Single User Mode)
   memtest86+
 
  Happens every time I install/remove a kernel here as well then you have
  to manually delete the extra 4 entries that are created it is rather
  annoying.
 
  Stephen

 Yes, that's the point.

That is what I thought  Wackojacko has the answer in this thread it is because 
of having the vmlinuz and vmlinuz.old symbolic links in /boot it adds these 
as well. I removed them and updated grub manually I did not get the 
duplicates put the links back updated grub and there were the duplicates 
again. Which sucks because without the links it does not list my newest 
kernel in the grub splash screen first so I would have to select it manually 
instead of getting to boot into it without an action on my part.

Stephen

-- 
GPG Pubic Key: http://users.eastlink.ca/~stephencormier/publickey.asc


pgplxmpDBA5dc.pgp
Description: PGP signature


Re: GRUB duplicates kernel entries in menu.lst

2007-05-12 Thread Mumia W..

On 05/12/2007 05:56 PM, Stephen Cormier wrote:
[...] without the links it does not list my newest 
kernel in the grub splash screen first so I would have to select it manually 
instead of getting to boot into it without an action on my part.


Stephen



/boot/grub/menu.lst has a default option that you can set to indicate 
your desired default kernel.




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




GRUB duplicates kernel entries in menu.lst

2007-05-11 Thread Raffaele Morelli

Hi you all

I noticed this strange behaviour in grub, in etch and now in lenny.

Every time update-grub is called, due to a kernel installation or removal,
menu.lst grows bigger. Installed kernel entries for (recovery mode) are
duplicated, same thing happened for AUTOMAGIC KERNELS LIST section.

Actually the latter problem seems to be solved after a manual removal of
AUTOMAGIC KERNELS LIST duplicates.

I did a apt-get --reinstall install grub and dpkg-reconfigure grub with no
success and removing recovery mode duplicated lines does not solve. I know I
won't be installing and removing kernels every day but I think this is worth
noting.

Any ideas?

regards
raffaele


Re: GRUB duplicates kernel entries in menu.lst

2007-05-11 Thread Greg Folkert
On Fri, 2007-05-11 at 16:11 +0200, Raffaele Morelli wrote:
 Hi you all
 
 I noticed this strange behaviour in grub, in etch and now in lenny.
 
 Every time update-grub is called, due to a kernel installation or
 removal, menu.lst grows bigger. Installed kernel entries for (recovery
 mode) are duplicated, same thing happened for AUTOMAGIC KERNELS LIST
 section. 
 
 Actually the latter problem seems to be solved after a manual removal
 of AUTOMAGIC KERNELS LIST duplicates.
 
 I did a apt-get --reinstall install grub and dpkg-reconfigure grub
 with no success and removing recovery mode duplicated lines does not
 solve. I know I won't be installing and removing kernels every day but
 I think this is worth noting. 

On one machine I maintain, I have 4 kernels installed.

linux-image-2.6.18-1-k7
linux-image-2.6.18-2-k7
linux-image-2.6.18-3-k7
linux-image-2.6.18-4-k7

That means there is all four kernels installed.

And by default the grub setup for Etch and now Lenny enabled a
recovery mode or Single user mode as an alternative to the regular
one.

So for me I have these 9 menu selections

Debian GNU/Linux, kernel 2.6.18-4-k7
Debian GNU/Linux, kernel 2.6.18-4-k7 (Single User Mode)
Debian GNU/Linux, kernel 2.6.18-3-k7
Debian GNU/Linux, kernel 2.6.18-3-k7 (Single User Mode)
Debian GNU/Linux, kernel 2.6.18-2-k7
Debian GNU/Linux, kernel 2.6.18-2-k7 (Single User Mode)
Debian GNU/Linux, kernel 2.6.18-1-k7
Debian GNU/Linux, kernel 2.6.18-1-k7 (Single User Mode)
memtest86+

I edited the /boot/grub/menu.lst to reflect the defaults I like rather
than what came as default. You will also note the first entry has the
largest/newest designation.

If you don't like the single User/Recover mode then edit the line
in /boot/grub/menu.lst that reads:

# alternative=true

To look like

# alternative=false

Then as root run: update-grub
-- 
greg, [EMAIL PROTECTED]
PGP key: 1024D/B524687C  2003-08-05
Fingerprint: E1D3 E3D7 5850 957E FED0  2B3A ED66 6971 B524 687C
Alternate Fingerprint: 09F9 1102 9D74  E35B D841 56C5 6356 88C0



signature.asc
Description: This is a digitally signed message part


Re: GRUB duplicates kernel entries in menu.lst

2007-05-11 Thread BartlebyScrivener
On May 11, 9:20 am, Raffaele Morelli [EMAIL PROTECTED]
wrote:
 Hi you all

 I noticed this strange behaviour in grub, in etch and now in lenny.


I noticed the same thing when installing Ubuntu Edgy Eft many months
ago. However I did not get the same thing when I installed Debian Etch
just after the new year. Don't know what causes it.

rd


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



Re: GRUB duplicates kernel entries in menu.lst

2007-05-11 Thread Joe Hart
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Raffaele Morelli wrote:
 Hi you all
 
 I noticed this strange behaviour in grub, in etch and now in lenny.
 
 Every time update-grub is called, due to a kernel installation or
 removal, menu.lst grows bigger. Installed kernel entries for (recovery
 mode) are duplicated, same thing happened for AUTOMAGIC KERNELS LIST
 section.
 
 Actually the latter problem seems to be solved after a manual removal of
 AUTOMAGIC KERNELS LIST duplicates.
 
 I did a apt-get --reinstall install grub and dpkg-reconfigure grub with
 no success and removing recovery mode duplicated lines does not solve. I
 know I won't be installing and removing kernels every day but I think
 this is worth noting.
 
 Any ideas?
 
I believe that it is designed that way on purpose.  If you install a new
kernel and it doesn't work, you can always fall back to using the old one.

You can safely remove any kernel that you are not running at the time,
but I would recommend keeping 2 kernels.  The current one, and the one
that worked before.  You never know when one might not work and you'll
need the other.

Joe

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

iD8DBQFGRJ6riXBCVWpc5J4RAhnUAJ49J1UDn5aq3+evqfrKfBVEqySZkgCdEGG6
/aP8YmBpXRbvHh/Htj1rlFU=
=Y4C4
-END PGP SIGNATURE-


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



Re: GRUB duplicates kernel entries in menu.lst

2007-05-11 Thread Stephen Cormier
On May 11, 2007 12:54:30 pm Greg Folkert wrote:
 On Fri, 2007-05-11 at 16:11 +0200, Raffaele Morelli wrote:
  Hi you all
 
  I noticed this strange behaviour in grub, in etch and now in lenny.
 
  Every time update-grub is called, due to a kernel installation or
  removal, menu.lst grows bigger. Installed kernel entries for (recovery
  mode) are duplicated, same thing happened for AUTOMAGIC KERNELS LIST
  section.
 
  Actually the latter problem seems to be solved after a manual removal
  of AUTOMAGIC KERNELS LIST duplicates.
 
  I did a apt-get --reinstall install grub and dpkg-reconfigure grub
  with no success and removing recovery mode duplicated lines does not
  solve. I know I won't be installing and removing kernels every day but
  I think this is worth noting.

 On one machine I maintain, I have 4 kernels installed.

 linux-image-2.6.18-1-k7
 linux-image-2.6.18-2-k7
 linux-image-2.6.18-3-k7
 linux-image-2.6.18-4-k7

 That means there is all four kernels installed.

 And by default the grub setup for Etch and now Lenny enabled a
 recovery mode or Single user mode as an alternative to the regular
 one.

 So for me I have these 9 menu selections

 Debian GNU/Linux, kernel 2.6.18-4-k7
 Debian GNU/Linux, kernel 2.6.18-4-k7 (Single User Mode)
 Debian GNU/Linux, kernel 2.6.18-3-k7
 Debian GNU/Linux, kernel 2.6.18-3-k7 (Single User Mode)
 Debian GNU/Linux, kernel 2.6.18-2-k7
 Debian GNU/Linux, kernel 2.6.18-2-k7 (Single User Mode)
 Debian GNU/Linux, kernel 2.6.18-1-k7
 Debian GNU/Linux, kernel 2.6.18-1-k7 (Single User Mode)
 memtest86+

 I edited the /boot/grub/menu.lst to reflect the defaults I like rather
 than what came as default. You will also note the first entry has the
 largest/newest designation.

 If you don't like the single User/Recover mode then edit the line
 in /boot/grub/menu.lst that reads:

 # alternative=true

 To look like

 # alternative=false

 Then as root run: update-grub

That is not what he is saying you get for your example.

 Debian GNU/Linux, kernel 2.6.18-4-k7
 Debian GNU/Linux, kernel 2.6.18-4-k7 (Single User Mode)
 Debian GNU/Linux, kernel 2.6.18-3-k7
 Debian GNU/Linux, kernel 2.6.18-3-k7 (Single User Mode)
 Debian GNU/Linux, kernel 2.6.18-4-k7
 Debian GNU/Linux, kernel 2.6.18-4-k7 (Single User Mode)
 Debian GNU/Linux, kernel 2.6.18-3-k7
 Debian GNU/Linux, kernel 2.6.18-3-k7 (Single User Mode)
 Debian GNU/Linux, kernel 2.6.18-2-k7
 Debian GNU/Linux, kernel 2.6.18-2-k7 (Single User Mode)
 Debian GNU/Linux, kernel 2.6.18-1-k7
 Debian GNU/Linux, kernel 2.6.18-1-k7 (Single User Mode)
 memtest86+

Happens every time I install/remove a kernel here as well then you have to 
manually delete the extra 4 entries that are created it is rather annoying.

Stephen

-- 
GPG Pubic Key: http://users.eastlink.ca/~stephencormier/publickey.asc


pgpEcf8N6hj3D.pgp
Description: PGP signature


Re: GRUB duplicates kernel entries in menu.lst

2007-05-11 Thread Wackojacko

Joe Hart wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Raffaele Morelli wrote:

Hi you all

I noticed this strange behaviour in grub, in etch and now in lenny.

Every time update-grub is called, due to a kernel installation or
removal, menu.lst grows bigger. Installed kernel entries for (recovery
mode) are duplicated, same thing happened for AUTOMAGIC KERNELS LIST
section.

Actually the latter problem seems to be solved after a manual removal of
AUTOMAGIC KERNELS LIST duplicates.

I did a apt-get --reinstall install grub and dpkg-reconfigure grub with
no success and removing recovery mode duplicated lines does not solve. I
know I won't be installing and removing kernels every day but I think
this is worth noting.

Any ideas?


I believe that it is designed that way on purpose.  If you install a new
kernel and it doesn't work, you can always fall back to using the old one.

You can safely remove any kernel that you are not running at the time,
but I would recommend keeping 2 kernels.  The current one, and the one
that worked before.  You never know when one might not work and you'll
need the other.

Joe



Could the OP be referring to the fact that grub installs boot options 
for both the kernels *and* any symlinks in /boot.  On my sid system I 
have vmlinuz and vmlinuz.old which are symlinks to the two latest kernel 
installed.  Update-grub will add these to menu.lst in addition to the 
direct kernels so I have duplicate entries for these two kernels.


Wackojacko


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




Re: GRUB duplicates kernel entries in menu.lst

2007-05-11 Thread Andrew Sackville-West
On Fri, May 11, 2007 at 04:11:50PM +0200, Raffaele Morelli wrote:
 Hi you all
 
 I noticed this strange behaviour in grub, in etch and now in lenny.
 
 Every time update-grub is called, due to a kernel installation or removal,
 menu.lst grows bigger. Installed kernel entries for (recovery mode) are
 duplicated, same thing happened for AUTOMAGIC KERNELS LIST section.

you mean you get multiple entries for the recovery mode of the *same*
kernel? e.g. three recovery mode entries for 2.6.18-4 

or are you just worried about multiple kernel entries in general. That
is controlled by the howmany= statement in menu.lst.

A


signature.asc
Description: Digital signature