Professional Web Applications Themes

mksysb to dvd - AIX

I am having no luck burning a mksysb to the built-in dvd writer in 2 B80s running AIX 5.2.2. The process I use is: 1. mkcd -d /dev/cd0 -L -R 2. burn_cd -d /dev/cd0 <path-to>cd_image I also have tried directly using mkcd (without the -R). In all cases, I get errors that seem to say 'I can't write to the drive.' I can, however, tar some files to the dvd and retrieve them, so I know the blank disk and the drive are ok. IBM's solution was to use IBM branded blank disks. There is no such thing. Ideas???? Thanks...

  1. #1

    Default mksysb to dvd

    I am having no luck burning a mksysb to the built-in dvd writer in 2
    B80s running AIX 5.2.2. The process I use is:

    1. mkcd -d /dev/cd0 -L -R
    2. burn_cd -d /dev/cd0 <path-to>cd_image

    I also have tried directly using mkcd (without the -R).

    In all cases, I get errors that seem to say 'I can't write to the drive.'

    I can, however, tar some files to the dvd and retrieve them, so I know
    the blank disk and the drive are ok.

    IBM's solution was to use IBM branded blank disks. There is no such
    thing.

    Ideas????

    Thanks
    Mike Guest

  2. #2

    Default Re: mksysb to dvd

    Mike Klein wrote: 

    If I understand correctly, the 1st command *will* write the mksysb
    image to /dev/cd0, why use 2nd command to burn again?
    If you want to stop mkcd before writing to the device, use '-S'.

    Tao Guest

  3. #3

    Default Re: mksysb to dvd

    In article <ppXTb.30654$texas.rr.com>,
    Tao Chen <com> wrote:
     
    >
    > If I understand correctly, the 1st command *will* write the mksysb
    > image to /dev/cd0, why use 2nd command to burn again?
    > If you want to stop mkcd before writing to the device, use '-S'.
    >[/ref]

    Yes, the first should burn the dvd, but it also leaves the image on disk
    (-R) so that later attempts using #2 will take less time.

    The console log is:

    neo2:/> mkcd -d /dev/cd0 -L -R
    Initializing mkcd log: /var/adm/ras/mkcd.log...
    Verifying command parameters...
    Creating image.data file...
    Creating temporary file system: /mkcd/mksysb_image...
    Creating mksysb image...

    Creating list of files to back up..
    Backing up 37301 files.....................
    37301 of 37301 files (100%)
    0512-038 mksysb: Backup Completed Successfully.
    Creating temporary file system: /mkcd/cd_fs...
    Populating the CD or DVD file system...
    Copying backup to the CD or DVD file system...
    Building chrp boot image...
    Creating temporary file system: /mkcd/cd_images...
    Creating Rock Ridge format image: /mkcd/cd_images/cd_image_9152
    Running mkisofs ...
    mkrr_fs was successful.
    Making the CD or DVD image bootable...
    Writing the CD or DVD image to device: /dev/cd0...
    Running readcd ...
    Capacity: 2236704 Blocks = 4473408 kBytes = 4368 MBytes = 4580 prMB
    Sectorsize: 2048 Bytes
    CDB: 0A 00 00 00 20 00
    Sense Bytes: 70 00 07 00 00 00 00 0A 11 00 00 00 92 00 00 00 00 00
    Sense Key: 0x7 Data Protect, Segment 0
    Sense Code: 0x92 Qual 0x00 (vendor unique sense code 0x92) Fru 0x0
    Sense flags: Blk 0 (not valid)
    cmd finished after 0.001s timeout 40s
    Copy from file '/mkcd/cd_images/cd_image_9152' to SCSI (0,0,0) disk
    end: 2236704
    /usr/local/bin/readcd: I/O error. write_g0: scsi sendcmd: retryable error
    status: 0x2 (CHECK CONDITION)
    /usr/local/bin/readcd: I/O error. Cannot write destination disk
    burn_cd: Command error.
    0512-322 mkcd: An error has occurred
    writing the CD or DVD image to the CD or DVD device.

    If you would like to attempt to write to another CD or DVD, replace
    the current CD or DVD with a new writable CD or DVD. Press the <enter>
    key when ready...
    If you would like to stop the command and cleanup, Press 'q' to quit...
    q
    Cleaning up...
    Removing temporary file system: /mkcd/cd_fs...
    Removing temporary file system: /mkcd/mksysb_image...
    neo2:/> ls /mkcd/

    ================================================== ==

    neo2:/home/root> burn_cd -d /dev/cd0 /mkcd/cd_images/cd_image_9152
    Running readcd ...
    Capacity: 2236704 Blocks = 4473408 kBytes = 4368 MBytes = 4580 prMB
    Sectorsize: 2048 Bytes
    CDB: 0A 00 00 00 20 00
    Sense Bytes: 70 00 03 00 00 00 00 0A 00 92 00 00 32 01 00 00 00 00
    Sense Key: 0x3 Medium Error, Segment 0
    Sense Code: 0x32 Qual 0x01 (defect list update failure) Fru 0x0
    Sense flags: Blk 0 (not valid)
    cmd finished after 2.371s timeout 40s
    Copy from file '/mkcd/cd_images/cd_image_9152' to SCSI (0,0,0) disk
    end: 2236704
    /usr/local/bin/readcd: I/O error. write_g0: scsi sendcmd: retryable error
    status: 0x2 (CHECK CONDITION)
    /usr/local/bin/readcd: I/O error. Cannot write destination disk
    burn_cd: Command error.
    neo2:/home/root>
    Mike Guest

  4. #4

    Default Re: mksysb to dvd

    Mike Klein <edu> wrote in message news:<supernews.com>... 


    Perform the mksysb within smit. That should allow you to perform this
    task. Once it is done, look at the /smit.script to see what it did.

    Try "smitty mkdvd"

    BV
    Bill Guest

  5. #5

    Default Re: mksysb to dvd

    In article <google.com>,
    com (Bill) wrote:
     
    >
    >
    > Perform the mksysb within smit. That should allow you to perform this
    > task. Once it is done, look at the /smit.script to see what it did.
    >
    > Try "smitty mkdvd"
    >
    > BV[/ref]

    Been there, done that. Same result!
    Mike Guest

  6. #6

    Default Re: mksysb to dvd

    Mike Klein wrote:
     

    1. Post the following:

    # lsdev -Cc cdrom
    # mount

    2.
    change this line in /usr/sbin/burn_cd:

    $CD_RECORD_PATH/readcd -w dev=$CD_DEVICE f=$CD_IMAGE 2>$MSGBUF

    to:
    set -x
    truss -topenx,kioctl,kread,kwrite \
    $CD_RECORD_PATH/readcd -w dev=$CD_DEVICE f=$CD_IMAGE 2>&1
    set +x

    Run the burn_cd command again and post the console mesasge.

    Regards,
    Tao

    Tao Guest

  7. #7

    Default Re: mksysb to dvd

    In article <ky8Ub.31753$texas.rr.com>,
    Tao Chen <com> wrote:
     
    >
    > 1. Post the following:
    >
    > # lsdev -Cc cdrom[/ref]

    cd0 Available 10-88-00-1,0 SCSI DVD-RAM Drive
     

    neo2:/home/root> mount
    node mounted mounted over vfs date
    options
    -------- --------------- --------------- ------ ------------
    ---------------
    /dev/hd4 / jfs Feb 04 10:27
    rw,log=/dev/hd8
    /dev/hd2 /usr jfs Feb 04 10:27
    rw,log=/dev/hd8
    /dev/hd9var /var jfs Feb 04 10:27
    rw,log=/dev/hd8
    /dev/hd3 /tmp jfs Feb 04 10:27
    rw,log=/dev/hd8
    /dev/hd1 /home jfs Feb 04 10:28
    rw,log=/dev/hd8
    /proc /proc procfs Feb 04 10:28 rw

    /dev/hd10opt /opt jfs Feb 04 10:28 rw,log=/dev/hd8
    neo2:/home/root>
     

    neo2:/usr/samples/oem_cdwriters> burn_cd -d /dev/cd0 -L
    Running readcd ...
    + truss -topenx,kioctl,kread,kwrite
    Usage: truss [-f] [-c] [-a] [-l] [-d] -D] [-e] [-i] [-[tx] [!] syscall
    [,syscall] ]
    [-s [!] signal [,signal] ] [-m [!] fault [,fault] ] [-[rw] [!] fd [,fd] ]
    [-u [!]libs::[!]functs][-o outfile] {command | -p pid [. . .]}
    + /usr/bin/readcd -w dev=0,0 f=-L
    + 2>& 1
    Capacity: 2236704 Blocks = 4473408 kBytes = 4368 MBytes = 4580 prMB
    Sectorsize: 2048 Bytes
    Copy from file '-L' to SCSI (0,0,0) disk
    /usr/bin/readcd: No such file or directory. Cannot open '-L'.
    burn_cd was successful.
    neo2:/usr/samples/oem_cdwriters> exit
    exit
    Script command is complete. The file is log.
    neo2:/usr/samples/oem_cdwriters> more log
    Script command is started on Wed Feb 4 10:57:55 CST 2004.
    neo2:/usr/samples/oem_cdwriters> ls cd ols^[^[[8cd sample
    l s^[^[[9P^[[1P^[[7Pcd /usr/sampl
    ls^[^[[8ls^[cd ols ^[[10P^[[K^G^G^G^Glsd
    ^[[10P^[[K^G^G^G^G^Gburn_cd -d /dev/cd0 -L
    Running readcd ...
    + truss -topenx,kioctl,kread,kwrite
    Usage: truss [-f] [-c] [-a] [-l] [-d] -D] [-e] [-i] [-[tx] [!] syscall
    [,syscall] ]
    [-s [!] signal [,signal] ] [-m [!] fault [,fault] ] [-[rw] [!] fd [,fd] ]
    [-u [!]libs::[!]functs][-o outfile] {command | -p pid [. . .]}
    + /usr/bin/readcd -w dev=0,0 f=-L
    + 2>& 1
    Capacity: 2236704 Blocks = 4473408 kBytes = 4368 MBytes = 4580 prMB
    Sectorsize: 2048 Bytes
    Copy from file '-L' to SCSI (0,0,0) disk
    /usr/bin/readcd: No such file or directory. Cannot open '-L'.
    burn_cd was successful.
    neo2:/usr/samples/oem_cdwriters> exit
    exit

    Script command is complete on Wed Feb 4 10:58:39 CST 2004.
    neo2:/usr/samples/oem_cdwriters> rm log
    neo2:/usr/samples/oem_cdwriters> mkcd -d /dev/cd0 -L
    Initializing mkcd log: /var/adm/ras/mkcd.log...
    Verifying command parameters...
    Creating image.data file...
    Creating temporary file system: /mkcd/mksysb_image...
    Creating mksysb image...

    Creating list of files to back up.
    Backing up 37282 files................
    37282 of 37282 files (100%)
    0512-038 mksysb: Backup Completed Successfully.
    Creating temporary file system: /mkcd/cd_fs...
    Populating the CD or DVD file system...
    Copying backup to the CD or DVD file system...
    Building chrp boot image...
    Creating Rock Ridge format image: /mkcd/cd_images/cd_image_27986
    Running mkisofs ...
    mkrr_fs was successful.
    Making the CD or DVD image bootable...
    Writing the CD or DVD image to device: /dev/cd0...
    Running readcd ...
    Capacity: 2236704 Blocks = 4473408 kBytes = 4368 MBytes = 4580 prMB
    Sectorsize: 2048 Bytes
    Copy from file '/mkcd/cd_images/cd_image_27986' to SCSI (0,0,0) disk
    end: 2236704
    /usr/bin/readcd: I/O error. write_g0: scsi sendcmd: retryable error
    CDB: 0A 00 00 00 20 00
    status: 0x2 (CHECK CONDITION)
    Sense Bytes: 70 00 03 00 00 00 00 0A 00 92 00 00 32 01 00 00 00 00
    Sense Key: 0x3 Medium Error, Segment 0
    Sense Code: 0x32 Qual 0x01 (defect list update failure) Fru 0x0
    Sense flags: Blk 0 (not valid)
    cmd finished after 5.408s timeout 40s
    /usr/bin/readcd: I/O error. Cannot write destination disk
    burn_cd was successful.
    Removing temporary file system: /mkcd/cd_fs...
    Removing temporary file system: /mkcd/mksysb_image...
    neo2:/usr/samples/oem_cdwriters>

     

    BTW- I changed the link for /usr/sbin/burn_cd to
    /usr/samples/burn_cd_jodian for a test. A disk was sucessfully burned, I
    think, but, would not boot. I hung with a E140 in the display.
    Mike Guest

  8. #8

    Default Re: mksysb to dvd

    Sorry Tao, I messed up the changes. The correct version is below.

    Thanks 

    cd0 Available 10-88-00-1,0 SCSI DVD-RAM Drive
     

    neo2:/home/root> mount
    node mounted mounted over vfs date
    options
    -------- --------------- --------------- ------ ------------
    ---------------
    /dev/hd4 / jfs Feb 04 10:27
    rw,log=/dev/hd8
    /dev/hd2 /usr jfs Feb 04 10:27
    rw,log=/dev/hd8
    /dev/hd9var /var jfs Feb 04 10:27
    rw,log=/dev/hd8
    /dev/hd3 /tmp jfs Feb 04 10:27
    rw,log=/dev/hd8
    /dev/hd1 /home jfs Feb 04 10:28
    rw,log=/dev/hd8
    /proc /proc procfs Feb 04 10:28 rw

    /dev/hd10opt /opt jfs Feb 04 10:28 rw,log=/dev/hd8
    neo2:/home/root>
     
    neo2:/usr/samples/oem_cdwriters> mkcd -d /dev/cd0 -L
    Initializing mkcd log: /var/adm/ras/mkcd.log...
    Verifying command parameters...
    Creating image.data file...
    0512-305 mkcd: /usr/sbin/burn_cd must be a link to the
    appropriate OEM routine.
    neo2:/usr/samples/oem_cdwriters> cd /usr/sbin
    neo2:/usr/sbin> ls -l burn*
    lrwxrwxrwx 1 root system 45 Dec 23 10:56
    burn_cd.original -> /usr/samples/em_cdwriters/burn_cd_gnu_dvdram
    lrwxrwxrwx 1 root system 45 Feb 04 11:15
    burn_cd_gnu_dvdram -> /usr/sample/oem_cdwriters/burn_cd_gnu_dvdram
    neo2:/usr/sbin> mv burn_cd_gnu_dvdram burn_cd
    neo2:/usr/sbin> cd /usr/samples/oem_cdwriters/
    neo2:/usr/samples/oem_cdwriters> mkcd -d /dev/cd0 -L
    Initializing mkcd log: /var/adm/ras/mkcd.log...
    Verifying command parameters...
    Creating image.data file...
    Creating temporary file system: /mkcd/mksysb_image...
    Creating mksysb image...

    Creating list of files to back up..
    Backing up 37282 files.....................
    37282 of 37282 files (100%)
    0512-038 mksysb: Backup Completed Successfully.
    Creating temporary file system: /mkcd/cd_fs...
    Populating the CD or DVD file system...
    Copying backup to the CD or DVD file system...
    Building chrp boot image...
    Creating Rock Ridge format image: /mkcd/cd_images/cd_image_18790
    Running mkisofs ...
    mkrr_fs was successful.
    Making the CD or DVD image bootable...
    Writing the CD or DVD image to device: /dev/cd0...
    Running readcd ...
    openx("/dev/rcd0", O_RDONLY, , 1) = 3
    kioctl(3, 3, 0x2FF22550, 0x00000000) = 0
    kioctl(3, 3, 0x2FF22580, 0x00000000) = 0
    kioctl(3, 3, 0x2FF222B0, 0x00000000) = 0
    kioctl(3, 3, 0x2FF220D0, 0x00000000) = 0
    kioctl(3, 3, 0x2FF21F50, 0x00000000) = 0
    kioctl(3, 3, 0x2FF21F50, 0x00000000) = 0
    kioctl(3, 3, 0x2FF220D0, 0x00000000) = 0
    kioctl(3, 3, 0x2FF226E0, 0x00000000) = 0
    kioctl(3, 3, 0x2FF22450, 0x00000000) = 0
    kioctl(1, 22528, 0x00000000, 0x00000000) = 0
    Capacity: 2236704 Blocks = 4473408 kBytes = 4368 MBytes = 4580 prMB
    kwrite(1, 0xF019ECF8, 68) = 68
    Sectorsize: 2048 Bytes
    kwrite(1, 0xF019ECF8, 23) = 23
    Copy from file '/mkcd/cd_images/cd_image_18790' to SCSI (0,0,0) disk
    kwrite(2, " C o p y f r o m f i".., 69) = 69
    kioctl(4, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
    end: 2236704
    kwrite(2, " e n d : 2 2 3 6 7".., 15) = 15
    kwrite(2, " a d d r : ".., 23) = 23
    kread(4, "\0\0\0\0\0\0\0\0\0\0\0\0".., 65536) = 65536
    kioctl(3, 3, 0x2FF22480, 0x00000000) = 0
    kwrite(2, " a d d r : ".., 23) = 23
    kread(4, " f\0 \0\0\0\0\0\0 \0\b".., 65536) = 65536
    kioctl(3, 3, 0x2FF22480, 0x00000000) = 0
    /usr/local/bin/readcd: I/O error. write_g0: scsi sendcmd: retryable error
    kwrite(2, " / u s r / l o c a l / b".., 74) = 74
    CDB: 0A 00 00 40 20 00
    kwrite(1, 0xF019ECF8, 24) = 24
    status: 0x2 kwrite(2, " s t a t u s : 0 x 2 ", 12) = 12
    (kwrite(2, " (", 1) = 1
    CHECK CONDITIONkwrite(2, " C H E C K C O N D I T".., 15) = 15
    )
    kwrite(2, " )\n", 2) = 2
    Sense Bytes: 70 00 03 00 00 00 00 0A 00 92 00 00 32 01 00 00 00 00
    kwrite(1, 0xF019ECF8, 67) = 67
    Sense Key: 0x3 Medium Error, Segment 0
    kwrite(1, 0xF019ECF8, 39) = 39
    Sense Code: 0x32 Qual 0x01 (defect list update failure) Fru 0x0
    kwrite(1, 0xF019ECF8, 64) = 64
    Sense flags: Blk 0 (not valid)
    kwrite(1, 0xF019ECF8, 32) = 32
    cmd finished after 2.750s timeout 40s
    kwrite(1, 0xF019ECF8, 38) = 38
    /usr/local/bin/readcd: I/O error. Cannot write destination disk
    kwrite(2, " / u s r / l o c a l / b".., 64) = 64
    burn_cd was successful.
    Removing temporary file system: /mkcd/cd_fs...
    Removing temporary file system: /mkcd/mksysb_image...
    Mike Guest

Similar Threads

  1. Restoring from mksysb
    By Joe in forum AIX
    Replies: 5
    Last Post: November 6th, 10:55 PM
  2. nim mksysb backup?
    By Mike in forum AIX
    Replies: 3
    Last Post: November 4th, 07:46 PM
  3. mksysb log file
    By yls177 in forum AIX
    Replies: 6
    Last Post: October 9th, 11:21 PM
  4. mksysb problem on AIX 5.1
    By Michael in forum AIX
    Replies: 8
    Last Post: October 8th, 02:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139