You are not logged in.

#1 2014-04-21 00:26:26

Jabrick
Member
Registered: 2011-05-13
Posts: 79

[SOLVED] Chrooted Startx works, but blank screen from Gummiboot

Recently when I tried to boot into my system I receive a blank screen.
What I am trying to figure out is:
  1. What and where does the problem lie.
  2. How do I fix it.

I own a Gigabye GA-Z87X-UD3H (UEFI) motherboard and using Gummiboot.
I am not sure what changes to cause this effect, as I did not make any changes into my boot loading configuration.
I suspect the problem lies within Gummiboot, because when I boot from a USB and chroot into my system, I can ran "startx" and successfully enter Xmonad.
I've also attempted to use both the Nvidia drivers, and the Nouveau driver (I have a Nvidia 660ti).

This might be a coincidence but might be important to note.
I came across this issue after Windows 8 wanted to update and I had restarted. (Windows is on a different harddrive, sdaX, Arch is on sdbX)

/boot/loader/loader.conf

default arch
timeout 15

/boot/loader/entries/arch.conf

title   Arch Linux
linux   /vmlinuz-linux
initrd  /initramfs-linux.img
options root=/dev/sdb3 rw

# Also tried using the PARTUUID
# blkid -s PARTUUID -o value /dev/sdb3
# options root=PARTUUID=b1b46412-6ae0-4959-b4b3-ed43e1ca9988 rw
timeout 15

During my initial investigation I was having trouble starting X from a chrooted environtment.
Had messages along the lines of "(EE) No displays found", "Couldn't load Nvidia modules". (/var/log/Xorg.X.log)
So I installed Xnest, but still coudln't get X to work.
Later I removed my nvidia drivers to use Nouveau and I was still having troubles.
I then removed my ".xinitrc" file and I was finally launched into the default xserver.

I think the problem was that in my ".xinitrc" file I just had the line "xmonad" but now I have it set to "exec xmonad".
I placed my ".xinitrc" file back and "startx" seems to be working fine.
I'm not exactly sure which steps were necessary to get "startx" to work from chrooted environment, but the above were some of the steps I took.
EDIT: See below for more of what I am trying to get my system to boot without chroot into USB.

~/.xinitrc

xsetroot -cursor_name left_ptr
xset m 2/3 1
exec xmonad

/etc/X11/xorg.conf

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nouveau"
    VendorName     "NVIDIA Corporation"
    Option         "RenderAccel" "true"
    Option         "AGPFastWrite" "true"
    Option         "NoLogo" "true"
    Option         "EnablePageFlip" "true"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

In my mind if I can run startx from chrooted environment, this means Gummiboot must be performing something extra.
Or that Gummiboot is failing to perform something it requires, I saw the message on the front page about screen, but I dont have that installed.
"pacman -Q | grep screen" produces no output.
Thank you for reading about my issue thus far! And thank for for any responses in advance.
For the time being I'll be booting into my system via chroot from USB......

Edit: Realize also things like sound isn't working, I'm guessing some services are being bypassed while using this workaround.
Edit2: I remember now that when I boot into my system it first prompts me to login, then I ran startx.
         So really the issue is why the initial prompt to login is no longer showing up.

Edit3: So I'm trying to bypass Gummiboot can't still cannot boot!

Following https://wiki.archlinux.org/index.php/EF … UEFI_Shell I have tried

efibootmgr -d /dev/sdb -p 1 -c -L "ArchBootPlease" -l /vmlinuz-linux -u "root=/dev/sdb3 rw initrd=/initramfs-linux.img"

When choosing the option from the boot screen from my motherboard it still provides a blank screen (or stays on splash screen if splash is enabled).

Also tried to boot using the UEFI shell from my arch usb.
I choose to use v1 since v2 would just reload the screen, not sure why.

fs0:
archlinux

Where the contents of my my archlinux.nsh script in /boot is exactly how its stated in the wiki except replacing the PARTUUID with my own.
And I did do the copying as stated at the beginning of that wiki.
When I ran the script it just prints out its contents then hangs.

So does this indicated this is not a Gummiboot issue?
Its always the worst when you can't even get into your system sad

Last edited by Jabrick (2014-04-21 21:21:10)

Offline

#2 2014-04-21 02:48:08

