LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lsinitrd

displays the contents of an initramfs image

TLDR

Show contents of current kernel initramfs
$ lsinitrd
copy
Show contents for specific kernel
$ lsinitrd --kver [kernel_version]
copy
Show contents of specific image
$ lsinitrd [path/to/initramfs.img]
copy
List included modules
$ lsinitrd --mod
copy
Unpack initramfs to current directory
$ lsinitrd --unpack
copy

SYNOPSIS

lsinitrd [options] [image]

DESCRIPTION

lsinitrd displays the contents of an initramfs (initial RAM filesystem) image. It lists files, modules, and drivers included in the image, which is essential for troubleshooting boot issues.

PARAMETERS

-k, --kver VERSION

Show initramfs for specified kernel version
-m, --mod
List included kernel modules
--unpack
Extract initramfs contents to current directory
-f, --file FILE
Show contents of specific file in image
-l, --list
List files in initramfs

INSTALL

sudo apt install dracut-core
copy
sudo apk add dracut-core
copy

CAVEATS

Part of dracut tools. Initramfs location varies by distribution (/boot or /boot/efi). May require root for some operations.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid