Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Correct way to pass parameters into grub.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Thu Sep 25, 2014 2:50 pm    Post subject: Correct way to pass parameters into grub. Reply with quote

Once we have installed we have a /boot/grub/grub.conf file similar to the following

Code:
default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 3.14.14
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.14.14-gentoo root=/dev/sdb1
initrd /boot/initramfs-genkernel-x86_64-3.14.14-gentoo

title Gentoo Linux 3.14.14 (rescue)
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.14.14-gentoo root=/dev/sdb1 init=/bin/bb
initrd /boot/initramfs-genkernel-x86_64-3.14.14-gentoo


In the first option block I have added nomodeset at the end of my kernel stirng.

title Gentoo Linux 3.14.14
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.14.14-gentoo root=/dev/sdb1
nomodeset
initrd /boot/initramfs-genkernel-x86_64-3.14.14-gentoo

The parameter is applied on boot, but is this the correct way to apply parameters?

Thanks in advance.
_________________
k.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Sep 25, 2014 3:11 pm    Post subject: Re: Correct way to pass parameters into grub. Reply with quote

Quote:


title Gentoo Linux 3.14.14
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.14.14-gentoo root=/dev/sdb1
nomodeset
initrd /boot/initramfs-genkernel-x86_64-3.14.14-gentoo



that looks good, no idea if that particular grub / kernel flag really exists but thats the location for them
Back to top
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Thu Sep 25, 2014 3:16 pm    Post subject: Re: Correct way to pass parameters into grub. Reply with quote

tw04l124 wrote:
Quote:


title Gentoo Linux 3.14.14
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.14.14-gentoo root=/dev/sdb1
nomodeset
initrd /boot/initramfs-genkernel-x86_64-3.14.14-gentoo



that looks good, no idea if that particular grub / kernel flag really exists but thats the location for them


When my screen resolution is huge(super tiny unreadable text), setting nomodeset makes the font huge.
_________________
k.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Sep 25, 2014 3:28 pm    Post subject: Reply with quote

you may try framebuffer for the early boot progress.

I never succeeded but afaik you can change there the resolution.
I am not sure but I think there was an option in the kernel to set the screen resolution, but I may be wrong. All relies on that framebuffer thing.

if your issue is just solved by that kernel paramter, just use it. i use some parameters for myself too.
Back to top
View user's profile Send private message
prozprcek
n00b
n00b


Joined: 18 Sep 2014
Posts: 26

PostPosted: Thu Sep 25, 2014 3:32 pm    Post subject: Reply with quote

This method you used is correct but I think it is recommended to edit:
Code:
/etc/default/grub
.
And set one of following options:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="nomodest"
GRUB_CMDLINE_LINUX="nomodest"

And then you should run
Code:
grub2-mkconfig -o /boot/grub/grub.cfg

Difference is:
Quote:
GRUB_CMDLINE_LINUX
Command-line arguments to add to menu entries for the Linux kernel.

Quote:
‘GRUB_CMDLINE_LINUX_DEFAULT’
Unless ‘GRUB_DISABLE_RECOVERY’ is set to ‘true’, two menu entries will be generated for each Linux kernel: one default entry and one entry for recovery mode. This option lists command-line arguments to add only to the default menu entry, after those listed in ‘GRUB_CMDLINE_LINUX’.



Regarding your question about resolution:
The newest kernels have moved the video mode setting into the kernel, previously X server was responsible for setting up the video card and you couldn't have fancy graphics out of X. This makes it possible to have high resolution nice looking splash (boot) screens and flicker free transitions from boot splash to login screen.

So if you set nomodeset you are disabling kernel mode setting and you'll have low resolution outside X ( huge font). And if you want better (higher) resolution outside of X you should enable KMS by omitting nomodeset kernel boot parameter.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Thu Sep 25, 2014 4:46 pm    Post subject: Reply with quote

Kernel 3.14.14 has caused headaches to many people with something broken in the framebuffer thing.
There were several topics about in this forum. I've moved to 3.16.3 and problems are solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum