You are not logged in.

#1 2013-04-17 01:57:08

nmcastro
Member
Registered: 2013-04-16
Posts: 5

BIOS trouble - can't give a better description (sorry)

Hi everyone!

I'm just finishing a fresh install of Arch on my laptop. Everything's been working great, the wiki and the forums have all the help I've needed so far (props to all the community, I mean it big_smile )!

There's just this one thing that's really making me confused... Whenever I reboot or power up the laptop, I get stuck on the BIOS menu. The workaround is forcing the boot from the HD. But I was wondering if I could avoid this and make my HD... I dunno... visible(?) again. I don't have a clue about what to do.

I've disabled UEFI Boot support to avoid having to make the system work with it. I've ran other distros in the past and everything was smooth.

Maybe I did something wrong with GRUB?

Thanks for any help!

Offline

#2 2013-04-17 02:20:44

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: BIOS trouble - can't give a better description (sorry)

What is the "BIOS menu"? What does "stuck" mean? Does your keyboard stop working or something? What does it mean to "force the boot from HD"? In what way is the HD "invisible"?

Offline

#3 2013-04-17 03:06:19

nmcastro
Member
Registered: 2013-04-16
Posts: 5

Re: BIOS trouble - can't give a better description (sorry)

drcouzelis,

Thanks for your reply.

When I say "BIOS menu", I'm referring to the setup utility you normally access whenever you want to change your boot sequence, for example. I don't get stuck in the sense that I lose control over the input hardware, I'm just directed to that menu without request. There's actually an option in the setup that allows you to override the boot device, forcing it to run. That's what I meant when I referred to "forcing the boot from the HD".

When I say that the HD is "invisible"... well,  that was just a lousy choice of words smile. What I intended to say was that instead having a normal boot sequence, I'm directed to the BIOS setup menu, as if I didn't have a hard drive with a bootable partition.

And I'll have to admit that I wasn't very clear in my first post, I apologise. I hope I've made it simpler now smile!

P.S.: I'm going to restore the defaults in the setup, see what happens.

Offline

#4 2013-04-17 03:44:27

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: BIOS trouble - can't give a better description (sorry)

That explains your situation much better, but I'm still confused. Isn't the "Boot from hard drive" option what you want?

Offline

#5 2013-04-17 03:58:14

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: BIOS trouble - can't give a better description (sorry)

First, you've got an EFI, not a BIOS, although it sounds like you've done a BIOS/CSM/legacy-mode installation.

Unfortunately, the answer to your question is likely to be extremely system-specific, so unless you say what model you've got and somebody on this forum happens to have the same model and have it configured in the same way, you're unlikely to get a response with step-by-step instructions. It may also be necessary to have some low-level information on how your system is partitioned and what boot loaders you've got installed. You can collect that information by running the Boot Info Script and posting the RESULTS.txt file that it produces, either between code tags or as a link.

If you've got a BIOS/CSM/legacy-mode installation, though, chances are you need to fiddle with firmware options related to BIOS/CSM/legacy and/or EFI/UEFI support. You say you've disabled EFI support, and that's what I'd expect would be required; but there may be some other, less obvious, option that's also needed. You'll just need to dig into your firmware's settings to find anything related to boot order or boot mode. Failing that, you could go the other way: Do an EFI-mode install and set up an EFI-mode boot loader. It's conceivable that will work more smoothly on your hardware.

Offline

#6 2013-04-24 01:55:56

nmcastro
Member
Registered: 2013-04-16
Posts: 5

Re: BIOS trouble - can't give a better description (sorry)

Thanks for all the help you ahve provided so far smile.

So...

drcouzelis wrote:

Isn't the "Boot from hard drive" option what you want?

Yes, that is the option I have marked. But the system fails to boot from there at startup. As there are no other bootable devices, I get redirected to the setup.
Somehow, srs5694 did a better job of describing the issue than myself. Brilliant tongue!

srs5694 wrote:

First, you've got an EFI, not a BIOS, although it sounds like you've done a BIOS/CSM/legacy-mode installation.

Exactly. I did so because the installation procedure is much simpler (as in less time consuming) if you opt to make a legacy-mode install. When I did so, I was aware that I would have to cancel the EFI boot support. At the time, I just assumed that it would be enough and that I wouldn't experience any issues. That, as has been shown, does not work out the problem.

srs5694 wrote:

You can collect that information by running the Boot Info Script and posting the RESULTS.txt file that it produces, either between code tags or as a link.

Thanks for the tip smile Here it is. It's a bit long though.

 

                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 40 
    of the same hard drive for core.img. core.img is at this location and 
    looks in partition 99 for .

sda1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Arch Linux ()
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda3: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda4: __________________________________________________________________________

    File system:       BIOS Boot partition
    Boot sector type:  Grub2's core.img
    Boot sector info: 

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1                   1   976,773,167   976,773,167  ee GPT


GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sda1           2,048    62,916,607    62,914,560 Data partition (Linux)
/dev/sda2      62,916,608   968,886,271   905,969,664 Data partition (Linux)
/dev/sda3     968,886,272   976,773,134     7,886,863 Swap partition (Linux)
/dev/sda4              40         2,047         2,008 BIOS Boot partition

"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        0d078839-c740-499a-9a06-975515460b8a   ext4       
/dev/sda2        ca54d933-bfdb-4590-b131-135513c29c79   ext4       
/dev/sda3        fd4cf75d-ac05-4945-8b3c-772375f65141   swap       
/dev/sda4                                                          

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda1        /                        ext4       (rw,relatime,data=ordered)
/dev/sda2        /home                    ext4       (rw,relatime,data=ordered)