Buddlespit
Member
From: Chesapeake, Va.
Registered: 2014-02-07
Posts: 507

Re: [SOLVED] Chrooted Startx works, but blank screen from Gummiboot

I know this is going to sound stupid, but I have to ask... Is /dev/sdb3 still, after the Windows update, the correct root partition?

I ask because I had a 'LVM' issue on my server, and it ended up being a drive swap, ie- /dev/sdb and /dev/sdc swapped places.


An old man, trying to stay sane

Offline

#3 2014-04-21 04:00:34

Jabrick
Member
Registered: 2011-05-13
Posts: 79

Re: [SOLVED] Chrooted Startx works, but blank screen from Gummiboot

Yup /dev/sdb3 is still the correct root partition.
I have verified after using "fdisk -l" while chrooted from usb. Also when mounting "/dev/sdb3" is do see my root file system.
Also I am not using LVM.

Offline

#4 2014-04-21 14:46:43

Buddlespit
Member
From: Chesapeake, Va.
Registered: 2014-02-07
Posts: 507

Re: [SOLVED] Chrooted Startx works, but blank screen from Gummiboot

Have you checked your 'bios' to see if windows set the secure boot bit?


An old man, trying to stay sane

Offline

#5 2014-04-21 19:33:49

Jabrick
Member
Registered: 2011-05-13
Posts: 79

Re: [SOLVED] Chrooted Startx works, but blank screen from Gummiboot

Secure boot is disabled.
I have read that Gummiboot uses  EFISTUB kernels, and my attempts to make a custom entry and booting from UEFI Shell has been failing.
So I am attempting to use GRUB.
Now I am hanging at "Loading initial ramdisk".

I've run the following commands to configure grub on my system.

# grub-install --target=x86_64-efi --efi-directory=$esp --bootloader-id=grub --recheck --debug
# grub-mkconfig -o /boot/grub/grub.cfg

Some information on EFI Shell version 2.31 from my USB (I believe fs1 is indicating my USB stick)
Current running mode 1.1.2
So from what I'm getting, blk0 is my /boot partition, blk4 is my swap partition, blk5 is my root parition (I didn't seperate home and root partitions)
Anything from SATA 0x0 is from my windows harddrive, anything SATA0x1 is my Arch harddrive.
MBR is shown because in UEFI MBR is actually still there but just to indicate its invalid and should just UEFI part.(GPT)
Below is roughly what I see.

