#initramfs

Kevin Karhan :verified:kkarhan@infosec.space
2025-12-12

@yura so @ActionRetro took a look at #Floppinux?

Thanks to @w84death btw, cuz Flioppinux inspired me to @OS1337 which uses #toybox instead of #BusyBox to get even smaller.

github.com/OS-1337/OS1337

GripNewsGripNews
2025-12-11

🌖 Linux 核心:身為一個可建置與執行的程式
➤ 動手實驗,解開 Linux 核心的神祕面紗
serversfor.dev/linux-inside-ou
這篇文章旨在破除 Linux 核心神祕的迷思,透過實際操作與實驗,揭示核心其實就是一個可建置、可執行的二進位檔案。作者引導讀者利用 QEMU 虛擬機載入 Linux 核心,並解釋為何初始執行會出現 Kernel panic,這是因為核心需要一個 init 程式來接管。接著,文章示範如何使用 Golang 編寫一個簡單的 init 程式,並建構一個最小化的 initramfs 檔案系統,最終成功讓核心載入自訂的 init 程式,並能執行基本輸出,從而建立對 Linux 系統運作機制的初步理解。
+ 寫得真好!我從來沒想過可以這樣直接啟動核心,而且用 Golang 寫 init 程式也太酷了吧!
+ 實用性很強,跟著作者的步驟一步步做,真的能對核心有更深的

2025-12-03

Собираем Linux, который весит меньше, чем мем с котиком, ну или почти…

Мне всегда было интересно, насколько минимальным может быть Linux. Три года назад я уже публиковал статью , но понимание темы меняется. Сейчас хочу освежить знания и поделиться ими. В отличие от предыдущей статьи, в этой я рассматриваю Linux с более свежим ядром с минимальной конфигурацией на основе tinyconfig, оформленный в виде одного файла и загружаемый при помощи UEFI. Зачем вообще нужно создавать такие сборки Linux? Установил готовый дистрибутив или загрузился в Live — работай и изучай. Но такой подход не даёт настоящей уверенности в знаниях. Представьте: водитель и шофёр. Водитель просто ездит. Шофёр знает устройство автомобиля и может его починить. Современные автомобили сложны — починить всё самому уже нельзя. Но вы можете открыть капот, измерить уровень масла, заменить колесо в случае прокола, установить винт для буксировочного троса и т. д. Так же и с Linux: коммерческий дистрибутив вы вряд ли соберёте, но на одну ступеньку вверх по лестнице профессионализма подниметесь. На мой взгляд, описание создания минимального Linux не должно быть большим, поэтому я старался его сделать минимально возможным, вложив максимум смысла. Как минимальный Linux служит для понимания более сложных вещей, так и моя статья даёт базу для дальнейшего более глубокого изучения. В комментариях к моей предыдущей статье я видел замечания, что можно использовать buildroot или книгу Linux From Scratch . Скажу только, что я преследую другие цели: собрать минимальный Linux без использования специализированных программ и сделать это как можно проще. Всем, кого заинтересовало, добро пожаловать под кат.

habr.com/ru/companies/ruvds/ar

#linux #дистрибутив #минимальный_Linux #сборка_ядра #uefi #busybox #linux_from_scratch #initramfs #qemu #ruvds_статьи

2025-12-03

Собираем Linux, который весит меньше, чем мем с котиком, ну или почти…

Мне всегда было интересно, насколько минимальным может быть Linux. Три года назад я уже публиковал статью , но понимание темы меняется. Сейчас хочу освежить знания и поделиться ими. В отличие от предыдущей статьи, в этой я рассматриваю Linux с более свежим ядром с минимальной конфигурацией на основе tinyconfig, оформленный в виде одного файла и загружаемый при помощи UEFI. Зачем вообще нужно создавать такие сборки Linux? Установил готовый дистрибутив или загрузился в Live — работай и изучай. Но такой подход не даёт настоящей уверенности в знаниях. Представьте: водитель и шофёр. Водитель просто ездит. Шофёр знает устройство автомобиля и может его починить. Современные автомобили сложны — починить всё самому уже нельзя. Но вы можете открыть капот, измерить уровень масла, заменить колесо в случае прокола, установить винт для буксировочного троса и т. д. Так же и с Linux: коммерческий дистрибутив вы вряд ли соберёте, но на одну ступеньку вверх по лестнице профессионализма подниметесь. На мой взгляд, описание создания минимального Linux не должно быть большим, поэтому я старался его сделать минимально возможным, вложив максимум смысла. Как минимальный Linux служит для понимания более сложных вещей, так и моя статья даёт базу для дальнейшего более глубокого изучения. В комментариях к моей предыдущей статье я видел замечания, что можно использовать buildroot или книгу Linux From Scratch . Скажу только, что я преследую другие цели: собрать минимальный Linux без использования специализированных программ и сделать это как можно проще. Всем, кого заинтересовало, добро пожаловать под кат.

