You are not logged in.

#1 2013-12-21 16:11:24

qwertyuiop924
Member
From: CT, USA
Registered: 2013-12-21
Posts: 8

Broken boot loader

I have almost exactly followed the beginners guide, only differing in using only single partition, instead of many. I am booting with syslinux, using ext4, and GPT. My system (quad core sandy bridge i5, relatively recent intel motherboard, 500GB HD) I have installed the packages for GPT in syslinux, and checked by boot order. syslinux-install_update -i -a -m says it has been installed, but when I boot, it doesn't recognize anything bootable, and jumps straight to netboot. The same occurs with a ( possibly incorrectly configured) grub install. The partition is flagged as bootable, and, to be honest, I don't know what's wrong. Here is an excerpt of my syslinux.cfg, if it helps:

LABEL arch
         MENU LABEL Arch Linux
         LINUX ../vmlinuz-linux
         APPEND root=/dev/sda1 rw
         INTRID ../initramfs-linux.img

I have tried this half a dozen times, and I don't know what to do. Help!

Offline

#2 2013-12-21 18:59:54

sciifer
Member
From: Cumbria, UK
Registered: 2013-12-21
Posts: 9
Website

Re: Broken boot loader

If you're on a BIOS system, you need a BIOS Boot Partition at the start of the disk, because BIOSes know absolutely nothing about GPT disks and if they can't find a traditional boot record, they skip the disk. Try this https://wiki.archlinux.org/index.php/GR … structions


Rob Is King.

Offline

#3 2013-12-21 19:33:19

qwertyuiop924
Member
From: CT, USA
Registered: 2013-12-21
Posts: 8

Re: Broken boot loader

Oops, looks like I didn't RTFM as much as I thought I had. That exactly describes my problem. Will tell you if that still breaks

Offline

#4 2013-12-21 23:09:54

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

Re: Broken boot loader

AFAIK, SYSLINUX does not use a BIOS Boot Partition; that partition is used exclusively by GRUB, and then only when booting in BIOS/CSM/legacy mode.

Chances are the problem has to do with the boot mode -- BIOS/CSM/legacy vs. EFI/UEFI. You may need to adjust a firmware setting to use the same boot mode as the boot loader you installed. You may also need to tweak your partition table, as described here, to work around firmware weirdness related to BIOS-mode booting from a GPT disk.

Offline

#5 2013-12-21 23:19:33

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Broken boot loader

sciifer wrote:

If you're on a BIOS system, you need a BIOS Boot Partition at the start of the disk, because BIOSes know absolutely nothing about GPT disks and if they can't find a traditional boot record, they skip the disk. Try this https://wiki.archlinux.org/index.php/GR … structions

Wrong.
https://wiki.archlinux.org/index.php/Syslinux

Offline

#6 2013-12-21 23:34:55

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Broken boot loader

Indeed, syslinux does not need any special partitions. All it needs is gptmbr.bin in the MBR and the legacy boot flag set. syslinux-install_update does both for you:

        if [[ "$ptb" = MBR ]]; then
            mbrfile="$bios_libpath/mbr.bin"
        elif [[ "$ptb" = GPT ]]; then
            mbrfile="$bios_libpath/gptmbr.bin"
        fi

        if dd bs=440 count=1 conv=notrunc if="$mbrfile" of="$disk" &> /dev/null; then
            echo "Installed MBR ($mbrfile) to $disk"
        else
            echo "Error Installing MBR ($mbrfile) to $disk"
            exit 4
        fi
        if [[ "$ptb" = MBR ]]; then
            if sfdisk "$disk" -A "$partnum" &>/dev/null; then
                echo "Boot Flag Set - $part"
            else
                echo "FAILED to Set the boot flag on $part"
                exit 3
            fi
        elif [[ "$ptb" = GPT ]]; then
            if sgdisk "$disk" --attributes="$partnum":set:2 &>/dev/null; then
                echo "Attribute Legacy Bios Bootable Set - $part"
            else
                echo "FAILED to set attribute Legacy BIOS Bootable on $part"
                exit 3
            fi
        fi

That's assuming you're booting in BIOS mode. The script handles *only* BIOS mode:

This script will install or upgrade Syslinux (for BIOS only)

If you're booting in EFI mode and want to use syslinux, you need to install it manually using the instructions on the wiki page teateawhy linked to.

Offline

#7 2013-12-22 15:04:30

qwertyuiop924
Member
From: CT, USA
Registered: 2013-12-21
Posts: 8

Re: Broken boot loader

I had to mark as bootable manually. I can't find the link that suggested that, but I was pretty sure it came from this topic. So thanks everybody. Also, below is why I didn't follow sciifer's advice, good as it was.

@sciifer
GRUB would not install on my system this time. I don't know why.

Offline

#8 2013-12-23 21:51:44

sciifer
Member
From: Cumbria, UK
Registered: 2013-12-21
Posts: 9
Website

Re: Broken boot loader

Yes, I stand corrected. The partition I was referring to wasn't the BIOS Boot Partition, but rather a "Protective MBR" that begins at the start. However, I don't think that's the problem here. The wiki says Syslinux on GPT requires the partition containing /boot  (whether that be the root partition or a seperate one) needs the legacy_boot flag set on GParted or whatever partition tool you use. Nethertheless, it's here https://wiki.archlinux.org/index.php/Sy … tion_table


Rob Is King.

Offline

Board footer

Powered by FluxBB