Uncompress cpio.zst initramfs

Who deals with embedded Linux already had the situation where there’s the need to inspect the contents of a system that executes from RAM. Usually, it exists only compressed as a single file at a boot folder, or is thrown around at an EFI partition or /boot formatted using FAS16/32, like on a RaspberryPi. The command for that is simple, with the initramfs on this example being called rootfs.cpio.zst: zstdcat rootfs.cpio.zst | cpio -idmv That’s it. Since it isn’t really a file system, there’s no need to mount it. It will expand all their root tree contents inside the folder that you called the command, ready to be inspected.

19/10/2022 · 1 min · map[name:Felipe Bugno]

Access remote server on Linux with SSHFS using Autofs

One of the most irrational things on Linux, when they don’t have to deal with Windows, it why use SAMBA/CIFS. It’s cumbersome to configure, and don’t feel at home on Linux at all. And there’s NFS, that unfortunately ins’t much better at the simplicity aspect (if you use authentication), and actually, can be even worse if you use some exotic distribution without the required kernel modules. But there’s something that all slightly more advanced users has on his file server that usually is shipped by default: SSH. ...

13/05/2022 · 3 min · map[name:Felipe Bugno]