Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rebooting into the new gentoo installation turns off my pc.
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4887
Location: Bavaria

PostPosted: Sat Jun 08, 2024 9:51 am    Post subject: Reply with quote

Sorry, but I have to ask: What is your current problem ?

- Black screen, or
- the laptop would shut off suddenly, or ... ?

You said you have found a dmesg similar to the old one ... did you have also problems when booting with our GentooLiveCD (because this is the syslog from booting with a LiveCD, or not) ?

Please provide also more information about your system; do you use a bootmanager/-loader; if yes, which ? Did you a manually kernel configuration or used genkernel. Can you chroot (*) into your system ? If yes, please give us also the output of "emerge --info", also from "lsblk", "blkid", and "fdisk -l". Do you mount your ESP to /efi (as recommended in our AMD64 Handbook) ? If yes, give us also "ls -lR /efi/". If you use grub give us also /boot/grub/grub.cfg (and please use wgetpaste and not these google stuff; some users dont like javascript)


*) https://wiki.gentoo.org/wiki/User:Pietinger/New_at_Gentoo#Pause_during_Installation
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Komorzo
n00b
n00b


Joined: 30 May 2024
Posts: 23

PostPosted: Sat Jun 08, 2024 4:02 pm    Post subject: Reply with quote

pietinger wrote:
Sorry, but I have to ask: What is your current problem ?

- Black screen, or
- the laptop would shut off suddenly, or ... ?

You said you have found a dmesg similar to the old one ... did you have also problems when booting with our GentooLiveCD (because this is the syslog from booting with a LiveCD, or not) ?

Please provide also more information about your system; do you use a bootmanager/-loader; if yes, which ? Did you a manually kernel configuration or used genkernel. Can you chroot (*) into your system ? If yes, please give us also the output of "emerge --info", also from "lsblk", "blkid", and "fdisk -l". Do you mount your ESP to /efi (as recommended in our AMD64 Handbook) ? If yes, give us also "ls -lR /efi/". If you use grub give us also /boot/grub/grub.cfg (and please use wgetpaste and not these google stuff; some users dont like javascript)


*) https://wiki.gentoo.org/wiki/User:Pietinger/New_at_Gentoo#Pause_during_Installation

the issue is that the laptop would shut off when booting up. an EFI stub message would appear on the top left for a few seconds before the shutdowns happen. i didnt have any issues with the gentoo liveCD, in fact it worked perfectly fine. for the bootloader. ive used systemd-boot and ive manually configured the kernel to keep a minimal install. i can easily chroot into the system using arch-chroot or the manual way and as for the ESP. it should be mounted but "ls -lR /efi/" says its total is 0. for the outputs. here is emerge --info: https://bpa.st/VYWA , here is lsblk: https://bpa.st/HPHA , here is the output of blkid: https://bpa.st/PNHQ and finally, here is the output of fdisk -l. for some reason wgetpaste didnt understand the command so i had to copy and paste the output itself instead of a link.

Quote:
Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST500LT012-1DG14
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: ECE230EF-419F-4103-B06B-1752017958AE

Device Start End Sectors Size Type
/dev/sda1 2048 2099199 2097152 1G EFI System
/dev/sda2 2099200 8390655 6291456 3G Linux swap
/dev/sda3 8390656 976773119 968382464 461.8G Linux root (x86-64)
GPT PMBR size mismatch (7051111 != 15653375) will be corrected by write.
The backup GPT table is not on the end of the device.


Disk /dev/sdb: 7.46 GiB, 8014528512 bytes, 15653376 sectors
Disk model: ImationFlashDriv
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C76AA255-8592-4A13-B1AC-8E4359CAE8DF

Device Start End Sectors Size Type
/dev/sdb1 64 571 508 254K Microsoft basic data
/dev/sdb2 572 6331 5760 2.8M EFI System
/dev/sdb3 6332 7050463 7044132 3.4G Apple HFS/HFS+
/dev/sdb4 7050464 7051063 600 300K Microsoft basic data


Disk /dev/loop0: 3.27 GiB, 3514564608 bytes, 6864384 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


ill try to use wgetpaste for my future links to try and not upset anybody or limit people from it. thankfully its an easier way of getting outputs of command into links so i dont think it would be too hard
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4887
Location: Bavaria

PostPosted: Sat Jun 08, 2024 6:24 pm    Post subject: Reply with quote

Komorzo wrote:
[...] and as for the ESP. it should be mounted but "ls -lR /efi/" says its total is 0. for the outputs. [...]

Okay, please check with "mount" (after chrooting and mounting) your /efi again ... it really should not be empty ... give us also the output of "efibootmgr" (emerge it if you dont have it) ... but ...

You have two ESPs:
Code:
/dev/sdb2: SEC_TYPE="msdos" UUID="4466-3984" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI boot partition" PARTUUID="c76aa255-8592-4a13-b1ae-8e4359cae8df"
/dev/sda1: UUID="E24E-65ED" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="8bc17bd6-172e-4e59-8ecc-0a55110e756e"

/dev/sdb2 572 6331 5760 2.8M EFI System
/dev/sda1 2048 2099199 2097152 1G EFI System