habr.com/ru/companies/ruvds/ar

#linux #дистрибутив #минимальный_Linux #сборка_ядра #uefi #busybox #linux_from_scratch #initramfs #qemu #ruvds_статьи

Dantali0n :arch: :i3:dantalion@fosstodon.org
2025-11-29

If you use #btrfs on kernels ranging from 6.12 to 6.19 and get the error:

VFS: Unable to mount root fs on unknown_block(0,0)

Add the 'btrfs' and 'microcode' hooks to /etc/mkinitcpio.conf via chroot and rerun initramfs generation.

If that doesn't help install `intel-ucode.img` and add it to your grub boot parameters in the initrd list.

If that still doesn't help (happens on Intel 3770k and older) disable #zstd initramfs compression, use gzip instead.

You are welcome

#initramfs #microcode

Dantali0n :arch: :i3:dantalion@fosstodon.org
2025-11-29

I have now both an Intel 3770k and 4670k that kernel panic upon trying to load #initramfs with the error 'VFS Unable to mount root fs on unkown-block(0,0)'

2025-11-23

Force initramfs to wait for all btrfs drives before scanning / mounting #boot #initramfs #btrfs

askubuntu.com/q/1560002/612

Dantali0n :arch: :i3:dantalion@fosstodon.org
2025-11-22

I have this interesting #linux problem on an Intel 3770k where it fails to decompress #initramfs and the kernel panics on the unknown block device.

Apparently, this happens because of zstd and the Intel #uCode should fix it. But it doesn't.

It passes a SMP memtest just fine but it can't seem to do any handover past the first EFI entry, I can't even enter the EFI shell.

Perhaps I should reflash the bios because it should be able to pop a shel..

2025-11-21

TIL that the “unmkinitramfs” command exists.

I had long considered the #initramfs to be a difficult format because it's two or more concatenated archives, which unarchiving tools can't usually deal with. (They'll usually extract only the first archive [tar, cpio, etc] or the last archive [zip].)

Fortunately, someone made a program for extracting this peculiar concatenated-archive format.

Unfortunately, I was today years old when I found out that it exists! 🤦‍♂️

#Linux

2025-11-14

ALERT ! /dev/mapper/ubuntu--vg-ubuntu--v does not exist. Dropping to a shell! #filesystem #initramfs #fsck #cryptsetup #busybox

askubuntu.com/q/1559671/612

2025-10-30

Автоматический выбор версии NVIDIA драйвера при загрузке Linux дистрибутива PocketHandyBox

Проприетарные драйвера NVIDIA для Linux по умолчанию не предполагают возможности соседства нескольких версий в одной файловой системе в классических дистрибутивах. Но эта проблема может быть легко решена в модульных дистрибутивах путем создания отдельных squashfs модулей с разными версиями NVIDIA драйверов. Таким образом получаем рабочий драйвер NVIDIA сразу после запуска и без дополнительных манипуляций.

habr.com/ru/articles/961400/

#nvidia #linux #debian #initrd #initramfs

tymoty 🇪🇺tymoty@f.cz
2025-10-18

#Ubuntu #BusyBox #initramfs

BusyBox v1.36.1 (Ubuntu 1:1.36.1-6ubuntu3.1) built-in shell (ash)
Enter 'help' for a list of built-in commands

(initramfs) exit
Gave up waiting for root file system device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! UUID=b2046752-c2f9-b729-711404875fe2 does not exist. Dropping to a shell!

BusyBox v1.36.1 (Ubuntu 1:1.36.1-6ubuntu3.1) built-in shell (ash)
Enter 'help' for a list of built-in commands

(initramfs) _

Kevin Karhan :verified:kkarhan@infosec.space
2025-09-29

@restorante @mrmasterkeyboard @arnan so again more bloated and centralized that #SystemD (where you don't have 1 single binary) and more complex to maintain than #neovim - #NvChad

Just to give you context: I'm working on @OS1337 and my target is to make a useable system that can fit @ 1440kB boot.media and I'm already pissed that #ISOLINUX wastes 200kB just to load the #Kernel & #initramfs!

2025-08-29

Clean boot. Secure start. This #oSC25 session dives into securing #initramfs, signing components, and building #UKIs at scale in #openSUSE. Hardening #Linux from the very first byte. youtu.be/Ryf1PIofsqw?si=6pWTOT

Navi :therian:navi@catcatnya.com
2025-08-20

If you have lots of RAM available, but need to save some space on /boot with Arch Linux :arch_linux: when using mkinitcpio (default initramfs setup): Set MODULES_DECOMPRESS in your mkinitcpio.conf to yes.

The default zstd compression will ensure the initramfs image on /boot to be smaller than if this option were not enabled, but RAM usage may be higher when booting.

#ArchLinux :arch_linux: #initramfs #mkinitcpio

Admin:Docsitdocs
2025-07-20

Wie startet dein Linux-System und wie konfigurierst du den Boot-Prozess professionell? Genau hier kommt das Boot-Management ins Spiel – ein absolut kritischer Bereich der Linux-Administration, den du als angehender Administrator unbedingt verstehen musst.

Ohne dieses Grundverständnis stehst du bei Boot-Problemen hilflos da.

admindocs.de/linux-administrat

Fossery Tech :debian: :gnome:fosserytech@social.linux.pizza
2025-07-13

(more Linux news in original post)

Initramfs vulnerability lets attackers with physical access compromise encrypted systems by entering incorrect password several times and accessing the debug shell on Ubuntu 25.04 and Fedora 42 systems:
omgubuntu.co.uk/2025/07/ubuntu

Linux kernel 6.15.6 and 6.12.37 LTS deliver TSA (Transient Scheduler Attacks) mitigations:
phoronix.com/news/Linux-6.15.6

Wayback is now hosted on FreeDesktop.org:
phoronix.com/news/Wayback-Free

System76 Adder WS laptop available with Intel Core Ultra i9 and NVIDIA 50 series:
9to5linux.com/system76s-adder-

(FOSS news in comments)

#WeeklyNews #News #Linux #LinuxNews #Initramfs #LinuxKernel #Wayback #System76 #LinuxDesktop #DesktopLinux #LinuxLaptop #XWayland #Security #Vulnerability #FosseryTech

Matúš 🇸🇰🇪🇺:tux:dasmatus@raphus.social
2025-07-10
2025-07-09

Fedora 43 to Use Zstd Compression for Faster Boot and Smaller Initrd #fedora43 #zstd #initrd #initramfs #fastboot #linux #dracut
ostechnix.com/fedora-43-initrd

2025-07-06

Ubuntu Security Flaw Lets Attackers Bypass Full Disk Encryption
#OMGUbuntu article: omgubuntu.co.uk/2025/07/ubuntu

“Not all #Linux distributions are affected, such as #OpenSUSE_Tumbleweed.”

#Attackers with physical access to a Linux system can access a debug shell simply by entering the wrong #decryption #password several times in a row. On Ubuntu, they hit esc at the password prompt, punch in a few key combos and debug shell appears.
They can mount a USB drive with tools that let them modify the #initramfs (Initial RAM Filesystem – a temporary system run during boot to prep the main OS) to inject #maliciouscode, and then repack it – without tripping any #security flags.
Then, the next time the owner boots up their #laptop and enters their correct password, the code runs with elevated privileges to do whatever the #attacker wants.”

“Impactful though this exploit could be in the wild, there is no reason for most #Ubuntu users to be concerned about it.
This #vulnerability is what the security industry refer to as an '#evilmaidattack': it requires physical access to a #device to pull off.”

“Finally, protecting against this #vulnerability is easy. Users can simply tweak their system #kernel so that the #computer #reboots on failed password attempts, instead of providing a #debug shell.”

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst