Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help with moving installation from HDD to SSD [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
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: 4236
Location: Bavaria

PostPosted: Sun Jan 28, 2024 4:45 pm    Post subject: Reply with quote

Please check also if you have in your UEFI-BIOS "fast boot" enabled. If yes, please disable it. I have now a feeling that your UEFI does not want to forget your HD ... because: Usually your UEFI must throw away every entry pointing to you HD. If nothing helps I would suggest to do a BIOS reset (with you HD removed) and then check again with "efibootmgr" what it shows.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4236
Location: Bavaria

PostPosted: Sun Jan 28, 2024 4:47 pm    Post subject: Reply with quote

Hmm ... okay your (new) ESP looking absolutely okay ... I mean: We CREATE the correct entry with our command. Only your UEFI dont want forget your HD ... yes, do a BIOS reset and boot after this to USB.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
sokrovenno
n00b
n00b


Joined: 23 Aug 2023
Posts: 65

PostPosted: Sun Jan 28, 2024 4:50 pm    Post subject: Reply with quote

Yes, the fast boot was enabled.
How do I do a BIOS reset? I really need to remove my HDD?

EDIT: Oh it is just do a factory recover?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4236
Location: Bavaria

PostPosted: Sun Jan 28, 2024 4:54 pm    Post subject: Reply with quote

sokrovenno wrote:
Yes, the fast boot was enabled.

Bad. It is always recommended to disable it when using a Linux system.

sokrovenno wrote:
How do I do a BIOS reset?

Usuaslly you have somewhere an option: "Reset to factory settings". After this check again "fast boot" (because it is in many BIOS ENABLED by default; disable it again)

sokrovenno wrote:
I really need to remove my HDD?

Yes ... only the SATA-cable ... you can easily put back again later ... If you want still use it LATER ... ;-)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
sokrovenno
n00b
n00b


Joined: 23 Aug 2023
Posts: 65

PostPosted: Sun Jan 28, 2024 5:00 pm    Post subject: Reply with quote

I could not find anything about "Factory Reset". But I found an option called "Default".
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4236
Location: Bavaria

PostPosted: Sun Jan 28, 2024 5:04 pm    Post subject: Reply with quote

Yes, the naming is different from BIOS to BIOS ... BUT ... what happens if you NOW (=without fast boot) boot USB and check "efibootmgr" ?
Try to create again.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
sokrovenno
n00b
n00b


Joined: 23 Aug 2023
Posts: 65

PostPosted: Sun Jan 28, 2024 5:31 pm    Post subject: Reply with quote

I tried, but looks like I will have to remove the HDD. It will take sometime cause it is a little hard to open this Notebook. xD
I hope it will finally solve the problem.

EDIT: Should I remove the battery cable before touching anything else?
In the tutorial I read before installing the SSD they recommended doing it. I did not really understood why. Just to avoid difference of potential?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4236
Location: Bavaria

PostPosted: Sun Jan 28, 2024 5:55 pm    Post subject: Reply with quote

sokrovenno wrote:
EDIT: Should I remove the battery cable before touching anything else?
In the tutorial I read before installing the SSD they recommended doing it. I did not really understood why. Just to avoid difference of potential?

I don't want to give any instructions that contradict the manufacturer's statement, so I can only say that I only unplugged the SATA cable from the mainboard in my (switched off) tower with one HD to test something.

BTW: ....

.... Usually ... usually UEFI dont care about uppercase and lowercase ... but I dont know every UEFI in the world ... maybe you have a very modern UEFI ... so, to be on a safe side, do/try (later):

Code:
efibootmgr -c -d /dev/nvme0n1 -L "SSD" -l "\EFI\ssd\bzImage.efi"

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


Joined: 23 Aug 2023
Posts: 65

PostPosted: Sun Jan 28, 2024 6:06 pm    Post subject: Reply with quote

Okay, I disconnected the HDD, set the BIOS to default and I ran efibootmgr -c -d /dev/nvme0n1 -L "SSD" -l "\EFI\ssd\bzImage.efi" and still my ssd did not appeared on BIOS.
Should I reinstall or it will not resolve anything?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4236
Location: Bavaria

PostPosted: Sun Jan 28, 2024 6:10 pm    Post subject: Reply with quote

sokrovenno wrote:
Should I reinstall or it will not resolve anything?

I dont think a reinstall will help. Lets have a break for now and please give me the exact name of your notebook (I will then google a little bit about; maybe it takes some time)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
sokrovenno
n00b
n00b


Joined: 23 Aug 2023
Posts: 65

PostPosted: Sun Jan 28, 2024 6:15 pm    Post subject: Reply with quote

It is a Notebook Samsung Essentials E30, Intel Core i3 7020U, 4GB RAM, HD 1TB, tela 15,6" Full HD LED, NP350XAA-KF3BR.

Thank you so so much for your help.

EDIT: The weird part is that the "SSD" option appeared at the BIOS before.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4236
Location: Bavaria

PostPosted: Sun Jan 28, 2024 6:25 pm    Post subject: Reply with quote

Is Fast Boot now really disabled ?

Do you have in your BIOS some security settings enabled ?

e.g.: Intel Platform Trust Technology PTT (If yes, disable it) or Windows 10 Features (should be "Other OS" and not "Windows 10") ?


Google gives me only Pages in Spain - so maybe this is a country specific notebook ... :-(
_________________
https://wiki.gentoo.org/wiki/User:Pietinger


Last edited by pietinger on Sun Jan 28, 2024 6:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4236
Location: Bavaria

PostPosted: Sun Jan 28, 2024 6:27 pm    Post subject: Reply with quote

P.S.: What does "efibootmgr" says now ?
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
sokrovenno
n00b
n00b


Joined: 23 Aug 2023
Posts: 65

PostPosted: Sun Jan 28, 2024 6:38 pm    Post subject: Reply with quote

Yes, fast boot is disabled. I disabled everything except TPM Device.
Under security there is an option that I did not toggled and I was about to ask you about it. There is an option called TPM Device. Should I disable it?

EDIT: a quick search and it stands for Trusted Platform Module.
It is really weird that it is happening cause I know some people who installs SSD's on this Notebook cause windows is really slow on it.


Last edited by sokrovenno on Sun Jan 28, 2024 6:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4236
Location: Bavaria

PostPosted: Sun Jan 28, 2024 6:46 pm    Post subject: Reply with quote

sokrovenno wrote:
[...] There is an option called TPM Device. Should I disable it?

You can disable it ... (we dont use it) ... but it is not (=should not be) the cause of the problem ...

What is the output of "efibootmgr" (after: booting with USB + booting without HD + SSD connected and recognized by BIOS) ?
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
sokrovenno
n00b
n00b


Joined: 23 Aug 2023
Posts: 65

PostPosted: Sun Jan 28, 2024 6:55 pm    Post subject: Reply with quote

Quote:
What is the output of "efibootmgr" (after: booting with USB + booting without HD + SSD connected and recognized by BIOS) ?

Yes! The SSD is recognized by the BIOS. Here the return of efibootmgr, even though the HDD is disconnected.
Code:
livecd / # efibootmgr
BootCurrent: 0009
Timeout: 0 seconds
BootOrder: 0009,0006,0007,0008
Boot0006* Gentoo        VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)72006f006f0074003d002f006400650076002f007300640061003200200072006f00
Boot0007* Backup        VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0008* Secure        VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0009* UEFI: SanDisk Cruzer Blade 1.26       PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,4d4c68f9-3e96-4eda-998e-d69950fba76d,0x234,0x1680)0000424f

A thing I forgot mentioning is that none of the above options is appearing on BIOS. I thought it was expected since we excluded the /dev/sda1 with parted.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4236
Location: Bavaria

PostPosted: Sun Jan 28, 2024 7:02 pm    Post subject: Reply with quote

sokrovenno wrote:
A thing I forgot mentioning is that none of the above options is appearing on BIOS. I thought it was expected since we excluded the /dev/sda1 with parted.

Yes, it is correct, that you dont see them in BIOS (because they are "dead"). No, your UEFI SHOULD recognize that there is no bootable image anymore behind these entries, and it should delete these entries by itself ... but we can do it also with:
Code:
efibootmgr -b 6 -B 6

(and again with 7 and 8 )
Then try again to create a new entry for our ESP. Does it disappear after rebooting again ?

Have you tried - after your BIOS reset - to power off this notebook completely ? (=also battery)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4236
Location: Bavaria

PostPosted: Sun Jan 28, 2024 7:12 pm    Post subject: Reply with quote

I have another shoot in the dark:

You did something I never tried before: Giving the same partition NAME (=LABEL) to the new 3 partitions of your SSD as you had also on your HD (ESP;ROOT;HOME) ... maybe your UEFI is confused ...

Please try: Boot with USB and give NEW Names to all 3 paritions. Then reboot. Then create again our needed entry.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
sokrovenno
n00b
n00b


Joined: 23 Aug 2023
Posts: 65

PostPosted: Sun Jan 28, 2024 7:15 pm    Post subject: Reply with quote

Quote:
Have you tried - after your BIOS reset - to power off this notebook completely ? (=also battery)

No, I removed the battery in order to remove the HDD, and then I connected the battery back on. I'll give it a try.

EDIT: I cannot understand why efibootmgr returns the dead entries of Gentoo, Backup and Secure but not the "dead" entry of SSD.
Back to top
View user's profile Send private message
sokrovenno
n00b
n00b


Joined: 23 Aug 2023
Posts: 65

PostPosted: Sun Jan 28, 2024 7:54 pm    Post subject: Reply with quote

I tried it to no avail. :cry:
Anyway. Thank you very much for your help.
Now I'll connect the HDD and reconstruct my /dev/sda1 to have my Gentoo system back. I have no idea what is going on. But I know this Notebook is supposed to support SSD NVMe. At least on Windows.
In order to recover my system should be pretty straight forward right?
fdisk /dev/sda
create a new partition. mkfs.vfat -F32 /dev/sda1, change the CMDLINE back to the sda2 root, make the kernel, copy bzImage, create an efibootmgr entry again and should go everything ok, right?
Back to top
View user's profile Send private message
sokrovenno
n00b
n00b


Joined: 23 Aug 2023
Posts: 65

PostPosted: Sun Jan 28, 2024 8:05 pm    Post subject: Reply with quote

pietinger wrote:
I have another shoot in the dark:

You did something I never tried before: Giving the same partition NAME (=LABEL) to the new 3 partitions of your SSD as you had also on your HD (ESP;ROOT;HOME) ... maybe your UEFI is confused ...

Please try: Boot with USB and give NEW Names to all 3 paritions. Then reboot. Then create again our needed entry.

Oh, I have not seen it before. I'll give it a try.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4236
Location: Bavaria

PostPosted: Sun Jan 28, 2024 8:08 pm    Post subject: Reply with quote

sokrovenno wrote:
In order to recover my system should be pretty straight forward right? [...] and should go everything ok, right?

... Yes ... theoretical ... but your UEFI does not do what it is supposed to do ... I can't believe that a UEFI accepts a new boot entry (you even made several) for a HD, but not for an SSD ... there must be a mistake somewhere else ... but at the moment I have no idea what else could be wrong :-(
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 976
Location: The Village, Portmeirion

PostPosted: Sun Jan 28, 2024 9:06 pm    Post subject: Reply with quote

sokrovenno wrote:
Quote:
Please boot now your USB stick and do (exactly):

efibootmgr -c -d /dev/nvme0n1 -L "SSD" -l "\EFI\SSD\BZIMAGE.EFI"

and then check with "efibootmgr" if you get the new entry.

Okay, now it appeared.
Code:
gentoo@livecd / $ efibootmgr
BootCurrent: 0009
Timeout: 2 seconds
BootOrder: 0000,0009,0006,0007,0008
Boot0000* SSD   HD(1,GPT,1c6dcbae-af8d-b24f-b096-b626e61cfdcf,0x800,0x200000)/File(\EFI\SSD\bzImage.efi)
Boot0006* Gentoo        VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)72006f006f0074003d002f006400650076002f007300640061003200200072006f00
Boot0007* Backup        VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0008* Secure        VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0009* UEFI: SanDisk Cruzer Blade 1.26       PciRoot(0x0)/Pci(0x14,0x0)/USB(0,0)/HD(2,GPT,4d4c68f9-3e96-4eda-998e-d69950fba76d,0x234,0x1680)0000424f


I had an old HP laptop that wouldn't remember a newly created entry unless it was powered off. They wouldn't stick on a "reboot".
You could try again and then halt the system instead of rebooting.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4236
Location: Bavaria

PostPosted: Sun Jan 28, 2024 9:22 pm    Post subject: Reply with quote

skellr wrote:
I had an old HP laptop that wouldn't remember a newly created entry unless it was powered off. They wouldn't stick on a "reboot".
You could try again and then halt the system instead of rebooting.

I greatly appreciate your information, but I am skeptical because I have to ask how OP was able to create the other (old) UEFI entries. But of course it's always worth a try.


(I'm sorry, I'm in a bad mood because this might be the first UEFI system I fail. :cry: )
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
sokrovenno
n00b
n00b


Joined: 23 Aug 2023
Posts: 65

PostPosted: Sun Jan 28, 2024 10:00 pm    Post subject: Reply with quote

skellr wrote:
You could try again and then halt the system instead of rebooting.

Hey @skellr, thank you for your tip. I tried it to no avail.

Pietinger wrote:
... but your UEFI does not do what it is supposed to do ... I can't believe that a UEFI accepts a new boot entry (you even made several) for a HD, but not for an SSD ... there must be a mistake somewhere else ...

You're right! I tried to reboot my HDD and it does not appear on BIOS.

Pietinger wrote:
(I'm sorry, I'm in a bad mood because this might be the first UEFI system I fail. :cry: )

Hey man, don't worry about it, it is okay (probably I made something wrong, and it is not your fault). Maybe we can get things working again with Grub and then we can try to use efibootmgr again. Maybe things worked before because of grub?

EDIT: Hey, I don't know if it matters, but when I installed grub I remember I had to use this code:
Code:
grub-install --target=x86_64-efi --efi-directory=/efi --removable

without the --removable it was not detected.
I was looking here and it seems that is because my motherboard.
Quote:
Some motherboard manufacturers with poor UEFI implementations seem to only support the /EFI/BOOT directory location for the .EFI file in the EFI System Partition (ESP). The GRUB installer can create the .EFI file in this location automatically by appending the --removable option to the install command. Ensure the ESP has been mounted before running the following command; presuming it is mounted at /efi (as defined earlier), run:

root #grub-install --target=x86_64-efi --efi-directory=/efi --removable

This creates the 'default' directory defined by the UEFI specification, and then creates a file with the default name: BOOTX64.EFI.


Is there something like this for efibootmgr?
Sorry I did not mentioned that before, but I completely forgot about it.
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, 3  Next
Page 2 of 3

 
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