LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   cdrecord - iso won't boot; md5s don't match (https://www.linuxquestions.org/questions/linux-hardware-18/cdrecord-iso-won%27t-boot%3B-md5s-don%27t-match-79901/)

slakmagik 08-07-2003 02:46 PM

cdrecord - iso won't boot; md5s don't match
 
I'm on the ropes again. I've about had it with Slack and Linux. I go through these phases where I love Linux and I freaking HATE it. I am *sick* of trying to make *peripherals* work. I do *not* want to be a Guru of All Things. I want to settle down to some nice bash and grep man pages and start scripting text manipulation tools and whatnot. I do *not* want to learn about 'pads' and 'DAO' and 'scsi-emulation' and all this... crap.

Anyway - to the issue: trying to burn a bootable .iso because I was clued in to a Slack live CD and really don't want to reboot into Windows so I can burn it. (Which works flawlessly, btw.)

I should have posted this a long time ago. Now I'm so confused I don't remember what I tried and what the errors were. Long story short, the thing doesn't boot and the md5 doesn't match. At best, there's what looks like a good file system there, but that's it. (The iso md5 and what I downloaded *do* match - just not what I burn.) At worst, it's a coaster.

A couple of the many things I've tried to read is
http://www.troubleshooters.com/linux/cdrw.htm
and
http://www.troubleshooters.com/linux/coasterless.htm
which seem to have screwed me up worse. I've also been reading every cd-related thread here at LQ that's come up for the past few *weeks*.

There's like a '-b' option on cdrecord that I missed somewhere that makes it bootable, right? I just know it's something either impossible or incredibly, mind-blowingly simple. And I was so happy when I got it to burn anything at all and play CDs and let me do so as user and so on. *sigh* - this last step is killing me.

Don't ask me 'What errors were you getting?' because the answer is extremely long. I'm posting some of them anyway. Sorry - but it can be skipped.

The last bit was mostly:

|--digiot@slackath Thu Aug 07 11:57:24
|--bash 2.05b ~ $ cdcheck.sh

|--digiot@slackath Thu Aug 07 11:57:56
|--bash 2.05b ~ $ cdcheck.sh livecd-2.9.0.20.iso
cat: /dev/sr0: Permission denied

|--digiot@slackath Thu Aug 07 11:58:11
|--bash 2.05b ~ $ su
Password:

|--root@slackath Thu Aug 07 11:58:23
|-bash 2.05b /home/digiot $ ./cdcheck.sh livecd-2.9.0.20.iso
cat: /dev/sr0: Input/output error

|--root@slackath Thu Aug 07 11:59:54
|-bash 2.05b /home/digiot $ less test.md5

|--root@slackath Thu Aug 07 12:01:11
|-bash 2.05b /home/digiot $ mount /mnt/cdrw
mount: block device /dev/sr0 is write-protected, mounting read-only

|--root@slackath Thu Aug 07 12:01:22
|-bash 2.05b /home/digiot $ ./cdcheck.sh livecd-2.9.0.20.iso
cat: /dev/sr0: Input/output error

|--root@slackath Thu Aug 07 12:03:29
|-bash 2.05b /home/digiot $ less test.md5

|--root@slackath Thu Aug 07 12:05:30
|-bash 2.05b /home/digiot $ umount /mnt/cdrw

|--root@slackath Thu Aug 07 12:06:50
|-bash 2.05b /home/digiot $ mount /mnt/cdrw
mount: block device /dev/sr0 is write-protected, mounting read-only

|--root@slackath Thu Aug 07 12:06:58
|-bash 2.05b /home/digiot $ ./cdcheck.sh livecd-2.9.0.20.iso
cat: /dev/sr0: Input/output error

|--root@slackath Thu Aug 07 12:08:23
|-bash 2.05b /home/digiot $ less test.md5

|--root@slackath Thu Aug 07 12:10:21
|-bash 2.05b /home/digiot $ locate isoinfo
/usr/bin/isoinfo
/usr/man/man8/isoinfo.8.gz

|--root@slackath Thu Aug 07 12:14:40
|-bash 2.05b /home/digiot $ ./rawread.sh /dev/sr0 | md5sum
dd if=/dev/sr0 bs=2048 count=92112 conv=notrunc,noerror
dd: reading `/dev/sr0': Input/output error
92068+0 records in
92068+0 records out
dd: reading `/dev/sr0': Input/output error
92069+0 records in
92069+0 records out
dd: reading `/dev/sr0': Input/output error
92070+0 records in
92070+0 records out
dd: reading `/dev/sr0': Input/output error
92071+0 records in
92071+0 records out
dd: reading `/dev/sr0': Input/output error
92072+0 records in
92072+0 records out
dd: reading `/dev/sr0': Input/output error
92073+0 records in
92073+0 records out
dd: reading `/dev/sr0': Input/output error
92074+0 records in
92074+0 records out
dd: reading `/dev/sr0': Input/output error
92075+0 records in
92075+0 records out
dd: reading `/dev/sr0': Input/output error
92076+0 records in
92076+0 records out
dd: reading `/dev/sr0': Input/output error
92077+0 records in
92077+0 records out
dd: reading `/dev/sr0': Input/output error
92078+0 records in
92078+0 records out
dd: reading `/dev/sr0': Input/output error
92079+0 records in
92079+0 records out
dd: reading `/dev/sr0': Input/output error
92080+0 records in
92080+0 records out
dd: reading `/dev/sr0': Input/output error
92081+0 records in
92081+0 records out
dd: reading `/dev/sr0': Input/output error
92082+0 records in
92082+0 records out
dd: reading `/dev/sr0': Input/output error
92083+0 records in
92083+0 records out
dd: reading `/dev/sr0': Input/output error
92084+0 records in
92084+0 records out
dd: reading `/dev/sr0': Input/output error
92085+0 records in
92085+0 records out
dd: reading `/dev/sr0': Input/output error
92086+0 records in
92086+0 records out
dd: reading `/dev/sr0': Input/output error
92087+0 records in
92087+0 records out
dd: reading `/dev/sr0': Input/output error
92088+0 records in
92088+0 records out
dd: reading `/dev/sr0': Input/output error
92089+0 records in
92089+0 records out
dd: reading `/dev/sr0': Input/output error
92090+0 records in
92090+0 records out
dd: reading `/dev/sr0': Input/output error
92090+0 records in
92090+0 records out
92090+0 records in
92090+0 records out
2ec353f4af2d0a0c802894d7425c2ef5 -

|--root@slackath Thu Aug 07 12:17:10
|-bash 2.05b /home/digiot $ man isoinfo
Formatting page, please wait...

|--root@slackath Thu Aug 07 12:22:40
|-bash 2.05b /home/digiot $ isoinfo -i livecd-2.9.0.20.iso

|--root@slackath Thu Aug 07 12:22:55
|-bash 2.05b /home/digiot $ man isoinfo

|--root@slackath Thu Aug 07 12:23:26
|-bash 2.05b /home/digiot $ isoinfo -d -i livecd-2.9.0.20.iso
CD-ROM is in ISO 9660 format
System id: LINUX
Volume id: Slackware-Live
Volume set id:
Publisher id:
Data preparer id:
Application id: Slackware-Live
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 92112
Joliet with UCS level 3 found
Rock Ridge signatures version 1 found

|--root@slackath Thu Aug 07 12:23:32
|-bash 2.05b /home/digiot $ dd if=/dev/cdrom bs=2048 count= 329989
dd: invalid number `'

|--root@slackath Thu Aug 07 12:24:24
|-bash 2.05b /home/digiot $ dd if=/dev/sr0 bs=2048 count= 92112
dd: invalid number `'

|--root@slackath Thu Aug 07 12:24:50
|-bash 2.05b /home/digiot $ man dd
Formatting page, please wait...

|--root@slackath Thu Aug 07 12:25:43
|-bash 2.05b /home/digiot $ dmesg | grep -i hdd
Kernel command line: BOOT_IMAGE=Slack ro root=341 hdc=ide=scsi hdd=ide-scsi
ide_setup: hdd=ide-scsi
ide1: BM-DMA at 0xff08-0xff0f, BIOS settings: hdc: DMA, hdd: DMA
hdd: CD-RW IDE5224, ATAPI CD/DVD-ROM drive

|--root@slackath Thu Aug 07 12:25:50
|-bash 2.05b /home/digiot $ cdrecord dev=0,0,0 blank=fast -v -eject
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?rg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'CDWRITER'
Identifikation : 'IDE5224 '
Revision : '001H'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : MMC-2 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1951488 = 1905 KB
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Reference speed: 2
Is not unrestricted
Is erasable
ATIP start of lead in: -11745 (97:25/30)
ATIP start of lead out: 359849 (79:59/74)
1T speed low: 0 (reserved val 0) 1T speed high: 4
2T speed low: 8 2T speed high: 0 (reserved val 10)
power mult factor: 4 6
recommended erase/write power: 5
A1 values: 02 4C D0
A2 values: 4A D8 5A
Disk type: Phase change
Manuf. index: 40
Manufacturer: INFODISC Technology Co., Ltd.
Starting to write CD/DVD at speed 4 in real BLANK mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Performing OPC...
Blanking PMA, TOC, pregap
Blanking time: 46.751s

|--root@slackath Thu Aug 07 12:33:22
|-bash 2.05b /home/digiot $ cdrecord dev=0,0,0 -pad -v -eject livecd-2.9.0.20.iso
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?rg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'CDWRITER'
Identifikation : 'IDE5224 '
Revision : '001H'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : MMC-2 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1951488 = 1905 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 179 MB padsize: 30 KB
Total size: 206 MB (20:28.38) = 92129 sectors
Lout start: 206 MB (20:30/29) = 92129 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Reference speed: 2
Is not unrestricted
Is erasable
ATIP start of lead in: -11745 (97:25/30)
ATIP start of lead out: 359849 (79:59/74)
1T speed low: 0 (reserved val 0) 1T speed high: 4
2T speed low: 8 2T speed high: 0 (reserved val 10)
power mult factor: 4 6
recommended erase/write power: 5
A1 values: 02 4C D0
A2 values: 4A D8 5A
Disk type: Phase change
Manuf. index: 40
Manufacturer: INFODISC Technology Co., Ltd.
Blocks total: 359849 Blocks current: 359849 Blocks remaining: 267720
Starting to write CD/DVD at speed 4 in real TAO mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is OFF.
Performing OPC...
Starting new track at sector: 0
Track 01: 2 of 179 MB written (fifo 100%) [buf 96%]
2.1x.cdrecord: Input/output error. write_g1: scsi sendcmd: no error
CDB: 2A 00 00 00 04 3D 00 00 1F 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 71 00 03 00 00 00 00 0A 00 00 00 00 0C 00 00 00
Sense Key: 0x3 Medium Error, deferred error, Segment 0
Sense Code: 0x0C Qual 0x00 (write error) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.044s timeout 40s

write track data: error after 2222080 bytes
Sense Bytes: 70 00 00 00 00 00 00 0A 00 00 00 00 00 00 00 00 00 00
Writing time: 11.280s
Average write speed 139.0x.
Min drive buffer fill was 96%
Fixating...
Fixating time: 65.080s
cdrecord: fifo had 99 puts and 36 gets.
cdrecord: fifo was 0 times empty and 16 times full, min fill was 81%.

|--root@slackath Thu Aug 07 12:35:18
|-bash 2.05b /home/digiot $ cdrecord dev=0,0,0 speed=4 blank=fast -v -eject
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?rg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'CDWRITER'
Identifikation : 'IDE5224 '
Revision : '001H'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : MMC-2 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1951488 = 1905 KB
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Reference speed: 2
Is not unrestricted
Is erasable
ATIP start of lead in: -11745 (97:25/30)
ATIP start of lead out: 359849 (79:59/74)
1T speed low: 0 (reserved val 0) 1T speed high: 4
2T speed low: 8 2T speed high: 0 (reserved val 10)
power mult factor: 4 6
recommended erase/write power: 5
A1 values: 02 4C D0
A2 values: 4A D8 5A
Disk type: Phase change
Manuf. index: 40
Manufacturer: INFODISC Technology Co., Ltd.
Starting to write CD/DVD at speed 4 in real BLANK mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Performing OPC...
Blanking PMA, TOC, pregap
Blanking time: 47.371s

|--root@slackath Thu Aug 07 12:36:33
|-bash 2.05b /home/digiot $ cdrecord dev=0,0,0 speed=4 -pad -v -eject livecd-2.9.0.20.iso
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?rg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'CDWRITER'
Identifikation : 'IDE5224 '
Revision : '001H'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : MMC-2 SWABAUDIO BURNFREE
Supported modes: RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1951488 = 1905 KB
FIFO size : 4194304 = 4096 KB
cdrecord: Drive does not support TAO recording.
cdrecord: Illegal write mode for this drive.

|--root@slackath Thu Aug 07 12:36:54
|-bash 2.05b /home/digiot $ cdrecord dev=0,0,0 speed=4 -v -eject livecd-2.9.0.20.iso
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?rg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'CDWRITER'
Identifikation : 'IDE5224 '
Revision : '001H'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : MMC-2 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1951488 = 1905 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 179 MB
Total size: 206 MB (20:28.18) = 92114 sectors
Lout start: 206 MB (20:30/14) = 92114 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Reference speed: 2
Is not unrestricted
Is erasable
ATIP start of lead in: -11745 (97:25/30)
ATIP start of lead out: 359849 (79:59/74)
1T speed low: 0 (reserved val 0) 1T speed high: 4
2T speed low: 8 2T speed high: 0 (reserved val 10)
power mult factor: 4 6
recommended erase/write power: 5
A1 values: 02 4C D0
A2 values: 4A D8 5A
Disk type: Phase change
Manuf. index: 40
Manufacturer: INFODISC Technology Co., Ltd.
Blocks total: 359849 Blocks current: 359849 Blocks remaining: 267735
Starting to write CD/DVD at speed 4 in real TAO mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is OFF.
Performing OPC...
Starting new track at sector: 0
Track 01: 179 of 179 MB written (fifo 100%) [buf 96%] 4.0x.
Track 01: Total bytes read/written: 188645376/188645376 (92112 sectors).
Writing time: 312.099s
Average write speed 4.0x.
Min drive buffer fill was 95%
Fixating...
cdrecord: Input/output error. close track/session: scsi sendcmd: no error
CDB: 5B 00 02 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 03 00 00 00 00 0A 00 00 00 00 72 01 00 00
Sense Key: 0x3 Medium Error, Segment 0
Sense Code: 0x72 Qual 0x01 (session fixation error writing lead-in) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 3.049s timeout 480s
cmd finished after 3.049s timeout 480s
Fixating time: 3.052s
cdrecord: fifo had 2972 puts and 2972 gets.
cdrecord: fifo was 0 times empty and 2827 times full, min fill was 81%.

|--root@slackath Thu Aug 07 12:42:47
|-bash 2.05b /home/digiot $ ./cdcheck.sh livecd-2.9.0.20.iso

|--root@slackath Thu Aug 07 12:43:51
|-bash 2.05b /home/digiot $ mount /mnt/cdrw /dev/sr0: Invalid argument
mount: block device /dev/sr0 is write-protected, mounting read-only
/dev/sr0: Invalid argument
mount: /dev/sr0 already mounted or /mnt/cdrw busy
mount: according to mtab, /dev/sr0 is already mounted on /mnt/cdrw

|--root@slackath Thu Aug 07 12:44:14
|-bash 2.05b /home/digiot $ umount /mnt/cdrw

|--root@slackath Thu Aug 07 12:44:23
|-bash 2.05b /home/digiot $ mount /mnt/cdrw
/dev/sr0: Invalid argument
mount: block device /dev/sr0 is write-protected, mounting read-only
/dev/sr0: Invalid argument
mount: you must specify the filesystem type



AAARRRRGGGHHH!


All times are GMT -5. The time now is 01:59 AM.