=========================== sda1/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_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  0d078839-c740-499a-9a06-975515460b8a
else
  search --no-floppy --fs-uuid --set=root 0d078839-c740-499a-9a06-975515460b8a
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
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch GNU/Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-0d078839-c740-499a-9a06-975515460b8a' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  0d078839-c740-499a-9a06-975515460b8a
	else
	  search --no-floppy --fs-uuid --set=root 0d078839-c740-499a-9a06-975515460b8a
	fi
	echo	'Loading Linux core repo kernel ...'
	linux	/boot/vmlinuz-linux root=UUID=0d078839-c740-499a-9a06-975515460b8a ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/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-0d078839-c740-499a-9a06-975515460b8a' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  0d078839-c740-499a-9a06-975515460b8a
	else
	  search --no-floppy --fs-uuid --set=root 0d078839-c740-499a-9a06-975515460b8a
	fi
	echo	'Loading Linux core repo kernel ...'
	linux	/boot/vmlinuz-linux root=UUID=0d078839-c740-499a-9a06-975515460b8a ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/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 ###
--------------------------------------------------------------------------------

=============================== sda1/etc/fstab: ================================

--------------------------------------------------------------------------------
# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# /dev/sda1
UUID=0d078839-c740-499a-9a06-975515460b8a	/         	ext4      	rw,relatime,data=ordered	0 1

# /dev/sda2
UUID=ca54d933-bfdb-4590-b131-135513c29c79	/home     	ext4      	rw,relatime,data=ordered	0 2

# /dev/sda3
UUID=fd4cf75d-ac05-4945-8b3c-772375f65141	none      	swap      	defaults  	0 0

--------------------------------------------------------------------------------

=================== sda1: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)


=============================== StdErr Messages: ===============================

cat: /tmp/BootInfo-8vY70eWZ/Tmp_Log: No such file or directory
  No volume groups found
mdadm: No arrays found in config file or automatically
srs5694 wrote:

Do an EFI-mode install and set up an EFI-mode boot loader. It's conceivable that will work more smoothly on your hardware.

That is, perhaps, the most elegant solution. I must add, though, that I would want to avoid it because it means that I would have to go through the whole process of configuring the system again. Laziness aside smile, I don't believe that this issue is causing me any trouble with my daily interaction with the computer. All the tasks run normally, the workflow is superb, the disk seems to be working flawlessly...

The only thing that's not so good is that every time I power up the laptop, I'm flashed with that awfully bluish setup tongue.

BTW, my laptop is a Samsung NP305U1A-A02: with the difference that mine has a portuguese keyboard layout (A02PT).

srs5694 wrote:

chances are you need to fiddle with firmware options related to BIOS/CSM/legacy and/or EFI/UEFI support.

I'm very fond of the word fiddle... What if I installed a free, open-source BIOS in place of my EFI? That seems to be quite risky though.

Yeah, my dream laptop as always been the infamous Lemote. Fundamentalism all the way man smile!

Offline

#7 2013-04-24 02:10:36

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,551

Re: BIOS trouble - can't give a better description (sorry)

I think there was a thread that had something to do with buggy samsung uefi implementations.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#8 2013-04-24 02:15:19

nmcastro
Member
Registered: 2013-04-16
Posts: 5

Re: BIOS trouble - can't give a better description (sorry)

I'll look it up. Thanks for the tip!

Offline

#9 2013-04-24 03:06:16

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: BIOS trouble - can't give a better description (sorry)

Given that you've got a Samsung laptop, it's probably best that you stick with a BIOS-mode boot. The only suspicious thing I see in your Boot Info Script output is the following:

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 40 
    of the same hard drive for core.img. core.img is at this location and 
    looks in partition 99 for .

The trouble is that there's no partition 99 in your setup. This is most likely a bug in Boot Info Script's identification, though, since if it were a problem at this point your computer probably wouldn't boot at all. Thus, I return to my original suggestion that you peruse your firmware settings to see if there might be some option that could help.

Failing that, I do have one more suggestion: You could use GPT fdisk (gdisk) to convert your disk layout from GPT to MBR. (See this section of the documentation for details of how to do this.) Once you've made this conversion, you'll need to re-install GRUB, and probably do that from an emergency disc/live CD, so be prepared for this requirement. I make this suggestion because some EFIs try to be a little too "smart" about their boot modes; they look at the partition table, partition flags, or for particular types of partitions in order to determine the boot mode. It's conceivable that Samsung's EFI is seeing a GPT layout, assuming that the disk holds an EFI boot loader, and then trying to boot it. This fails, of course, so you're dropped back to the firmware's boot manager, which gives you a manual BIOS/CSM/legacy boot option. If the disk had an MBR layout rather than a GPT, it's possible that the firmware wouldn't make the incorrect assumption that the disk holds an EFI-mode boot loader, and would do a straight-up BIOS/CSM/legacy boot.

Offline

#10 2013-04-24 03:44:54

nmcastro
Member
Registered: 2013-04-16
Posts: 5

Re: BIOS trouble - can't give a better description (sorry)

Thanks for your reply srs5694. Appreciate all the help!

srs5694 wrote:

Given that you've got a Samsung laptop, it's probably best that you stick with a BIOS-mode boot.

(...)

Thus, I return to my original suggestion that you peruse your firmware settings to see if there might be some option that could help.

I'm going to head that way. And if it's true that this has been an issue in Samsung laptops, maybe there's even a fix somewhere out there. Perhaps there's even a way to change the way the EFI behaves from scratch, but I wouldn't know! I'll have to browse around for that.

If it fails I'll change the layout to MBR. I've had other "distros" on the laptop, and they all had that layout. And it always ran smoothly.

Offline

Board footer

Powered by FluxBB