Questions tagged [superblock]
The superblock tag has no usage guidance.
82
questions
4
votes
0
answers
81
views
Accidentally ran mkswap on ext4 fs
I accidentally used mkswap on a unmounted 2 TB data partition of a hard drive (not an SSD), while I was on a live USB session. I did not run swapon as I immediately realized what I had just done.
I ...
0
votes
0
answers
19
views
BTRFS not mounting, only one good superblock remaining
I've tried every btrfs tool I can find documentation for to try and mount and recover a KVM/QEMU virtual drive. I'm wondering if anyone knows if it's possible to mount a drive with only one good ...
0
votes
1
answer
79
views
How are EXT4 metadata checksums within group descriptors calculated?
I'm looking at parsing raw EXT4-formatted block devices, just using Python, primarily as a learning exercise, but am having trouble manually generating the expected Group Descriptor checksums - there ...
0
votes
0
answers
23
views
Disk error by partioning dual boot and running fsck -b
so after I partitioned with mini partion tool the drive containing Linux and windows 11 broke the windows so I hoped on linux trying to fix it but the linux partition sustained some damage too it ...
1
vote
1
answer
453
views
Probabilistic (~50%) error on boot regarding "wrong fs type, bad option, bad superblock...missing codepage or helper program, or other error"
I've found a ton of posts on the internet regarding this error:
wrong fs type, bad option, bad superblock on /dev/xxx,missing codepage or helper program, or other error
Yet I have never found any case ...
0
votes
0
answers
160
views
Corrupt EXT4 filesystem, backup superblock no dice
I am a novice linux user, for some time. I need some help with recovering a corrupted EXT4 filesystem.
Ideally, I would like to recover the filesystem intact. The drive in question is 'sda'. The ...
0
votes
2
answers
260
views
What is the difference between blocks and fragments in a group?
The output of a mke2fs command is as follows
root@localhost:~# mke2fs /dev/xvdf
mke2fs 1.42.9 (4-Feb-2023)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 ...
0
votes
0
answers
730
views
XFS superblock not found
I had an old drive beginning to fail and my backups were no good apparently.
I got a new drive larger than the failed one and was able to ddrescue it over, with bad/missing superblocks of course.
...
0
votes
0
answers
427
views
Bad Superblock while mounting an ext4 Disk
I wanted to migrate my Data to a larger Disk for my secondary Drive for my Synology NAS.
I tried to Mount the Disk on a Rapsberry to do a Filetransfer to the new Disk on the Synology.
But on the way ...
1
vote
1
answer
328
views
Unix ext2 superblock - file system creation date
I am trying to find the creation date on an ext2 file system. I seem to get a current date using dumpe2fs.
The problem is that the original ext2 superblock specification does not contain such ...
0
votes
1
answer
2k
views
Bad magic number while trying to mount a new hard disk
Im using RHEL 8.7
I've added new HD nvme0n2 to my linux and created partititions successfully
the output of lsblk -f
NAME FSTYPE LABEL UUID ...
2
votes
0
answers
328
views
Raid can be assembled but not mounted, issue is with the superblock
I moved tow drives which where mounted in a raid1 to another to a new system to be mounted there. One drive was detected instantly, the other one had issues with the super blocks.
After reading Kevin ...
1
vote
2
answers
699
views
Are Superblock and Master File Tables the same thing?
What is the difference between a superblock and a Master File Table (MFT)? Both seem to be tables that keep track of files within a filesystem, but are there other differences? The only difference I ...
0
votes
0
answers
781
views
Recover ext4 partition with bad superblock? (Failed after resizing, backup magic numbers don't work)
Background
Had a Linux root ext4 partition that I needed more space; cleared it from my Windows install, and then modified the remaining stuff on KDE's partition manager on a live usb.
I'm not ...
3
votes
1
answer
3k
views
Fixing missing superblocks on both RAID1 disks using mdadm
My RAID1 array was working fine at /dev/md128 but seems to have completely disappeared after a reboot, with mdadm reporting both disks are missing superblocks. My question is how to fix this?
...
1
vote
0
answers
1k
views
How did my ext3 superblocks get so messed up? And how to fix them?
I've recently found an old external hard disk and I have no idea what's on it. There was only one partition, encrypted with dm-crypt. Luckily I still remembered some of the passphrases that I used ...
1
vote
1
answer
2k
views
md: kicking non-fresh sdg from array! md/raid:md0: and then not enough operational devices (3/7 failed)
today I run in a disaster...
I have a RAID 6 with 7 HDDs and yesterday one disk failed.
After replacing the disk and did a rebuild over night I found out that a 2nd HDD was out of the RAID...
So today ...
0
votes
0
answers
76
views
Fedora boot errors after a update
I did an update on my Fedora USB stick and after that there were errors booting and I got into ermergency mode.
Error:
0
votes
0
answers
644
views
Problem mounting system partitions in rescue mode
I have a serious problem.
Server crashed and not returned, disk problems.
I'm trying to mount /dev/vg/root partition
to access and remove the files but it's giving me a superblock error.
Until ...
0
votes
1
answer
149
views
Bad superblocks after partition manager error, any way to solve?
Alright so I was using Lubuntu to create a swap partition for my KDE Neon system and I used KDE Partition Manager (it came preinstalled with Lubuntu).
It shrinked the drive in 8GB and sat there for a ...
3
votes
2
answers
866
views
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 ...
2
votes
2
answers
801
views
Rebuilding directory tree (and/or inodes)
Problem
My Armbian based Orange Pi webserver crashed (probably because of a power loss). I thought it would be fine since ext4 is more resilient and it usually has been in the past, but for some ...
4
votes
2
answers
2k
views
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 ...
1
vote
1
answer
874
views
How does the OS access files stored on the hard disk?
I know the first thing the OS accesses on the harddisk is the superblock.
But then what?
0
votes
2
answers
3k
views
Superblock problem on a crypto_LUKS drive
When I try to boot from my main drive, I get this error:
That message says "Inodes that were part of a corrupted orphan linked list found" so I tried this - https://askubuntu.com/questions/...
0
votes
2
answers
2k
views
How to erase/wipe all ext4 metadata, not just the filesystem signature 53 ef?
I want to make zero all bits of a partition where an ext4 filesystem structure existed (superblocks, metadata, journal, etc), not just the filesystem signature deleted by wipefs.
I can quickly zero ...
0
votes
1
answer
323
views
Debian grub bootloader / problem superblocks /UEFI
i have an Intel Nuc-8i3beh running a Debian 10 Buster and Windows 10 in dual boot. The Windows system was installed first. The bootloader is grub in uefi mode.
System:
sda -> main harddrive with ...
1
vote
1
answer
47
views
system is running alright with some weird issues, but fsck says all superblocks are corrupt
first off, this is a longer story, and I am not very knowledgeable in any of this. So feel free to ask questions and bombard me with commands to try.
Last year in November I bought a new PC with a ...
0
votes
1
answer
1k
views
mdadm not enough to start array - /dev/sdc2 no superblock
After a power failure on a server with 4 disks in RAID6 configuration, /dev/md1 won't come up (though /dev/md0 does).
mdadm --assemble --scan
mdadm: /dev/md/1 assembled from 3 drives - not enough to ...
1
vote
0
answers
925
views
Ext4 All data deleted, can't recover
I don't know what I did, but I made a disaster and lost around 50000 family pictures. There was inside a raid1.
ls return just 2 files:
root@NAS:/srv/dev-disk-by-label-RAID1# ls
aquota.group aquota....
4
votes
3
answers
18k
views
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 ...
1
vote
1
answer
917
views
Recover old HOME directory data from USB external HDD error: mount: unknown filesystem type 'LVM2_member', Couldn't find valid filesystem superblock
Reason: /boot filesystem corrupted: Both bootable hard drive cables were disconnected with motherboard by accident when it was powered on, which caused the HDDs /boot filesystem crashed. CentOS 7 ...
2
votes
1
answer
183
views
What is the most efficient way to search a block device for valid (filesystem) superblocks?
I have a block device that contains some valid filesystem (including the main and backup superblocks) at some unknown offset with some unknown block size. In my case I happen to know that it's an ext4 ...
0
votes
1
answer
2k
views
How to mount a backup ext4 superblock? I got an error when following instructions [duplicate]
I'm trying to recover stuff after I accidentally formatted an ext4 partition. I'm running the system from a Live USB, and following this guide to mount a backup superblock. However, I get an error ...
5
votes
3
answers
53k
views
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
1
vote
0
answers
91
views
Is there any tool that can test a potential XFS superblock for validity?
All XFS superblocks start with XFSB. Given a list of potential superblocks, is there any method to test them for validity?
$ sudo grep --byte-offset XFSB -ao /dev/sdb
689569283:XFSB
1114071063:XFSB
...
1
vote
1
answer
658
views
All superblocks corrupt, mismatched start sector on extended and logical partitions
While running Linux Mint 19 Cinnamon normally, the drive went into lockdown mode preventing disk writes indicating possible corruption. Upon shutdown and reboot I was met with ACPI errors.
Following ...
-2
votes
1
answer
431
views
How to clean and reboot HDDs pulled from LVM groups (showing bad super blocks)?
I have 2x 4TB HDDs that were put in an LVM group last year, ended up not really using this server due to huge issues around installing nextcloud. At some point it started giving me boot problems so I ...
2
votes
0
answers
517
views
Why do my software RAID1 superblocks keep getting corrupted and how can I prevent this?
How might I be repeatedly corrupting my superblocks on RAID1
I have had two occasions in the past six months of RAID1 root arrays becoming unusable because of problems with the superblock. ...
1
vote
1
answer
15k
views
How to fix bad magic number - Superblock on Linux
I'm running a dual boot system with Windows 7 and Puppy Linux Ubuntu based "Bionic" installed on a separate partition of my main drive.
Completely separate from that I have a 1TB Western Digital ...
0
votes
1
answer
2k
views
Ubuntu won't boot [duplicate]
My laptop ran out of power and when I went to plug it in and power it on, Ubuntu no longer boots. I get directed to BusyBox built in shell that looks exactly like:
BusyBox v1.27.2 (Ubuntu 1:1.27.2-...
0
votes
1
answer
92
views
Will relabeling a partition destroy data
Is it possible to relabel a partition that was accidentally relabeled with a different file system type? We think we accidentally relabeled sdb1 as XFS when it should have been labeled lvm(8e), after ...
1
vote
1
answer
2k
views
Bad magic number in super-block: dm-crypt device
I have a device that is encrypted using dm-crypt. This is a mini SD card that I use on my laptop.
I've had some issues with my laptop freezing recently, and in the journal these messages come up:
...
2
votes
1
answer
301
views
How to recover when ext4 superblock's inode count is reset to 0
We tried to resize a 15TB ext4 partition to 16TB and accidentally managed to hit an old (and fixed in newer releases) off-by-one bug of ext4_resize_fs() which causes inode count to reset to 0 thanks ...
2
votes
1
answer
2k
views
Superblock replicas in ext4
I am trying to find the association between block groups and superblocks in an ext4 filesystem
I was unable to find much of documentation online, except this link that hints that
Because of the ...
1
vote
1
answer
3k
views
mdadm raid 1 how to remove raid and remove data offset to mount normally?
I have a disk that was in a mdadm raid1 with a btrfs partition.
Now I want to use this partition without the raid stuff and mount it normally.
I already zeroed the mdadm superblock, but now the ...
1
vote
1
answer
2k
views
Manually backup superblock - how to & does it make sense?
Background
The first block of an ext4 filesystem is called the superblock - it contains essential metadata. There are backup copies of the superblock scattered throughout the filesystem; they can be ...
0
votes
1
answer
7k
views
File system check of the root filesystem failed, manual fsck can not fix [closed]
Linux Mint 18 on SDD with LVM ext4
Booting in recovery mode shows:
ata3.00: status: { DRDY DF ERR }
ata3.00: error: { ABRT }
ata3.00: configured for UDMA/100
sd 2:0:0:0: [sdb] tag#0 FAILED Result: ...
2
votes
1
answer
3k
views
EXT4 app2sd link2sd partition repair with bad superblock . Partition cannot be mounted on Android but will mount RW w/ su on Linux Live
I have a 128gb micro sd formatted as ext4 10gb for app2sd 2nd ext4 partition ( p2 ) on my Android 6 phone . All my apps ( 80%) stay on that ext4 partition . Now app2sd cant load this partition - "...
2
votes
1
answer
8k
views
How can I view the superblock of an XFS partition?
I know that EXT superblock information can be found using dumpe2fs -h /dev/sda1, but what is the XFS equivalent of this? The best I have found so far is xfs_info /dev/sda1, but this doesn't seem to ...