<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Default tar device file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503833#M217014</link>
    <description>us the f option or key to supply the destination file, as in:&lt;BR /&gt;&lt;BR /&gt;tar -f /dev/rmt/2m</description>
    <pubDate>Mon, 14 Mar 2005 06:14:47 GMT</pubDate>
    <dc:creator>melvyn burnard</dc:creator>
    <dc:date>2005-03-14T06:14:47Z</dc:date>
    <item>
      <title>Default tar device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503832#M217013</link>
      <description>Hello,&lt;BR /&gt;i would like to know how to change the default device used by tar command (2m instead of 0m).&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;BR</description>
      <pubDate>Mon, 14 Mar 2005 06:05:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503832#M217013</guid>
      <dc:creator>Roberto Volsa</dc:creator>
      <dc:date>2005-03-14T06:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Default tar device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503833#M217014</link>
      <description>us the f option or key to supply the destination file, as in:&lt;BR /&gt;&lt;BR /&gt;tar -f /dev/rmt/2m</description>
      <pubDate>Mon, 14 Mar 2005 06:14:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503833#M217014</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2005-03-14T06:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Default tar device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503834#M217015</link>
      <description>Hi Roberto,&lt;BR /&gt;&lt;BR /&gt;ioscan will tell you what you archive file you can use:&lt;BR /&gt;&lt;BR /&gt;#ioscan -fnCtape &lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Mar 2005 06:30:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503834#M217015</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-03-14T06:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Default tar device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503835#M217016</link>
      <description>Hello,&lt;BR /&gt;my concern is avoiding adding "-f /dev/rmt/2m" ant each tar execution.&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Mar 2005 07:06:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503835#M217016</guid>
      <dc:creator>Roberto Volsa</dc:creator>
      <dc:date>2005-03-14T07:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Default tar device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503836#M217017</link>
      <description>Do you have a device at 0m?  If not, you could simply create a link from 0m to 2m.  You could also create a new device file (see the attached method).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 14 Mar 2005 07:10:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503836#M217017</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-03-14T07:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Default tar device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503837#M217018</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;By default, tar uses /dev/rmt/0m. So:&lt;BR /&gt;&lt;BR /&gt;#tar cv &lt;DIR&gt; &lt;BR /&gt;&lt;BR /&gt;will use /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;Eric&lt;/DIR&gt;</description>
      <pubDate>Mon, 14 Mar 2005 07:16:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503837#M217018</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-03-14T07:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Default tar device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503838#M217019</link>
      <description>There is no way to change tar's behavior. /dev/rmt/0m is hardcoded into the program. However, I would never run tar without explicitly using the full devicefile path (ie, -f option) simply because assuming defaults are always the same can cause lots of problems (such as overwriting the wrong tape). Similarly, linking device files can lead to mistakes when sysadmins forget or don't know about the link.</description>
      <pubDate>Mon, 14 Mar 2005 08:32:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503838#M217019</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-03-14T08:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Default tar device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503839#M217020</link>
      <description>Ya ,I understood your Q.&lt;BR /&gt;&lt;BR /&gt;In HP 0m is the default.&lt;BR /&gt;&lt;BR /&gt;In other Unix like SCO unix ,U can change the default tape drive in /etc/defalt/tar&lt;BR /&gt;file .&lt;BR /&gt;&lt;BR /&gt;This way it will not work in HP.&lt;BR /&gt;&lt;BR /&gt;what you can do is ,if there is no H/W available in 0m and 1m path remove the &lt;BR /&gt;device files by rmsf  and do a reboot or rcreate the /dev/rmt/0m dev file with the major and monor number of /dev/rmt/2m file.&lt;BR /&gt;&lt;BR /&gt;Or go for a reboot .&lt;BR /&gt;&lt;BR /&gt;Should work ,&lt;BR /&gt;Thanks,&lt;BR /&gt;BL.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Mar 2005 11:54:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503839#M217020</guid>
      <dc:creator>baiju_3</dc:creator>
      <dc:date>2005-03-14T11:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Default tar device file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503840#M217021</link>
      <description>Switch the tape device so the /dev/rmt/1m becomes /dev/rmt/0m and&lt;BR /&gt;the /dev/rmt/0m becomes /dev/rmt1m&lt;BR /&gt;--------------------------------------------------------&lt;BR /&gt;Run the following ioscan command to get the Hardware Path:&lt;BR /&gt;#ioscan -kf | grep -e INTERFACE -e DEVICE | grep -v target | awk '{printf "%s %&lt;BR /&gt;s %s\n",$3,$1,$2}'&lt;BR /&gt;8/0/0 tty 0&lt;BR /&gt;8/4 ext_bus 0&lt;BR /&gt;8/4.5.0 disk 0&lt;BR /&gt;8/4.7.0 ctl 0&lt;BR /&gt;8/4.8.0 disk 1&lt;BR /&gt;8/4.9.0 disk 2&lt;BR /&gt;8/4.10.0 disk 3&lt;BR /&gt;8/4.11.0 disk 4&lt;BR /&gt;8/4.12.0 disk 5&lt;BR /&gt;8/4.13.0 disk 6&lt;BR /&gt;8/4.14.0 disk 7&lt;BR /&gt;8/4.15.0 disk 8&lt;BR /&gt;8/16/0 ext_bus 2&lt;BR /&gt;8/16/1 pc 0&lt;BR /&gt;8/16/1.1 floppy 0&lt;BR /&gt;8/16/5 ext_bus 5&lt;BR /&gt;8/16/5.0.0 tape 0 &amp;lt;------ Here&lt;BR /&gt;8/16/5.2.0 disk 9&lt;BR /&gt;8/16/5.7.0 ctl 1&lt;BR /&gt;8/16/6 lan 0&lt;BR /&gt;8/16/7 ps2 0&lt;BR /&gt;8/20/2 tty 1&lt;BR /&gt;8/18/3.0.0 tape 1 &amp;lt;----- Here&lt;BR /&gt;&lt;BR /&gt;#vi /tmp/infile&lt;BR /&gt;8/16/5.0.0 tape 1&lt;BR /&gt;8/18/3.0.0 tape 0&lt;BR /&gt;&lt;BR /&gt;#ioinit -f /tmp/infile -r  &amp;lt;----- This will cause a reboot&lt;BR /&gt;&lt;BR /&gt;Note: Again, it might be necessary to remove the old device files with&lt;BR /&gt;the "rmsf" command and then re-create the device files with "insf -e".&lt;BR /&gt;&lt;BR /&gt;Roland</description>
      <pubDate>Mon, 14 Mar 2005 19:35:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-tar-device-file/m-p/3503840#M217021</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2005-03-14T19:35:16Z</dc:date>
    </item>
  </channel>
</rss>

