Red Hat Bugzilla – Bug 25411
tar can't backup into a remote device
Last modified: 2007-04-18 12:31:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)
when i try to backup to a remote host using tar (tar -f host:/backup) it
report "/etc/rmt not such file or directory" and abort.
Steps to Reproduce:
1.as root create an .rhost file in /root/ with this line "<hostname> root"
where <hostname> is the name of your host.
2.open your rsh port: edit the inetd.conf file and uncomment the line rsh
line, execute killall -HUP inetd .
3.check that you have installed the last rmt version (rmt-0.4b19-5.6x)
bash: /etc/rmt: No such file or directory
tar (grandchild): <hosname>\:/usr/local/src/ssh-1.2.29.tar.gz: Cannot
open: Input/output error
tar (grandchild): Error is not recoverable: exiting now
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors
drwxr-xr-x tri/operator 0 2000-07-03 13:08:15 ssh-1.2.29/
-rw-r--r-- tri/operator 13556 2000-07-03 13:06:51 ssh-1.2.29/COPYING
-rw-r--r-- tri/operator 22129 2000-07-03 13:06:51 ssh-1.2.29/README
-rw-r--r-- tri/operator 3914 2000-07-03 13:06:51 ssh-
the error begun when we upgrade the rmt package, from rmt-0.4b15-1 to rmt-
0.4b19-5.6 , in the new version the file /etc/rmt is moved to /usr/etc/rmt
( FHS ?? ) so the quick solution to the bug is to create the link /etc/rmt
--> /sbin/rmt as in the old rmt package.
Install the rmt package.
the rmt package is installed but, i repeate, the /etc/rmt file doesn't exist,
it was move to /usr/etc/rmt so tar can't work, you has to recreate the link in
order to get the tar command working back.
rpm -qpl shows /etc/rmt is present both in rmt-0.4b15-1.i386.rpm, as shipped
with 6.2, and rmt-0.4b19-4.i386.rpm, as shipped with 7.0. Make sure you're
using our package.
Also, rmt is part of dump, not tar.
The problem is present in the 6.2 update package (0.4b19-5.6x); please fix
Fixed in rmt-0.4b22-1 in rawhide