Skip to main content

New answers tagged

3 votes

What is rigid disk block (RDB) and how can I repair it?

After the [sdc] Assuming drive cache: write through message, the kernel is trying to detect the partitioning scheme used on the disk, and read the partition table. But the USB layer is reporting the ...
telcoM's user avatar
  • 101k
1 vote

What is rigid disk block (RDB) and how can I repair it?

Since the issue manifests with different PCs, this sounds like a hardware problem which cannot be overcome by software tools alone. Keep in mind that there are multiple components involved: USB-...
Hermann's user avatar
  • 6,297
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
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
-1 votes

Effects of copy (cp) vs cut (mv) on file systems

mv is fast an clean, but only works that cleanly when inside a single filesystem. Otherwise it's like cp'. Only cpaffects frags and the like notably, although many uses ofmv` do affect the directory ...
Alex North-Keys's user avatar
0 votes

Why is head -c (and similar commands) much slower for large files than small files?

This is likely the consequence of the organization of files on the storage device. There have been many kinds of filesystems historically (on Unix-like systems alone, not to mention others). Some ...
Kaz's user avatar
  • 8,585
0 votes

Failed NVMe M.2 SSD, broken filesystem, unwriteable; can I wipe it anyway?

The only thing that might work is the "secure erase" command, but normally SSDs that have gone readonly as a result of media defects can not be written to because the internal firmware ...
Simon Richter'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

wipefs + disk not cleaned

This little trick forces to clear the partition table: Do a dd of zeros to the device and break after couple of seconds. dd if=/dev/zero of=/dev/sda
Kaleem Khattak's user avatar
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
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
-3 votes
Accepted

What is a value range for filesystem efficiency for btrfs with copying a file between directories?

While further researching public search engines, a simple tool on GitHub was found, providing an approximate overview for a directory's data IO. Maybe that's a starter for others looking for a Linux ...
beyondtime's user avatar
0 votes

Mounting BTRFS in RHEL 8

I have the same issue on RHEL 9. Now what I'll tell you to do is not smart, but it works. To get a kernel with btrfs, I installed kernel-ml from elrepo and rebooted. This alone is enough for me to ...
Mingye Wang's user avatar
  • 1,203
0 votes

What is the difference between a Btrfs filesystem and a Btrfs partition?

No, there is no good reason to shrink a file system, and not shrink the partition. It will just leave wasted unusable space at the end of the partition. No, you can't have two filesystems in one ...
Grunthos's user avatar
  • 101

Top 50 recent answers are included