Jak naprawić: EXT4-fs error (device): ext4_mb_generate_buddy: : group, clusters in bitmap, in gd

Sdílet
Vložit
  • čas přidán 20. 08. 2024
  • ‪@FurManiek‬
    Jeżeli masz taki błąd w syslog: "localhost kernel: [ ] EXT4-fs error (device name): ext4_mb_generate_buddy: : group , clusters in bitmap, in gd"
    oznacza to, że uszkodzona została pamięć nand,flash,sd,mmc lub inna, która odpowiada za przechowywanie danych.
    Poleceniem fdisk -l sprawdzasz jakie dyski masz podpięte w systemie (w kodzie błedu na przykład u mnie jest to "device sda1" (zobacz w logu system:
    localhost kernel: [ 22.490317] EXT4-fs error (device sda1): ext4_mb_generate_buddy:741: group 7, 10164 clusters in bitmap, 10163 in gd).
    Następnie poleceniem:
    sudo badblocks -s -v -n -f /dev/sda1
    wymuszamy sprawdzenie dysku, nawet jeżeli jest on podpięty i pracuje na nim obecny system operacyjny.
    Polecenie badblocks + zestaw parametrów:
    -s. Pokazuje nam proces skanowania dysku, pokazując nam już sprawdzone sektory.
    -w. Wskazuje używany tryb pisania.
    -n. Wprowadza nas w tryb nieniszczący, co oznacza, że ​​uszkodzone sektory zostaną odzyskane, a informacje na dysku twardym nie zostaną uszkodzone ani usunięte.
    -f. Naprawi uszkodzone sektory.
    Przetestowane i sprawdzone na kilka Linuxach (Tutaj na przykładzie Ubuntu).
    -------------------------------------------------------------------------------------------------------------------
    If you have this error in syslog: "localhost kernel: [ ] EXT4-fs error (device name): ext4_mb_generate_buddy: : group , clusters in bitmap, in gd"
    this means that the NAND, flash, SD, MMC or other memory responsible for storing data has been damaged.
    Use the fdisk -l command to check what disks you have connected in the system (in the error code, for example in my case it is "device sda" (see the code: localhost kernel: [ 22.490317] EXT4-fs error (device sda): ext4_mb_generate_buddy:741: group 7, 10164 clusters in bitmap, 10163 in gd).
    Then with the command:
    sudo badblocks -s -v -n -f /dev/sda
    we force the disk to be checked, even if it is connected and the current operating system is running on it.
    Badblocks command + parameter set:
    -s It shows us the process of scanning the disk, showing us the sectors already checked.
    -w Indicates the writing mode in use.
    -n It puts us in non-destructive mode, which means that bad sectors will be recovered and the information on the hard drive will not be damaged or deleted.
    -f Repairs bad sectors.
    Tested and proven on several Linux systems (here on the example of Ubuntu).

Komentáře •