Questions tagged [superblock]
21 questions
1
vote
1 answer
Filesystem- ext4 : Application corrupting superblock
I found many links but almost all are pointing to fix not the reason.
I created a 7GB ext4 partition on a sd card connected via USB card reader to PC. I have an application which is writing 10488576 bytes to the mentioned partition (/dev/sdc2).…

Diwakar Sharma
- 415
- 1
- 9
- 26
0
votes
0 answers
Erase and recover superblock on ext filesystem
trying to erase only 1st superblock and two other backup superblocks (on ext4 fs), excluding MBR (seek=1) using dd cmd:
here is info about fs:
sector=512bytes; block size=4096;
Superblock backups stored on blocks:
32768, 98304, 163840, 229376,…

Jeremy Acai
- 29
- 2
0
votes
0 answers
Why in Linux Virtual File System, the s_blocksize_bits is one bit less than ordinary binary?
Part of the struct super_block structure definition is presented below:
struct super_block {
//...
dev_t s_dev; /* identifier */
unsigned char s_blocksize_bits; /* block size in bits…

Smith Cruise
- 404
- 1
- 4
- 19
0
votes
1 answer
ext2 "image" files vs real ext2 devices
I'm tasked with writing a reader program for windows that is able read an ext2 partition.
For my testing I'm using a drive I formatted to ext2 and a file I created using mkfs (a file that does mount and work well under linux)
For some reason when I…

user407487
- 83
- 2
- 8
0
votes
1 answer
how to print the s_uuid of ext2 superblock in C
I create a variable to store the value of superblock's s_uuid. But I get trouble into how to print this variable like xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx in this form. I tried to use printf in %x and %s to print my variable, but it doesn't work.
I…

xiekuan
- 3
- 1
0
votes
2 answers
reading linux inode bitmap
I'm going to fetch linux inode bitmaps with c++. I've use this code to fetch super block first:
#include
#include
#include
#include
#include
#include
…

hamedkh
- 909
- 3
- 18
- 35