Difference between revisions of "Memperbaiki Superblock ext4"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (New page: Sumber: http://linuxexpresso.wordpress.com/2010/03/31/repair-a-broken-ext4-superblock-in-ubuntu/ HOWTO: Repair a broken Ext4 Superblock in Ubuntu 31Mar10 This has happened to me a few ...) |
Onnowpurbo (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
+ | Cek partisi yang ada, | ||
− | + | sudo fdisk -l | |
− | |||
− | + | Dapatkan nomor partisi yang digunakan,seperti, /dev/sda3 atau /dev/hdb1. | |
− | + | Pastikan superblock yang menjadi masalah, cek filesystem ganti xxx dengan nama partisi. Kita dapat mengubah ext4 menjadi ext3 atau ext2 | |
− | + | sudo fsck.ext4 -v /dev/xxx | |
− | + | Jika superblock korup, keluaran akan seperti berikut | |
− | + | ||
− | + | fsck /dev/sda5 | |
− | + | fsck 1.41.4 (27-Jan-2009) | |
− | + | e2fsck 1.41.4 (27-Jan-2009) | |
− | + | fsck.ext4: Group descriptors look bad... trying backup blocks... | |
− | + | fsck.ext4: Bad magic number in super-block while trying to open /dev/sda5 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | The superblock could not be read or does not describe a correct ext4 | |
− | + | filesystem. If the device is valid and it really contains an ext4 | |
− | + | filesystem (and not swap or ufs or something else), then the superblock | |
− | + | is corrupt, and you might try running e2fsck with an alternate superblock: | |
− | + | e2fsck -b 8193 <device> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Selanjutnya kita perlu menemukan dimana backup superblock di simpan. | |
− | |||
− | |||
− | + | sudo mke2fs -n /dev/xxx | |
− | |||
− | |||
− | |||
− | + | Akan tampak daftar tempat backup | |
− | |||
− | |||
− | |||
− | + | Superblock backups stored on blocks: | |
+ | 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208 | ||
+ | Restore superblock dari backup, ganti xxx dengan nama partisi dan block_number dengan nomor backup. | ||
+ | sudo e2fsck -b block_number /dev/xxx | ||
+ | Reboot, dan superblock harusnya fix. | ||
+ | Jika tidak, ulangi langkah di atas, tapi restore dari backup superblock lainnya. | ||
Latest revision as of 07:55, 14 July 2014
Sumber: http://linuxexpresso.wordpress.com/2010/03/31/repair-a-broken-ext4-superblock-in-ubuntu/
Cek partisi yang ada,
sudo fdisk -l
Dapatkan nomor partisi yang digunakan,seperti, /dev/sda3 atau /dev/hdb1.
Pastikan superblock yang menjadi masalah, cek filesystem ganti xxx dengan nama partisi. Kita dapat mengubah ext4 menjadi ext3 atau ext2
sudo fsck.ext4 -v /dev/xxx
Jika superblock korup, keluaran akan seperti berikut
fsck /dev/sda5 fsck 1.41.4 (27-Jan-2009) e2fsck 1.41.4 (27-Jan-2009) fsck.ext4: Group descriptors look bad... trying backup blocks... fsck.ext4: Bad magic number in super-block while trying to open /dev/sda5 The superblock could not be read or does not describe a correct ext4 filesystem. If the device is valid and it really contains an ext4 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>
Selanjutnya kita perlu menemukan dimana backup superblock di simpan.
sudo mke2fs -n /dev/xxx
Akan tampak daftar tempat backup
Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
Restore superblock dari backup, ganti xxx dengan nama partisi dan block_number dengan nomor backup.
sudo e2fsck -b block_number /dev/xxx
Reboot, dan superblock harusnya fix.
Jika tidak, ulangi langkah di atas, tapi restore dari backup superblock lainnya.