Yes, sorry, you are correct. I’ve edited my other comments.
Yes, sorry, you are correct. I’ve edited my other comments.
Edit: You are right. I looked it up:
There seems to be an actual technical difference, in the kernel, between an initrd and an initramfs. An initrd is apparently mounted like a normal file system, it’s just in RAM instead of a backed by a block device. An initramfs is a tmpfs into which a (usually cpio) archive is extracted into. The initramfs apparently would be preferable generally, because the kernel understands that it’s a ramdisk, whereas with an initrd it would go through the block device layer, which would mean it would use more ram: If you read a file from an initrd, the kernel would copy the file to ram (unnecessarily, since it’s already in ram) like it would for a filesystem on disk, but for a tmpfs/initramfs, it understands it doesn’t need to do that.
From a user’s perspective there is no significant functional difference I don’t think, and I don’t think this relevant to OP’s question, that probably has more to do with the userspace tools.
So, firstly, about the nomenclature: initrd (initial ram disk) and initramfs (initial ram file system) are usually used interchangeably as far as I know. For example, even though my Debian uses initramfs-tools
, the generated images are called /boot/initrd.img-*
. (Edit: There is a technical difference but an initramfs may be referred to as an initrd (like in this case) due to how similar they are.)
For example, when installing a kernel, apt
shows this output on my Debian machine:
linux-image-6.12.6-amd64 (6.12.6-1) wird eingerichtet ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.12.6-amd64
What you’re talking about is probably the software used to generate this initial ramdisk, which on Debian is done using initramfs-tools
(which contains the mkinitramfs
command), while on other distros dracut
(command: mkinitrd
) might be used.
I will say it strikes me as weird that Devuan doesn’t use initramfs-tools
since it’s a Debian derivative. Maybe you are mistaken about this? Possibly no initrd/initramfs is used at all on this specific Pi version of Devuan? IDK.
Edit: See my other comment. I’m wrong. There is an actual technical difference between initrd and initramfs, but I don’t think that’s actually relevant in this situation. Or rather, both are functionally the same, so it doesn’t really matter from the perspective of the user or distro that there’s a difference. I will keep the rest of the comment as is, since I do reckon OP’s problem is unrelated to this difference, and that probably something else is tripping up OP.
whole lot of annoyance over so-called anti-establishmentarianists who rather talk Linux for months on end with no actual plan of moving even though they talk as if they have one, that fucking ticks me off, and I feel as if it’s everywhere because people wanna fit in
Yeah you’re keeping it real, fucking posers amiright? You’re sooo mad at all these phonies just trying to fit in.
I seriously hope you’re just a teenager because that means you’re going to grow out of this phase, otherwise this is just sad.
This reminds me when I was a teenager, it’s sort of a tradition to call anyone who got into $THING after you did a poser, while the older kids make fun of you for the same reason. This establishes the hacking order. Since I reckon I’m the elder in this situation, I’ll do this to you now: Stop being a poser, you don’t want to scare away any cool grown-ups do you?
This is an terrible take. You must have switched the moment you became aware of Linux, had no qualms or before the switch, didn’t mull it over even a little bit.
Please go back in time to when you weren’t using Linux yet, and direct this rant at yourself and see how you like it.
ls inherits stdout/stderr from bash, and then writes directly to that, which in this scenario is the pty (pseudo teletype) device created by xterm. Bash isn’t involved in forwarding that. The ls output goes via the pty device driver in the kernel straight to xterm, bash doesn’t see it.
In order for what you’re suggesting to work, bash would have to open up it’s own pty, which it doesn’t. But something like tmux does. Hence why I wrote you’d need to make a shell/tmux hybrid. The bash/tmux hybrid could then intercept the ls output and forward it to the xterm pty, like you are imagining. But tmux (or screen) are complex pieces of software, basically full terminal emulators. Adding an overlay (or whatever) feature to xterm for bash to use would surely be less complicated. Though I guess with how many terminal emulators there are, you’d need to convince at least the most popular ones to implement that (good luck). So both ideas, while theoretically possible, seem like non-starters. Too much thankless work and plenty of pushback I imagine.
Since everyone keeps mentioning yt-dlp I gotta ask: what’s wrong with the original youtube-dl? I keep using it, it works, it’s still being updated.
This doesn’t seem like something a shell can implement properly. Well, except maybe you could make a shell+tmux hybrid, but that’s a terminal emulator running inside of a terminal emulator then (as are tmux and screen).
The problem is that when you run e.g. ls, it prints directly to the terminal. The shell could, once ls finishes, reposition the cursor to the top and then print over the ls output, but that’ll just overwrite part of the ls output and ruin the scrollback buffer, which would be annoying.
I think if you really wanted to implement this properly you’d need some sort of new feature (like an overlay layer maybe), implemented by the terminal, and then the shell would have to be patched to make use of that.
Probably this but seems like a pain to use:
https://www.kernel.org/doc/html/latest/dev-tools/kmemleak.html