- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tar not working
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
11-25-2003 12:22 PM
11-25-2003 12:22 PM
tar not working
I have ftped one tar file from one machine to another using binary mode. But when I tried to untar the file in the destination machine, I got the message:
tar: cannot open file
Can anyone tell me what is the reason for this message.
Thanks,
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 12:32 PM
11-25-2003 12:32 PM
Re: tar not working
The error indicates that tar either doesn't have permissions to open the file or can not see the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 04:17 PM
11-25-2003 04:17 PM
Re: tar not working
Is it working on source machine.
try ftp again.
tar -xvf
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 05:21 PM
11-25-2003 05:21 PM
Re: tar not working
If that does work, your problem is probably that the file inside the tar file can not be created on your system...
If that doesn't work on the destination machine, but works on the source machine, the problem is with the FTP.
If it doesn't work on both machines, check what you wanted to tar. I am not sure what message tar gives if you tried to tar files over 2 Gb... tar's limit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 06:40 PM
11-25-2003 06:40 PM
Re: tar not working
I just ran a test as a non-root user on a tar file owned by root in a directory the user did not have write permissions on. The error messag involved can not create warnings, so I don't think its straight permissions.
Based on this test, I would surmise that the ftp tranfser was incomplete or ...
Perhaps the tar file is bigger than 2 GB and the target filesystem isn't set for largefiles.
You are using tar xvf
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 06:41 PM
11-25-2003 06:41 PM
Re: tar not working
More likely is a kind of umask being applied during the copy. Check the file's mode, or just
# chmod 644 file.tar
# tar tvf file.tar
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 06:41 PM
11-25-2003 06:41 PM
Re: tar not working
as root owner chmod 700 tarfile
su - user
tar xvf tarfile
Got your exact message. Its permissions.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 06:47 PM
11-25-2003 06:47 PM
Re: tar not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 07:38 PM
11-25-2003 07:38 PM
Re: tar not working
it can only be a matter of permission, otherwise tar would complain, that this is no tar archive or has found a checksum error or so. Be sure to rule out disk/file system errors.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 08:34 PM
11-25-2003 08:34 PM
Re: tar not working
just a doubt:
"tar: cannot open file"
is it exactly error message? Or
"tar: cannot open
In the first case it is very strange, I saw it only when there are hardware problem.
In the second case it is a permission problem as specified perfectly by SEP and others.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 10:46 PM
11-25-2003 10:46 PM
Re: tar not working
Permissions on the directory where you are trying to untar the file !
Do you have write permission to the directory.
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 04:25 AM
11-26-2003 04:25 AM
Re: tar not working
Thanks for the reply. I changed the owner of the tar file and now it has started working fine.
Thanks,
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2003 12:15 AM
11-27-2003 12:15 AM
Re: tar not working
if the problem is solved, could you spare some points from the endless supply of points, HP has, for those, who could help you? ;-)
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2003 02:14 AM
11-27-2003 02:14 AM
Re: tar not working
On node1
cd
Kaps ...