If an UEFI(-BIOS) works correct then this should not cause a problem; but we know there exist some(many?) bad/faulty/broken UEFI. I recommend always to use only one ESP ... but in your case the 2nd/1st from WINDOWS is very small (2,8MB) ... and not usable anymore; please mount /dev/sdb2 also (create a new moinpoint) and check which files are on it ... so maybe your kernel is okay, but UEFI didnt start systemd-boot. What you can try: Remove (temporary) the 2nd HD (sdb) and checkt if now UEFI starts systemd-boot. If not: Try again to install systemd-boot (here I can not help because I am a OpenRC-man; but you will surely get help from our systemd experts).


BTW: I see also two (small) problems (but not related to your main problem):
Code:
# emerge --info
setlocale: unsupported locale setting
Undefined license group '*'

_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Komorzo
n00b
n00b


Joined: 30 May 2024
Posts: 23

PostPosted: Sat Jun 08, 2024 7:06 pm    Post subject: Reply with quote

pietinger wrote:
Komorzo wrote:
[...] and as for the ESP. it should be mounted but "ls -lR /efi/" says its total is 0. for the outputs. [...]

Okay, please check with "mount" (after chrooting and mounting) your /efi again ... it really should not be empty ... give us also the output of "efibootmgr" (emerge it if you dont have it) ... but ...

You have two ESPs:
Code:
/dev/sdb2: SEC_TYPE="msdos" UUID="4466-3984" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI boot partition" PARTUUID="c76aa255-8592-4a13-b1ae-8e4359cae8df"
/dev/sda1: UUID="E24E-65ED" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="8bc17bd6-172e-4e59-8ecc-0a55110e756e"

/dev/sdb2 572 6331 5760 2.8M EFI System
/dev/sda1 2048 2099199 2097152 1G EFI System

If an UEFI(-BIOS) works correct then this should not cause a problem; but we know there exist some(many?) bad/faulty/broken UEFI. I recommend always to use only one ESP ... but in your case the 2nd/1st from WINDOWS is very small (2,8MB) ... and not usable anymore; please mount /dev/sdb2 also (create a new moinpoint) and check which files are on it ... so maybe your kernel is okay, but UEFI didnt start systemd-boot. What you can try: Remove (temporary) the 2nd HD (sdb) and checkt if now UEFI starts systemd-boot. If not: Try again to install systemd-boot (here I can not help because I am a OpenRC-man; but you will surely get help from our systemd experts).


BTW: I see also two (small) problems (but not related to your main problem):
Code:
# emerge --info
setlocale: unsupported locale setting
Undefined license group '*'


huh. i didnt expect SDB to be an issue with this. anyways. after mounting dev/sda1 or /efi. i got 3 folders! EFI, gentoo, and loader. efibootmgr managed to give me

Quote:
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0003,0000,2001,2002,2003
Boot0000* EFI HDD Device (ST500LT012-1DG142) PciRoot(0x0)/Pci(0x1f,0x5)/Ata(0,0,0)/HD(1,GPT,8bc17bd6-172e-4e59-8ecc-0a55110e756e,0x800,0x200000)RC
Boot0001* EFI USB Device (Imation ImationFlashDriv) PciRoot(0x0)/Pci(0x14,0x0)/USB(5,0)/HD(2,GPT,c76aa255-8592-4a13-b1ae-8e4359cae8df,0x23c,0x1680)RC
Boot0003* Linux Boot Manager HD(1,GPT,8bc17bd6-172e-4e59-8ecc-0a55110e756e,0x800,0x200000)/File(\EFI\systemd\systemd-bootx64.efi)
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC


and it does seem to be working decently. ill see what's going on with SDB though and even systemd-boot if possible. also just in cause. when you mean to make a new mountpoint, is it for SDB2?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4887
Location: Bavaria

PostPosted: Mon Jun 10, 2024 9:21 am    Post subject: Reply with quote

Komorzo wrote:
Code:
Boot0003* Linux Boot Manager   HD(1,GPT,8bc17bd6-172e-4e59-8ecc-0a55110e756e,0x800,0x200000)/File(\EFI\systemd\systemd-bootx64.efi)

This should be started (because: BootOrder: 0003,0000,2001,2002,2003) ... do you have it in /efi/EFI/systemd/... (when you mount your ESP == /dev/sda1 to /efi) ?
Komorzo wrote:
when you mean to make a new mountpoint, is it for SDB2?

Yes. (just for looking whats on there).

May I ask for the current status ?
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Komorzo
n00b
n00b


Joined: 30 May 2024
Posts: 23

PostPosted: Mon Jun 10, 2024 9:46 am    Post subject: Reply with quote

pietinger wrote:
Komorzo wrote:
Code:
Boot0003* Linux Boot Manager   HD(1,GPT,8bc17bd6-172e-4e59-8ecc-0a55110e756e,0x800,0x200000)/File(\EFI\systemd\systemd-bootx64.efi)

