DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I tried to use Ark to extract a cpio archive but it told me that cpio format is not supported. I trid also with mc with no luck. I got the latest of cpio installed but do not know how to use it. I tried with man pages but not clear. Can some one explain how to do it? or tell me if there is a gui for cpio?
It's hard to say for sure what will work w/o knowing the parameters used when the archive was created but this is worth a try:
cpio -id < archiveName
The -i says to extract and the -d says to create directories ahead of time if necessary. You might also want to try "-m" to preserve modification times on the restored files.
Thanks dave. I am trying to edit a file called message that a distro uses to display its menu during bootup. I am able to open the file with:
cpio -im < message
I made the changes I need ant tried:
cpio -o > message2
but did work so I did:
cpio -o > message2
and got:
knoppix@box:~/work$ cpio -o > message
bash: message: Permission denied
knoppix@box:~/work$ su
Password:
root@box:/home/knoppix/work# cpio -o > message
I'm a little surprised to see cpio used in this way. My typical use has been to combine cpio with find to archive all files in a directory or to copy files from one directory to another:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.