MoのWebLog

思ったことをテキトウに。

LinuxでLinuxのISOイメージからインストールDVD作成

環境

[motsuo@localhost ~]$ cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core) 
[motsuo@localhost ~]$

Apple USB SuperDriveを使用したので、事前準備

$ sudo yum =y install sg3_utils
$ sg_raw /dev/sr1 EA 00 00 00 00 00 01 

正しくドライバーが認識されれば、以下の様なメッセージ。
[motsuo@localhost ~]$  sg_raw /dev/sr1 EA 00 00 00 00 00 01 
SCSI Status: Good 

[motsuo@localhost ~]$ 

DVDに書き込み

$growisofs -dvd-compat -Z /DVD Driverのパス=/ISOファイルのパス

表示されるメッセージはこんな感じ

[motsuo@localhost ~]$ growisofs -dvd-compat -Z /dev/sr1=/home/motsuo/Downloads/debian-9.5.0-amd64-DVD-1.isoExecuting 'builtin_dd if=/home/motsuo/Downloads/debian-9.5.0-amd64-DVD-1.iso of=/dev/sr1 obs=32k seek=0'
/dev/sr1: "Current Write Speed" is 8.2x1352KBps.
   14057472/3629989888 ( 0.4%) @2.9x, remaining 21:26 RBU 100.0% UBU  11.8%
   29949952/3629989888 ( 0.8%) @3.4x, remaining 18:01 RBU 100.0% UBU  99.3%
.......中略.......
builtin_dd: 1772464*2KB out @ average 5.2x1352KBps
/dev/sr1: flushing cache
/dev/sr1: updating RMA
/dev/sr1: closing disc
/dev/sr1: reloading tray
[motsuo@localhost ~]$ 


参考
Use Apple's USB SuperDrive with Linux | techtalk - Christian Moser