Hi all,
I am having problems creating a boot cd under redhat 8.0.
I have gone over doco in RELEASE notes on distribution cds and read lots
of mails on this list in past few days however I can't seem to create a
working boot cd.
My aim is to have a boot cd which can be used to start a network based
kickstart install (kickstart file and OS sourced via nfs).
I have done the following (as root), to create a boot cd image
[root@avalon export]# mkdir last_try
[root@avalon export]# cp -r /mnt/cdrom/isolinux/ /export/last_try/
[root@avalon export]# cd last_try/
[root@avalon export]# chmod u+w isolinux/*
[root@avalon export]# mkisofs -o /export/bootcd3.iso -b isolinux.bin -c
boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T
isolinux
Scanning isolinux
Excluded by match: isolinux/boot.cat
Excluded: isolinux/TRANS.TBL
Size of boot image is 4 sectors -> No emulation
Total translation table size: 2730
Total rockridge attributes bytes: 1322
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 7000
1824 extents written (3 Mb)
Now mount iso image and see what we have
[root@avalon export]# mount -o loop /export/bootcd3.iso /tmp/cdimage/
[root@avalon export]# ll /tmp/cdimage/
total 3518
-r--r--r-- 1 root root 2048 Apr 30 13:25 boot.cat
-rw-r--r-- 1 root root 342 Apr 30 13:17 boot.msg
-rw-r--r-- 1 root root 957 Apr 30 13:17 general.msg
-rw-r--r-- 1 root root 2711963 Apr 30 13:17 initrd.img
-rw-r--r-- 1 root root 8696 Apr 30 13:17 isolinux.bin
-rw-r--r-- 1 root root 725 Apr 30 13:24 isolinux.cfg
-rw-r--r-- 1 root root 730 Apr 30 13:17 options.msg
-rw-r--r-- 1 root root 869 Apr 30 13:17 param.msg
-rw-r--r-- 1 root root 508 Apr 30 13:17 rescue.msg
-rw-r--r-- 1 root root 549 Apr 30 13:17 snake.msg
-rw-r--r-- 1 root root 12070 Apr 30 13:17 splash.lss
-rw-r--r-- 1 root root 7164 Apr 30 13:17 syslinux-splash.png
-r--r--r-- 1 root root 682 Apr 30 13:25 TRANS.TBL
-rw-r--r-- 1 root root 852324 Apr 30 13:17 vmlinuz
[root@avalon export]#
Now record cd
[root@avalon export]# cdrecord -v speed=4 dev=0,0,0 bootcd3.iso
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 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.5'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'SONY '
Identifikation : 'CD-RW CRX210E1 '
Revision : '2YS2'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : SWABAUDIO
Drive buf size : 1895168 = 1850 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 3 MB
Total size: 4 MB (00:24.34) = 1826 sectors
Lout start: 4 MB (00:26/26) = 1826 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Is not unrestricted
Is not erasable
Disk sub type: Medium Type C, low Beta category (C-) (6)
ATIP start of lead in: -11640 (97:26/60)
ATIP start of lead out: 337350 (75:00/00)
Disk type: Long strategy type (Cyanine, AZO or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
Blocks total: 337350 Blocks current: 337350 Blocks remaining: 335524
RBlocks total: 349030 RBlocks current: 349030 RBlocks remaining: 347204
Starting to write CD/DVD at speed 4 in write mode for single session.
Last chance to quit, starting real write in 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Starting new track at sector: 0
Track 01: 3 of 3 MB written (fifo 100%).
Track 01: Total bytes read/written: 3735552/3735552 (1824 sectors).
Writing time: 13.145s
Fixating...
Fixating time: 62.692s
cdrecord: fifo had 59 puts and 59 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
[root@avalon export]# eject cdrom1
When I try and use this cd as a boot cd in another machine it fails. I
can use the distribution cd fine.
When I try and mount this cd on the machine I tried to use it as a boot
cd (after manual install) - I see the following error messages in
/var/log/messages. I am not sure if I should be able to mount this cd?
Is there a way I can verify the boot cd image I am creating?
Apr 30 13:47:38 localhost kernel: hdc: command error: status=0x51 {
DriveReady SeekComplete Error }
Apr 30 13:47:38 localhost kernel: hdc: command error: error=0x54
Apr 30 13:47:38 localhost kernel: end_request: I/O error, dev 16:00
(hdc), sector 116
Apr 30 13:47:38 localhost kernel: ISOFS: unable to read i-node block
Apr 30 13:47:48 localhost kernel: hdc: irq timeout: status=0xd0 { Busy }
Apr 30 13:47:48 localhost kernel: hdc: ATAPI reset complete
Apr 30 13:47:59 localhost kernel: hdc: irq timeout: status=0xd0 { Busy }
Apr 30 13:47:59 localhost kernel: hdc: ATAPI reset complete
Apr 30 13:47:59 localhost kernel: end_request: I/O error, dev 16:00
(hdc), sector 120
Apr 30 13:47:59 localhost kernel: ISOFS: unable to read i-node block
Any pointers to what is going on here will be much appreciated!
thanks,
Michael
--
Michael O'Sullivan <mos@xxxxxxxx>
"A good man always knows his limitations" - HC