Questions tagged [superblock]
78 questions
64
votes
5 answers
Recovering ext4 superblocks
Recently, my external hard drive enclosure failed (the hard drive itself powers up in another enclosure). However, as a result, it appears its EXT4 file system is corrupt.
The drive has a single partition and uses a GPT partition table (with the…
tlvince
- 1,156
- 1
- 8
- 11
8
votes
2 answers
Btrfs super-recover says all superblocks are good but mount disagrees
I have an external drive formatted with BTRFS that seems refuses to mount:
$ sudo mount -vs -t btrfs -o ro,recovery,errors=continue /dev/sdb2 /media/user/dir
mount: /dev/sdb2: can't read superblock
However, when BTRFS thinks that all the…
Livius
- 241
- 2
- 5
8
votes
1 answer
Difference between backup superblocks
Recently I accidentally formatted an EXT4 partition to FAT. I got into a panic. After a long journey through a dark wood in which my hope was fading I could recover my partition and it seems ok. After sudo mke2fs -n /dev/sdx introduced some…
Dante
- 83
- 1
- 8
7
votes
1 answer
How can I dump the contents of a filesystem's superblock?
I understand that I can list the location of a filesystem's superblocks using the following commands.
Example
First get the device handle for the current directory.
$ df -h .
Filesystem Size Used Avail Use% Mounted…
slm
- 363,520
- 117
- 767
- 871
5
votes
3 answers
How to fix if I received mount: /dev/vgname/lvname: can't read superblock for the local filesystem?
I received an incident when I was trying to do mount -a .
I was getting the below error. So how to fix this issue?
mount: /dev/vgname/lvname: can't read superblock
sagar hedaoo
- 93
- 1
- 2
- 6
4
votes
1 answer
mdadm - Accidentally ran "mdadm --create" on an existing raid-1. The superblock is now corrupt and I am unable to recover data. Did I bork my data?
I have /dev/sdb1 and /dev/sdc2 that were previously setup into a RAID-1 with mdadm, but then I reinstalled and lost the old configuration. Out of idiocy, I ran
sudo mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1
in an…
bestephe
- 41
- 1
- 3
4
votes
3 answers
lost superblock in md raid
Issue on Red Hat Linux 5.
Due to some miscommunication two LUNs in our environment were enlarged from 1.2 TB to 1.7 TB.
Now, after a reboot, mdadm does not find the superblocks to build the array again.
The common format — known as version 0.90 —…
ddeimeke
- 4,517
- 1
- 19
- 18
4
votes
3 answers
ext4 - Bad magic number in super-block
ext4 is failed me again! the most unstable fs
tried to fix it by restoring block from backup, but without luck..
↪ sudo fsck.ext4 -v /dev/sdd
e2fsck 1.45.6 (20-Mar-2020)
ext2fs_open2: Bad magic number in super-block
fsck.ext4: Superblock invalid,…
Yu Da Chi
- 53
- 1
- 1
- 6
4
votes
1 answer
e2fsck: unable to set superblock flags on LogicalVolume
When I boot my machine either in normal mode or runlevel 1 it throws following error and I'm unable to boot the machine:
checking filesystems
/dev/MyGroup/LogVol00: UNEXPECTED INCONSISTENCY; RUN fsck MANNUALLY
(i.e., without -a or -p…
user2914
- 2,521
- 5
- 21
- 15
4
votes
2 answers
Can't load Ubuntu: Superblock checksum does not match superblock while trying to open /dev/sda7
I have a problem while loading into Ubuntu 17.04.
This happens for the 2nd time after I booted into Windows. For the 1st time I just reinstalled the Ubuntu.
I am not good at this question, so I hope to get a full list of steps to diagnose and…
kozlone
- 75
- 1
- 1
- 6
4
votes
3 answers
Data recovery from an accidental format on ext4 partition
When I was installing Mint Debian edition unlike the classic edition, the installation automatically formated my home partition when I did not specify to format.
So the formatting previously was ext4 as is now. I believe the data is still there as…
Neovatar
- 43
- 1
- 6
4
votes
1 answer
Ext2 block structure: size of reserved GDT Blocks
In every publication I found about ext2, the structure of a block group is defined as following:
Super Block: 1 block
Group Descriptor: N blocks
Data Bitmap: 1 block
Inode Bitmap: 1 block
Inode Table: N blocks
Data Blocks: remaining blocks
However…
goose999
- 61
- 1
- 7
3
votes
1 answer
All my superblocks are corrupt!
I am having a problem with my ubuntu ext3 filesystem. I can't boot from it or mount the volume when running live CD.
When I try e2fsck I get: "Bad magic number in super-block while trying to open /dev/sda5". I have tried all the alternative…
thepeer
- 131
- 1
- 4
3
votes
2 answers
List what each sd is
On Linux I know that sda, sdb, and sdh are hard drives, but I don't know what is sdc, sdd, sde, sdf and sdg are. Some of them are (I think) empty and some of them, the kernel tries to make them spinning without success
Is there a command to know…
aaa
- 157
- 1
- 9
3
votes
2 answers
Access ext4 disk that lost superblock and its backups
I found myself in a weird situation with my system's disk. It's Linux system with 3 partitions, boot, swap and filesystem (ext4). A few days ago i used knoppix from a pendrive (I made the bootable usb drive from a knoppix image myself) because i…
valepu
- 182
- 10