This should be started (because: BootOrder: 0003,0000,2001,2002,2003) ... do you have it in /efi/EFI/systemd/... (when you mount your ESP == /dev/sda1 to /efi) ?
Komorzo wrote:
when you mean to make a new mountpoint, is it for SDB2?

Yes. (just for looking whats on there).

May I ask for the current status ?

i do actually have that file in it's location. as for the current status. we've fortunately made progress actually. instead of it shutting down at where EFI STUB is. it shutsdown wheen the systemd commands with [OK] end up in. it appears that systemd might he giving out a shutdown message to the laptop as well
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4887
Location: Bavaria

PostPosted: Mon Jun 10, 2024 9:50 am    Post subject: Reply with quote

Komorzo wrote:
[...] instead of it shutting down at where EFI STUB is. it shutsdown wheen the systemd commands with [OK] end up in. it appears that systemd might he giving out a shutdown message to the laptop as well

Okay. Because I cannot help with systemd, I would suggest to create a new thread to find systemd experts (our forum has a list of all threads with 0 answers; this list will be watched from many users).
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Komorzo
n00b
n00b


Joined: 30 May 2024
Posts: 23

PostPosted: Mon Jun 10, 2024 10:46 am    Post subject: Reply with quote

pietinger wrote:
Komorzo wrote:
[...] instead of it shutting down at where EFI STUB is. it shutsdown wheen the systemd commands with [OK] end up in. it appears that systemd might he giving out a shutdown message to the laptop as well

Okay. Because I cannot help with systemd, I would suggest to create a new thread to find systemd experts (our forum has a list of all threads with 0 answers; this list will be watched from many users).

okay then. thank you for your help!
Back to top
View user's profile Send private message
Komorzo
n00b
n00b


Joined: 30 May 2024
Posts: 23

PostPosted: Mon Jun 10, 2024 10:56 am    Post subject: Reply with quote

after checking the commands carefully (recording the screen and staring at the video). it appears that its a dracut issue.

Quote:
dracut: FATAL: Don't know how to handle 'root=live:CDLABEL=gentoo-amd64-liveg...'
dracut: Refusing to continue


im not exactly sure why it thought the livegui was root and im not sure what file or configuration is causing dracut to think of this
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Jun 10, 2024 11:19 am    Post subject: Reply with quote

Komorzo,

The kernel command line can be built into the kernel or passed by the boot loader.
If both are present, the boot loader version will be used.

Some UEFI firmware will pass kernel command line to the kernel, some won't.
Even worse, some they that they will, then don't.

Code:
dracut: FATAL: Don't know how to handle 'root=live:CDLABEL=gentoo-amd64-liveg...'

If that happens at boot, the initrd should go into a 'rescue shell' and let you enter another root device.
_________________
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
Komorzo
n00b
n00b


Joined: 30 May 2024
Posts: 23

PostPosted: Mon Jun 10, 2024 11:42 am    Post subject: Reply with quote

NeddySeagoon wrote:
Komorzo,

The kernel command line can be built into the kernel or passed by the boot loader.
If both are present, the boot loader version will be used.

Some UEFI firmware will pass kernel command line to the kernel, some won't.
Even worse, some they that they will, then don't.

Code:
dracut: FATAL: Don't know how to handle 'root=live:CDLABEL=gentoo-amd64-liveg...'

If that happens at boot, the initrd should go into a 'rescue shell' and let you enter another root device.

i see. ill try out the root=/ in the kernel command line option first. if that doesnt work. ill try out the boot loader parameter next
Back to top
View user's profile Send private message
Komorzo
n00b
n00b


Joined: 30 May 2024
Posts: 23

PostPosted: Mon Jun 10, 2024 11:58 am    Post subject: Reply with quote

those did nto work but i believe i found the issue when running
Code:
bootctl list


Quote:
options: nodhcp secureconsole root=live:CDLABEL=gentoo-amd64-livegui rd.live.dir=/ rd.live.squashimg=image.squashfs cdroot


for some reason. its options are set to the livegui. ill try to change the options
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Jun 10, 2024 12:14 pm    Post subject: Reply with quote

Komorzo,

Its
Code:
root=/dev/sd...
or whatever your root block device is.
You can also use root=PARTUUID=Partition UUID of Root Device.

This is what you are trying to achieve.
_________________
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
Komorzo
n00b
n00b


Joined: 30 May 2024
Posts: 23

PostPosted: Mon Jun 10, 2024 12:43 pm    Post subject: Reply with quote

ah! after editing both kernel conf files in /efi and /boot. it finally has booted normally! i thank you all for helping out within this journey. i hope i didnt cause too much trouble
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4887
Location: Bavaria

PostPosted: Mon Jun 10, 2024 10:19 pm    Post subject: Reply with quote

Komorzo wrote:
ah! after editing both kernel conf files in /efi and /boot. it finally has booted normally!

Happy to hear that ! :D

Komorzo wrote:
i thank you all for helping out within this journey.

You are very Welcome.

Have fun with Gentoo. 8)

Komorzo wrote:
i hope i didnt cause too much trouble

No - this forum is there to help you; don't be afraid to ask again. ;-)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
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
Goto page Previous  1, 2
Page 2 of 2

 
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