benjarobin a écrit : ↑ven. 01 nov. 2024, 13:47
Je pense au contraire que tu dois être assez loin du résultat...
Peux tu donner la sortie (en root) de :
Le contenu de ton
/etc/grub.d/40_custom
Une description du partitionnement de ta fedora, et une indication de quel disque, ...
Peux tu aussi monter la partition qui contient le dossier boot de fedora dans /mnt, et donne la sortie de :
Mince je pensais que j'avais bien fait ce que tu m'avais dit
Voici le résultat pour la commande blkid :
Code : Tout sélectionner
/dev/sdb2: BLOCK_SIZE="512" UUID="B652CDD552CD9A8F" TYPE="ntfs" PARTUUID="4d324d32-02"
/dev/sdb3: BLOCK_SIZE="512" UUID="9E7AD3C77AD39A7B" TYPE="ntfs" PARTUUID="4d324d32-03"
/dev/sdb1: LABEL="RM-CM-)servM-CM-) au systM-CM-(me" BLOCK_SIZE="512" UUID="B8DACA80DACA3A80" TYPE="ntfs" PARTUUID="4d324d32-01"
/dev/sdc2: UUID="0e340c7e-9312-4e33-b8f7-7d85d1ef5d30" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="0976faa0-02"
/dev/sdc3: UUID="bc12c7e5-bb89-4a4d-b34b-f9e0fd0d5531" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="0976faa0-03"
/dev/sdc1: UUID="e1ba6a12-854e-48f9-ae7a-7b5559d22661" BLOCK_SIZE="1024" TYPE="ext4" PARTUUID="0976faa0-01"
/dev/sdc4: UUID="d9ba4241-bee4-44b9-ac0b-18b4320a4141" TYPE="swap" PARTUUID="0976faa0-04"
/dev/sda4: UUID="274c7b45-7a00-40a8-99e6-f8435051da1d" TYPE="swap" PARTUUID="df03687a-f633-4edd-8e6d-350cb20f99cc"
/dev/sda2: UUID="02e05f5c-453d-4881-8f95-7c3715f22aaf" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="34537b4c-95e6-4582-a71f-9aa8942c3cc1"
/dev/sda3: LABEL="fedora_localhost-live" UUID="549b8c8c-0f44-4c8d-92c2-9871352e8a74" UUID_SUB="63792a94-d5cb-491d-88b4-bb678e72ba0a" BLOCK_SIZE="4096" TYPE="btrfs" PARTUUID="d62713b6-8938-432b-8dd3-5dfcd4b117e7"
/dev/sda1: PARTUUID="f4d9b9b3-f9a6-477a-aa41-aadf0354fac2"
Pour la commande fdisk -l :
Code : Tout sélectionner
Disque /dev/sda : 465,76 GiB, 500107862016 octets, 976773168 secteurs
Modèle de disque : ST500DM002-1BD14
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
Type d'étiquette de disque : gpt
Identifiant de disque : 3CE3EA42-CCD0-475C-9A25-D666D5D8A894
Périphérique Début Fin Secteurs Taille Type
/dev/sda1 2048 6143 4096 2M Amorçage BIOS
/dev/sda2 6144 10491903 10485760 5G Système de fichiers Linux
/dev/sda3 10491904 849352703 838860800 400G Système de fichiers Linux
/dev/sda4 849352704 882907135 33554432 16G Partition d'échange Linux
Disque /dev/sdb : 447,14 GiB, 480113590272 octets, 937721856 secteurs
Modèle de disque : SanDisk SSD PLUS
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x4d324d32
Périphérique Amorçage Début Fin Secteurs Taille Id Type
/dev/sdb1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sdb2 206848 936499629 936292782 446,5G 7 HPFS/NTFS/exFAT
/dev/sdb3 936501248 937715711 1214464 593M 27 TFS WinRE masquée
Disque /dev/sdc : 465,76 GiB, 500107862016 octets, 976773168 secteurs
Modèle de disque : CT500MX500SSD1
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x0976faa0
Périphérique Amorçage Début Fin Secteurs Taille Id Type
/dev/sdc1 2048 616447 614400 300M 83 Linux
/dev/sdc2 616448 205416447 204800000 97,7G 83 Linux
/dev/sdc3 205416448 968280063 762863616 363,8G 83 Linux
/dev/sdc4 968282112 976670719 8388608 4G 82 partition d'échange Linux / Solaris
Pour le contenue mon fichier 40_custom :
Code : Tout sélectionner
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
if [ "${grub_platform}" == "pc" ]; then
menuentry "Fedora 40" {
insmod ext2
insmod search_fs_uuid
insmod chain
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 02e05f5c-453d-4881-8f95-7c3715f22aaf
chainloader +1
}
fi
#menuentry "Fedora 40" {
# assuming that UUID is 02e05f5c-453d-4881-8f95-7c3715f22aaf
#search --no-floppy --set=root --fs-uuid 02e05f5c-453d-4881-8f95-7c3715f22aaf
#linux /vmlinuz-6.11.4-201.fc40.x86_64 (add other options here as required)
#initrd /initramfs-6.11.4-201.fc40.x86_64.img (if the other kernel uses/needs one)
#}
menuentry "System shutdown" {
echo "System shutting down..."
halt
}
menuentry "System restart" {
echo "System rebooting..."
reboot
}
Donc Fédora est installé sur le disque SDA
Pour le patitionnement, j'ai 4 partitions sur ce disque:
- sda1 => grub2.core.img => 2mo
- sda2 => ext4 => dossier boot => 5Go
- sda3 => btfrs => dossier / => 400Go
Le résultat pour la commande ls -la /mnt /mnt/boot :
Code : Tout sélectionner
ls: impossible d'accéder à '/mnt/boot': Aucun fichier ou dossier de ce nom
/mnt:
total 364044
dr-xr-xr-x 6 root root 4096 23 oct. 10:03 .
drwxr-xr-x 18 root root 4096 3 nov. 11:55 ..
-rw-r--r-- 1 root root 277997 10 oct. 02:00 config-6.11.3-200.fc40.x86_64
-rw-r--r-- 1 root root 277997 20 oct. 02:00 config-6.11.4-201.fc40.x86_64
-rw-r--r-- 1 root root 272192 2 mai 2024 config-6.8.9-100.fc38.x86_64
drwx------ 4 root root 4096 17 oct. 19:35 efi
drwx------ 5 root root 4096 31 oct. 13:03 grub2
-rw------- 1 root root 111720552 9 nov. 2023 initramfs-0-rescue-13cb0a90d2ab45659b7980cae7eb992d.img
-rw------- 1 root root 55735938 17 oct. 19:46 initramfs-6.11.3-200.fc40.x86_64.img
-rw------- 1 root root 57089797 23 oct. 10:03 initramfs-6.11.4-201.fc40.x86_64.img
-rw------- 1 root root 55547336 17 oct. 08:03 initramfs-6.8.9-100.fc38.x86_64.img
drwxr-xr-x 3 root root 4096 9 nov. 2023 loader
drwx------ 2 root root 16384 9 nov. 2023 lost+found
-rw-r--r-- 1 root root 182572 17 oct. 19:46 symvers-6.11.3-200.fc40.x86_64.xz
-rw-r--r-- 1 root root 182520 23 oct. 10:03 symvers-6.11.4-201.fc40.x86_64.xz
lrwxrwxrwx 1 root root 45 17 oct. 08:03 symvers-6.8.9-100.fc38.x86_64.xz -> /lib/modules/6.8.9-100.fc38.x86_64/symvers.xz
-rw-r--r-- 1 root root 9967572 10 oct. 02:00 System.map-6.11.3-200.fc40.x86_64
-rw-r--r-- 1 root root 9968458 20 oct. 02:00 System.map-6.11.4-201.fc40.x86_64
-rw-r--r-- 1 root root 9021531 2 mai 2024 System.map-6.8.9-100.fc38.x86_64
-rwxr-xr-x 1 root root 14215976 9 nov. 2023 vmlinuz-0-rescue-13cb0a90d2ab45659b7980cae7eb992d
-rwxr-xr-x 1 root root 16300392 10 oct. 02:00 vmlinuz-6.11.3-200.fc40.x86_64
-rw-r--r-- 1 root root 161 10 oct. 02:00 .vmlinuz-6.11.3-200.fc40.x86_64.hmac
-rwxr-xr-x 1 root root 16300392 20 oct. 02:00 vmlinuz-6.11.4-201.fc40.x86_64
-rw-r--r-- 1 root root 161 20 oct. 02:00 .vmlinuz-6.11.4-201.fc40.x86_64.hmac
-rwxr-xr-x 1 root root 15646536 2 mai 2024 vmlinuz-6.8.9-100.fc38.x86_64
-rw-r--r-- 1 root root 160 2 mai 2024 .vmlinuz-6.8.9-100.fc38.x86_64.hmac
Et pour la commande mount | grep "/mnt" :
Merci pour le coup de main car là ça sort de mes compétence sous linux
