- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: TAR : Problem with the length of the files nam...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 12:54 AM
06-24-2003 12:54 AM
I have a CDROM of which I would like to make an image TAR under HP-UX11.11, but TAR does not file all the files of CD.
For example, the CD-Rom contains the files :
CSCOpx\CSCOvorb\CSCOvorb_fileset\opt\CSCOpx\www\classpath\com\sun\java\swing\plaf\basic\BasicMenuUIPostAction.class
and
CSCOpx\CSCOvorb\CSCOvorb_fileset\opt\CSCOpx\www\classpath\com\sun\java\swing\plaf\basic\BasicMenuUIMenuChangeListenerSelectChildItemAction.class
File TAR contains the file "BasicMenuUIPostAction.class", but not the file "BasicMenuUIMenuChangeListenerSelectChildItemAction.class".??
That can it be with the length of the file name?
How to make?
Thank you in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 01:19 AM
06-24-2003 01:19 AM
Re: TAR : Problem with the length of the files names
Which kind of mount you are doing ?
Try to read about "pfs_mount"
the mount procedire is :
nohup /usr/sbin/pfs_mountd &
nohup /usr/sbin/pfsd &
/usr/sbin/pfs_mount /dev/dsk/c0t0d0 /cdrom
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 01:22 AM
06-24-2003 01:22 AM
Re: TAR : Problem with the length of the files names
the problem should not be file name length.
Check if you mounted cdrom correctly.
Enrico.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 01:28 AM
06-24-2003 01:28 AM
Re: TAR : Problem with the length of the files names
i found these two notes in the "man tar"
Due to internal limitations in the header structure, not all file
names of fewer than 256 characters fit when using the N version key.
If a file name does not fit, tar prints a message and does not archive
the file.
Link names are still limited to 100 characters when using the N
version key.
Which options are you using to "tar" the cd ?
Your string is 132 chars..
If you have enough space, i suggest:
- copy the CD on a FS using
cd /cdrom
find .| cpio -pdmuvx /destination_file_system
- if the previous succed, do a tar of the /destination_file_system
so we can exclude problems related to the cdrom
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 02:18 AM
06-24-2003 02:18 AM
Re: TAR : Problem with the length of the files names
for the structure of a tar archive see "man 4 tar".
The important items in the structure are:
name - actual name of the file (limited to 100 characters e.g. "BasicMenuUIMenuChangeListenerSelectChildItemAction.class")
prefix - path from the toplevel to the directory (limited to 155 characters e.g. "CSCOpx\CSCOvorb\CSCOvorb_fileset\opt\CSCOpx\www\classpath\com\sun\java\swing\plaf\basic")
linkname - if name is a link, this holds the target (limited to 100 characters).
As Massimo pointed out, there is a warning in the man page for tar that states that there are circumstances when tar will still fail to archive files where these limits are not exceeded.
In any case, tar WILL print a warning if it cannot archive a file due to 'structural' problems. If tar is not printing these warnings, then you have a different problem.
If you just want to archive the CD, why not just use cpio?
Hope this helps,
Michael.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 03:20 AM
06-24-2003 03:20 AM
Re: TAR : Problem with the length of the files names
- mount /dev/dsk/c0t0d0 /cdrom
- tar cvN csco.tar ./cdrom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 03:25 AM
06-24-2003 03:25 AM
Re: TAR : Problem with the length of the files names
the problem is in the " -N " option, as printed above.
If you don't need it, don't use it.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 03:41 AM
06-24-2003 03:41 AM
Re: TAR : Problem with the length of the files names
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 03:52 AM
06-24-2003 03:52 AM
SolutionBackup of a file with more than 100chars will fail, and no fix is planned.
Try downloading the gnutar, from http://hpux.connect.org.uk/
it has lesser limitations.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 04:28 AM
06-24-2003 04:28 AM
Re: TAR : Problem with the length of the files names
the -N option is a default option.
I have created the same path and the same file name in my server running the 11.11 and the tar command has worked well.
Enrico.