Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cant boot my Gentoo
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
thenoob1312
n00b
n00b


Joined: 29 Oct 2018
Posts: 3

PostPosted: Mon Oct 29, 2018 4:03 pm    Post subject: Cant boot my Gentoo Reply with quote

Hey,
I tried to install gentoo on my own beside Windows in Dualboot and everything seemed to work until i wanted to boot my own kernel.
I get some errors i dont know what they mean... does anyone have a tip or suggestion or direction? Anything 8O ?

https://ibb.co/hbKdtA

Love to everyone

cheers
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2288
Location: near Augsburg, Germany

PostPosted: Mon Oct 29, 2018 4:38 pm    Post subject: Reply with quote

Can you post the hardware info

and the kernel config ?
Back to top
View user's profile Send private message
thenoob1312
n00b
n00b


Joined: 29 Oct 2018
Posts: 3

PostPosted: Mon Oct 29, 2018 4:46 pm    Post subject: Reply with quote

This is my lspci

https://ibb.co/b3H1wV

How can i output my kernel config (sorry) ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Oct 29, 2018 4:46 pm    Post subject: Reply with quote

thenoob1312,

The key text in your image is
Code:
Unable to mount root fn on unknown-block(0,0)

That means that your kernel cannot communicate with your hard drive.
The (0,0) is the kernel major,minor device numbers. You can get other numbers here.

Explain how you made your kernel and boot loader and installed them both.

The unknown-block(0,0) tells that your kernel has one or more bits missing, or the missing bits are configured as <M>.
_________________
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
DONAHUE
Watchman
Watchman


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

PostPosted: Mon Oct 29, 2018 4:49 pm    Post subject: Reply with quote

Your photo wrote:
unable to mount root file system on unknown-block(0,0)
We now have https://wiki.gentoo.org/wiki/Knowledge_Base:Unable_to_mount_root_fs in the wiki for this type problem which states
Quote:
The panic informs that the Linux kernel is unable to:

Detect the controller for the hard disk (a likely candidate if the message says unknown-block(0,0));
Detect the partition because it does not have support for the partition type (less likely, but still possible);
Mount the partition because it does not know how to access the file system (a likely candidate if the message gives a non-zero figure in the first number set, such as unknown-block(2,0));
Detect the partition because the wrong device was passed in the boot loader configuration.
If the kernel was created with genkernel the initramfs(aka initrd) must run to load and start drivers for hard drive adapters and controllers. If a manual kernel these drivers must be enabled as builtin not as modules in the menuconfig and the kernel then recompiled.
Will need more info to provide more exact help.
suggest boot the install media, system rescue cd/usb? minimal install cd/usb? and mount the gentoo partitions and run
Code:
lspci -k | wgetpaste -t
parted -l | wgetpaste -t
wgetpaste -t /mnt/gentoo/usr/src/linux/.config
wgetpaste -t /mnt/gentoo/etc/fstab
wgetpaste -t /proc/cpuinfo
post the url's returned here
_________________
Defund the FCC.
Back to top
View user's profile Send private message
thenoob1312
n00b
n00b


Joined: 29 Oct 2018
Posts: 3

PostPosted: Mon Oct 29, 2018 5:34 pm    Post subject: Reply with quote

I followed this 3 guides:
https://wiki.gentoo.org/wiki/Sakaki%27s_EFI_Install_Guide/Preparing_Windows_for_Dual-Booting
https://wiki.gentoo.org/wiki/Handbook:AMD64/de
https://wiki.gentoo.org/wiki/UEFI_Dual_boot_with_Windows_7/8#WINDOWS_8_or_Windows_10:

I mounted my Windows boot partition with:
mount /dev/sda2 /boot

I installed GRUB with efi support like in:
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader
with the command:
grub-install --target=x86_64-efi --efi-directory=/boot --removable

After that, I started Windows and installed:
https://www.easyuefi.com/index-us.html

there I added my path to grub core.uefi and after a reboot, i was able to load into GRUB2 from my BIOS where my problem started.


I had not enough space in my fstab for sda6 with the parameters defaults+noatime, im not sure if that could cause a problem? (screenshot)
https://ibb.co/mLgTbV

I compiled the kernel by myself with make menuconfig.

here are the outputs for the commands:

lspci -k | wgetpaste -t
https://paste.pound-python.org/show/MAYavT3CKqFmtR8aA63z/

parted -l | wgetpaste -t
https://paste.pound-python.org/show/T0mMte9ukuQ3EbvgSBE9/

wgetpaste -t /mnt/gentoo/usr/src/linux/ .config
https://paste.pound-python.org/show/3lQ8FWgURppyT0pvdLk0/

wgetpaste -t /mnt/gentoo/etc/fstab
https://paste.pound-python.org/show/ryVSIQLpBpm0DZNBjRtR/

wgetpaste -t /proc/cpuinfo
https://paste.pound-python.org/show/aHTNq5RaaBFF8Ovhn0FM/

Thank you for help guys!!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Tue Oct 30, 2018 2:03 am    Post subject: Reply with quote

config file wrote:
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE=""
CONFIG_CMDLINE_OVERRIDE=y
which should IMHO result in the kernel having no options when it needs them to know where to look for the root file system.
Boot the install media.
Run blkid and note the PARTUUID for /dev/sda6.
Mount the gentoo partitions and enter the chroot and reconfigure the kernel using menuconfig per the handbook.
Choices:
Have a valid builtin cmdline that overrides the bootloader provided cmdline (my favorite):
Quote:
Processor type and features ---> [*] Built-in kernel command line
(root=PARTUUID=<value from blkid without quotes> ro rootfs=ext4)
[*] Built-in command line overrides boot loader arguments
or
Have a valid builtin cmdline that does not override the bootloader provided cmdline but is available if bootloader does not provide:
Quote:
Processor type and features --->
[*] Built-in kernel command line
(root=PARTUUID=<value from blkid without quotes> ro rootfs=ext4)
[ ] Built-in command line overrides boot loader arguments
or
Eliminate the bultin cmdline:
Quote:
Processor type and features --->
[ ] Built-in kernel command line
Run
Code:
mount
to verify the boot partition is mounted. Recompile and reinstall the kernel. Rerun
Code:
grub-mkconfig -o /boot/grub/grub.cfg
and look at grub.cfg. exit the chroot per the handbook and reboot.
_________________
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