LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error with cpio: truncating inode number (https://www.linuxquestions.org/questions/linux-software-2/error-with-cpio-truncating-inode-number-386851/)

abefroman 11-26-2005 08:59 PM

Error with cpio: truncating inode number
 
I am getting an error with cpio:
Error with cpio: truncating inode number

is anyone familar with how to fix that?

Okie 11-27-2005 02:18 PM

i believe the inode number has to do with a disk partition and/or a Linux native file system, it could be a bad sector or an error on the disk from a disk partitioning tool...

if your OS is functioning good then i would not worry about it too much, however i would consider making backups of all your personal data on the drive you dont want lost such as photos, documents, music & video, bookmarks, software packages, burn it to CDr or DVDr or copy to another harddrive that does not have this error...

jwstephens 08-30-2006 10:52 AM

Use c option to get larger number of inode
 
Quote:

Originally Posted by abefroman
I am getting an error with cpio:
Error with cpio: truncating inode number

is anyone familar with how to fix that?

the default size of the inode number in the cpio format is 16 bits, so the inode number may not be larger than 65535.

the adding the c option to your options is the best way to fix this. It allows a number compatable with the linux box and the messages should go away.

create an archive with:

find . -print|cpio -ovcBO <archive path name>

restore archive with

cpio -ivcI <archive path name>

note: using cpio allows restoration of files with soft links, etc. on systems without gnu tar, which added support for other types of files, which is absent from tars on a lot of systems.


All times are GMT -5. The time now is 11:23 AM.