[BOOT] VFS cannot open root device /dev/nvmen0n1p2

Questions et astuces concernant l'installation et la configuration d'archlinux
Avatar de l’utilisateur
PowaBanga
archer de cavalerie
Messages : 182
Inscription : mar. 12 sept. 2017, 21:15

[BOOT] VFS cannot open root device /dev/nvmen0n1p2

Message par PowaBanga »

Salut tout le monde,
suite à une mise à jour, je n'arrive plus à démrarrer mon archlinux. ça me fiche un écran bleu après grub, je n'avais jamais vu cela auparavant.

j'ai essayé d'abord de chroot, là tout va bien, la mise à jour se passe bien, mais pas d'amélioration, j'ai downgrade linux, ca n'a rien changé...

Ensuite j'ai démarré sur le liveUSB de boot-repair, mais il me dit qu'il ne trouve pas la partition ESP... (D'ailleurs je suis senssé faire une manip particulière pour qu'il trouve ma partition boot ?)

je ne sais pas du tout quoi faire, si je pouvais réparer le système sans devoir tout réinstaller ça serait vriament top :)

Image
Voici la sortie de boot-rpair info

Code : Tout sélectionner

boot-repair-4ppa2074                                              [20250309_1001]

============================== Boot Info Summary ===============================

 => libparted MBR boot code is installed in the MBR of /dev/nvme0n1.
 => No boot loader is installed in the MBR of /dev/sda.
 => Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,2)/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    offsetio extcmd macho elf file gettext boot bufio verifiers crypto 
    terminal normal datetime date mmap drivemap blocklist archelp newc 
    vga_text relocator video chain ntldr search_label search_fs_file 
    search_fs_uuid search keylayouts at_keyboard pci usb usb_keyboard gcry_md5 
    hashsum gcry_crc gzio xzio lzopio lspci fshelp ext2 xfs acpi reboot 
    iso9660 gcry_sha1 div udf exfat font diskfilter raid6rec zstd btrfs ventoy 
    read halt video_fb vbe linux linux16 test true sleep echo bitmap gfxterm 
    bitmap_scale trig video_colors gfxmenu videotest videoinfo functional_test 
    videotest_checksum video_cirrus video_bochs vga minicmd help configfile tr 
    biosdisk disk ls tar zfs squash4 pbkdf2 gcry_sha512 password_pbkdf2 
    all_video png jpeg part_gpt part_msdos fat ntfs loopback 
    gfxterm_background procfs gfxterm_menu smbios
    ---------------------------------------------------------------------------

nvme0n1p1: _____________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /grub/grub.cfg /syslinux/syslinux.cfg 
                       /efi/ArchiPavilion/grubx64.efi

nvme0n1p2: _____________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Arch Linux
    Boot files:        /etc/fstab /etc/default/grub

nvme0n1p3: _____________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb1: __________________________________________________________________________

    File system:       exfat
    Boot sector type:  -
    Boot sector info: 
    Mounting failed:   mount: /mnt/BootInfo/sdb1: /dev/sdb1 already mounted or mount point busy.

sdb2: __________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Unknown
    Boot sector info: 
    Operating System:  
    Boot files:        /boot/grub/grub.cfg


================================ 1 OS detected =================================

OS#1:   Arch Linux (rolling) on nvme0n1p2

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: UHD Graphics 620 GP108M [GeForce MX150] from Intel Corporation NVIDIA Corporation
Live-session OS is Linuxmint 64-bit (Linux Mint 21.2, victoria, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: F.23(15.23) from Insyde
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 2001,0000,3000,2002,2004
Boot0000* ArchiPavilion	HD(1,MBR,0xf3e09df,0x800,0x1ff800)/File(\EFI\ArchiPavilion\grubx64.efi)
Boot0001* Disque dur USB (UEFI) - SanDisk (SanDisk)	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,MBR,0xe67d15a4,0x1d1d800,0x10000)RC
Boot2001* EFI USB Device	RC
Boot3000* Internal Hard Disk or Solid State Disk	RC

5d76202fce803d2d00723254c391afbf   nvme0n1p1/ArchiPavilion/grubx64.efi

============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda	: is-GPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes
nvme0n1	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

dm-1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
nvme0n1p1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	grubenv-ok,	noupdategrub,	not-far
nvme0n1p2	: is-os,	64, pacman,	grub1 ,	grub2,	grub-install,	no-grubenv,	update-grub,	end-after-100GB
sda3	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB

Partitions info (2/3): _________________________________________________________

dm-1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p2	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda3	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

dm-1	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
nvme0n1p1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p2	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	customized,	nvme0n1
sda3	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: 0x0f3e09df
         Boot     Start       End   Sectors   Size Id Type
nvme0n1p1           2048   2097151   2095104  1023M  b W95 FAT32
nvme0n1p2        2099200 487534591 485435392 231.5G 83 Linux
nvme0n1p3      487534592 500117503  12582912     6G 82 Linux swap / Solaris
Disk sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 4DCDA4F0-E410-4DE2-95D9-D6822446CE71
     Start        End    Sectors   Size Type
sda3   2048 1953521663 1953519616 931.5G Linux filesystem
Disk sdb: 14.59 GiB, 15664676864 bytes, 30595072 sectors
Disk identifier: 0xe67d15a4
     Boot    Start      End  Sectors  Size Id Type
sdb1  *        2048 30529535 30527488 14.6G  7 HPFS/NTFS/exFAT
sdb2       30529536 30595071    65536   32M ef EFI (FAT-12/16/32)
Disk dm-0: 2.45 GiB, 2630877184 bytes, 5138432 sectors
Disk identifier: 0x14eb2669
      Boot Start     End Sectors  Size Id Type
dm-0p1 *        0 5138431 5138432  2.5G  0 Empty
dm-0p2        572    9067    8496  4.1M ef EFI (FAT-12/16/32)
Disk dm-1: 14.56 GiB, 15630073856 bytes, 30527488 sectors
Disk identifier: 0x00000000

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:4096:gpt:ATA HGST HTS541010B7:;
3:1049kB:1000GB:1000GB:ext4:linux home folder:;
sdb:15.7GB:scsi:512:512:msdos:SanDisk Cruzer Blade:;
1:1049kB:15.6GB:15.6GB:::boot;
2:15.6GB:15.7GB:33.6MB:fat16::esp;
nvme0n1:256GB:nvme:512:512:msdos:SK hynix PC401 HFS256GD9TNG-62A0A:;
1:1049kB:1074MB:1073MB:fat32::;
2:1075MB:250GB:249GB:ext4::;
3:250GB:256GB:6442MB:linux-swap(v1)::;

blkid (filtered): ______________________________________________________________

NAME        FSTYPE   UUID                                 PARTUUID                             LABEL                  PARTLABEL
sda                                                                                                                   
└─sda3      ext4     0812c8b8-e97d-4f23-99bf-181cc38d495b fdbd8ba8-7007-4611-9768-0926d6699975 home                   linux home folder
sdb                                                                                                                   
├─sdb1      exfat    0F5D-9014                            e67d15a4-01                          Ventoy                 
└─sdb2      iso9660  2023-12-23-05-05-55-00                                                    Boot-Repair-Disk 64bit 
nvme0n1                                                                                                               
├─nvme0n1p1 vfat     6E66-249B                            0f3e09df-01                          BOOT                   
├─nvme0n1p2 ext4     08647a98-1744-41dc-9d0f-b44a9f4c86e0 0f3e09df-02                          /                      
└─nvme0n1p3 swap     f09a69f4-deaf-4b70-828e-318914eb4c29 0f3e09df-03                          swap                   

Mount points (filtered): _______________________________________________________

                    Avail Use% Mounted on
/dev/dm-1            4.5G  69% /mnt/boot-sav/dm-1
/dev/mapper/ventoy      0 100% /cdrom
/dev/nvme0n1p1     961.6M   6% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p2      29.7G  82% /mnt/boot-sav/nvme0n1p2
/dev/sda3            8.7G  94% /mnt/boot-sav/sda3
/dev/sdb2               0 100% /media/mint/Boot-Repair-Disk 64bit

Mount options (filtered): ______________________________________________________

/dev/dm-1          exfat           rw,relatime,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro
/dev/mapper/ventoy iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
/dev/nvme0n1p1     vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/nvme0n1p2     ext4            rw,relatime
/dev/sda3          ext4            rw,relatime
/dev/sdb2          iso9660         ro,nosuid,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8

====================== nvme0n1p1/grub/grub.cfg (filtered) ======================

Arch Linux   08647a98-1744-41dc-9d0f-b44a9f4c86e0
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

================== nvme0n1p1/syslinux/syslinux.cfg (filtered) ==================

# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
#
# Comboot modules:
#   * menu.c32 - provides a text menu
#   * vesamenu.c32 - provides a graphical menu
#   * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
#   * hdt.c32 - hardware detection tool
#   * reboot.c32 - reboots the system
#
# To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux.
# If /usr and /boot are on the same file system, symlink the files instead
# of copying them.
#
# If you do not use a menu, a 'boot:' prompt will be shown and the system
# will boot automatically after 5 seconds.
#
# Please review the wiki: https://wiki.archlinux.org/index.php/Syslinux
# The wiki provides further configuration examples
DEFAULT arch
PROMPT 0        # Set to 1 if you always want to display the boot: prompt
TIMEOUT 50
# You can create syslinux keymaps with the keytab-lilo tool
#KBDMAP de.ktl
# Menu Configuration
# Either menu.c32 or vesamenu32.c32 must be copied to /boot/syslinux
UI menu.c32
#UI vesamenu.c32
# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
MENU TITLE Arch Linux
#MENU BACKGROUND splash.png
MENU COLOR border       30;44   #40ffffff #a0000000 std
MENU COLOR title        1;36;44 #9033ccff #a0000000 std
MENU COLOR sel          7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel        37;44   #50ffffff #a0000000 std
MENU COLOR help         37;40   #c0ffffff #a0000000 std
MENU COLOR timeout_msg  37;40   #80ffffff #00000000 std
MENU COLOR timeout      1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07        37;40   #90ffffff #a0000000 std
MENU COLOR tabmsg       31;40   #30ffffff #00000000 std
# boot sections follow
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*
LABEL arch
    MENU LABEL Arch Linux
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sda3 rw
    INITRD ../initramfs-linux.img
LABEL archfallback
    MENU LABEL Arch Linux Fallback
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sda3 rw
    INITRD ../initramfs-linux-fallback.img
#LABEL windows
#        MENU LABEL Windows
#        COM32 chain.c32
#        APPEND hd0 1
LABEL hdt
        MENU LABEL HDT (Hardware Detection Tool)
        COM32 hdt.c32
LABEL reboot
        MENU LABEL Reboot
        COM32 reboot.c32
LABEL poweroff
        MENU LABEL Poweroff
        COM32 poweroff.c32

================= nvme0n1p1: Location of files loaded by Grub ==================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             grub/grub.cfg                                  1
            ?? = ??             vmlinuz-linux                                  1
            ?? = ??             vmlinuz-linux-lts                              1

=============== nvme0n1p1: Location of files loaded by Syslinux ================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             syslinux/syslinux.cfg                          1

======================== nvme0n1p2/etc/fstab (filtered) ========================

# <file system> <dir> <type> <options> <dump> <pass>
192.168.0.9:/mnt/movies /mnt/movies nfs default,timeo=900,retrans=5,_netdev,nofail 0 0
192.168.0.9:/mnt/500go /mnt/500go nfs default,timeo=900,retrans=5,_netdev,nofail 0 0
/mnt/500go/repository/ /repository none bind,nofail 0 0
UUID=08647a98-1744-41dc-9d0f-b44a9f4c86e0	/         	ext4      	rw,relatime	0 1
UUID=0812c8b8-e97d-4f23-99bf-181cc38d495b	/home     	ext4      	rw,relatime	0 2
UUID=f09a69f4-deaf-4b70-828e-318914eb4c29	none      	swap      	defaults  	0 0

==================== nvme0n1p2/etc/default/grub (filtered) =====================

GRUB_DEFAULT="0"
GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX=""
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
GRUB_TIMEOUT_STYLE="menu"
GRUB_TERMINAL_INPUT="console"
GRUB_GFXMODE="auto"
GRUB_GFXPAYLOAD_LINUX="keep"
GRUB_DISABLE_RECOVERY="true"
GRUB_THEME="/boot/grub/themes/fallout-grub-theme-master/theme.txt"

================= nvme0n1p2: Location of files loaded by Grub ==================

           GiB - GB             File                                 Fragment(s)
  13.274410248 = 14.253289472   boot/vmlinuz-linux                             2
  13.305660248 = 14.286843904   boot/initramfs-linux-fallback.img              2
 113.258644104 = 121.610543104  boot/initramfs-linux.img                       1

