Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
snvvOffline
Post subject: Grub kernel order [solved]  PostPosted: 07.08.2011, 16:34



Joined: 2010-09-13
Posts: 287

Status: Offline
In every PC I keep the last three kernels.
In the two the order is from more recent to older.
In one the order is opposite. That means in every boot I have to manually select the most recent kernel.

The /etc/default/grub file is same in all PC's.

Is it possible to change the order?

PS. And yes I have read the manual too. I hope it is not there Smile


Last edited by snvv on 09.08.2011, 02:05; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
oldieOffline
Post subject: RE: Grub kernel order  PostPosted: 07.08.2011, 17:53



Joined: 2010-09-12
Posts: 24

Status: Offline
keep the last two kernels works for me

why ?
 
 View user's profile Send private message  
Reply with quote Back to top
snvvOffline
Post subject:   PostPosted: 07.08.2011, 20:03



Joined: 2010-09-13
Posts: 287

Status: Offline
And with only two kernels I have the same "problem".
 
 View user's profile Send private message  
Reply with quote Back to top
piperOffline
Post subject: Re: Grub kernel order  PostPosted: 08.08.2011, 23:47
Moderator


Joined: 2010-09-11
Posts: 480
Location: cheektowaga, ny
Status: Offline
      snvv wrote:
In every PC I keep the last three kernels.
In the two the order is from more recent to older.
In one the order is opposite. That means in every boot I have to manually select the most recent kernel.

The /etc/default/grub file is same in all PC's.

Is it possible to change the order?

PS. And yes I have read the manual too. I hope it is not there Smile


have you looked at grub.cfg ?
especially this part
      Code:
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi
 
 View user's profile Send private message  
Reply with quote Back to top
snvvOffline
Post subject:   PostPosted: 09.08.2011, 02:05



Joined: 2010-09-13
Posts: 287

Status: Offline
Thank you all
Probles is solved by altering GRUB_DEFAULT=0 to GRUB_DEFAULT=1 in /etc/default/grub.ucf-dist.

GRUB_DEFAULT can be used to set the default kernel to boot.
Regards
snvv
 
 View user's profile Send private message  
Reply with quote Back to top
drbOffline
Post subject:   PostPosted: 09.08.2011, 06:55



Joined: 2010-09-11
Posts: 96

Status: Offline
I hadn't realised that this file were editable. No need for update-grub afterwards?
 
 View user's profile Send private message  
Reply with quote Back to top
snvvOffline
Post subject:   PostPosted: 09.08.2011, 11:16



Joined: 2010-09-13
Posts: 287

Status: Offline
      drb wrote:
I hadn't realised that this file were editable. No need for update-grub afterwards?


Actually I edited the /etc/default/grub.
Yes I run update-grub after the edit.
Regards
snv
 
 View user's profile Send private message  
Reply with quote Back to top
drbOffline
Post subject:   PostPosted: 09.08.2011, 13:26



Joined: 2010-09-11
Posts: 96

Status: Offline
@snvv - thanks for the clarification
 
 View user's profile Send private message  
Reply with quote Back to top
piperOffline
Post subject:   PostPosted: 09.08.2011, 20:46
Moderator


Joined: 2010-09-11
Posts: 480
Location: cheektowaga, ny
Status: Offline
      snvv wrote:
      drb wrote:
I hadn't realised that this file were editable. No need for update-grub afterwards?


Actually I edited the /etc/default/grub.
Yes I run update-grub after the edit.
Regards
snv


Yes, that is the recommended and safest way. I have my own habits that I shouldn't have posted Wink
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio