In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use the mkinitrd command in Linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Linux commonly used command mkinitrd command to create an image file to load ramdisk for Linux to load ramdisk when booting.
Mkinitrd creates the image file to load ramdisk
Add that this is a command to re-package the core, for example, you have modified the driver of a device. If you want to add the driver to the core level, you need to repackage the core and compile the newly added configuration into the core!
Syntax mkinitrd (option) (parameter) option-f: if the specified image asks for a duplicate name with the existing file, overwrite the existing file;-v: display detailed information when performing;-- omit-scsi-modules: do not load the SCSI module;-- preload=: specify the module to be loaded;-- with=: specify the module to be loaded;-- version: display version information. Parameter image file: specify the image file to create
Kernel version: specifies the kernel version.
Example [root@localhost tmp] # mkinitrd-v-f myinitrd.img $(uname-r) Creating initramfs WARNING: using / tmp for temporary files Looking for deps of module ide-disk Looking for deps of module ext3 jbd Looking for deps of module jbd Using modules:. / kernel/fs/jbd/jbd.ko. / kernel/fs/ext3/ext3.ko / sbin/nash-> / tmp/initrd.Vz3928/bin/nash / sbin/insmod.static-> / tmp/initrd.Vz3928/bin/insmod / sbin/udev. Static-> / tmp/initrd.Vz3928/sbin/udev / etc/udev/udev.conf-> / tmp/initrd.Vz3928/etc/udev/udev.conf copy from / lib/modules/2.6.9-5.EL/./kernel/fs/jbd/jbd.ko (elf32-i386) to / tmp/initrd.Vz3928/lib/jbd.ko (elf32-i386) copy from / lib/modules/2.6.9-5.EL/./kernel/fs/ext3/ext3.ko (elf32-i386 ) to / tmp/initrd.Vz3928/lib/ext3.ko (elf32-i386) Loading module jbd Loading module ext3 [root@localhost tmp] # file myinitrd.img myinitrd.img: gzip compressed data From Unix, max compression [root@localhost tmp] # mv myinitrd.img myinitrd.img.gz [root@localhost tmp] # gzip-d myinitrd.img.gz [root@localhost tmp] # file myinitrd.img myinitrd.img: ASCII cpio archive (SVR4 with no CRC) these are all the contents of the article "how to use mkinitrd commands in Linux" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.