Migrated first 6 gists.
This commit is contained in:
1
rip2iso.sh/README.md
Normal file
1
rip2iso.sh/README.md
Normal file
@@ -0,0 +1 @@
|
||||
Rips raw data from a CD using the /dev/sr1 device (USB cd writer) to an iso image file.
|
17
rip2iso.sh/rip2iso.sh
Normal file
17
rip2iso.sh/rip2iso.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#! /bin/bash
|
||||
|
||||
# Usage: ./rip2iso.sh ISO_FILE_NAME
|
||||
# Output: a file named "ISO_FILE_NAME01.iso"
|
||||
|
||||
cdrdao read-cd \
|
||||
--datafile $1.bin \
|
||||
--driver generic-mmc:0x20000 \
|
||||
--device /dev/sr1 \
|
||||
--read-raw \
|
||||
$1.toc
|
||||
|
||||
toc2cue $1.toc $1.cue
|
||||
|
||||
bchunk $1.bin $1.cue $1
|
||||
|
||||
rm -i $i.bin $i.toc $i.cue
|
Reference in New Issue
Block a user