How to View boot_archive and custom version boot_archive in Solaris

Source: Internet
Author: User
On Solaris, you can see how to view boot_archive and make a customized version of boot_archive. There are two steps: first, view and modify the customization. 1. check boot_archive. the lofiadm and mount commands are mainly involved. Lofiadm command lofiadmiscomm...
On Solaris, you can see how to view boot_archive and make a customized version of boot_archive. There are two steps: first, view and modify the customization. 1. check boot_archive. the lofiadm and mount commands are mainly involved. Lofiadm command lofiadm is command you need to use mounting an existing CD-ROM image under Sun Solaris UNIX. this is useful when the file contains an image of some file system (such as a floppy or CD-ROM image), because the block device can then be used with the normal system utilities for mounting, checking or repairing file system.
The referenced section mainly means: "In a Solaris environment, the lofiadm command is used to mount an existing CD-ROM image. This becomes very useful when files contain images of some file systems, because block devices can be used as normal system tools to mount, view, or repair file systems ". The lofi file is a loopback function of Solaris. the lofi file driver exports the file as a block device. In this way, you can mount the file to the system for operations. The Usage of www.2cto.com lofiadm is as follows: Usage: lofiadm-a |-r file [device] [-c aes-128-cbc | aes-192-cbc | aes-256-cbc | des3-cbc | blowfish-cbc] [-e] [-k keyfile] [-T [token]: [manuf]: [serial]: key] lofiadm-r [device] lofiadm-d file | device lofiadm-C [gzip | gzip-6 | gzip-9 | lzma] [-s segment_size] file lofiadm-U file lofiadm [file | device] the specific operation is as follows: lofiadm-a/platform/'uname-m'/boot_archive:/dev/ Lofi/1 mount the device to the specified folder and perform the following operations: mount-F hsfs/dev/lofi/1/mnt. Then, enter the/mnt directory to view the files in boot_archive. 2. modify boot_archive. after viewing this directory, you plan to customize this boot_archive. you can perform the following operations: Under the/boot/solaris/directory, there is a file filelist. ramdisk. after opening the file, you can see the list of various files. you can see that the list of these files is the same as that opened in step 1. Therefore, add a file to this file, it will exist in the final generated boot_archive. After the modification, run the bootadm command to update the boot_archive File: bootadm update-archive. for more bootadm files, run the following command: www.2cto.com Usage: bootadm update-archive [-vn] [-R altroot [-p platform>] bootadm list-archive [-R altroot [-p platform>] bootadm install-bootloader [- fMv] [-P pool] [-R path] [device1... deviceN] bootadm set-menu [-P pool] [-R altroot] key = value bootadm list-menu [-P pool] [-R altroot] |-I Bootadm add-entry [-P pool] [-I ] Bootadm remove-entry [-P pool] |-I Bootadm change-entry [-P pool] |-I {Key = value} + [set-default] bootadm generate-menu [-f] [-P pool]
After creation, you can use the following method to check whether a new file has been added.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.