You are not logged in.

#1 2012-11-06 18:45:41

n0rv
Member
Registered: 2012-02-27
Posts: 49

Changing Grub2 settings have no effect

I try to set higher resolution and swap partition for resuming from hibernation. My Grub config looks like this:
/etc/default/grub

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash vga=775"
GRUB_CMDLINE_LINUX="resume=/dev/sda7"

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1280x1024x8

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter 
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx" 
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper 
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

#GRUB_SAVEDEFAULT="true"

After running:

grub-mkconfig -o /boot/grub/grub.cfg

as root I have:
/boot/grub/grub.cfg

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  2dfb055e-f6e5-41f6-846e-0ab29d67178a
else
  search --no-floppy --fs-uuid --set=root 2dfb055e-f6e5-41f6-846e-0ab29d67178a
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1280x1024x8
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=pl_PL
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch GNU/Linux, za pomocą systemu Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-2dfb055e-f6e5-41f6-846e-0ab29d67178a' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2c3f9c58-216e-4225-a068-7a4e745938ad
	else
	  search --no-floppy --fs-uuid --set=root 2c3f9c58-216e-4225-a068-7a4e745938ad
	fi
	echo	'Wczytywanie systemu Linux core repo kernel...'
	linux	/vmlinuz-linux root=UUID=2dfb055e-f6e5-41f6-846e-0ab29d67178a ro resume=/dev/sda7 quiet splash vga=775
	echo	'Wczytywanie początkowego dysku RAM...'
	initrd	/initramfs-linux.img
}
menuentry 'Arch GNU/Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-2dfb055e-f6e5-41f6-846e-0ab29d67178a' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2c3f9c58-216e-4225-a068-7a4e745938ad
	else
	  search --no-floppy --fs-uuid --set=root 2c3f9c58-216e-4225-a068-7a4e745938ad
	fi
	echo	'Wczytywanie systemu Linux core repo kernel...'
	linux	/vmlinuz-linux root=UUID=2dfb055e-f6e5-41f6-846e-0ab29d67178a ro resume=/dev/sda7 quiet splash vga=775
	echo	'Wczytywanie początkowego dysku RAM...'
	initrd	/initramfs-linux-fallback.img
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

After reboot I need to manually edit options in Grub menu, because this config takes no effect. I have something similar to:

.linux /vmlinuz-linux root=UUID=2dfb055e-f6e5-41f6-846e-0ab29d67178a ro quiet

I missed something? I tried everything from wiki: https://wiki.archlinux.org/index.php/Gr … resolution and nothing.
I have Radeon hd4770, fglrx driver (12.6) from AUR, kernel 3.6.6-1

Any suggestions?

Last edited by n0rv (2012-11-06 18:49:06)

Offline

#2 2012-11-06 19:07:07

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,956
Website

Re: Changing Grub2 settings have no effect

Do you have a separate /boot partition that you're either mounting or forgetting to mount? Or perhaps another Linux distribution?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2012-11-06 19:45:28

n0rv
Member
Registered: 2012-02-27
Posts: 49

Re: Changing Grub2 settings have no effect

WorMzy wrote:

Do you have a separate /boot partition that you're either mounting or forgetting to mount? Or perhaps another Linux distribution?

Yes, I have separate /boot partition, but it's not a problem (I think), because Grub boots kernel properly (I write this post from Arch).
It looks like Grub can't read config and loads kernel with default options.

Offline

#4 2012-11-06 20:01:15

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,956
Website

Re: Changing Grub2 settings have no effect

I have separate /boot partition, but it's not a problem (I think)

Maybe, but I'd like to make sure.

Can you post the output of:

uname -a

and

file /boot/vmlinuz-linux

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2012-11-06 20:05:43

n0rv
Member
Registered: 2012-02-27
Posts: 49

Re: Changing Grub2 settings have no effect

uname -a

Linux Arch 3.6.6-1-ARCH #1 SMP PREEMPT Mon Nov 5 11:57:22 CET 2012 x86_64 GNU/Linux

file /boot/vmlinuz-linux

/boot/vmlinuz-linux: Linux kernel x86 boot executable bzImage, version 3.6.6-1-ARCH (tobias@T-POWA-LX) #1 SMP PREEMPT Mon Nov 5 11:57:, RO-rootFS, swap_dev 0x3, Normal VGA

Offline

Board footer

Powered by FluxBB