New answers tagged

0 votes

Any operations with file system takes forever

After reloading my computer four times, all started to work fine. There are some actions I do before: Install dbus-launch Updated all Fixed warning while I tried sudo dpkg configure -a Reinstall ...
Minuta18's user avatar
0 votes

'wipefs' man page doesn't make sense

I agree that the wording of the man page seems unclear or misleading. The last paragraph of text before the options states: Note that by default wipefs does not erase nested partition tables on non-...
SpinUp __ A Davis's user avatar
0 votes

In Linux how to find if a file was read and at what time

how to find if a file was read, and at what time auditd set up a watch rule in /etc/audit/rules.d/audit.rules on that specific file, such as -w /opt/something/somefile -p r -k ABC123 the -k ...
ron's user avatar
  • 5,786
2 votes

In Linux how to find if a file was read and at what time

stat and ls -lu can be used to find the last access time which includes the last time that it was read or otherwise accessed including by a tool like cat, awk, sed, grep, vim, less, tail, head, etc. ...
Nasir Riley's user avatar
  • 10.7k
2 votes

In Linux how to find if a file was read and at what time

Most Linux filesystems update and store more than a modification time attribute but also record an file access time (atime). Note: how exact that atime timestamp is, or if it will be available/...
HBruijn's user avatar
  • 7,283
-4 votes

Why can't hard links reference files on other filesystems?

I'm not trying to answer your question, but... Every entry in a directory is a "hard link", including symbolic links. That's wrong. Actually, the first part is right. Every entry in a ...
1 vote

XFS: metadata I/O error in "xfs_trans_read_buf_map" error 5

RHEL XFS-File system Repair Pre-repair Activity Ensure Proper Data Backup (OR) at least a new snapshot Attach the OS Disk to the VM Action Plan Boot the system into Rescue mode from an installation ...
Ruthin kpr's user avatar
2 votes

Why can't hard links reference files on other filesystems?

In a POSIX-like file system, you have two distinct things: You have real files - some data stored on your hard drive, and an inode describing the location and size of the data. And directory entries - ...
gnasher729's user avatar
0 votes

"Bad Jump in FAT partition" and "Bad number of sectors per cluster" right before ext4 offset

Try building and running the misc/findsuper.c utility in the e2fsprogs source tree. It will scan the whole disk and report on the superblocks that it finds, along with the expected start offset of the ...
LustreOne's user avatar
  • 1,565
30 votes

Why can't hard links reference files on other filesystems?

The challenge with this question is that it's based on a falsehood. It's based on the idea that such a thing would be impossible under any circumstances. It's easy to imagine how this might work, so ...
Philip Couling's user avatar
6 votes

Why can't hard links reference files on other filesystems?

What is a hard link You are mixing up inodes and inode-references. A hard-link is an inode-reference. A hard-link does not exist, there is no such thing. At least not as symbolic links exist. Every ...
ctrl-alt-delor's user avatar
35 votes
Accepted

Why can't hard links reference files on other filesystems?

A "hard link" just is the circumstance that two (or more) entries in the hierarchy of your file system refer to the same underlying data structure. Your figure illustrates that quite nicely!...
Marcus Müller's user avatar
0 votes
Accepted

Question on tuning file system cache in Linux UBIFS on MTD

I think I found the turning-knob to make file writing work instantly to FLASH storage. I missed another parameter just defined below dirty_writeback_interval, it is unsigned int dirty_expire_interval =...
wangt13's user avatar
  • 327
0 votes
Accepted

Is there a "reverse COW" filesystem or LVM feature for Linux?

According to the lvm2 docs on snapshots, there are two dm target types that are used here: snapshot-origin [...] For each write, the original data will be saved in the <COW device> of each ...
ldrg's user avatar
  • 129
1 vote

Is there a "reverse COW" filesystem or LVM feature for Linux?

LVM is based on extents: small regions of the disk that are assigned on the fly instead of large partition-like regions. A snapshot or logical volume is going to reference a bunch of these extents in ...
davolfman's user avatar
  • 499
0 votes

Why is mount failing silently for me?

The same happened to me when I forgot to remove old entry in /etc/fstab That's very irrational behaviour, because fstab entry specified wrong FS type and cli command was corect. The mount command ...
Oleg Gritsak's user avatar
2 votes

Are there any filesystems with builtin data repairing via checksums?

Linux has the dm-integrity layer with which you can add error correction to any block device. Sadly, it'll be relatively bad at actually solving the issues the unreliable SD cards pose: The most ...
Marcus Müller's user avatar
0 votes

Is there a standard way of making a copy of file/folder permissions to apply/compare later?

I think that the most portable format you could pick is probably to make a Posix-compliant tar archive. But you first need to figure out exactly what permissions/attributes/flags you want to save. ...
Popup's user avatar
  • 441
1 vote
Accepted

Are there any filesystems with builtin data repairing via checksums?

Yes, they're called, collectively, "RAID": Redundant Array of Independent Disks. The best that's out there for NON-RAID configurations includes EXT4 on Linux. I believe there are others. But ...
Richard T's user avatar
  • 156
0 votes
Accepted

Unix-esque partial-file-locking mechanism

You can acquire partial lock using the the fcntl(2) system call by the F_SETLK, F_SETLKW, or F_GETLK command macros, and providing the partial area to be locked through a an flock structure provided ...
aviro's user avatar
  • 3,885
4 votes

Why does this use of `cp -a` not preserve creation time?

The only time stamps that can be set to arbitrary values (using the utime(), utimes(), utimensat(), futimens() system calls) are the last modification time aka mtime and last access time aka atime. ...
Stéphane Chazelas's user avatar
10 votes
Accepted

Why does this use of `cp -a` not preserve creation time?

Traditional unix filesystems don't have creation time, only ctime. ctime is change time, not creation time. Change time can't be set via OS calls except to change it to the current time. Changing ...
user10489's user avatar
  • 5,936
2 votes
Accepted

How can I solve my strange no space left on device on fedora?

I try btrfs balance start -dusage=5 it helped! After this I deleted some of not needed content and my system worked now again. It's a problem of the btrfs. I'm not a expert but this help me: https://...
Gerd's user avatar
  • 141
0 votes

Is there a way to monitor progress of a btrfs resize?

A negative Unallocated can be used as an indicator of the amount of data that needs to be moved. Tested on Debian 10 with Linux 4.19.0-25 and btrfs-progs v4.20.1. Examples: $ btrfs filesystem usage /...
Andrey Vetlugin's user avatar
1 vote

How can I know if a file system was cleanly unmounted?

For extN filesystems you can check the superblock. For example, tune2fs -fl /dev/sda1 | grep '^Filesystem features:' In my case, a mounted filesystem includes the word needs_recovery whereas a ...
roaima's user avatar
  • 108k

Top 50 recent answers are included