#1 Le 29/03/2024, à 18:55
- flashoux
Probleme zfs après tetative de migration de 20.04 vers 22.04
Bonjour,
J'ai voulu migrer vers Ubuntu 22.04 depuis un terminal mais au redémarrage pas possible de demarrer ubuntu, il n'y a que le emergency mode. Là je suis sur une session Live de Ubuntu 22.04. Je me suis mis en UEFI et j'ai un rapport de boot repair à l'adresse https://paste.ubuntu.com/p/c25FJNFPX8
Je ne sais pas comment m'en sortir sans effacer mes données...
Merci aux âmes charitables qui voudront bien m'aider.
Asus N53s - Nvidia Geforce 550M GT - Quantal Quetzal 64
Hors ligne
#2 Le 29/03/2024, à 19:02
- xubu1957
Re : Probleme zfs après tetative de migration de 20.04 vers 22.04
Bonjour,
Collage du Boot-repair, pour les spécialistes :
boot-repair-4ppa2075 [20240329_1745]
============================== Boot Info Summary ===============================
=> Grub2 (v2.00) is installed in the MBR of /dev/nvme0n1 and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks for (,msdos1)/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp fat part_msdos biosdisk
---------------------------------------------------------------------------
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 /grub/i386-pc/core.img
nvme0n1p2: _____________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
nvme0n1p5: _____________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
nvme0n1p6: _____________________________________________________________________
File system: zfs_member
Boot sector type: -
Boot sector info:
nvme0n1p7: _____________________________________________________________________
File system: zfs_member
Boot sector type: -
Boot sector info:
sda: ___________________________________________________________________________
File system: iso9660
Boot sector type: Grub2 (v1.99-2.00)
Boot sector info: Grub2 (v1.99-2.00) is installed in the boot sector of
sda and looks at sector 0 of the same hard drive for
core.img, but core.img can not be found at this
location.
Mounting failed: mount: /mnt/BootInfo/FD/sda: /dev/sda déjà monté ou point de montage actif.
================================ 0 OS detected =================================
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: WhiskeyLake-U GT2 [UHD Graphics 620] from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04.4 LTS, jammy, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: 9RCN19WW(V1.06)(1.19) from LENOVO
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,2001,2002,2003
Boot0000* Linpus lite HD(2,GPT,abbd44c4-640c-4cea-acc9-ca38273f602e,0x955d78,0x2754)/File(\EFI\Boot\grubx64.efi)RC
Boot0002* Linpus lite HD(2,GPT,abbd44c4-640c-4cea-acc9-ca38273f602e,0x955d78,0x2754)/File(\EFI\Boot\grubx64.efi)RC
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
nvme0n1 : notGPT, no-BIOSboot, has---ESP, not-usb, not-mmc, no-os, no-wind, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
nvme0n1p1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, grubenv-ng, noupdategrub, not-far
Partitions info (2/3): _________________________________________________________
nvme0n1p1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
nvme0n1p1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
fdisk -l (filtered): ___________________________________________________________
Disk nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk identifier: 0x38e3b5c1
Boot Start End Sectors Size Id Type
nvme0n1p1 * 2048 1050623 1048576 512M b W95 FAT32
nvme0n1p2 1052670 1000214527 999161858 476.4G 5 Extended
nvme0n1p5 1054720 5249023 4194304 2G 82 Linux swap / Solaris
nvme0n1p6 5251072 9445375 4194304 2G a5 FreeBSD
nvme0n1p7 9447424 1000214527 990767104 472.4G a5 FreeBSD
Disk sda: 30 GiB, 32212254720 bytes, 62914560 sectors
Disk identifier: ABBD44C4-640C-4CEA-ACCB-CA38273F602E
Start End Sectors Size Type
sda1 64 9788791 9788728 4.7G Microsoft basic data
sda2 9788792 9798859 10068 4.9M EFI System
sda3 9798860 9799459 600 300K Microsoft basic data
sda4 9801728 62914496 53112769 25.3G Linux filesystem
parted -lm (filtered): _________________________________________________________
sda:32.2GB:scsi:512:512:gpt:USB Flash Disk:;
1:32.8kB:5012MB:5012MB::ISO9660:hidden, msftdata;
2:5012MB:5017MB:5155kB::Appended2:boot, esp;
3:5017MB:5017MB:307kB::Gap1:hidden, msftdata;
4:5018MB:32.2GB:27.2GB:ext4::;
nvme0n1:512GB:nvme:512:512:msdos:WDC PC SN520 SDAPMUW-512G-1101:;
1:1049kB:538MB:537MB:fat32::boot;
2:539MB:512GB:512GB:::;
5:540MB:2688MB:2147MB:linux-swap(v1)::;
6:2689MB:4836MB:2147MB:::;
7:4837MB:512GB:507GB:zfs::;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda iso9660 2024-02-20-19-39-27-00 Ubuntu 22.04.4 LTS amd64
├─sda1 iso9660 2024-02-20-19-39-27-00 abbd44c4-640c-4cea-acca-ca38273f602e Ubuntu 22.04.4 LTS amd64 ISO9660
├─sda2 vfat 927C-33D8 abbd44c4-640c-4cea-acc9-ca38273f602e ESP Appended2
├─sda3 abbd44c4-640c-4cea-acc8-ca38273f602e Gap1
└─sda4 ext4 bda154ea-2761-4725-a20e-ec066f8c1d88 7613e072-ad1e-b14c-a2d8-34bce26c6b92 writable
nvme0n1
├─nvme0n1p1 vfat 3A22-86C6 38e3b5c1-01
├─nvme0n1p2 38e3b5c1-02
├─nvme0n1p5 swap 4ffa3eb9-9090-44aa-b3ce-74c35f559d02 38e3b5c1-05
├─nvme0n1p6 zfs_member 2907513713995717526 38e3b5c1-06 bpool
└─nvme0n1p7 zfs_member 566740300400544897 38e3b5c1-07 rpool
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
bpool/BOOT/ubuntu_o8lgzh 1.5G 10% /mnt/boot
/dev/nvme0n1p1 503.9M 1% /mnt/boot-sav/nvme0n1p1
/dev/sda1 0 100% /cdrom
efivarfs 22.4K 79% /sys/firmware/efi/efivars
rpool/ROOT/ubuntu_o8lgzh 309.3G 2% /mnt
Mount options (filtered): ______________________________________________________
bpool/BOOT/ubuntu_o8lgzh zfs rw,nodev,relatime,xattr,posixacl,casesensitive
/dev/nvme0n1p1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda1 iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
rpool/ROOT/ubuntu_o8lgzh zfs rw,relatime,xattr,posixacl,casesensitive
====================== nvme0n1p1/grub/grub.cfg (filtered) ======================
Ubuntu Focal Fossa (development branch) gnulinux-rpool/ROOT/ubuntu_o8lgzh-5.4.0-21-generic
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
================= nvme0n1p1: Location of files loaded by Grub ==================
GiB - GB File Fragment(s)
?? = ?? grub/grub.cfg 1
?? = ?? grub/i386-pc/core.img 1
================================ ZFS activation ================================
dpkg-query -W -f=${Version} zfsutils-linux : 2.1.5-1ubuntu6~22.04.2
zpool export -f -a
zpool import -N -R /mnt rpool
zpool import -N -R /mnt bpool
cryptsetup -v open /dev/zvol/rpool/keystore zfskey La commande a échoué avec le code -4 (mauvais périphérique ou fichier spécifié).
zfs load-key -a
zfs mount
zfs mount -a
Error: could not activate ZFS. Veuillez indiquer ce message à boot.repair@gmail.com
zpool list after activation
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
bpool 1.88G 259M 1.62G - - 0% 13% 1.00x ONLINE /mnt
rpool 472G 148G 324G - - 31% 31% 1.00x ONLINE /mnt
zfs list
NAME USED AVAIL REFER MOUNTPOINT
bpool 258M 1.50G 96K /mnt/boot
bpool/BOOT 257M 1.50G 96K none
bpool/BOOT/ubuntu_o8lgzh 257M 1.50G 180M /mnt/boot
rpool 148G 309G 96K /mnt
rpool/ROOT 37.4G 309G 96K none
rpool/ROOT/ubuntu_o8lgzh 37.4G 309G 6.59G /mnt
rpool/ROOT/ubuntu_o8lgzh/srv 96K 309G 96K /mnt/srv
rpool/ROOT/ubuntu_o8lgzh/usr 6.47M 309G 96K /mnt/usr
rpool/ROOT/ubuntu_o8lgzh/usr/local 6.38M 309G 5.28M /mnt/usr/local
rpool/ROOT/ubuntu_o8lgzh/var 17.5G 309G 96K /mnt/var
rpool/ROOT/ubuntu_o8lgzh/var/games 96K 309G 96K /mnt/var/games
rpool/ROOT/ubuntu_o8lgzh/var/lib 16.0G 309G 10.5G /mnt/var/lib
rpool/ROOT/ubuntu_o8lgzh/var/lib/AccountServices 96K 309G 96K /mnt/var/lib/AccountServices
rpool/ROOT/ubuntu_o8lgzh/var/lib/NetworkManager 2.01M 309G 164K /mnt/var/lib/NetworkManager
rpool/ROOT/ubuntu_o8lgzh/var/lib/apt 665M 309G 235M /mnt/var/lib/apt
rpool/ROOT/ubuntu_o8lgzh/var/lib/dpkg 232M 309G 64.2M /mnt/var/lib/dpkg
rpool/ROOT/ubuntu_o8lgzh/var/log 1.43G 309G 985M /mnt/var/log
rpool/ROOT/ubuntu_o8lgzh/var/mail 96K 309G 96K /mnt/var/mail
rpool/ROOT/ubuntu_o8lgzh/var/snap 36.4M 309G 13.2M /mnt/var/snap
rpool/ROOT/ubuntu_o8lgzh/var/spool 40.0M 309G 28.8M /mnt/var/spool
rpool/ROOT/ubuntu_o8lgzh/var/www 96K 309G 96K /mnt/var/www
rpool/USERDATA 110G 309G 96K /mnt
rpool/USERDATA/cat_kbb6sb 110G 309G 104G /mnt/home/cat
rpool/USERDATA/root_kbb6sb 7.72M 309G 5.01M /mnt/root
=================== findmnt (filtered) after ZFS activation ====================
SOURCE FSTYPE SIZE USED AVAIL USE% TARGET
/dev/sda1 iso9660 4.7G 4.7G 0 100% /cdrom
/dev/disk/by-label/writable[/install-logs-2024-03-29.1/log] ext4 24.8G 6.2M 23.5G 0% /var/log
/dev/disk/by-label/writable[/install-logs-2024-03-29.1/crash] ext4 24.8G 6.2M 23.5G 0% /var/crash
rpool/ROOT/ubuntu_o8lgzh zfs 315.9G 6.6G 309.3G 2% /mnt
bpool/BOOT/ubuntu_o8lgzh zfs 1.7G 179.8M 1.5G 10% /mnt/boot
rpool/USERDATA/root_kbb6sb zfs 309.3G 5.1M 309.3G 0% /mnt/root
rpool/USERDATA/cat_kbb6sb zfs 412.9G 103.6G 309.3G 25% /mnt/home/cat
rpool/ROOT/ubuntu_o8lgzh/srv zfs 309.3G 128K 309.3G 0% /mnt/srv
rpool/ROOT/ubuntu_o8lgzh/var/games zfs 309.3G 128K 309.3G 0% /mnt/var/games
rpool/ROOT/ubuntu_o8lgzh/var/lib zfs 319.8G 10.5G 309.3G 3% /mnt/var/lib
rpool/ROOT/ubuntu_o8lgzh/var/www zfs 309.3G 128K 309.3G 0% /mnt/var/www
rpool/ROOT/ubuntu_o8lgzh/var/mail zfs 309.3G 128K 309.3G 0% /mnt/var/mail
rpool/ROOT/ubuntu_o8lgzh/var/spool zfs 309.3G 28.9M 309.3G 0% /mnt/var/spool
rpool/ROOT/ubuntu_o8lgzh/var/log zfs 310.2G 985.1M 309.3G 0% /mnt/var/log
rpool/ROOT/ubuntu_o8lgzh/usr/local zfs 309.3G 5.4M 309.3G 0% /mnt/usr/local
rpool/ROOT/ubuntu_o8lgzh/var/lib/NetworkManager zfs 309.3G 256K 309.3G 0% /mnt/var/lib/NetworkManager
rpool/ROOT/ubuntu_o8lgzh/var/lib/apt zfs 309.5G 235.5M 309.3G 0% /mnt/var/lib/apt
rpool/ROOT/ubuntu_o8lgzh/var/lib/dpkg zfs 309.3G 64.3M 309.3G 0% /mnt/var/lib/dpkg
rpool/ROOT/ubuntu_o8lgzh/var/lib/AccountServices zfs 309.3G 128K 309.3G 0% /mnt/var/lib/AccountServices
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would not act on the boot.
Confirmation request before suggested repair: __________________________________
Warning: ZFS not activated correctly. Repair will fail unless you mount the pools on /mnt/boot-sav/zfs before continuing. Please report this message to boot.repair@gmail.com
Are you sure you want to continue anyway?
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#3 Le 29/03/2024, à 23:43
- geole
Re : Probleme zfs après tetative de migration de 20.04 vers 22.04
Bonsoir.
Le plus simple est de booter avec un support d'installation et de sauvegarder tes données rpool qui sont déjà montées dans /mnt/home/cat
zpool import -N -R /mnt rpool
zpool import -N -R /mnt bpool
zfs load-key -a
zfs mount
zfs mount -a
zpool list after activation
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
bpool 1.88G 259M 1.62G - - 0% 13% 1.00x ONLINE /mnt
rpool 472G 148G 324G - - 31% 31% 1.00x ONLINE /mnt
Dernière modification par geole (Le 29/03/2024, à 23:56)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne