How to make Image image file 1.txt below Linux operating technique
- gormsenbladt70hoiw
- Jun 12, 2020
- 2 min read
Welcome towards the Linux neighborhood forum, interact with 2 million technicians to find out what you want to do with rh_linux.img. If hard drive recovery software is actually a file program, then you have to have to accomplish this:
ddif=/dev/zeroof=rh_linux.imgcount=CONTS
The parameter count indicates the size of the file to be developed (in blocks, every block is 512 bytes, if the size of rh_linux.img is 1M, then CONTS=2000).
Immediately after generating rh_linux.img, you may need to work with file system tools (mkfs.ext2, mkfs.ext3, mkfs.jffs2, and so on.) to format it (as an example: mkfs.ext3rh_linux.img); subsequent use: mount-oloopMDIRrh_linux.img mirror If the file is mounted within the directory MDIR, copy boot.bin into it.
A single. Why do you wish such a Linux
I've always wanted to create my own tiny linux, however the outcomes in the on-line search are all constructed on a floppy disk, and they're all began with lilo. Unfortunately, my notebook will not possess a floppy drive, so they are not appropriate for myself. Simply make https://pyjamashovel47.webs.com/apps/blog/show/48588134-never-make-use-of-the-telephone-butler-to-clean-up-the-trash-teach-you-to-delete-these-folders-can-save-a-great-deal-of-space-txt that could be booted and run from the CD.
two. Introduction to Linux Startup
Immediately after the method is powered on, it enters the bios, then reads the hard disk's master boot record (MBR), after which calls another boot system (grub or lilo) to load the kernel and image file. After loading the kernel, the system will retailer the file program inside the ram, and then the method runs. Here we use grub to load the kernel and image files.
3. Compile the kernel
I use the linux2.6 kernel. The detailed method of compiling the kernel can be obtained in the following post, which will not be repeated right here.
http://hi.baidu.com/lianxi1999/blog/item/95c782111f75a212b8127b03.html
four. recovery software is usually a software program that integrates more than 1 hundred of the most usually employed linux commands and tools. My understanding is to produce small programs for frequent commands beneath linux. Right after placing the compiled busybox plan into our system, we are able to use some widespread commands under linux.
Compiling busybox would be the similar as compiling programs under other linux. 1st download busybox, I use version 1.0.
#tarxvfzbusybox-1.00.tar.gz//Unlock busybox
#cdbusybox-1.00
#makemenuconfig//Configure busybox
The following are the functional options that need to be compiled into busybox, other individuals may be primarily based on their own desires
GeneralConfiguration should be chosen
Showverboseappletusagemessages
RuntimeSUID/SGIDconfigurationvia/etc/busybox.conf
BuildOptions
BuildBusyBoxasastaticbinary(nosharedlibs)
This choice should be selected, in order that the busybox is usually compiled into a statically linked executable file, and also the runtime is independent of other function libraries. Otherwise, other library files must be expected to run, along with a single linux kernel cannot make him perform properly.
InstallationOptions
Don'tuse/usr
This option should also be selected, otherwise busybox are going to be installed under the original system's /usr following makeinstall, that will overwrite the original command from the method. Following picking this choice, soon after makeinstall will produce a directory called _install below the busybox directory, There's busybox along with a link to him.
The other alternatives are some basic Linux command possibilities.Compile them as you would like, commonly make use of the default ones.
Just after configuration, exit and save.
#make//Compile busybox
#makeinstall//install busybox
Just after compilation, a subdirectory _install is generated in the busybox directory, plus the contents inside:
bin
linuxrc-bin/busybox
sbin
【Editor in charge: Yoyo】
Comentarios