You are not logged in.
Hi,
Replaced HDD with SSD on my laptop, wanting to reinstall Arch. The laptop is a HP Probook 6460b which has both UEFI and a BIOS.
I had a working Arch install on my HDD using AIF and the automatic partitioning and so forth. I'm guessing this probably meant I had Grub legacy and MBR, and that it didn't take into consideration I had UEFI.
Now I want to try GRUB2 and GPT, and since my last install probably didn't take any precautions for UEFI I've tried to install GRUB2 + GPT in a normal fashion following the wiki step for step, using gdisk etc. I've also tried to make a special UEFI partition, and just plain simple /boot as first partition. The result is always the same: "BootDevice Not Found". I don't understand what's so different with my current setup and my older one (keep in mind that was a plain default AIF setup using GRUB (legacy)).
My current setup is GRUB2 using GPT, and this is my partition table/overview:
device | label | size | partition type id | filesystem
-------|-------|------|--------------------|-----------
sda1 | bios | 2M | ef02 | <none>
sda2 | boot | 100M | 8300 | ext4
sda3 | swap | 1G | 8200 | mkswap,swapon
sda4 | tmp | 1G | 8300 | ext4
sda5 | root | 15G | 8300 | ext4
sda6 | home | 102G | 8300 | ext4Note that the first partition is a 2 MiB partition with no filesystem as noted in the GPT-part of the SSD wiki-article (warning #2).
So I just have to ask if I've understood it correctly:
- If I have both UEFI and BIOS, shouldn't it be possible to ignore the UEFI and just use a normal GRUB(2) + GPT/MBR setup?
Last edited by Occi (2012-07-29 21:44:16)
Offline
According to this section of the GRUB2 wiki-article, it seems I don't need the 2 MiB partition in the beginning when using UEFI + BIOS. However I've tried this and didn't really change anything, same error message ("BootDevice not found").
This partition is also not required if the system is UEFI based, as no embedding of bootsectors takes place in that case. Syslinux does not require this partition.
Edit:
I'm also wondering which flags my seperate /boot -partition should have. I've tried both without any, "boot" and "bios_grub" without luck, so I don't think this is the main issue, however it should be correct if I come over whatever the main issue is.
Last edited by Occi (2012-07-29 23:35:15)
Offline
I am using GPT with grub2 on Arch, but since I have had no problems with it, I don't know why it is giving you trouble. If there is anything on my system I can check for you, I would be happy to do so,
Tim
Offline
Alrighty, there are some general questions that might tell me if you have a simular system or not first, and if so maybe there's anything I've overlooked?
Are you using a seperate /boot -partition?
Do you have UEFI and/or BIOS?
Was the default grub-mkconfig and so on enough to get your bootloader working, or did you have to do anything special?
Do you have this 2 MiB partition?
Thanks!
Offline
I have a nothing but hate relationship with GRUB2, most likely due to my lack of understanding. I tried many times to get it installed on my SSD. Finally gave up and used syslinux, very happy now. Sorry for not answering your question but just a thought for you.
I used the archboot ISO.
Last edited by doug piston (2012-07-30 01:48:52)
Offline
I initially wanted to use Syslinux, but switched it out for GRUB2 when I tried to make a partition table and bootloader for an UEFI setup since Syslinux doesn't support this. However if I'm correct and I don't need to do anything mysterious to make UEFI + BIOS work (seeing as AFI probably didn't, not sure though), then maybe Syslinux might work as intended. Going to try it out again, thanks for mentioning it.
Beginning to get pretty sick of all of this by now though. Been repartitioning and reformatting quite a few times now seeing as there's these small partitions in the beginning of the partition table one might have to make and so forth it's not enough to just change bootloader.
Offline
Alrighty, there are some general questions that might tell me if you have a simular system or not first, and if so maybe there's anything I've overlooked?
Are you using a seperate /boot -partition?
Do you have UEFI and/or BIOS?
Was the default grub-mkconfig and so on enough to get your bootloader working, or did you have to do anything special?
Do you have this 2 MiB partition?Thanks!
I am not using a separate /boot partition.
I have a hybrid system and I am using BIOS boot.
I did not do anything special that I recall.
Yes, I have a special partition, I think mine is 1 MB, but I will check and report back.
However, I did not initially install to a gpt disk. I had my system running and configured, then I used the gdisk program to convert the disk from MBR to GPT. This was not any specific plan, it is just that I got a new computer which was, of course, MBR partitioned, then I installed Linux, then at a later date decided I needed to use GPT partitioning.
Here is my favorite link where I learned to use GPT. Maybe you will find something helpful there, too.
http://www.rodsbooks.com/gdisk/
Tim
Offline
Occi wrote:Alrighty, there are some general questions that might tell me if you have a simular system or not first, and if so maybe there's anything I've overlooked?
Are you using a seperate /boot -partition?
Do you have UEFI and/or BIOS?
Was the default grub-mkconfig and so on enough to get your bootloader working, or did you have to do anything special?
Do you have this 2 MiB partition?Thanks!
I am not using a separate /boot partition.
I have a hybrid system and I am using BIOS boot.
I did not do anything special that I recall.
Yes, I have a special partition, I think mine is 1 MB, but I will check and report back.However, I did not initially install to a gpt disk. I had my system running and configured, then I used the gdisk program to convert the disk from MBR to GPT. This was not any specific plan, it is just that I got a new computer which was, of course, MBR partitioned, then I installed Linux, then at a later date decided I needed to use GPT partitioning.
Here is my favorite link where I learned to use GPT. Maybe you will find something helpful there, too.
http://www.rodsbooks.com/gdisk/
Tim
The special Boot BIOS partition needs to be +2MB at the beginning of the disk, otherwise it will not work (GRUB2). The partition code (set in gdisk) is ef02. I set up my desktop and laptop with GPT disks, using btrfs for root, with the +2MB partition at the beginning of the disk with GRUB2 and it worked perfectly, so maybe if you'd like to give it a try (again) try creating a +2MB partition. ![]()
Offline
I am using GPT-BIOS, so I do not have any issues as mentioned by OP
[root@KRISHNA san2ban]# gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.5
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 312315562 sectors, 148.9 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): CECFDE10-048D-4CC1-9EF9-63A420410BE0
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 312315528
Partitions will be aligned on 2048-sector boundaries
Total free space is 8157 sectors (4.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 6143 2.0 MiB EF02 BIOS_GRUB2
2 6144 1048576 509.0 MiB EF00 EFI System
3 1054720 2103295 512.0 MiB 8300 ARCHLINUX_BOOT
4 2103296 6297599 2.0 GiB 8200 ARCHLINUX_SWAP
5 6297600 21657599 7.3 GiB 8300 ARCHLINUX_ROOT
6 21657600 312315528 138.6 GiB 8300 ARCHLINUX_HOMESatyam eva jayate
Registered linux user #535257
Offline
Tried both Syslinux + GPT and once with MBR again, still the same error. It seems no matter what I do I can't get a working bootloader. If I can't get it to work soon I guess I'll have to try Archbang or whatever instead. Really would like to get it working though. Current config with Syslinux and MBR:
/etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
# /dev/sda3
UUID=e8e640d1-4c01-401e-9712-54ec02349091 / ext4 defaults,noatime,discard 0 1
# /dev/sda1
UUID=9c0f84e5-de7d-427f-bb3b-dcdbc8bfa6b7 /boot ext2 defaults,noatime 0 2
# /dev/sda4
UUID=5a3e00ac-91e3-410c-8630-425301a07afc /home ext4 defaults,noatime,discard 0 2
# /dev/sda2
UUID=e78b60b0-b86e-4620-9a30-b3fe7690c3da none swap defaults,noatime 0 0fdisk -l /dev/sda
Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3ce9ad2d
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 83 Linux
/dev/sda2 206848 2303999 1048576 82 Linux swap / Solaris
/dev/sda3 2304000 33761279 15728640 83 Linux
/dev/sda4 33761280 250069679 108154200 83 Linux/boot/syslinux/syslinux.cfg (default from 'syslinux-install_update script -iam')
# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
#
# Comboot modules:
# * menu.c32 - provides a text menu
# * vesamenu.c32 - provides a graphical menu
# * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
# * hdt.c32 - hardware detection tool
# * reboot.c32 - reboots the system
# * poweroff.com - shutdown the system
#
# To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux.
# If /usr and /boot are on the same file system, symlink the files instead
# of copying them.
#
# If you do not use a menu, a 'boot:' prompt will be shown and the system
# will boot automatically after 5 seconds.
#
# Please review the wiki: https://wiki.archlinux.org/index.php/Syslinux
# The wiki provides further configuration examples
DEFAULT arch
PROMPT 0 # Set to 1 if you always want to display the boot: prompt
TIMEOUT 50
# You can create syslinux keymaps with the keytab-lilo tool
#KBDMAP de.ktl
# Menu Configuration
# Either menu.c32 or vesamenu32.c32 must be copied to /boot/syslinux
UI menu.c32
#UI vesamenu.c32
# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
MENU TITLE Arch Linux
#MENU BACKGROUND splash.png
MENU COLOR border 30;44 #40ffffff #a0000000 std
MENU COLOR title 1;36;44 #9033ccff #a0000000 std
MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel 37;44 #50ffffff #a0000000 std
MENU COLOR help 37;40 #c0ffffff #a0000000 std
MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std
MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07 37;40 #90ffffff #a0000000 std
MENU COLOR tabmsg 31;40 #30ffffff #00000000 std
# boot sections follow
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*
LABEL arch
MENU LABEL Arch Linux
LINUX ../vmlinuz-linux
APPEND root=/dev/sda3 ro
INITRD ../initramfs-linux.img
LABEL archfallback
MENU LABEL Arch Linux Fallback
LINUX ../vmlinuz-linux
APPEND root=/dev/sda3 ro
INITRD ../initramfs-linux-fallback.img
#LABEL windows
# MENU LABEL Windows
# COM32 chain.c32
# APPEND hd0 1
LABEL hdt
MENU LABEL HDT (Hardware Detection Tool)
COM32 hdt.c32
LABEL reboot
MENU LABEL Reboot
COM32 reboot.c32
LABEL off
MENU LABEL Power Off
COMBOOT poweroff.comOffline
I had a similar problem.
UEFI + GPT + GRUB2.
My motherboard supports both bios and UEFI and standard both are enabled.
But I only managed to get everything working when I explicitely disabled bios on the motherboard.
Hope this helps you.
Offline
Hmm, might be a solution, but an odd one. I now tried installing Archbang and it worked flawlessly with the default GRUB config etc., so I shouldn't need to disable the BIOS. At the moment I'm too sick of this bootloader issue that I'll stick with Archbang. Going on vacation soon, and I have to have a working laptop by then. But I really wanted to have a clean arch install since I wanted to test out multiple WMs etc. Now it's going to be a bit messier.
Not going to mark this as solved even though it's "solved" for now. Might try to fix a clean Arch install if someone comes with a possible solution, or maybe try more when I'm back from vacation, so please continue to reply if you have an idea what my issue is, I don't consider this as a solution. Thanks.
Offline
I have a nothing but hate relationship with GRUB2
No kidding. This proliferation of half-assed bootloaders is maddening. What were the Grub2 folks thinking? That fellow Rod Smith (his website posted above is excellent) called it buggy and complex. BTW he mentions, "Officially, GRUB Legacy is not GPT-aware and so can't boot anything from a GPT disk. In practice, though, patched versions of GRUB Legacy are common, and many distributions ship with them." It might be worth trying one of them.
http://www.rodsbooks.com/gdisk/booting.html
Offline
The special Boot BIOS partition needs to be +2MB at the beginning of the disk, otherwise it will not work (GRUB2). The partition code (set in gdisk) is ef02. I set up my desktop and laptop with GPT disks, using btrfs for root, with the +2MB partition at the beginning of the disk with GRUB2 and it worked perfectly, so maybe if you'd like to give it a try (again) try creating a +2MB partition.
Well, I don't want to have an argument, but I have checked and my Boot Bios partition is 1 MB at the beginning of the disk, and my system has been working just fine this way for months.
Tim
Offline
I use a 2MB bios boot partition, and I just put it whereever I could fit it since I opted to use my previous partiton layout. My system works fine. In fact my new SSD the bios boot partition is also randomly placed and it works fine as well. I did end up using legacy bios though rather than uefi... just seemed easier without any real advantages for learning a new system.
Edit: I just realized that this thread has not been posted to in over a week... though maybe this info will help someone else.
Last edited by WonderWoofy (2012-08-08 03:30:03)
Offline