summaryrefslogtreecommitdiff
path: root/doc/READMEs/README.verify
blob: 28227b7ccccb4e1c255a306cc4c1ff5dd58cc40b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Mini-Howto for verifying a selfmade CD

1) verifying the data layer

	To verify if all data on the disk can be read,
	use SCSI verify. This can be done with the
	sformat utility.

	use: sformat -verify [target] [lun] [scsibus]

	If the CD-R device is connected to target 2 on SCSI bus 0
	sformat -verify 2  0

	sformat can be found on ftp://ftp.berlios.de/pub/sformat

	NOTE: Not all CD-ROm drives support verifying
	NOTE: All TAO tracks end in 2 unreadable run-out sectors

2) verifying the filesystem layer

	A quick check is to mount the CD and to use star to read
	all files on the filesystem.

	mount -r /dev/cdrom /cdrom      (modify for your OS)
	cd /cdrom
	star -cPM . >/dev/null

	If no errors can be found, all files are readable.

	star can be found on ftp://ftp.berlios.de/pub/star


	You also may want to compare the filesystem on the CD
	with the original data. This can be done with star too.


	(cd /master_for_cd; star -cPM .)|(cd /cdrom; star -diff -v)

2a) verifying the iso image before creating the CD

	You may check the filesystem image by mounting it with my 
	"fbk" on Solaris or the loopback driver on Linux.

	On Linux type:
		mount isoimage.raw -r -t iso9660 -o loop /mnt

	On SunOS type:
		mount -r -F fbk -o type=hsfs /dev/fbk0:isoimage.raw /mnt

For Solaris 8 and later you may also use the Sun lofi driver (see README.sun-lofi)

	The check the filesystem with:

		(cd /master_for_cd; star -cPM .)|(cd /mnt; star -diff -v)


Solaris has a bug with hardlinks. It generates different inode numbers
for the hardlinks to a file. This makes it impossible for star to 
check hard links. Use

(cd /master_for_cd; star -cPM .)|(cd /cdrom; star -diff -v diffopts=!hardlink)

in this case.

NOTE: Some operating systems have a read ahead bug that causes I/O errors for
the last file(s) on a CD. This seems at least to be true for all Linux versions
and for Solaris 7 FCS. For Solaris 7 there is a patch (107465-02) that you should
install. This I/O error problem does not occur with DAO disks and with TAO disks
that have been written with wodim -pad.

Joerg Schilling

Source: README.verify from cdrtools package
Edited for cdrkit by Christian Fromme <kaner@strace.org> and Eduard Bloch