[SOLVED] What order should I restore timestamps including with debugfs?
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It is a low level Linux debugger, being careful is better than being with a toast computer. Better safe than sorry as that old saying goes. Would you like me to try to write a script for you?
Just to be clear, something like "sudo mount debugfs /dev/sdXN" to start and then I can access stuff in debugfs then like that previous command but "u" in front of "mount"? I read man debugfs but there is little about this. Did you just do without mount or not? X E.
I can't find anything that says otherwise and I debugfs man page it looked like no mount so unless I hear otherwise, unmounted and stayed unmounted. X E.
Yes, the file system which you are editing should be unmounted. The 'debugfs' command accesses the disk directly.
If the fs were mounted, the OS would have an inode cache in RAM, and it would have different content than the disk if you access the disk directly using debugfs. The worst thing to do would be, for example, mixing 'touch' commands going via the OS and 'debugfs' commands going directly to the disk bypassing the inode cache. It would probably not do anything bad to your fs but at least you couldn't take it granted that all the time stamps were finally what you wanted.
Just to be clear, something like "sudo mount debugfs /dev/sdXN" to start and then I can access stuff in debugfs then like that previous command but "u" in front of "mount"? I read man debugfs but there is little about this. Did you just do without mount or not? X E.
Mounting debugfs sounds again like confusing apples the fruits with Apple the computer company.
Nothing to do with editing ext4 file systems with command "debugfs", there is a virtual file system also called "debugfs". It can be mounted at /sys/kernel/debug. For example, if the kernel is built preemptible, you can control that:
Code:
root@acer:~ # mount -t debugfs none /sys/kernel/debug
root@acer:~ # cat /sys/kernel/debug/sched/preempt
none (voluntary) full
root@acer:~ # echo none > /sys/kernel/debug/sched/preempt
root@acer:~ # cat /sys/kernel/debug/sched/preempt
(none) voluntary full
Last edited by Petri Kaukasoina; 01-14-2024 at 04:49 AM.
It looks a bit more complicated with the extra bits for years>2038.
If you looked at the link he provided you saw this table: https://ext4.wiki.kernel.org/index.p...ode_Timestamps. The change will be after 2038-01-19 03:14:07 UTC when all the aeroplanes will also fall down and the banks will lose all the money.
Last edited by Petri Kaukasoina; 01-15-2024 at 04:17 AM.
Okay so that change should stay after 2038. With that like my programs are complete but not with restore tested yet. Mr. Ts'o to me seemed to be like maybe they would not stay but stayed ambiguous about it thus far. Not contradicting you but now I am unsure why Mr. Ts'o is how He is in messages. I agree with you based on like my research. There may be an i_ or not i_ to set though so have to work with that. X E.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.