|
Home > Archive > Linux Debian support > August 2007 > edit Grub?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Edmund 2007-08-11, 1:13 pm |
| Debian Etch
I installed a wrong of Debian-GNU/linux, now my system
boots up and I see something like this:
Debian-GNU/Linux, kernel 26.18-4-k7
Debian-GNU/Linux, kernel 26.18-4-686
Debian-GNU/Linux, kernel 26.18-4-686 single user
Debian-GNU/Linux, kernel 26.18-4-server
I only need the "Debian-GNU/Linux, kernel 26.18-4-686"
part. I tried to edit Grub and remove the opther options.
That works perfect, slight problem is however I cannot see
how to make such a selection "saved".
How do I restore it to only, or at least default
"Debian-GNU/Linux, kernel 26.18-4-686"
Edmund
| |
|
| On Sat, 11 Aug 2007 14:29:18 +0200, Edmund wrote:
> Debian Etch
> I installed a wrong of Debian-GNU/linux, now my system
> boots up and I see something like this:
>
>
> Debian-GNU/Linux, kernel 26.18-4-k7
> Debian-GNU/Linux, kernel 26.18-4-686
> Debian-GNU/Linux, kernel 26.18-4-686 single user
> Debian-GNU/Linux, kernel 26.18-4-server
>
> I only need the "Debian-GNU/Linux, kernel 26.18-4-686"
> part. I tried to edit Grub and remove the opther options.
> That works perfect, slight problem is however I cannot see
> how to make such a selection "saved".
> How do I restore it to only, or at least default
> "Debian-GNU/Linux, kernel 26.18-4-686"
>
> Edmund
edit /boot/grub/menu.lst
| |
| sk8r-365 2007-08-11, 1:13 pm |
| Government satellites recorded Edmund saying:
<snip>
> I only need the "Debian-GNU/Linux, kernel 26.18-4-686"
> part. I tried to edit Grub and remove the opther options.
> That works perfect, slight problem is however I cannot see
> how to make such a selection "saved".
> How do I restore it to only, or at least default
> "Debian-GNU/Linux, kernel 26.18-4-686"
While editing /boot/grub/menu.lst make Default be the number of the item (kernel
choice) the one you desire. Remember, zero is the first item and one the second,
so forth. I'll show you part of mine, but you don't have to show me yours:
default 0
title Debian GNU/Linux, kernel 2.6.18-4-686
root (hd0,0)
kernel /vmlinuz-2.6.18-4-686 root=/dev/sda3 ro vga=791
initrd /initrd.img-2.6.18-4-686
savedefault
title Debian GNU/Linux, kernel 2.6.18-4-686 (single-user mode)
root (hd0,0)
kernel /vmlinuz-2.6.18-4-686 root=/dev/sda3 ro single vga=791
initrd /initrd.img-2.6.18-4-686
savedefault
You'll want to maintain a single-user mode for a time if something
does go very wrong - as when you goof and screw the system while
being root.
--
sk8r-365
http://goodbye-microsoft.com/
| |
| Edmund 2007-08-11, 1:13 pm |
| ray wrote:
> On Sat, 11 Aug 2007 14:29:18 +0200, Edmund wrote:
>
>
> edit /boot/grub/menu.lst
Thank you.
Edmund
| |
| Edmund 2007-08-11, 1:13 pm |
| sk8r-365 wrote:
> Government satellites recorded Edmund saying:
>
> <snip>
>
> While editing /boot/grub/menu.lst make Default be the number of the item
> (kernel choice) the one you desire. Remember, zero is the first item and
> one the second, so forth. I'll show you part of mine, but you don't have
> to show me yours:
>
> default 0
>
> title Debian GNU/Linux, kernel 2.6.18-4-686
> root (hd0,0)
> kernel /vmlinuz-2.6.18-4-686 root=/dev/sda3 ro vga=791
> initrd /initrd.img-2.6.18-4-686
> savedefault
>
> title Debian GNU/Linux, kernel 2.6.18-4-686 (single-user mode)
> root (hd0,0)
> kernel /vmlinuz-2.6.18-4-686 root=/dev/sda3 ro single vga=791
> initrd /initrd.img-2.6.18-4-686
> savedefault
>
>
> You'll want to maintain a single-user mode for a time if something
> does go very wrong - as when you goof and screw the system while
> being root.
Thank you
Edmund
>
| |
| Paul Cupis 2007-08-15, 7:12 am |
| Edmund wrote:
> Debian Etch
> I installed a wrong of Debian-GNU/linux, now my system
> boots up and I see something like this:
>
> Debian-GNU/Linux, kernel 26.18-4-k7
> Debian-GNU/Linux, kernel 26.18-4-686
> Debian-GNU/Linux, kernel 26.18-4-686 single user
> Debian-GNU/Linux, kernel 26.18-4-server
>
> I only need the "Debian-GNU/Linux, kernel 26.18-4-686"
> part. I tried to edit Grub and remove the opther options.
> That works perfect, slight problem is however I cannot see
> how to make such a selection "saved".
> How do I restore it to only, or at least default
> "Debian-GNU/Linux, kernel 26.18-4-686"
Maybe you are looking for the 'update-grub' command, but I would
recommend not editing the kernel lists in grub.conf directly but instead
uninstalling any kernels you do not require and let update-grub manage
the kernel list.
>
> Edmund
|
|
|
|
|