I'm trying to get file creation time using whatever I could find on the Internet and there's generally one solution that works for everybody, and this is the tutorial: https://tecadmin.net/file-creation-time-linux/
And this is where it goes wrong:
root@namename:/home/name# debugfs -R 'stat <33567136>' /dev/sda1
debugfs 1.42.13 (17-May-2015)
/dev/sda1: Bad magic number in super-block while opening filesystem
stat: Filesystem not open
root@namename:/home/name#
I have no idea what to do with it, I'm a simple man, with simple wish, get 33567136's creation time (and every other file's afterwards).
When I Google this, results say that file system needs fixing because it is corrupted. However, my computer is working perfectly. There's nothing I can't access, no lag, no blocks, no inaccessibilities. It is also the only operating system.
I also weren't able to find clear tutorial on how to update debugfs in case of compatibility. sudo apt-get install debugfs
and apt-get install --only-upgrade debugfs
doesn't cut it: E: Unable to locate package debugfs
. I weren't able to find the repo.
I would like to get the creation time, yet, can't because of issues I don't understand.
debugfs
only works for ext2/ext3/ext4 filesystem types. If you're using a distribution that uses e.g. an XFS or BTRFS filesystem by default,debugfs
will not work unless you've explicitly specified the filesystem type as ext2/3/4 when creating the filesystem (probably at OS installation time). Basically, the "bad magic number" error message means "this does not look like an ext2/3/4 filesystem".debugfs
is typically part of thee2fsprogs
package./dev/sdc
when I in fact meant to use/dev/sdc1