Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Pure UEFI Boot
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
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 946
Location: Greece

PostPosted: Sat Jan 16, 2016 4:14 pm    Post subject: [SOLVED]Pure UEFI Boot Reply with quote

Hello there,

I am trying to have a pure UEFI boot with my new laptop, but I end up having the infamous
Code:
kernel panic-not syncing: VFS: unable to mount root fs on unknown block(0,0)

That being said, I am having the image properly found.

The root partition is /dev/sda2 and the kernel image is in /dev/sda1.
Code:
$  parted /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                           
Model: ATA SAMSUNG MZNLF128 (scsi)
Disk /dev/sda: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size   File system  Name    Flags
 1      1049kB  135MB  134MB  fat16        boot    boot, esp
 2      135MB   128GB  128GB  ext3         rootfs

(parted) 


Also my kernel configuration, if that is relevant:
http://pastebin.com/kZtkN07Z

Is it possible to have Gentoo running without the help of GRUB, reFIND or these other tools?

EDIT#1: Forgot to add root=/dev/sda2 to CONFIG_CMDLINE...
_________________
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Sat Jan 16, 2016 5:48 pm    Post subject: Reply with quote

The kernel cannot find the root partition.
Quote:
CONFIG_CMDLINE_BOOL is not set
appears in your .config which tells that you did not elect to tell the kernel where to find the root partition inside the kernel. Recommend doing so as the simplest and most reliable way to specify the root partition location.
Prceed as follows: Boot the install media and the gentoo partitions and enter the chroot. .run
Code:
blkid
which will return something like
Quote:
/dev/sda2: LABEL="somelabel" UUID="someUUID" TYPE="ext3" PARTUUID="somePARTUUID"

Of interest is the PARTUUID which the kernel can use.
In the chroot:
Code:
cd /user/src/linux;make menuconfig
Edit menuconfig to include:
Quote:
Processor type and features --->
[*] Built-in kernel command line
(root=PARTUUID=aaaa-1111-bbbb-2222 ro) Built-in kernel command string
[*] Built-in command line overrides boot loader arguments
then run
Code:
make && make modules_install && make install
exit the chroot and reboot

aaaa-1111-bbbb-2222 is an example, replace with your PARTUUID value for /dev/sda2; NO parens
_________________
Defund the FCC.
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