1# @(#)README.win32	1.10 14/12/07 Copyright 2000-2014 J. Schilling
2
3cdrecord-1.8a22 or later can be compiled on Win9X/NT4 using Cygnus' cygwin
4which is freely available from:
5
6	http://sourceware.cygnus.com/cygwin/
7or
8	http://sources.redhat.com/cygwin/
9
10To compile on Cygwin, get Cygwin by executing setup.exe
11
12You will need approx. 120 MB to install a full cygwin developer release.
13
14Get the tar'ed cdrtools source and unpack it with 'gnutar' or 'star',
15
16e.g. Start a bash command line window and type:
17
18	star -xpz < cdrtools-3.01.tar.gz
19
20	don't use winzip to unpack the tar archive, it will not
21	unpack symlinks correctly.
22
23Then (from the bash command line window) run 'make' ...
24
25If you have problems with GNU make, get 'smake' from:
26
27	http://sourceforge.net/projects/s-make/files/alpha/
28
29/*--------------------------------------------------------------------------*/
30A bash window is available from the START -> Programs -> Cygnus Solutions
31menu or by clicking at the Cygwin Logo on the desktop.
32/*--------------------------------------------------------------------------*/
33Pre-compiled current 'cdrtools' Win32 binaries which should run on
34W95, W98 and WNT are available from:
35
36	http://sourceforge.net/projects/cdrtools/files/alpha/win32
37
38To use the pre-compiled binary, put the files cygwin1.dll, mount.exe as well
39as the files:
40
41cdrecord.exe		- The CD recording program
42cdda2wav.exe		- The DAE (Digital Audio Extraction) program
43mkisofs.exe		- The ISO-9660/Rock Ridge/Joliet Filesystem formatter
44readcd.exe		- A simple program to extract CD-ROM raw data to a file
45
46in your WINDOWS binary directory and from a Command/MS-DOS (or bash) window
47type:
48	cdrecord -help
49
50for usage, see also:
51
52		http://cdrecord.org/
53
54All programs in this directory are Unix command line utilities and know
55nothing about DOS/WIN. They run in a POSIX subsystem that is supplied by
56cygwin1.dll. Therefore all directory names are given in Unix (POSIX) format
57(i.e. use '/' for a directory separator, not '\'). To access files on another
58disks (i.e. floppy, CDROM and network disk), you need to use the supplied "mount"
59command e.g.
60
61	mount a: /a
62	mount d: /cdrom
63
64i.e. files on the floppy disk are accessed as being in directory /a and
65files on the CDROM are accessed as /cdrom (assuming your CDROM is drive d:)
66
67Yu may also use the new /cygpath notation by typing /cygpath/a for
68your local floppy.
69
70The notation //a/dir as a replacement for the DOS directory name a:\dir
71may not work in future releases of Cygwin.
72
73The following command creates a CD image in the current directory
74using a source directories on the CDROM drive, a sub-directory and the
75floppy drive:
76
77	mkisofs -o hsfs.iso -J -R /cdrom/subdir dir1 /a
78
79If you use the options noted above, the hsfs.iso image is ISO-9660
80compliant and includes both Rock Ridge (IEEE P1282) and
81Joliet (Microsoft proprietary) extensions.
82
83If your CD writer is on target 6, type
84
85	cdrecord dev=6,0 -v speed=4 hsfs.iso
86
87to write the image at speed 4 in TAO mode, or
88
89	cdrecord dev=6,0 -v speed=4 -dao hsfs.iso
90
91to write the image in DAO mode.
92
93If you don't like to create the image file 'hsfs.iso' you may use a PIPE
94to connect mkisofs's output to cdrecord's input by calling:
95
96	mkisofs -J -R /cdrom/subdir dir1 /a | cdrecord dev=6,0 -v speed=4 -
97
98IMPORTANT NOTE:	If you use PIPE's on Win32, you definitely need a POSIX
99		compliant shell to start the programs. Native Win32 PIPE's
100		are not POSIX compliant and will not work with POSIX compliant
101		programs.
102
103/*--------------------------------------------------------------------------*/
104If you don't know which target your CD-writer is, call
105
106	cdrecord -scanbus
107
108This gives output similar to:
109
110Cdrecord-ProDVD sparc-sun-solaris2.4 release 1.8a39 Copyright (C) 1995-2000 J�rg Schilling
111Using libscg version 'schily-0.1'
112scsibus0:
113	0,0,0	  0) 'Quantum ' 'XP34300         ' 'F76D' Disk
114	0,1,0	  1) 'SEAGATE ' 'ST11200N        ' '8334' Disk
115	0,2,0	  2) *
116	0,3,0	  3) 'TOSHIBA ' 'MK537FB/        ' '6258' Disk
117	0,4,0	  4) 'WANGTEK ' '5150ES SCSI-36  ' 'ESB6' Removable Tape
118	0,5,0	  5) 'EXABYTE ' 'EXB-8500-85QUE  ' '0428' Removable Tape
119	0,6,0	  6) 'TOSHIBA ' 'XM-3401TASUNSLCD' '3593' Removable CD-ROM
120	0,7,0	  7) HOST ADAPTOR
121scsibus1:
122	1,0,0	100) 'IBM     ' 'DCAS-34330      ' 'S65A' Disk
123	1,1,0	101) *
124	1,2,0	102) *
125	1,3,0	103) *
126	1,4,0	104) 'PLEXTOR ' 'CD-R   PX-W8220T' '1.00' Removable CD-ROM
127	1,5,0	105) 'YAMAHA  ' 'CRW4416S        ' '1.0f' Removable CD-ROM
128	1,6,0	106) *
129	1,7,0	107) HOST ADAPTOR
130
131The numbers on the labels are SCSIbus# * 100 + target#
132
133You then call cdrecord dev=bus#,target#,0
134
135If you e.g. like to talk to the Yamaha drive from the list above, you need to
136call:
137
138	cdrecord dev=1,5,0 ......
139
140/*--------------------------------------------------------------------------*/
141
142			NOTE
143
144If "cdrecord -scanbus" dumps core (dies from program fault), you have
145a broken ASPI driver on your PC.
146
147If you cannot see your drive(s), the following registry changes should make
148them visible:
149
150  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Aspi32]
151  "ErrorControl"=dword:00000001
152  "Start"=dword:00000001
153  "Type"=dword:00000001
154
155  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Aspi32\Parameters]
156  "ExcludeMiniports"=""
157
158
159If you like to use the tools with SCSI or ATAPI, you need a working
160ASPI32 driver and dll on your system. If you don't have it already,
161look for 'aspi_me'. You need to set you clock back to a time before
162Jan 1st 1999 to be able to install it. Note that 'aspi_me' contains
163original Adaptec drivers and is banned from most ftp servers for this
164reason.
165
166If you do not have superuser permission which would allow you to use
167the SPTI SCSI interface that is similar to a UNIX ioctl interface,
168you need a special ASPI driver version on NT-5.0 (Win2000)
169
170You may get one by searching for:
171
172	wnaspi32.dll
173
174
175/*--------------------------------------------------------------------------*/
176
177			IMPORTANT
178
179In order to avoid damaging CD blanks because Win is trying to access
180the drive while cdrecord writes to it, you definitely should edit
181your registry and set the value of
182
183HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom\Autorun
184
185to '0'.
186
187The Registry entry noted above is valid for WNT, I don't know
188if you need to do this for W95 or W98, nor do I know the
189correct Registry entry for these systems.
190
191/*--------------------------------------------------------------------------*/
192
193		For binary only users:
194
195Error messages and help output is directed to stderr. Win32 command
196interpreters don't know about stderr. I recommend to install bash.exe
197because it is a POSIX compliant shell and allow working PIPE's and
198it also gives you a command line history that may be edited using
199cursor commands.
200
201Otherwise you may want to install the Cygwin light version which
202only includes the user commands.
203