Skip to main content
3 votes
Accepted

How do you look into sdb1 and sdc1 to make sure data is mirrored in RAID1 using mdadm?

You can run mdadm --action=check /dev/mdX, and follow its progress in e.g. watch head /sys/block/mdX/md/mismatch_cnt /proc/mdstat. This should show mismatch_cnt as 0 throughout the entire test. If ...
frostschutz's user avatar
  • 49.7k
2 votes
Accepted

Ext4 filesystem in LUKS container - container size calculation

How to calculate That depends on how the ext4 filesystem is set up, the shortest way to predict that is to make ext4 filesystems in image files until you find the size where your file fits. And it ...
Marcus Müller's user avatar
2 votes

How to extract files from EXT2 filesystem

This looks pretty broken. It's extremely unlikely that someone labeled their file system with a single non-ASCII character. And it's impossible that they set the revision to a negative gigantic number....
Marcus Müller's user avatar
2 votes
Accepted

Why does df shows same as "du --apparent-size"?

The man page for du right in the short description says it estimates file space usage. There are many filesystem features that can make its output inaccurate. For sparse files, block size would ...
user10489's user avatar
  • 7,449
1 vote

How to Remove a Large File from ZFS Snapshots and Reclaim Space?

Or just use zfs diff described here: Identifying ZFS Snapshot Differences (zfs diff) to list the difference between that 60day snapshot and the actual one. After identifying the location of that BIG....
z0d1ac's user avatar
  • 11
1 vote

Writing to an External USB Flash Drive When Power Could Be Lost

definitely not FAT32. That is a filesystem with zero support for knowing where the power went off. So, you never know whether your file was half written, and if so, for how long, or whether you ...
Marcus Müller's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible