Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
booting Gentoo with UEFI failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
stone821
n00b
n00b


Joined: 18 Mar 2016
Posts: 10

PostPosted: Fri Mar 18, 2016 5:02 pm    Post subject: booting Gentoo with UEFI failed Reply with quote

I want to boot Gentoo using UEFI without bootloaders. file system is btrfs. I followed the Gentoo handbook, configured the EFIStub kernel, installed systemd, and added kernel parameters to CONFIG_CMD_LINE.
Using efibootmgr added entry. I have installed Windows. I don't create another EFI partition
Code:
efibootmgr -c -d /dev/sdb -p 2 -l '\EFI\Gentoo\gentoo.efi' -u initrd='\EFI\Gentoo\initramfs.img' -L "Gentoo Linux"


When booting my laptop, it halts. The screen is black. Any key has no response but Caps Lock led is blink.

And I uses systemrescuecd and disables secure boot.

please help me. I have struggled against this a couple of days.

Here is my .config
https://bpaste.net/show/c828f2400529

lspci -v
https://bpaste.net/show/291e1f6581b4

/etc/fstab
UUID=f69de40c-47ed-4325-ac2d-13dad8e90ea1 /mnt/tank btrfs noauto 0 0
UUID=f69de40c-47ed-4325-ac2d-13dad8e90ea1 / btrfs subvol=@,noatime,ssd,compress=lzo,space_cache,discard 0 0
UUID=f69de40c-47ed-4325-ac2d-13dad8e90ea1 /usr/portage btrfs subvol=Gentoo/portage,noatime,ssd,compress=lzo,space_cache,discard 0 0
UUID=f69de40c-47ed-4325-ac2d-13dad8e90ea1 /usr/portage/distfiles btrfs subvol=Gentoo/distfiles,noatime,ssd,space_cache,discard 0 0
UUID=f69de40c-47ed-4325-ac2d-13dad8e90ea1 /var/tmp/portage btrfs subvol=Gentoo/build-tmp,noatime,ssd,space_cache,compress=lzo,discard 0 0
UUID=97ab1f9d-8933-44ca-8e72-e33b764657a4 /home xft noauto,x-systemd.automount 0 0


Last edited by stone821 on Sun Mar 20, 2016 3:30 am; edited 1 time in total
Back to top
View user's profile Send private message
saellaven
Guru
Guru


Joined: 23 Jul 2006
Posts: 505

PostPosted: Fri Mar 18, 2016 10:02 pm    Post subject: Reply with quote

do you have the EFI framebuffer support compiled in?

CONFIG_FB_EFI=y
Back to top
View user's profile Send private message
stone821
n00b
n00b


Joined: 18 Mar 2016
Posts: 10

PostPosted: Sat Mar 19, 2016 9:54 am    Post subject: Reply with quote

saellaven wrote:
do you have the EFI framebuffer support compiled in?

CONFIG_FB_EFI=y

Thanks for your reply. I forgot to set it and CONFIG_FRAMEBUFFER_CONSOLE.

but gentoo cannot boot yet. It showes "vfs unable to mount root fs on unknown-block(8,27)"
I tried to set CMD_LINE to "root=/dev/ sdb5 rootfstype=btrfs rootflags= subvol=@, ssd, compress=lzo, discard, noatime, space- cache init=/ usr/ lib/ systemd/ systemd" or root=PARTUUID=XXXXXXXXXXXX rootfstype=btrfs rootflags= subvol=@, ssd, compress=lzo, discard, noatime, space- cache init=/ usr/ lib/ systemd/ systemd". These don't work.
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Sat Mar 19, 2016 11:18 pm    Post subject: Reply with quote

Quote:
"vfs unable to mount root fs on unknown-block(8,27)"

Weird number. Looks a bit too high for me. How many drives you have there?
Also, do you have a valid init? This error pops up pretty often when kernel is unable to start init (missing or not executable).

And... You have several spaces in your paths. Did you have them in your actual kernel's boot line too?
Back to top
View user's profile Send private message
stone821
n00b
n00b


Joined: 18 Mar 2016
Posts: 10

PostPosted: Sun Mar 20, 2016 12:47 am    Post subject: Reply with quote

szatox wrote:
Quote:
"vfs unable to mount root fs on unknown-block(8,27)"

Weird number. Looks a bit too high for me. How many drives you have there?
Also, do you have a valid init? This error pops up pretty often when kernel is unable to start init (missing or not executable).

And... You have several spaces in your paths. Did you have them in your actual kernel's boot line too?


I have two drives, one hdd and one ssd. unknown-block(8,27) the number is changed when I changes PARTUUID to /dev/sdb.

Code:
And... You have several spaces in your paths. Did you have them in your actual kernel's boot line too?

