You are not logged in.

#1 2011-02-08 13:53:04

caan
Member
Registered: 2010-12-08
Posts: 6

Creating LVM snapshot changes GRUB2 and boot screen resolution.

Hello forum,

whenever I create an LVM snapshot of one of my volumes and reboot my machine the screen resolution at GRUB2 and afterwards during boot messages is reverted to the default one (640x480). Just removing the snapshot restores my custom resolution, no further actions are needed.

I have the following settings in my /etc/default/grub:

GRUB_GFXMODE=1280x1024x32
GRUB_GFXPAYLOAD_LINUX=keep

and my grub.cfg looks like this:

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

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
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

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}
insmod lvm
insmod ext2
set root='(VG_kdesktop-LV_root)'
search --no-floppy --fs-uuid --set a905cc44-d0db-4e7e-9e22-f677b2d9b5c7
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1280x1024x32
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 207d963d-2593-480c-81eb-4f88f229ceb7
set locale_dir=($root)/grub/locale
set lang=en
insmod gettext
set timeout=10
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Arch Linux, with Linux vmlinuz26" --class archlinux --class gnu-linux --class gnu --class os {
        set gfxpayload=keep
        insmod ext2
        set root='(hd0,6)'
        search --no-floppy --fs-uuid --set 207d963d-2593-480c-81eb-4f88f229ceb7
        echo    Loading Linux vmlinuz26 ...
        linux   /vmlinuz26 root=/dev/disk/by-uuid/a905cc44-d0db-4e7e-9e22-f677b2d9b5c7 ro  
        echo    Loading initial ramdisk ...
        initrd  /kernel26.img
}
menuentry "Arch Linux, with Linux vmlinuz26 Fallback" --class archlinux --class gnu-linux --class gnu --class os {
        set gfxpayload=keep
        insmod ext2
        set root='(hd0,6)'
        search --no-floppy --fs-uuid --set 207d963d-2593-480c-81eb-4f88f229ceb7
        echo    Loading Linux vmlinuz26 ...Loading Linux Fallback ...
        linux   /vmlinuz26 root=/dev/disk/by-uuid/a905cc44-d0db-4e7e-9e22-f677b2d9b5c7 ro  
        echo    Loading initial ramdisk ...
        initrd  /kernel26-fallback.img
}
menuentry "Arch Linux, with Linux vmlinuz26 Fallback (recovery mode)" --class archlinux --class gnu-linux --class gnu --class os {
        set gfxpayload=keep
        insmod ext2
        set root='(hd0,6)'
        search --no-floppy --fs-uuid --set 207d963d-2593-480c-81eb-4f88f229ceb7
        echo    Loading Linux vmlinuz26 ...Loading Linux Fallback ...
        linux   /vmlinuz26 root=/dev/disk/by-uuid/a905cc44-d0db-4e7e-9e22-f677b2d9b5c7 ro single 
        echo    Loading initial ramdisk ...
        initrd  /kernel26-fallback.img
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" --class memtest86 --class gnu --class tool {
  insmod ext2
  set root='(hd0,6)'
  search --no-floppy --fs-uuid --set 207d963d-2593-480c-81eb-4f88f229ceb7
  linux16 ($root)/memtest86+/memtest.bin
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda2)" {
        insmod ntfs
        set root='(hd0,2)'
        search --no-floppy --fs-uuid --set 56a05329a0530ebd
        drivemap -s (hd0) ${root}
        chainloader +1
}
### 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 ###

I've been unsuccessful so far to find a solution to this problem on the web, any clues would be highly appreciated.

Thank you in advance.

Offline

Board footer

Powered by FluxBB