LVM Disk fault and "unable to set superblock"
Hi All,
Im trying to fix a disk which is inaccessible. Its using LVM2 From a rescue disk I can scan and see the LVM device fine. When I try to mount it fails. When I run e2fsck it says "recovering journal" and then fails with "unable to set superblock flags" I have tried running e2fsck -b 32768 (and other backup blocks) and it just says "recovering journal" and then fails with "unable to set superblock flags" Can anyone help Please Thanks |
Hello ! Not used to LVM , but what does
Code:
dumpe2fs /dev/THEDEVICE | head -n 60 |
Or, you could try Karl's suggestion using an alternate superblock.
Code:
dumpe2fs -h -o superblock=32768 -h /dev/mapper/<vg>-<lv> |
Hi All,
Thanks for the suggestions. I managed to fix it by doing a low level copy of the disk onto another disk. It seemed to have no errors reading, it was just totally unable to write to it! It was a SSD BTW (probably should have mentioned) I used a program called ddrescue basically as such.. ddrescue -n /dev/hda /dev/hdb logfile ddrescue -d -r3 /dev/hda /dev/hdb logfile fdisk /dev/hdb e2fsck -v -f /dev/hdb1 e2fsck -v -f /dev/hdb2 I could then boot from the 2nd (copied to) disk and all was good :D |
Good to hear - mark it as solved so others can see (thread tools at the top).
|
All times are GMT -5. The time now is 01:20 AM. |