Skip to content

u/mknjc

In this archive from Apr 2020 to Jun 2021

0
posts
15
comments
0
media
30
score

Top comments

If the attacker has enough access to change the kernel on your disk he could change the bootloader as well and so encrypted /boot doesn't help you. Even if you take your bootloader with you on a usb stick it's not safe either because the uefi might be manipulated by the attacker. And if you put your bootloader on a remote medium you could put your kernel there as well. I can't see any way encrypting /boot increases security

4 points

You could check the cgroup tree of the bash running sudo (for example with systemd-cgls) this might get you a clue which service is responsible.

You also could freeze it (sending sigstop should be enough) and check for processes connected through pipes or sockets with the bash process (with lsof). You might also get the path to the script containing the call.

In the meantime until the call happens again you could check for files containing the string "echo test" with grep.

3 points

Btrfs uses a kernel thread "btrfs-cleaner" together with the normal "btrfs-transaction" kernel thread to clean up.

At least in htop you could enable kernel threads with Shift + K.

And no there is no easy way to get the current state of the cleanup. If you are willing to learn a lot new you maybe could build something with kprobes.

2 points

I guess you have snapshots on your btrfs partition, this explains why your disk usage didn't get down after deleting a folder and also explains your du output (du -x doesn't traverse into subvolumes).

Try enabling quota (btrfs quota enable) and check your per subvolume consumption (btrfs qgroup show) you might have to wait until the quota scanning finished.

You could resolve the subvolume IDs from qgroup show with btrfs sub list.

Before deleting subvolumes you should disable quota management again, it's a big performance hit.

2 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.