dimanche 7 décembre 2025

Problèmes btrfs - boot en maintenance pour commenter l'entrée avant POR reboot

luc@luc330:~$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 7.28 TiB, 8001563221504 bytes, 15628053167 sectors
Disk model: Expansion HDD
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: 01000000-0000-0000-4E54-31374D5A4744

Device      Start         End     Sectors  Size Type
/dev/sdb1      40      409639      409600  200M EFI System
/dev/sdb2  411648 15628052479 15627640832  7.3T Linux filesystem
 

luc@luc330:~$ sudo btrfsck /dev/sdb2
Opening filesystem to check...
Checking filesystem on /dev/sdb2
UUID: f244899d-a9c4-4fec-a7f6-f0762b21b7eb
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space tree
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 2427800559616 bytes used, no error found
total csum bytes: 2368075928
total tree bytes: 2890809344
total fs tree bytes: 394608640
total extent tree bytes: 62603264
btree space waste bytes: 120864360
file data blocks allocated: 2424909750272
 referenced 2424909750272

...

fsck looks fine, so uncomment btrfs entry in fstab

...

luc@luc330:~$ sudo mount /dev/sdb2
mount: (hint) your fstab has been modified, but systemd still uses
       the old version; use 'systemctl daemon-reload' to reload.
luc@luc330:~$ df -h
Filesystem                         Size  Used Avail Use% Mounted on
tmpfs                              1.2G  1.5M  1.2G   1% /run
efivarfs                           148K   93K   51K  65% /sys/firmware/efi/efivars
/dev/mapper/ubuntu--vg-ubuntu--lv   98G  9.0G   84G  10% /
tmpfs                              5.7G     0  5.7G   0% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
/dev/mapper/vgHome-lvHome          3.0T  640K  2.9T   1% /home
/dev/sda2                          2.0G  198M  1.6G  11% /boot
/dev/sda1                          1.1G  6.2M  1.1G   1% /boot/efi
tmpfs                              1.2G   12K  1.2G   1% /run/user/1000
/dev/sdb2                          7.3T  2.3T  5.1T  31% /var/backups/rsync

Aucun commentaire: