[linux] what‘s the kdump?

kexec-tools

Compilation of kexec-tools source code provides an executable called kexec. The same executable can be used to load and execute a second kernel or to load a capture kernel, which can be executed upon kernel panic.

A typical command to load a second kernel:

复制代码
# kexec -l kernel.img --initrd=initramfs-image.img –reuse-cmdline

--reuse-command line says to use the same command line as that of first kernel. Pass initramfs using --initrd . -l says that you are loading the second kernel, which can be executed by the kexec application itself (kexec -e ). A kernel loaded using -l cannot be executed at kernel panic. You must pass -p instead of -l to load the capture kernel that can be executed upon kernel panic.

A typical command to load a capture kernel:

复制代码
# kexec -p kernel.img --initrd=initramfs-image.img –reuse-cmdline
相关推荐
thinkMoreAndDoMore3 小时前
linux内核匹配I2C设备
linux·运维·服务器
PatrickYao04228 小时前
Hydro OJ部署完全指南!
服务器·oj·hydro·在线评测
小政同学8 小时前
【NFS故障】共享的文件无法执行
linux·运维·服务器
不会写DN8 小时前
受保护的海报图片读取方案 - 在不公开静态资源目录下如何获取静态资源
服务器
AI木马人8 小时前
3.【Prompt工程实战】如何设计一个可复用的Prompt系统?(避免每次手写提示词)
linux·服务器·人工智能·深度学习·prompt
ch3nyuyu9 小时前
Ubuntu(乌班图)基础指令
linux·运维·网络
minglie19 小时前
gcc编译器汇总
linux
挽安学长9 小时前
保姆级教程,通过GACCode使用Claude Code Desktop!
运维·服务器
firstacui10 小时前
MGRE实验
运维·服务器·网络
白菜欣11 小时前
Linux —《开发三件套:gcc/g++、gdb、make/Makefile 全解析》
linux·运维