culcal
August 7, 2023, 5:52am
1
Hello
My old laptop broke down and I got a new one. But there are some files on it that I would like to have access to.
Itβs an NVMe ssd. I was thinking of installing my old NVMe ssd in my new laptop, then chroot into it from a live usb, then copy my home directory to a new usb.
Will it be possible, or is there a better method?
pebcak
August 7, 2023, 6:12am
2
You could do this.
Except you wonβt be needing to chroot into the system ( if the sole purpose is to retrieve the data).
You could just mount the partition(s) either from a terminal or using the file manager, navigate to the locations you want to copy your data from and copy it over to another medium.
culcal
August 7, 2023, 6:19am
3
OK thanks.
So that means I use a liv usb so I can access a terminal or a file browser. Where should I mount my NVMe? Should it be mounted to my empty USB drive?
I donβt have any NVMe adapter for usb, so I only have my laptopβs NVMe slot I can use.
pebcak
August 7, 2023, 6:28am
4
Thatβs fine.
Yes.
If you use the file manager, you should be able to see both your NVMe disk and your empty usb in the left pane. You could then click on them to be mounted into the filesystem of the live session.
Or, as an example: sudo mount /dev/nvme0n1p1 /mnt
(adapt the numbers to accord with the actual situation; you could run lsblk -f
to see what partitions there are). Then use the file manager to navigate.
culcal
August 7, 2023, 6:32am
5
Perfect and thanks, itβs easier than my own suggestion.
Iβll try a little later today. And thanks again.
pebcak
August 7, 2023, 6:34am
6
You are welcome! Let us know how things will play out. If you encounter any issue ( hopefully not), just post about it on the forum.
Good luck!
1 Like
culcal
August 7, 2023, 7:59am
7
Everything is perfect so far. The only challenge is that people talk a lot about nvidia drivers and that there are things that donβt work.
But so far everything is working. I have no idea about laptops with nvidia gpu. But I will probably find out how to handle nvidia cards on linux.
pebcak
August 7, 2023, 8:03am
8
I am not using Nvidia cards so I am not the appropriate person to give you some suggestions.
There are however a few articles about Nvidia in EnOSβ wiki that may help you to get started:
https://discovery.endeavouros.com/?s=nvidia
You could also check with inxi -aG
to see what drivers are already installed and in use
culcal
August 7, 2023, 8:10am
9
Thanks, Iβm in the process of reading the articles you link to. And inxi -aG shows that it is nvidia driver.
1 Like
culcal
August 8, 2023, 4:28pm
10
pebcak:
If you use the file manager, you should be able to see both your NVMe disk and your empty usb in the left pane. You could then click on them to be mounted into the filesystem of the live session.
Or, as an example: sudo mount /dev/nvme0n1p1 /mnt
(adapt the numbers to accord with the actual situation; you could run lsblk -f
to see what partitions there are). Then use the file manager to navigate.
I happened to make a mistake.
I installed my ssd drive and made a backup. When I reinstalled my original drive with my new EOS installation, the systemd-boot menu was gone. I tried logging into my bios to log on to EOS that way, and the EOS boot entry also gone there.
I suspect that windows has overwritten it just like it does with grub.
What do I have to do to log on to EOS again and have access to systemd-boot again?
Is it the same procedure as when you repair grub? This means that I have to chroot into my EOS installation and rebuild systemd-boot again, just like described on these links?
https://support.system76.com/articles/bootloader/#systemd-boot
https://support.system76.com/articles/bootloader/
pebcak
August 8, 2023, 4:50pm
11
Depending on your filesystem, choose the appropriate instructions in the link here below to arch-chroot into your system:
https://discovery.endeavouros.com/system-rescue/arch-chroot/2022/12/
Once in chroot, if you are using systemd-boot, run: reinstall-kernels
When done, type exit followed by enter to quit chroot. Reboot.
If you feel you would need more specific instructions, post the output of the following commands:
sudo parted -l
efibootmgr
culcal
August 8, 2023, 6:26pm
12
pebcak:
Depending on your filesystem, choose the appropriate instructions in the link here below to arch-chroot into your system:
https://discovery.endeavouros.com/system-rescue/arch-chroot/2022/12/
Once in chroot, if you are using systemd-boot, run: reinstall-kernels
When done, type exit followed by enter to quit chroot. Reboot.
If you feel you would need more specific instructions, post the output of the following commands:
I managed to chroot into my EOS machine, and then I ran this command reinstall-kernels
Systemd-boot still not working.
I boot directly into windows, and I canβt find the EOS entry through the bios either.
pebcak
August 8, 2023, 6:28pm
13
Please post the output of the following commands from the live session:
culcal
August 8, 2023, 6:34pm
14
pebcak:
`sudo parted -l
efibootmgr
[liveuser@eos-2023.05.28 ~]$ sudo parted -l
Model: ATA ST1000LM049-2GH1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 17.4kB 16.8MB 16.8MB Microsoft reserved partition msftres
2 16.8MB 1000GB 1000GB ntfs Basic data partition msftdata
Model: Sony Storage Media (scsi)
Disk /dev/sdb: 31.1GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
2 1933MB 2049MB 116MB primary fat16 esp
Model: HFM512GDHTNG-8310A (nvme)
Disk /dev/nvme0n1: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Warning: failed to translate partition name
Number Start End Size File system Name Flags
1 1049kB 274MB 273MB fat32 EFI system partition boot, esp, no_automount
2 274MB 290MB 16.8MB Microsoft reserved partition msftres, no_automount
3 290MB 196GB 196GB ntfs Basic data partition msftdata
5 196GB 198GB 1049MB fat32 boot, esp
6 198GB 511GB 314GB ext4 endeavouros
4 511GB 512GB 1049MB ntfs hidden, diag, no_automount
[liveuser@eos-2023.05.28 ~]$ efibootmgr
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0004,0003,2001,2002,2003
Boot0000* EFI USB Device (Sony Storage Media) PciRoot(0x0)/Pci(0x14,0x0)/USB(19,0)/HD(1,MBR,0xb15bb315,0x399a80,0x37800)RC
Boot0001* EFI PXE 0 for IPv4 (E8-6A-64-DA-BE-02) PciRoot(0x0)/Pci(0x1d,0x5)/Pci(0x0,0x0)/MAC(e86a64dabe02,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0002* EFI PXE 0 for IPv6 (E8-6A-64-DA-BE-02) PciRoot(0x0)/Pci(0x1d,0x5)/Pci(0x0,0x0)/MAC(e86a64dabe02,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0003* Windows Boot Manager HD(5,GPT,868c26a1-24f7-4ce3-9af5-3c3b23c86cf3,0x16dfd000,0x1f4000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)RC
Boot0004* Windows Boot Manager HD(1,GPT,67a242e2-f64a-4e86-ae61-7f55db2635fe,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d0000004f000100000010000000040000007fff0400
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
1 Like
pebcak
August 8, 2023, 6:40pm
15
Letβs try to chroot once again and see how it goes.
In the live session, open a terminal and run:
sudo mount /dev/nvme0n1p6 /mnt
sudo mount /dev/nvme0n1p5 /mnt/efi
sudo arch-chroot /mnt
Now in chroot, run:
reinstall-kernels
Check with efibootmgr
to see if an EFI boot entry has been created or not.
If you get any error messages, post the whole of the output from the terminal.
culcal
August 8, 2023, 7:01pm
16
[root@EndeavourOS /]# efibootmgr
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0004,0003,2001,2002,2003
Boot0000* EFI USB Device (Sony Storage Media) PciRoot(0x0)/Pci(0x14,0x0)/USB(19,0)/HD(1,MBR,0xb15bb315,0x399a80,0x37800)RC
Boot0001* EFI PXE 0 for IPv4 (E8-6A-64-DA-BE-02) PciRoot(0x0)/Pci(0x1d,0x5)/Pci(0x0,0x0)/MAC(e86a64dabe02,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0002* EFI PXE 0 for IPv6 (E8-6A-64-DA-BE-02) PciRoot(0x0)/Pci(0x1d,0x5)/Pci(0x0,0x0)/MAC(e86a64dabe02,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0003* Windows Boot Manager HD(5,GPT,868c26a1-24f7-4ce3-9af5-3c3b23c86cf3,0x16dfd000,0x1f4000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)RC
Boot0004* Windows Boot Manager HD(1,GPT,67a242e2-f64a-4e86-ae61-7f55db2635fe,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d0000004f000100000010000000040000007fff0400
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
It has not made a new boot entry.
Maybe I should just reinstall everything and use grub?
I used systemd-boot because I thought windows couldnβt overwrite it like with grube.
pebcak
August 8, 2023, 7:02pm
17
In chroot install tree
:
pacman -S tree
and then post the output of the following command:
tree /efi
culcal
August 8, 2023, 7:09pm
18
[root@EndeavourOS /]# tree /efi
/efi
βββ EFI
β βββ BOOT
β β βββ BOOTX64.EFI
β βββ Linux
β βββ Microsoft
β β βββ Boot
β β β βββ BCD
β β β βββ BCD.LOG
β β β βββ BCD.LOG1
β β β βββ BCD.LOG2
β β β βββ bg-BG
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β βββ bootmgfw.efi
β β β βββ bootmgr.efi
β β β βββ BOOTSTAT.DAT
β β β βββ boot.stl
β β β βββ cbmr_driver.efi
β β β βββ CIPolicies
β β β β βββ Active
β β β β βββ {5DAC656C-21AD-4A02-AB49-649917162E70}.cip
β β β β βββ {82443e1e-8a39-4b4a-96a8-f40ddc00b9f3}.cip
β β β β βββ {CDD5CB55-DB68-4D71-AA38-3DF2B6473A52}.cip
β β β βββ cs-CZ
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ da-DK
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ de-DE
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ el-GR
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ en-GB
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β βββ en-US
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ es-ES
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ es-MX
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β βββ et-EE
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β βββ fi-FI
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ Fonts
β β β β βββ chs_boot.ttf
β β β β βββ cht_boot.ttf
β β β β βββ jpn_boot.ttf
β β β β βββ kor_boot.ttf
β β β β βββ malgun_boot.ttf
β β β β βββ malgunn_boot.ttf
β β β β βββ meiryo_boot.ttf
β β β β βββ meiryon_boot.ttf
β β β β βββ msjh_boot.ttf
β β β β βββ msjhn_boot.ttf
β β β β βββ msyh_boot.ttf
β β β β βββ msyhn_boot.ttf
β β β β βββ segmono_boot.ttf
β β β β βββ segoen_slboot.ttf
β β β β βββ segoe_slboot.ttf
β β β β βββ wgl4_boot.ttf
β β β βββ fr-CA
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β βββ fr-FR
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ hr-HR
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β βββ hu-HU
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ it-IT
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ ja-JP
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ kd_02_10df.dll
β β β βββ kd_02_10ec.dll
β β β βββ kd_02_1137.dll
β β β βββ kd_02_14e4.dll
β β β βββ kd_02_15b3.dll
β β β βββ kd_02_1969.dll
β β β βββ kd_02_19a2.dll
β β β βββ kd_02_1af4.dll
β β β βββ kd_02_8086.dll
β β β βββ kd_07_1415.dll
β β β βββ kd_0C_8086.dll
β β β βββ kdnet_uart16550.dll
β β β βββ kdstub.dll
β β β βββ ko-KR
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ lt-LT
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β βββ lv-LV
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi
β β β βββ nb-NO
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ nl-NL
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ pl-PL
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ pt-BR
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ pt-PT
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ qps-ploc
β β β β βββ memtest.efi.mui
β β β βββ Resources
β β β β βββ bootres.dll
β β β β βββ da-DK
β β β β β βββ bootres.dll.mui
β β β β βββ en-US
β β β β β βββ bootres.dll.mui
β β β β βββ fr-FR
β β β β βββ bootres.dll.mui
β β β βββ ro-RO
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β βββ ru-RU
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ sk-SK
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β βββ sl-SI
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β βββ sr-Latn-RS
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β βββ sv-SE
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ tr-TR
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ uk-UA
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β βββ winsipolicy.p7b
β β β βββ zh-CN
β β β β βββ bootmgfw.efi.mui
β β β β βββ bootmgr.efi.mui
β β β β βββ memtest.efi.mui
β β β βββ zh-TW
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ Recovery
β β βββ BCD
β β βββ BCD.LOG
β β βββ BCD.LOG1
β β βββ BCD.LOG2
β βββ systemd
β βββ systemd-bootx64.efi
βββ f409e6ec402a4d6495e6828dc6ccdaa0
β βββ 6.4.8-arch1-1
β β βββ initrd
β β βββ initrd-fallback
β β βββ linux
β βββ 6.4.8-zen1-1-zen
β βββ initrd
β βββ initrd-fallback
β βββ linux
βββ loader
β βββ entries
β β βββ f409e6ec402a4d6495e6828dc6ccdaa0-6.4.8-arch1-1.conf
β β βββ f409e6ec402a4d6495e6828dc6ccdaa0-6.4.8-arch1-1-fallback.conf
β β βββ f409e6ec402a4d6495e6828dc6ccdaa0-6.4.8-zen1-1-zen.conf
β β βββ f409e6ec402a4d6495e6828dc6ccdaa0-6.4.8-zen1-1-zen-fallback.conf
β βββ entries.srel
β βββ loader.conf
β βββ random-seed
βββ System Volume Information
57 directories, 159 files
1 Like
pebcak
August 8, 2023, 7:16pm
19
In chroot, run:
bootctl install
This should create an EFI boot entry for the systemd-boot. Check with efibootmgr
.
If it doesnβt, run:
efibootmgr --create --disk /dev/nvme0n1 --part 5 --loader "\EFI\systemd\systemd-bootx64.efi" --label "Linux Boot Manager" --unicode
Check with efibootmgr
.
1 Like
culcal
August 8, 2023, 7:25pm
20
thanks, this bootctl install
command worked.
1 Like