=================== nvme0n1p2: ls -l /etc/grub.d/ (filtered) ===================

-rwxr-xr-x 1 root root   270 Sep 21 10:49 06_grub-customizer_menu_color_helper
-rwxr-xr-x 1 root root 12579 Feb 27 07:47 10_linux
-rwxr-xr-x 1 root root   950 Sep 21 11:00 10_linux_proxy
lrwxrwxrwx 1 root root    34 Jan 16 20:57 15_ostree -> /usr/lib/libostree/grub2-15_ostree
-rwxr-xr-x 1 root root 14341 Feb 27 07:47 20_linux_xen
-rwxr-xr-x 1 root root   786 Feb 27 07:47 25_bli
-rwxr-xr-x 1 root root 12636 Feb 27 07:47 30_os-prober
-rwxr-xr-x 1 root root  1174 Feb 27 07:47 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Feb 27 07:47 40_custom
-rwxr-xr-x 1 root root   215 Feb 27 07:47 41_custom
drwxr-xr-x 4 root root  4096 Sep 21 10:49 backup
drwxr-xr-x 2 root root  4096 Sep 21 10:49 bin
drwxr-xr-x 2 root root  4096 Sep 21 11:00 proxifiedScripts

===== nvme0n1p2/etc/grub.d/06_grub-customizer_menu_color_helper (filtered) =====

#!/bin/sh
	
	if [ "x${GRUB_BACKGROUND}" != "x" ] ; then
		if [ "x${GRUB_COLOR_NORMAL}" != "x" ] ; then
		echo "set color_normal=${GRUB_COLOR_NORMAL}"
		fi
	
		if [ "x${GRUB_COLOR_HIGHLIGHT}" != "x" ] ; then
		echo "set color_highlight=${GRUB_COLOR_HIGHLIGHT}"
		fi
	fi
	

====================== sdb2/boot/grub/grub.cfg (filtered) ======================


==================== sdb2: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1

======================== Unknown MBRs/Boot Sectors/etc =========================

Unknown BootLoader on sdb2




Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would purge (in order to fix packages) and reinstall the grub2 of
nvme0n1p2 into the MBR of nvme0n1.
Grub-efi would not be selected by default because no ESP detected.
Additional repair would be performed: unhide-bootmenu-10s

Confirmation request before suggested repair: __________________________________

Warning: continuing without internet would leave your system unbootable. Please connect internet.
The boot of your PC is in EFI mode, but no ESP partition was detected. You may want to retry after creating a ESP partition (FAT32, 100MB~250MB, start of the disk, boot flag).
Are you sure you want to continue anyway?

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your BIOS boot on nvme0n1 (SK hynix PC401 HFS256GD9TNG-62A0A) disk!

The boot files of [nvme0n1p2 (end>100GB)] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)The boot of your PC is in UEFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.

sprunge.us ko ()
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17482
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [BOOT] VFS cannot open root device /dev/nvmen0n1p2

Message par benjarobin »

Bonjour,
Je vais essayer d'analyser la situation, mais ne surtout pas essayer de réparer manuellement / automatiquement en attendant, tu risques de faire plus de dégât !

Edit 1: Cela n'a rien à voir, mais pourquoi tu as aussi syslinux d’installé en plus de Grub ?
Edit 2: Où est monté la partition nvme0n1p1 (vfat) (car aucune entrée dans le fstab) qui est très certainement ta partition ESP , mais celle-ci ne possède pas le bon code...
Edit 3: Quel est le contenu du dossier ".../boot" de la partition nvme0n1p2 (sans monter d'autres partitions) ? Quel est le contenu (du dossier ".../") de la partition nvme0n1p1 ? (Note remplace les ... par là où tu as monté la partition).

Ton problème ressemble typiquement à une installation mal réalisée (mais très simplement corrigible). Je suppose que tu veux un boot EFI :
- Déjà tout doit être fait depuis une ISO d'installation de Arch (que tu dois boot en mode UEFI). Surtout ne pas utiliser des outils "magiques" qui ne vont qu’aggraver le problème.
- Il faut complètement faire le ménage des différents bootloader.
- Il faut corriger le type de la partition ESP (et si tu n'as pas d'autres OS installé, tu peux complètement la reformaté)
- Mettre à jour le fstab afin de rajouter une entrée dedans afin de monter cette partition ESP
- Monter la partition ESP dans le bon dossier en fonction de comment tu veux installer ton bootloader
- Et depuis le chroot, réinstaller le kernel linux, installer de nouveau le bootloader et généré sa configuration.
=> En résumé, ce sont les étapes décrites dans le Wiki lors d'une installation de Arch, rien de plus (à part le nettoyage de l'existant...).

Edit 4: Ah, mais tu n'as pas de table de partition GPT... Mais comment boot tu ? C'est du legacy/MBR ?
Edit 5: Donc avant de réparer, il faut déjà convertir ta table de partition MBR en GPT, pour cela, je te recommande :
- Supprimer la partition nvme0n1p1 (vfat) et nvme0n1p3 (swap)
- Convertir vers une table de partition GPT. Clear la partie MBR (avec gdisk).
- Recréer la partition vfat avec le type ESP
- Recréer la partition swap, bien penser à mettre à jour le fstab avec le nouvel UUID
- Demander à gdisk de réordonner les partitions.

Note: La partition ESP devrait être monté dans /efi, bien sûr il faut adapter toutes les commandes du Wiki (surtout quand cela parle de /boot/efi)
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
PowaBanga
archer de cavalerie
Messages : 182
Inscription : mar. 12 sept. 2017, 21:15

Re: [BOOT] VFS cannot open root device /dev/nvmen0n1p2

Message par PowaBanga »

  • Syslinux, honêtement j'ai installé archlinux sur cette machine il y a plusieurs année je pense... je me souviens m'etre intéressé à ca sans vraiment en avoir compris l'usage. Bref, je sais pas, je me souviens pas de ce que j'ai pu faire ou non à ce propos.
  • nvme0p1 c'est ma partition boot, qui est montée en "/boot"
  • Donc

    Code : Tout sélectionner

    ls /boot
    EFI grub syslinux vmlinuz-linux vmlinuz-linux-lts
  • j'avoue j'ai d'abord voulu utilise boot-repair, puis j'ai vu l'erreur, puis j'ai vu qu'il y avait un outil qui permettait de sortir une sortie de debug pour avoir de l'aide va forum. mais je me souviendrais de ton conseil à l'avenir.
  • Effectivement la commande parted -l me retourne cette ligne à propos de /dev/nvme0n1: "Partition Table: msdos"
  • Du coup je dois-je copier le contenu de ma partition /dev/nvme0n1p1 dans /boot et monter ma partition ESP dans /efi (et non dans /boot/EFI) ( et après bien sûr avoir supprimé recréé mes partition nvme0p1 et 3 et convertir le tout en gpt) ?
    Ensuite je fait un 'genfstab > /mnt/etc/fstab' et un 'grub-mkconfig -o /boot/grub/grub.cfg' via 'arch-chroot /mnt'
    c'est bien ça ?
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17482
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [BOOT] VFS cannot open root device /dev/nvmen0n1p2

Message par benjarobin »

Alors presque. Je te conseil un backup complet de ton disque avant.
Attention de le faire depuis un ISO de Arch en ayant bien démarré en mode UEFI (le menu de boot de l'ISO doit indiquer UEFI !)
  • Ne copie pas le contenu de /boot, on détruit tout.
  • Mise à jour de la table de partition :
    • Suppression des 2 partitions, et convertir vers une table de partition GPT (gdisk le fait implicitement normalement),
    • Clear la partie MBR : https://askubuntu.com/a/1058425
    • Recréer les 2 partitions (dans les 2 espaces libres). Attention de bien créer les partitions avec le bon type (surtout pour l'ESP), ce n'était pas le cas avant.
    • Trier / réordonner les partitions : https://superuser.com/a/1072499
  • Formater les 2 nouvelles partitions (en vfat, et swap)
  • Monter la partition racine (la 2) dans /mnt, la partition ESP (la 1) dans /mnt/efi, et activer le swap (la 3)
  • Suppression de tout contenu éventuel dans /mnt/boot/
  • Mettre à jour le fstab avec genfstab, attention si tu n’écrases pas le fichier, de bien supprimer les vielles lignes. Attention de bien garder/backup tes lignes "perso".
  • Rentrer dans le chroot
  • Réinstaller via pacman : linux et grub
  • Réinstaller grub en suivant la procédure du Wiki : grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB
  • Mettre à jour la configuration : grub-mkconfig -o /boot/grub/grub.cfg
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Répondre