<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Soul Of Free Loop &#187; 解压缩</title>
	<atom:link href="https://zohead.com/archives/tag/decompress/feed" rel="self" type="application/rss+xml" />
	<link>https://zohead.com</link>
	<description>Uranus Zhou&#039;s Blog</description>
	<lastBuildDate>Sat, 19 Jul 2025 15:42:46 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8</generator>
	<item>
		<title>Symantec备份软件独立磁带驱动集</title>
		<link>https://zohead.com/archives/symantec-tape-driver/</link>
		<comments>https://zohead.com/archives/symantec-tape-driver/#comments</comments>
		<pubDate>Thu, 16 Aug 2012 16:47:24 +0000</pubDate>
		<dc:creator><![CDATA[Uranus Zhou]]></dc:creator>
				<category><![CDATA[存储]]></category>
		<category><![CDATA[工具]]></category>
		<category><![CDATA[Backup Exec]]></category>
		<category><![CDATA[NetBackup]]></category>
		<category><![CDATA[Symantec]]></category>
		<category><![CDATA[磁带]]></category>
		<category><![CDATA[脚本]]></category>
		<category><![CDATA[解压缩]]></category>
		<category><![CDATA[驱动]]></category>

		<guid isPermaLink="false">http://zohead.com/?p=296</guid>
		<description><![CDATA[本文同步自（最佳显示效果请点击）：https://zohead.com/archives/symantec-tape-driver/ 最近需要使用 Symantec Backup Exec、NetBackup 等备份软件测试磁带库，而且 Backup Exec 中已经自带了很多的磁带和磁带库的驱动，但是这些驱动没法独立出来用。特别是在新的 Windows 系统上，如果 Backup Exec 备份软件无法安装，而又找不到磁带驱动，这时就需要专门的 Symantec 的磁带驱动集了。 Symantec 官方网站上有最新版本的 Tape Device Drivers 更新程序，例如： http:/ [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>本文同步自（最佳显示效果请点击）：<a href="https://zohead.com/archives/symantec-tape-driver/" target="_blank">https://zohead.com/archives/symantec-tape-driver/</a></p>
<p>最近需要使用 Symantec Backup Exec、NetBackup 等备份软件测试磁带库，而且 Backup Exec 中已经自带了很多的磁带和磁带库的驱动，但是这些驱动没法独立出来用。特别是在新的 Windows 系统上，如果 Backup Exec 备份软件无法安装，而又找不到磁带驱动，这时就需要专门的 Symantec 的磁带驱动集了。</p>
<p>Symantec 官方网站上有最新版本的 Tape Device Drivers 更新程序，例如：</p>
<p><a href="http://www.symantec.com/business/support/index?page=content&amp;id=TECH173790" target="_blank">http://www.symantec.com/business/support/index?page=content&amp;id=TECH173790</a></p>
<p>这个是 Symantec Backup Exec 2010 R3 版本的最新磁带驱动集。</p>
<p>下载之后，你会发现这个更新程序必须在安装了其对应版本的备份软件之后才能运行，不同远程安装到别的机器上，这多少显得非常不便。为此我从 Symantec 官网最新版本的 Tape Device Drivers 程序中导出了所有的驱动和安装程序并打包，此包可以在没有安装 Symantec 软件的情况下，通过设备管理器直接找到解压缩的目录进行磁带驱动安装。如果安装了 Symantec 备份软件，你也可以直接用包中的 tapeinst.exe 程序自动安装更新磁带的驱动。</p>
<p>做这个驱动集合包的步骤也很简单，解压缩 Symantec 安装程序，然后从中得到 Data.cab 之类的压缩包并解压缩（新版本的安装程序中可能是 msp 类型的数据文件，可以用 Universal Extractor 之类的软件进行解压）。解压缩之后会看到一堆文件名很长的文件，例如：F1078_testfile.sy_.1B15BB01_8E2D_4A12_A3E6_175864F3EF67。</p>
<p>实际上这种长的文件是压缩过的驱动程序（原文件名：testfile.sys），只不过文件名上加了点处理，为此我写了个非常简单的脚本进行自动遍历文件并解压缩：</p>
<pre class="brush: bash; highlight: [10,12,43,44,47]; title: extract-symantec-driver; notranslate">
#!/bin/sh
# extract symantec tape device drivers from its MSI file
# file name form: F1078_testfile.sy_.1B15BB01_8E2D_4A12_A3E6_175864F3EF67&quot;

IND=&quot;tapedrvs&quot;
mkdir $IND

for j in `ls *`; do
	# get real file name in full file name
	ONAME=`echo $j | awk '{print substr($0,7,length($0)-43);}'`
	# determine whether file is compressed
	EXNAME=`echo $ONAME 2&gt;/dev/null | awk -F &quot;.&quot; '{if (substr($0,length($0),1)==&quot;_&quot; &amp;&amp; NF&gt;1) {print $NF;}}' 2&gt;/dev/null`

	if [ &quot;x$ONAME&quot; = &quot;x&quot; ]; then
		continue
	fi

	if [ &quot;x$EXNAME&quot; != &quot;x&quot; ]; then
		# try to fix prefix name for some common file types
		NNM=&quot;&quot;
		if [ $EXNAME = &quot;CF_&quot; ]; then
			NNM=&quot;CFG&quot;
		elif [ $EXNAME = &quot;cf_&quot; ]; then
			NNM=&quot;cfg&quot;
		elif [ $EXNAME = &quot;dl_&quot; ]; then
			NNM=&quot;dll&quot;
		elif [ $EXNAME = &quot;ex_&quot; ]; then
			NNM=&quot;exe&quot;
		elif [ $EXNAME = &quot;in_&quot; ]; then
			NNM=&quot;inf&quot;
		elif [ $EXNAME = &quot;sy_&quot; ]; then
			NNM=&quot;sys&quot;
		elif [ $EXNAME = &quot;tt_&quot; ]; then
			NNM=&quot;ttf&quot;
		elif [ $EXNAME = &quot;vs_&quot; ]; then
			NNM=&quot;vsd&quot;
		fi

		if [ -z &quot;$NNM&quot; ]; then
			echo &quot;Unknown prefix of $ONAME in $j&quot;
		else
			# use expand to extract file
			NNM=`echo $ONAME | sed 's/'$EXNAME'$/'$NNM'/g'`
			expand $j $IND/$NNM
		fi
	else
		cp $j $IND/$ONAME
	fi
done
</pre>
<p>这个脚本用到了 Windows 下的命令，因此需要在 Windows 下通过 Mingw 或者 Cygwin 之类的类 Linux shell 环境来运行。此脚本已在 Symantec 几个不同版本的 Backup Exec、NetBackup 备份软件的 Tape Device Drivers 包下验证过。</p>
<p>脚本会自动判断遍历到的文件是否是压缩的（压缩的文件扩展名名是以下划线结尾的，例如 <strong>test.exe</strong> 压缩后变为 <strong>test.ex_</strong>），如果是压缩的，则尝试自动修改后缀名，并通过 Windows 自带的 expand 命令将压缩的文件解压缩到指定的目录中（压缩的文件名 [<strong>test.ex_</strong>] 变换为正常的文件名 [<strong>test.exe</strong>]），如果没有识别到压缩文件类型，脚本会将压缩文件名和上面的完整文件名打印输出方便用户手工处理。如果遍历到的文件不是压缩的，那直接拷贝到指定的目录中（文件名也变换为正常的文件名）。</p>
<p>我已经打包好的 Symantec 磁带驱动集可以在这里下载：</p>
<p><a href="http://miseal.googlecode.com/files/symantec-tape-drv-v1.0.7z" target="_blank">http://miseal.googlecode.com/files/symantec-tape-drv-v1.0.7z</a></p>
<p>PS：</p>
<p>如果有的磁带未找到驱动，但确认 Symantec 可以支持，你可以自己修改解压缩出来的 vrtstape.inf 配置文件将自己的磁带设备信息加进入。另外 extract-symantec-driver 脚本也已经在压缩包中。这个驱动集主要是方便自己测试使用的，如果有任何问题欢迎指正哦。</p>
]]></content:encoded>
			<wfw:commentRss>https://zohead.com/archives/symantec-tape-driver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