fs0: HardDisk - blk0, Sata(0x1, 0x0)/HD(1,GPT,5ad7bcf5-......
fs1: Removable BlockDevice = blk1, USB(0x8)
blk0: HardDisk fs0, Sata(0x1,0x0),HD(1,GPT,5ad7bcf5-.....)
blk1: Removable BlockDevice fs1, USB(0x8, 0x0)
blk2: (null), Sata(0x0, 0x0), HD(1, MBR, 0xe2d7a4c8,......)
blk3: (null), Sata(0x0, 0x0), HD(2, MBR, 0xe4d7a4c8,......)
blk4: (null) Sata(0x1, 0x0), HD(2, GPT, 64db3531-.....)
blk5: (null) Sata(0x1, 0x0), HD(3, GPT, b1b46412-....)
blk6: (null), Sata(0x0, 0x0)
blk7: (null), Sata(0x1,0x0)

I also tried editing the grub config from the grub menu and added mem=4G.
Also tried replaces the root parameter to "root=LABEL=/dev/sdb3
Going to try and edit more parameters.

#
# 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
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

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_gpt 
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3  923446b4-e889-4bd7-92ea-d5c3ddf3cada
else
  search --no-floppy --fs-uuid --set=root 923446b4-e889-4bd7-92ea-d5c3ddf3cada
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_archlinux ###

menuentry "Arch Linux pkg-linux kernel" --class arch-linux --class arch --class gnu-linux --class gnu --class os {
    
    if [ x$feature_all_video_module = xy ]; then
        insmod all_video
    fi
    set gfxpayload=keep
    insmod fat
    if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid  --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1  7674-CA9A
    else
        search --no-floppy --fs-uuid  --set=root 7674-CA9A
    fi
    echo 'Loading Arch Linux pkg-linux kernel ...'
    linux /vmlinuz-linux root=UUID=923446b4-e889-4bd7-92ea-d5c3ddf3cada rw  quiet
    echo 'Loading Arch Linux pkg-linux kernel initramfs ...'
    initrd /initramfs-linux.img
}


menuentry "Arch Linux pkg-linux kernel (fallback initramfs)" --class arch-linux --class arch --class gnu-linux --class gnu --class os {
    
    if [ x$feature_all_video_module = xy ]; then
        insmod all_video
    fi
    set gfxpayload=keep
    insmod fat
    if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid  --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1  7674-CA9A
    else
        search --no-floppy --fs-uuid  --set=root 7674-CA9A
    fi
    echo 'Loading Arch Linux pkg-linux kernel ...'
    linux /vmlinuz-linux root=UUID=923446b4-e889-4bd7-92ea-d5c3ddf3cada rw  quiet
    echo 'Loading Arch Linux pkg-linux kernel fallback initramfs ...'
    initrd /initramfs-linux-fallback.img
}

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

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-923446b4-e889-4bd7-92ea-d5c3ddf3cada' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt 
	insmod fat
	set root='hd1,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1  7674-CA9A
	else
	  search --no-floppy --fs-uuid --set=root 7674-CA9A
	fi
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=UUID=923446b4-e889-4bd7-92ea-d5c3ddf3cada rw  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-923446b4-e889-4bd7-92ea-d5c3ddf3cada' {
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-923446b4-e889-4bd7-92ea-d5c3ddf3cada' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt 
		insmod fat
		set root='hd1,gpt1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1  7674-CA9A
		else
		  search --no-floppy --fs-uuid --set=root 7674-CA9A
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=923446b4-e889-4bd7-92ea-d5c3ddf3cada rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initramfs-linux.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/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 ###

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

Here is some more information on my drive just to be extra sure.
"parted /dev/sdb"

Model: ATA WDC WD5000AAKS-0 (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name              Flags
 1      1049kB  1074MB  1073MB  fat32           EFI System        boot
 2      1075MB  5346MB  4271MB  linux-swap(v1)  Linux swap
 3      5347MB  500GB   495GB   ext4            Linux filesystem

What is the common problem between Gummiboot and Grub procedures?
Am I missing some log to check from these blank and hanging screens?
Also worth noting I have done a pacman -Syu so everything should be up to date.
Thanks.

EDIT: Just tried updating my initramfs with "mkinitcpio -p linux"
Still haning at initialzing ramdisk.
It did spit out two warnings about possible missing firmware for modules aic94xx and smsmdtv.

Last edited by Jabrick (2014-04-21 20:40:42)

Offline

#6 2014-04-21 20:39:32

Proinsias
Member
From: Glasgow
Registered: 2013-08-19
Posts: 121

Re: [SOLVED] Chrooted Startx works, but blank screen from Gummiboot

Is your Gigabyte bios up to date? My Z87-HD3 had a bios update in January I wasn't aware of for Intel 4th gen cpu's, missing this gave me the blank screen/boot hang sometime around the 3.14 update last week or so. I wasn't able to boot from BIOS/EFI/syslinux/grub/gummiboot/lilo. I used a usb drive to q-flash a new bios today and all is well.

Offline

#7 2014-04-21 21:20:43

Jabrick
Member
Registered: 2011-05-13
Posts: 79

Re: [SOLVED] Chrooted Startx works, but blank screen from Gummiboot

Proinsias wrote:

Is your Gigabyte bios up to date? My Z87-HD3 had a bios update in January I wasn't aware of for Intel 4th gen cpu's, missing this gave me the blank screen/boot hang sometime around the 3.14 update last week or so. I wasn't able to boot from BIOS/EFI/syslinux/grub/gummiboot/lilo. I used a usb drive to q-flash a new bios today and all is well.

Thank you so much!!!!
Yes I updated my BIOS to the version in January about the Intel 4th gen CPU, and all is peachy.
Definitley saved me alot more head banging. smile

Offline

#8 2014-04-21 22:39:42

Proinsias
Member
From: Glasgow
Registered: 2013-08-19
Posts: 121

Re: [SOLVED] Chrooted Startx works, but blank screen from Gummiboot

Glad to hear it's working.

Offline

Board footer

Powered by FluxBB