[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A lot of problems with debian sid on a Notebook



On Sun, 2012-12-23 at 01:57 +0100, berenger.morel@neutralite.org wrote:
> Le 23.12.2012 00:51, Thore a écrit :
> >     And how can I delete it?
> 
> and if everything works correctly, remove the other one.

You can remove other kernels, by removing them using the package
management. I suspect you're using GRUB 2, if so you need to read how to
edit GRUB 2 configurations, or you simply edit grub.cfg.

I edit grub.cfg, to get rid of tons of unneeded code and bad entries.
There e.g. isn't the need to keep the thousand lines at the beginning
inside grub.cfg.

My does look like this:

$ cat /boot/grub/grub.cfg
set timeout=8
set default='0'; if [ x"$default" = xsaved ]; then load_env; set default="$saved_entry"; fi
set color_normal='light-blue/black'; set color_highlight='light-cyan/blue'

menuentry "FreeBSD"{
    set root=(hd0,msdos1)
    chainloader +1
}

menuentry 'Ubuntu Quantal,        kernel 3.6.5-rt14' {
  set root='(hd1,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.6.5-rt14' '/boot/vmlinuz-3.6.5-rt14' 'root=/dev/sdb9' 'ro' 'quiet' ''
  legacy_initrd '/boot/initrd.img-3.6.5-rt14' '/boot/initrd.img-3.6.5-rt14'
  
}

[Followed by many other Linux, since I've got many kernels and many
distros installed]

I could remove something from the above entries, resp. I should
completely re-edit them, but I kept it from a menu.lst to grub.cfg
conversion, because I've got many entries it's not "simply remove the
unneeded entry", I would have to do it for perhaps around 20 kernels, so
it's work I'll do some day, when I've got nothing else to do.

Regards,
Ralf


Reply to: