1、检验下载的ISO镜像的MD5值:
$ md5sum download.iso
2、刻录ISO:
1)先下载cdrecord:
$sudo apt-get install cdrecord
2)寻找设备(刻录机):
$ cdrecord --scanbus (这会给出类似这样的一组数字:0,0,0)
3)开始刻录:
$ cdrecord dev=0,0,0 download.iso
3、检验已经刻录好的光盘的md5值:
(确保安装了isoinfo 没有的话apt-get~~~)
$ isoinfo -d -i /dev/cdrom
(查看光盘信息,会出现如下字样: Logical block size is: 2048 Volume size is: 339344)
$ dd if=/dev/cdrom bs=2048 count=339344 conv=notrunc,noerror|md5sum
制作ISO镜像
===========
mkisofs -J -T -R -V volume_id -o mycd.iso source_dir
mkisofs 主要参数说明:
-J/-joliet 使用 Joliet 格式的目录与文件名称
-T/-translation-table 为每个目录都生成一个 TRANS.TBL 文件名转换表文件
-R/-rock 使用 Rock Ridge Extensions
-V/-volid <光盘ID> 指定光盘的卷标ID
制作具有自我校验功能的光盘
==========================
ISO文件在网络传输过程中可能会发生改变,这个可以通过MD5校验码来检测文件的完整性,即:发布ISO的同时也公布其MD5校验码,这样他人下载 ISO后,再进行一次MD5运算,如果得到的MD5值和提供的一样,则ISO文件和原始文件一模一样,否则就得重新下载。
将ISO刻录到光盘后,又如何校验光盘上刻录的内容是否和原始ISO中的内容完全一样呢?因为在刻录过程中,也许...也许会出现错误。
这就需要用到 isomd5sum 这个工具了
加入MD5校验信息:
implantisomd5 --force ISO文件
刻录后,可以通过 checkisomd5 --verbose <光盘设备地址,如/dev/hdb> 来校验数据完整性
ISO制作完整脚本(带MD5校验)
脚本运行参数
mkiso.sh <需要刻录的原始文件或目录> <输出ISO文件>
#!/bin/sh
#****************************************************
# Author: Muddyboot - toobyddum@gmail.com
# Last modified: 2007-09-11 21:21
# Filename: mkiso.sh
# Description: script for easy creating ISO image
#****************************************************
if [ $# -lt 3 ]; then
echo -e "\nUsage: `basename $0` source_dir output_iso cd_label \n"
exit 1
fi
source=$1
output=$2
label=$3
### extra mkiso argument
shift 3
for i in $@; do
extra_args="$extra_args $1 "
shift
done
if [ ! -e "$source" ]; then
echo -e "\nERR: Source file or directory does not exist ! \n"
exit 1
fi
## remove exists TRANS.TBL files
if [ -d "$source" ]; then
find $source -name TRANS.TBL | xargs rm -f
fi
### 制作ISO
mkisofs -J -T -R $extra_args \
-V $label -o $output $source
### 加入 MD5 校验信息
MD5_CHECKSUM=`whereis implantisomd5|awk -F': ' '{print $2}'`
if [ -z "$MD5_CHECKSUM" ]; then
echo -e "\n** WARNING: implantisomd5 not found, no md5sum added.\n"
else
echo -e "\n** Good, implantisomd5 program found."
echo "Adding md5sum information for ISO image ..."
implantisomd5 --force $output
fi
echo
echo "** ISO image $output created successfully ! "
echo
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
P70系列延期,华为新旗舰将在下月发布
3月20日消息,近期博主@数码闲聊站 透露,原定三月份发布的华为新旗舰P70系列延期发布,预计4月份上市。
而博主@定焦数码 爆料,华为的P70系列在定位上已经超过了Mate60,成为了重要的旗舰系列之一。它肩负着重返影像领域顶尖的使命。那么这次P70会带来哪些令人惊艳的创新呢?
根据目前爆料的消息来看,华为P70系列将推出三个版本,其中P70和P70 Pro采用了三角形的摄像头模组设计,而P70 Art则采用了与上一代P60 Art相似的不规则形状设计。这样的外观是否好看见仁见智,但辨识度绝对拉满。
更新日志
- 《原神》「星路拾忆」网页活动壁纸展示
- 群星.2024-祝你幸福!电影原声带【阿里巴巴】【FLAC分轨】
- 于台烟.2004-执着【乾坤唱片】【WAV+CUE】
- 黄品源.2004-感谢·情人(引进版)【滚石】【WAV+CUE】
- 《最终幻想16》评测:游、戏两难全的系列转折
- 《纸嫁衣》五部打包¥104,《鬼泣5》仅需¥44
- 《崩坏:星穹铁道》造物大赛卷出新高度
- 《王菲 菲常传奇 2CD》[WAV+CUE][950MB]
- 《王菲 空灵独味唱腔 非常传奇 紫水晶2CD》[WAV+CUE][860MB]
- 《车载专业测试王1号 极品音质》[WAV/分轨][980MB]
- 炉石传说的国服回归送什么奖励 炉石传说9.25回归最新消息介绍
- 云顶之弈最强阵容汇总2024 云顶之弈最强阵容搭配最新版本
- S14lol全球总决赛在哪观看 lol全球总决赛观赛直播地址汇总
- 黄思婷2011-感谢天[豪记唱片][WAV+CUE]
- 孙淑媚2013-太阳[台湾首版][WAV+CUE]