informatique:partition_boot_remplie_sur_debian_grub_rescue
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| informatique:partition_boot_remplie_sur_debian_grub_rescue [2026/06/05 07:58] – créée simon | informatique:partition_boot_remplie_sur_debian_grub_rescue [2026/07/05 10:56] (Version actuelle) – simon | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| Ma partition boot s'est remplie. Une mise à jour avec un nouveau noyau n'a pas pu se faire correctement et quand j' | Ma partition boot s'est remplie. Une mise à jour avec un nouveau noyau n'a pas pu se faire correctement et quand j' | ||
| + | |||
| + | {{ : | ||
| + | <code bash> | ||
| + | error: file '/ | ||
| + | grub rescue> | ||
| + | </ | ||
| J'ai booté sur une clé usb que j' | J'ai booté sur une clé usb que j' | ||
| - | À partir de là, je peux avoir un terminal complet, un clavier bien configuré (et pas un qwerty..). L' | + | À partir de là, je peux avoir un terminal complet, un clavier bien configuré (et pas un qwerty |
| <code bash> | <code bash> | ||
| Ligne 14: | Ligne 20: | ||
| /dev/sda1: ... #partition boot | /dev/sda1: ... #partition boot | ||
| </ | </ | ||
| + | |||
| + | (Note: On peut aussi utiliser [[informatique: | ||
| + | |||
| + | Bon, maintenant, faut les monter ces partitions. Je vais suivre les instructions de [[https:// | ||
| + | |||
| + | <code bash> | ||
| + | # mkdir /rescue | ||
| + | |||
| + | # mount /dev/sda5 /rescue/ | ||
| + | mount: /rescue: unknown filesystem type ' | ||
| + | |||
| + | root@localhost-live:/ | ||
| + | Enter passphrase for / | ||
| + | |||
| + | root@localhost-live:/ | ||
| + | total 0 | ||
| + | lrwxrwxrwx. 1 root root 7 Jun 5 08:07 betula--vg-root -> ../dm-1 | ||
| + | lrwxrwxrwx. 1 root root 7 Jun 5 08:07 betula--vg-swap_1 -> ../dm-2 | ||
| + | crw-------. 1 root root 10, 236 Jun 5 07:41 control | ||
| + | lrwxrwxrwx. 1 root root 7 Jun 5 08:07 data -> ../dm-0 | ||
| + | |||
| + | root@localhost-live:/ | ||
| + | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS | ||
| + | loop0 | ||
| + | sda | ||
| + | ├─sda1 | ||
| + | ├─sda2 | ||
| + | └─sda5 | ||
| + | └─data | ||
| + | ├─betula--vg-root | ||
| + | └─betula--vg-swap_1 252:2 0 | ||
| + | sdb | ||
| + | ├─sdb1 | ||
| + | └─sdb2 | ||
| + | sr0 11:0 1 1024M 0 rom | ||
| + | zram0 | ||
| + | |||
| + | root@localhost-live:/ | ||
| + | |||
| + | root@localhost-live:/ | ||
| + | bin boot dev etc home initrd.img | ||
| + | |||
| + | root@localhost-live:/ | ||
| + | |||
| + | root@localhost-live:/ | ||
| + | config-6.1.0-27-amd64 | ||
| + | config-6.1.0-28-amd64 | ||
| + | config-6.12.74+deb13+1-amd64 | ||
| + | config-6.12.86+deb13-amd64 | ||
| + | |||
| + | root@localhost-live:/ | ||
| + | root@localhost-live:/ | ||
| + | root@localhost-live:/ | ||
| + | root@localhost-live:/ | ||
| + | root@localhost-live:/ | ||
| + | root@localhost-live:/ | ||
| + | |||
| + | root@localhost-live:/ | ||
| + | Filesystem | ||
| + | / | ||
| + | |||
| + | root@localhost-live:/# | ||
| + | root@localhost-live:/# | ||
| + | root@localhost-live:/# | ||
| + | root@localhost-live:/# | ||
| + | |||
| + | root@localhost-live:/# | ||
| + | </ | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | Les commandes à copier/ | ||
| + | <code bash> | ||
| + | sudo -i | ||
| + | mkdir /rescue | ||
| + | cryptsetup luksOpen /dev/sda5 sda5_crypt | ||
| + | mount -t ext4 -o noatime / | ||
| + | mount /dev/sda1 / | ||
| + | chroot /rescue/ | ||
| + | </ | ||
| + | |||
| + | Maintenant on peut réparer ! | ||
| + | |||
| + | <code bash> | ||
| + | # apt update | ||
| + | # apt upgrade | ||
| + | The following packages were automatically installed and are no longer required: | ||
| + | libsdl-ttf2.0-0 | ||
| + | Use 'apt autoremove' | ||
| + | |||
| + | Upgrading: | ||
| + | (...) linux-headers-amd64 (...) | ||
| + | |||
| + | Installing dependencies: | ||
| + | linux-headers-6.12.90+deb13.1-amd64 | ||
| + | |||
| + | Suggested packages: | ||
| + | linux-doc-6.12 | ||
| + | |||
| + | Summary: | ||
| + | Upgrading: 16, Installing: 4, Removing: 0, Not Upgrading: 0 | ||
| + | 1 not fully installed or removed. | ||
| + | Download size: 492 MB | ||
| + | Space needed: 187 MB / 63.2 GB available | ||
| + | - in / | ||
| + | |||
| + | root@localhost-live:/ | ||
| + | (...) | ||
| + | Summary: | ||
| + | Upgrading: 0, Installing: 0, Removing: 11, Not Upgrading: 0 | ||
| + | 1 not fully installed or removed. | ||
| + | Freed space: 782 MB | ||
| + | (...) | ||
| + | </ | ||
| + | |||
| + | Il faut réinstaller grub: | ||
| + | <code bash> | ||
| + | root@localhost-live:/# | ||
| + | Installing for i386-pc platform. | ||
| + | Installation finished. No error reported. | ||
| + | |||
| + | root@localhost-live:/# | ||
| + | Generating grub configuration file ... | ||
| + | Found background image: .background_cache.png | ||
| + | Found linux image: / | ||
| + | Found initrd image: / | ||
| + | Found linux image: / | ||
| + | Found initrd image: / | ||
| + | Warning: os-prober will not be executed to detect other bootable partitions. | ||
| + | Systems on them will not be added to the GRUB boot configuration. | ||
| + | Check GRUB_DISABLE_OS_PROBER documentation entry. | ||
| + | Adding boot menu entry for UEFI Firmware Settings ... | ||
| + | done | ||
| + | </ | ||
| + | |||
| + | Après le redémarrage, | ||
| + | |||
| + | Ça m'a rappelé ceci : [[informatique: | ||
| + | |||
| + | J'ai pu démarrer sur un ancien kernel et lancer : | ||
| + | |||
| + | <code bash> | ||
| + | # export LANG=fr_BE.utf8 | ||
| + | # export LC_ALL=fr_BE.utf8 | ||
| + | # export LANGUAGE=fr_BE.utf8 | ||
| + | # update-initramfs -u -k all | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | |||
| + | Je croyais que le problème était résolu parce que j'ai pu démarrer l' | ||
| + | |||
| + | <WRAP center round box 60%> | ||
| + | Créez un fichier / | ||
| + | < | ||
| + | MODULES=dep | ||
| + | COMPRESS=xz | ||
| + | </ | ||
| + | |||
| + | La première option réduit le nombre de modules embarqués dans le initrd | ||
| + | |||
| + | La deuxième compresse plus fort au dépend de la vitesse de boot | ||
| + | |||
| + | Puis relancez la création de l’image du noyau avec cette commande : | ||
| + | <code bash> | ||
| + | # export LANG=fr_BE.utf8 | ||
| + | # export LC_ALL=fr_BE.utf8 | ||
| + | # export LANGUAGE=fr_BE.utf8 | ||
| + | # update-initramfs -u -k all | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Espérons que ça règle un peu le problème. Sinon je vais finir par faire une réinstallation complète et mettre une partition /boot de 2Go.:-\ | ||
| + | |||
| + | < | ||
| + | |||
| + | J'ai également rencontré un autre problème : | ||
| + | <code bash> | ||
| + | root@localhost-live:/# | ||
| + | Installing for i386-pc platform. | ||
| + | grub-install: | ||
| + | </ | ||
| + | |||
| + | Si je comprends bien, il y a des erreurs dans les partitions et ça vaut la peine de nettoyer ça (voir [[https:// | ||
| + | |||
| + | <code bash> | ||
| + | root@localhost-live:/# | ||
| + | exit | ||
| + | root@localhost-live: | ||
| + | root@localhost-live: | ||
| + | e2fsck 1.47.3 (8-Jul-2025) | ||
| + | /dev/sda1 contains a file system with errors, check forced. | ||
| + | Pass 1: Checking inodes, blocks, and sizes | ||
| + | Inode 108123, i_size is 16384, should be 12288. | ||
| + | Inode 108123, i_blocks is 34, should be 26. Fix< | ||
| + | Inode 108363, i_blocks is 36, should be 26. Fix< | ||
| + | Inode 108675, i_blocks is 32, should be 26. Fix< | ||
| + | Inode 108125, i_blocks is 116, should be 26. Fix< | ||
| + | Inode 108126, i_blocks is 60, should be 26. Fix< | ||
| + | Inode 108127, i_blocks is 58, should be 26. Fix< | ||
| + | Inode 108161, i_blocks is 236, should be 26. Fix< | ||
| + | Inode 108162, i_blocks is 292, should be 26. Fix< | ||
| + | Inode 108163, i_blocks is 346, should be 26. Fix (' | ||
| + | Inode 108630, i_blocks is 120, should be 26. Fix? yes | ||
| + | |||
| + | (...plein de trucs...) | ||
| + | |||
| + | Free blocks count wrong for group #60 (2348, counted=2359). | ||
| + | Fix? yes | ||
| + | |||
| + | Free blocks count wrong (166249, counted=167613). | ||
| + | Fix? yes | ||
| + | |||
| + | |||
| + | /dev/sda1: ***** FILE SYSTEM WAS MODIFIED ***** | ||
| + | /dev/sda1: 523/124440 files (22.2% non-contiguous), | ||
| + | </ | ||
| + | |||
| + | Après ça, on remonte la partition, on chroot à nouveau et on réinstalle grub : | ||
| + | |||
| + | <code bash> | ||
| + | root@localhost-live: | ||
| + | |||
| + | root@localhost-live: | ||
| + | |||
| + | root@localhost-live:/# | ||
| + | Installing for i386-pc platform. | ||
| + | Installation finished. No error reported. | ||
| + | |||
| + | root@localhost-live:/# | ||
| + | Generating grub configuration file ... | ||
| + | Found background image: .background_cache.png | ||
| + | Found linux image: / | ||
| + | Found initrd image: / | ||
| + | Found linux image: / | ||
| + | Found initrd image: / | ||
| + | Found linux image: / | ||
| + | Found initrd image: / | ||
| + | Warning: os-prober will not be executed to detect other bootable partitions. | ||
| + | Systems on them will not be added to the GRUB boot configuration. | ||
| + | Check GRUB_DISABLE_OS_PROBER documentation entry. | ||
| + | Adding boot menu entry for UEFI Firmware Settings ... | ||
| + | done | ||
| + | </ | ||
| + | |||
| + | Ça semble mieux! Est-ce que c' | ||
| + | |||
| + | Problème résolu ? | ||
| + | |||
| + | ===== Sources qui m'ont aide ===== | ||
| + | |||
| + | * [[https:// | ||
informatique/partition_boot_remplie_sur_debian_grub_rescue.1780646316.txt.gz · Dernière modification : de simon
