Questions tagged [superblock]

21 questions
27
votes
4 answers

Why do inode numbers start from 1 and not 0?

The C language convention counts array indices from 0. Why do inode numbers start from 1 and not 0? If inode 0 is reserved is for some special use, then what is the significance of inode 0?
manav m-n
  • 11,136
  • 23
  • 74
  • 97
8
votes
1 answer

BTRFS mount not possible

Hey after a freeze during update my btrfs partition is not able to mount. I tried all from the Archlinux and BTRFS Wiki I could find, but this wasn't enough. What I tried and the output: $ sudo mount -t btrfs /dev/sda3 /mnt mount: /mnt: wrong fs…
neulaender
  • 173
  • 1
  • 3
  • 10
5
votes
2 answers

Reading the Superblock

I know that in Unix (specifically, Mac OS X) the superblock stores information about the layout of data on the disk, including the disk addresses at which the inodes begin and end. I want to scan the list of inodes in my program to look for deleted…
titaniumdecoy
  • 18,900
  • 17
  • 96
  • 133
3
votes
1 answer

Ext2: Group Descriptors

I'm writing a Java program to go through and navigate into a ext2 filesystem image. I know my fs is revision 1 (or greater), so I know that there are copies of superblock in groups 0,1 and those that are powers of 3,5 and 7. My question is, what…
jrsall92
  • 572
  • 1
  • 5
  • 19
3
votes
1 answer

What replaced get_sb_nodev and get_sb in latest Linux kernel?

I'm wondering what function replaced get_sb_nodev and get_sb function in Linux kernel ? It's no longer available in 3.5+ kernel
daisy
  • 22,498
  • 29
  • 129
  • 265
2
votes
1 answer

Ext3 Block Group Descriptor

I am having a problem understanding how to find Block Group Descriptor table. In literature (D.Poirier: "The 2nd extended filesystem") is stated that block group descriptor is located in block right after superblock. Now, when I look at first disk,…
ph0enix
  • 763
  • 2
  • 8
  • 23
2
votes
1 answer

circular dependency between Dentry and superblock structure in linux kernel

I used to do some oo programming. now I am reading linux kernel code in C. I found : struct super_block { ... ... unsigned long s_flags; /* mount flags */ unsigned long s_magic; …
cppython
  • 1,209
  • 3
  • 20
  • 30
2
votes
1 answer

"CIFS VFS: cifs_mount failed w/return code = -22" and "wrong fs type, bad option, bad superblock"

I've been using a linux server for quite some time now with mounts to several windows shares by using the cifs mounts. so far I always had a line in /etc/fstab: //IPADDRESS/sharename /mnt/localfolder cifs…
user3242272
  • 23
  • 1
  • 4
2
votes
2 answers

In Linux, how many superblocks are there per file system?

I understand that superblocks provide high-level meta data about file systems in Linux, but how many of these structures exist for a given file system? My intuition tells me there's either one per file system, or one per file.
jdmartin86
  • 299
  • 2
  • 16
1
vote
1 answer

How to call an API on an interval in Superblocks

I tried Superblocks, and wanted to call an API for a Grid Component on an interval. My Grid component pulls data from a Google Sheet and I wanted it to update every 2 seconds, but wasn't able to find an auto-refresh functionality to poll the API…
Ksenia
  • 950
  • 6
  • 24
1
vote
2 answers

How do you find where the end of a partition ends on a Linux drive?

In one of my classes our assignment is to find and print some values in the first superblock and then compare those values against all other superblocks in the power of 3, 5 and 7 until the end of the partition. So for example, you compare…
Sanika
  • 41
  • 4
1
vote
0 answers

Linux write into Superblock in C

I have a file that is mounted as a loop device. In order to implement the functionality of dm-integrity in C, I have to overwrite the superblock with NULL. Is there anyway how I can write directly into the superblock? Or is a file write into the…
MajorasKid
  • 733
  • 2
  • 5
  • 24
1
vote
2 answers

missing superblock on encrypted filesystem

I have a hard drive with ubuntu 14 installed. The whole disk is encrypted. My default users home directory is encrypted as well. Lately, after a system crash, I am presented with a busybox (initramfs) on startup. When I chose to start in recovery…
Creech
  • 258
  • 2
  • 12
1
vote
1 answer

Find the superblock on disk

i have to write python script in my work. My script must print all devices which meet some conditions. One of this conditions is superblock. Device must have superblock. other conditions: any partitions is not mounted - DONE any partition is not…
Johny
  • 125
  • 1
  • 1
  • 6
1
vote
0 answers

How can vxfs backup superblock data be recovered in Redhat?

While Veritas CFS solution is installed in mail server, disk I/O error is happened. In order to solve this problem, the disk setup command is used but the head data(31MB) is cleared. My question is how many vxfs(Veritas File System) backup…
1
2