How to extract Cpio files

Source: Internet
Author: User

Extract cpio files CPIO-IDMV < Filename.cpio

You can also extract the img file: CPIO-IDMV < Filename.imgcpio

Backup command backup: CPIO-COVB > [File|device]

To back up data to a file or device: Cpio-icduv < [File|device}

Restore data to the system common parameters:-o: Copy data to a file or device

-I: Restoring data from a file or device to a system

-T: View the file or device content created by Cpio

-C: A relatively new portable format storage

-V: Displays the file name in the backup process on the screen

-B: Allow preset blocks to be increased to 5120bytes, by default 512bytes, which can speed up backup

-D: Automatically create a directory so that no path can be found when the restore occurs

-u: Update, overwrite old files with newer files Cpio often used with find

Oracle used this archive and had to record it.

#gunzip file name. Cpio.gz

#cpio-IDMV < filename. Cpio

# CPIO-IDVM < Aix_oracle817_32_disk1.cpio

cpio:0511-903 out of phase!

Cpio attempting to continue ...

cpio:0511-904 skipping 124796 bytes to get back in phase!

One or more files lost and the previous file is possibly corrupt!

cpio:0511-027 The file name length does not match the expected value.

# Mans Cpio

C Reads and writes header information in ASCII character form. If a cpio archive

was created using the C flag, it must is extracted with C flag.

Plus the parameter c is OK.

Cpio-idvmc < Aix_oracle817_32_disk1.cpio

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

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.