Hallo,
localhost:/mnt # fdisk -l
Disk /dev/nvme0n1: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk model: Samsung SSD 970 EVO Plus 250GB
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: 44436BE2-9D21-41F1-9C82-2A063AA686D3
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 204800 202753 99M EFI System
/dev/nvme0n1p2 206848 100206591 99999744 47.7G Linux filesystem
/dev/nvme0n1p3 100206592 133605375 33398784 15.9G Linux swap
/dev/nvme0n1p4 133605376 488397134 354791759 169.2G Linux filesystem
Disk /dev/sda: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WDC WD20EARS-00M
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: dos
Disk identifier: 0x2e3dc304
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 1760931839 1760929792 839.7G 7 HPFS/NTFS/exFAT
/dev/sda2 1760931840 1844824063 83892224 40G c W95 FAT32 (LBA)
/dev/sda3 1844824064 3907028991 2062204928 983.3G 83 Linux
Disk /dev/sdb: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5000AADS-0
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: dos
Disk identifier: 0x2e3dc31f
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 102402047 102400000 48.8G 7 HPFS/NTFS/exFAT
/dev/sdb2 102402048 163842047 61440000 29.3G 7 HPFS/NTFS/exFAT
/dev/sdb3 164864000 226303999 61440000 29.3G 7 HPFS/NTFS/exFAT
/dev/sdb4 226304000 976773119 750469120 357.9G 5 Extended
/dev/sdb5 226306048 236546047 10240000 4.9G 82 Linux swap / Solaris
/dev/sdb6 236548096 338948095 102400000 48.8G 83 Linux
Disk /dev/sdc: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WDC WD20EZBX-00A
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: 0A5EF30E-2B2C-4AFB-B184-F1CCF8884ADA
Device Start End Sectors Size Type
/dev/sdc1 2048 3907028991 3907026944 1.8T Linux filesystem
Alles anzeigen
localhost:/mnt # lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1
├─sda2
└─sda3 915.5G 0% /home
sdb
├─sdb1
├─sdb2
├─sdb3
├─sdb4
├─sdb5
└─sdb6 36.8G 18% /
sdc
└─sdc1
sdd
sr0
nvme0n1
├─nvme0n1p1
├─nvme0n1p2
├─nvme0n1p3 [SWAP]
└─nvme0n1p4
Alles anzeigen
Ich habe mit dem neuen System (UEFI) auf dem PC gebootet (von nvme0n1).
Folgende Schritte sind ausgeführt:
1) / Partition von sdb6 ist auf /mnt gemountet.
2) /home Partition sda3 ist auf /mnt/home gemountet.
3) Die Verzeichnisse /dev, /proc und /sys sind mit
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
eingehängt.
4) Jetzt in die Root-Partition "Chrooten"
also, ich bin jetzt soweit den grub2 zu installieren.
Zitat von https://www.fosslinux.com/1150…talling-grub-on-linux.htmHier ist ein Profi-Tipp: Achten Sie darauf, in diesem Schritt keine Partitions-Nummer anzugeben.
Wir installieren GRUB auf der gesamten Festplatte, nicht auf einer bestimmten Partition.
5) Grub2 neu installieren.
localhost:/ # grub2-install /dev/sdb
grub2-install: error: /usr/share/grub2/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.
Könnte es sein dass hier das UEFI-BIOS hier für die Fehlermeldung verantwortlich ist ?
Also ich habe ein /boot Verzeichnis.
localhost:/ # dir
total 68
-rw-r--r-- 1 root root 0 Mar 3 2022 0
lrwxrwxrwx 1 root root 7 Feb 14 2023 bin -> usr/bin
dr-xr-xr-x 3 root root 4096 Jun 6 18:04 boot
drwxr-xr-x 19 root root 4600 Sep 3 11:58 dev
drwxr-xr-x 136 root root 12288 Aug 31 19:47 etc
dr-xr-xr-x 6 root root 4096 Aug 30 14:34 home
lrwxrwxrwx 1 root root 7 Feb 14 2023 lib -> usr/lib
lrwxrwxrwx 1 root root 9 Feb 14 2023 lib64 -> usr/lib64
drwx------ 2 root root 16384 Jun 8 2021 lost+found
dr-xr-xr-x 3 root root 4096 Jul 25 2022 mnt
dr-xr-xr-x 2 root root 4096 Jun 9 2021 opt
dr-xr-xr-x 343 root root 0 Sep 3 13:58 proc
drwx------ 11 root root 4096 Aug 31 19:52 root
drwxr-xr-x 2 root root 4096 Jun 8 2021 run
lrwxrwxrwx 1 root root 8 Feb 14 2023 sbin -> usr/sbin
dr-xr-xr-x 4 root root 4096 Jun 9 2021 srv
dr-xr-xr-x 13 root root 0 Sep 3 13:58 sys
drwxrwxrwt 2 root root 4096 Aug 31 19:40 tmp
drwxr-xr-x 13 root root 4096 Feb 14 2023 usr
drwxr-xr-x 10 root root 4096 Mar 13 10:18 var
Alles anzeigen
localhost:/boot # dir
total 42752
lrwxrwxrwx 1 root root 48 Mar 13 08:10 .vmlinuz-6.2.2-1-default.hmac -> ../usr/lib/modules/6.2.2-1-default/.vmlinuz.hmac
lrwxrwxrwx 1 root root 48 Jun 6 17:15 .vmlinuz-6.3.4-1-default.hmac -> ../usr/lib/modules/6.3.4-1-default/.vmlinuz.hmac
lrwxrwxrwx 1 root root 45 Mar 13 08:10 System.map-6.2.2-1-default -> ../usr/lib/modules/6.2.2-1-default/System.map
lrwxrwxrwx 1 root root 45 Jun 6 17:15 System.map-6.3.4-1-default -> ../usr/lib/modules/6.3.4-1-default/System.map
lrwxrwxrwx 1 root root 41 Mar 13 08:10 config-6.2.2-1-default -> ../usr/lib/modules/6.2.2-1-default/config
lrwxrwxrwx 1 root root 41 Jun 6 17:15 config-6.3.4-1-default -> ../usr/lib/modules/6.3.4-1-default/config
drwxr-xr-x 6 root root 4096 Aug 30 14:46 grub2
lrwxrwxrwx 1 root root 22 Jun 6 17:15 initrd -> initrd-6.3.4-1-default
-rw------- 1 root root 21995253 Jun 6 17:48 initrd-6.2.2-1-default
-rw------- 1 root root 21776680 Jun 6 17:49 initrd-6.3.4-1-default
lrwxrwxrwx 1 root root 46 Mar 13 08:10 sysctl.conf-6.2.2-1-default -> ../usr/lib/modules/6.2.2-1-default/sysctl.conf
lrwxrwxrwx 1 root root 46 Jun 6 17:15 sysctl.conf-6.3.4-1-default -> ../usr/lib/modules/6.3.4-1-default/sysctl.conf
lrwxrwxrwx 1 root root 23 Jun 6 17:15 vmlinuz -> vmlinuz-6.3.4-1-default
lrwxrwxrwx 1 root root 42 Mar 13 08:10 vmlinuz-6.2.2-1-default -> ../usr/lib/modules/6.2.2-1-default/vmlinuz
lrwxrwxrwx 1 root root 42 Jun 6 17:15 vmlinuz-6.3.4-1-default -> ../usr/lib/modules/6.3.4-1-default/vmlinuz
Alles anzeigen
Darunter noch ein /boot/grub2 Verzeichnis. Darin befinden sich allerhand Dateien. Könnte interessant sein,
Wer könnte hier weiter helfen ? Hier benötige ich Experten-Rat.
Danke.
Gruß, su_lin_user