Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
EFI first installation
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
UX.MAN
n00b
n00b


Joined: 09 Mar 2013
Posts: 72

PostPosted: Sun Mar 03, 2019 6:06 am    Post subject: EFI first installation Reply with quote

Hello everyone,

I'm new to the EFI/UEFI world and have been trying to make my system boot with a custom kernel. I did read the UEFI documentation, but I still don't understand how it should be done. My current partition table is GPT and looks like this:

Code:
/dev/sdc1 -->  /boot/efi
/devsdc2 --> swap
/dev/sdc3 -> /


The system is installed on an SSD disk through a USB-to-SATA cable adapter. I did get kernel panics during boot because it wasn't able to recognize the root file system; grub is setup to look for the root fs through it's UUID. This method works with a genkernel, but does not with the custom kernel, as I stated previously.[/code][/url]
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Sun Mar 03, 2019 8:12 am    Post subject: Re: EFI first installation Reply with quote

Will you please show your output of
Code:
# parted /dev/sdc print
as mentioned in https://wiki.gentoo.org/wiki/EFI_System_Partition#Characteristics and your related kernel configuration
Back to top
View user's profile Send private message
UX.MAN
n00b
n00b


Joined: 09 Mar 2013
Posts: 72

PostPosted: Sun Mar 03, 2019 1:39 pm    Post subject: Reply with quote

Code:
# parted /dev/sdb print
Model:  SABRENT (scsi)
Disk /dev/sdb: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  106MB   105MB   fat32                 boot, esp
 2      106MB   4401MB  4295MB  linux-swap(v1)
 3      4401MB  120GB   116GB   ext4


As you may have noticed, the block device's identifier has changed from /dev/sdc to /dev/sdb. This is because I removed a second USB drive I had on this computer and the main reason why I'm trying to use either the UUID or LABEL tags in the grub's config.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6963
Location: Saint Amant, Acadiana

PostPosted: Sun Mar 03, 2019 2:07 pm    Post subject: Reply with quote

For setups without initrd you need to use PARTUUID.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Mar 03, 2019 3:17 pm    Post subject: Reply with quote

UX.MAN,

Quote:
The system is installed on an SSD disk through a USB-to-SATA ...

All the USB support must be built into the kernel.

The kernel command line will need rootwait or rootdelay=7 so that the kernel can initialise USB before it tries to mount the root filesystem.
Normally, root is mounted before USB is initialised. That's a verybadthing when root is on USB.
_________________
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
UX.MAN
n00b
n00b


Joined: 09 Mar 2013
Posts: 72

PostPosted: Wed Mar 06, 2019 1:33 pm    Post subject: Reply with quote

NeddySeagoon wrote:
UX.MAN,

Quote:
The system is installed on an SSD disk through a USB-to-SATA ...

All the USB support must be built into the kernel.

The kernel command line will need rootwait or rootdelay=7 so that the kernel can initialise USB before it tries to mount the root filesystem.
Normally, root is mounted before USB is initialised. That's a verybadthing when root is on USB.


Does it mean that I won't be able to boot root on a usb device? Or will the rootdelay=7 will help me?
Back to top
View user's profile Send private message
UX.MAN
n00b
n00b


Joined: 09 Mar 2013
Posts: 72

PostPosted: Wed Mar 06, 2019 3:04 pm    Post subject: Reply with quote

I've tested the
Code:
rootdelay=7
option and still got the same error. Is there a possibility that I'm missing some modules for the USB 3 - SATA adapter?
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2884
Location: Illinois, USA

PostPosted: Wed Mar 06, 2019 3:28 pm    Post subject: Reply with quote

I don't boot with USB, but I've never had a problem accessing a USB stick or external hard drive:
Code:
 ~ $ zgrep HCI /proc/config.gz|grep -v ^#
CONFIG_SATA_AHCI=y
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_XHCI_HCD=m
CONFIG_USB_XHCI_PCI=m
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_EHCI_PCI=m
CONFIG_USB_OHCI_HCD=m
CONFIG_USB_OHCI_HCD_PCI=m
Since you want boot access, I would change those 'm's to 'y's
Back to top
View user's profile Send private message
UX.MAN
n00b
n00b


Joined: 09 Mar 2013
Posts: 72

PostPosted: Wed Mar 06, 2019 10:06 pm    Post subject: Reply with quote

I made all of those modules persistent and the problem remains. I have also incremented the rootdelay option to 14, but still no changes.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Mar 06, 2019 10:11 pm    Post subject: Reply with quote

papandreoos,

When the rootdelay times out, its in seconds, what is the kernel panic text?
Kernel Panic! ... ?

Put your kernel .config file onto a pastebin site please.
_________________
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
UX.MAN
n00b
n00b


Joined: 09 Mar 2013
Posts: 72

PostPosted: Wed Mar 06, 2019 10:34 pm    Post subject: Reply with quote

@NeddySeagoon

Here is the kernel panic error (I wasn't able to capture the full message): https://imgur.com/a/7uetKAC
And here is the kernel conf file: https://pastebin.com/qJncKKP7
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Mar 06, 2019 10:50 pm    Post subject: Reply with quote

UX.MAN,

The key information in the panic is Unable to mount root fs on unknown-block(0,0).
That means that your kernel cannot communicate with the HDD.

Your kernel .config has been truncated. Please try a different pastebin site.
wgetpaste knows five.

We can tell from the panic that the problem is with your 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
UX.MAN
n00b
n00b


Joined: 09 Mar 2013
Posts: 72

PostPosted: Wed Mar 06, 2019 11:05 pm    Post subject: Reply with quote

NeddySeagoon wrote:
UX.MAN,

The key information in the panic is Unable to mount root fs on unknown-block(0,0).
That means that your kernel cannot communicate with the HDD.

Your kernel .config has been truncated. Please try a different pastebin site.
wgetpaste knows five.

We can tell from the panic that the problem is with your kernel.


http://dpaste.com/1T2MYYH

Incredible tool wgetpaste! I didn't know it. Thanks for sharing your knowledge with the community!
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