Sorry, I don't understand this. I have two partition, one for / (btrfs) ,one for home (xft), and one for EFI shared with windows
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43200
Location: 56N 3W

PostPosted: Sun Mar 20, 2016 8:53 am    Post subject: Reply with quote

stone821,

(8,27) is the major,minor device number of the root block device that the kernel is trying to mount.
8,0 is sda
8,16 is sdb
8,32 is sdc. Each sd is allowed 15 partitions, so 27 is /dev/sdb10

That you get numbers pointing to a real block device normally means the kernel cannot read the device.
Either root is not sdb10 or the filesystem driver is missing from the kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
stone821
n00b
n00b


Joined: 18 Mar 2016
Posts: 10

PostPosted: Sun Mar 20, 2016 4:43 pm    Post subject: Reply with quote

NeddySeagoon wrote:
stone821,

(8,27) is the major,minor device number of the root block device that the kernel is trying to mount.
8,0 is sda
8,16 is sdb
8,32 is sdc. Each sd is allowed 15 partitions, so 27 is /dev/sdb10

That you get numbers pointing to a real block device normally means the kernel cannot read the device.
Either root is not sdb10 or the filesystem driver is missing from the kernel.


Sorry. it's my fault. the device number should be (8,21). My root fs is on sdb5. efi is on sdb2. Please help me.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43200
Location: 56N 3W

PostPosted: Sun Mar 20, 2016 7:49 pm    Post subject: Reply with quote

stone821,

What does your initrd do?
Your kernel configuration looks like it should boot without any help.

Instead ot root=/dev/sdb5, try root=PARTUUID=<partuuid_ot_root>, drop the quiet option for now too.
Thats not the filesystem UUID.

Since root is not mounted, systemd as not yet been run.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
axl
Guru
Guru


Joined: 11 Oct 2002
Posts: 537
Location: Romania

PostPosted: Sun Mar 20, 2016 10:29 pm    Post subject: Reply with quote

maybe add a rootwait as bootflag. some of my systems with weird drives require that flag to wait until all HW is detected.

other things i would consider doing is fixing framebuffer to be able to read output from booting, and maybe this way see what drives kernel detects. could be possible it detects them in other order or smth like that.
Back to top
View user's profile Send private message
stone821
n00b
n00b


Joined: 18 Mar 2016
Posts: 10

PostPosted: Wed Mar 23, 2016 1:06 am    Post subject: Reply with quote

I changed to PARTUUID, removed quiet. It doesn't work too.
The screenshot us following
https://imgur.com/NH1htiE
Back to top
View user's profile Send private message
axl
Guru
Guru


Joined: 11 Oct 2002
Posts: 537
Location: Romania

PostPosted: Wed Mar 23, 2016 1:36 am    Post subject: Reply with quote

seems to me kernel sees the drives and partition. next, make sure you have btrfs compiled into the kernel.
Back to top
View user's profile Send private message
stone821
n00b
n00b


Joined: 18 Mar 2016
Posts: 10

PostPosted: Fri Mar 25, 2016 1:08 am    Post subject: Reply with quote

axl wrote:
seems to me kernel sees the drives and partition. next, make sure you have btrfs compiled into the kernel.

Thanks for your replay. I'm sure I have btrfs compiled into the kernel
Back to top
View user's profile Send private message
olejseba
Tux's lil' helper
Tux's lil' helper


Joined: 04 Sep 2005
Posts: 95

PostPosted: Sun Mar 27, 2016 5:02 pm    Post subject: Reply with quote

Sorry for my Engish.
:roll:
Try something like this. Change this for your settings. I know you have the same inside kernel is, but for me only this way works for the UEFI.
I think also your initrd isn't load.

Code:

efibootmgr -c -d /dev/sdb -p 2 -l '\EFI\Gentoo\gentoo.efi' -u 'init=/usr/lib/systemd/systemd root=/dev/XXXXX/XXXXX initrd='\initramfs.img' dolvm rootfstype=XXXX raid=noautodetect ' -L "Gentoo Linux"


Last edited by olejseba on Thu Mar 31, 2016 7:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
gcyoung
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2007
Posts: 135
Location: England

PostPosted: Thu Mar 31, 2016 6:49 pm    Post subject: booting btrfs Reply with quote

I had a similar problem. I don't use a UEFI bootup, but I could not boot from btrfs nor automount btrfs formatted disks. i read somewhere, I forget where, but I think it was from an ARCH web page, that the kernel must be loaded before the btrfs is recognized.

The end result was that I reverted to a small ext4 partition for my system and mounted a "/data" btrfs file after bootup via a small script.

A look at "https://forums.gentoo.org/viewtopic-t-923554-highlight-btrfs.html" might be helpful
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum