Professional Web Applications Themes

How To Modify Red Hat 9 boot.iso? - Linux Setup, Configuration & Administration

I'm trying to modify Red Hat 9 boot.iso so that isolinux.cfg will contain: default ks timeout 0 label ks kernel vmlinuz append ks=nfs:1.2.3.4:/ks.cfg initrd=initrd.img I can do this on bootdisk.img, but I'm having no luck with creating the boot sector on the CD-ROM... After I have the files from boot.iso the way I want, I perform the following: mkisofs -b isolinux/initrd.img -c isolinux/boot.cat -o modified_boot.iso . The error message I get is: Size of boot image is 5284 sectors -> mkisofs: Error - boot image './isolinux/initrd.img' is not the an allowable size. initrd.img is 2704029 bytes, which appears to be ...

  1. #1

    Default How To Modify Red Hat 9 boot.iso?

    I'm trying to modify Red Hat 9 boot.iso so that isolinux.cfg will contain:

    default ks
    timeout 0
    label ks
    kernel vmlinuz
    append ks=nfs:1.2.3.4:/ks.cfg initrd=initrd.img

    I can do this on bootdisk.img, but I'm having no luck with creating the
    boot sector on the CD-ROM... After I have the files from boot.iso the
    way I want, I perform the following:

    mkisofs -b isolinux/initrd.img -c isolinux/boot.cat -o modified_boot.iso .

    The error message I get is: Size of boot image is 5284 sectors ->
    mkisofs: Error - boot image './isolinux/initrd.img' is not the an
    allowable size.

    initrd.img is 2704029 bytes, which appears to be ok according to man
    mkisofs.

    Can anyone shed some light on what I am doing wrong? Thanks.
    --
    Hank

    Hank Guest

  2. #2

    Default Re: How To Modify Red Hat 9 boot.iso?

    Hank Kingwood <xyz> writes:

    ]I'm trying to modify Red Hat 9 boot.iso so that isolinux.cfg will contain:

    ]default ks
    ]timeout 0
    ]label ks
    ] kernel vmlinuz
    ] append ks=nfs:1.2.3.4:/ks.cfg initrd=initrd.img

    ]I can do this on bootdisk.img, but I'm having no luck with creating the
    ]boot sector on the CD-ROM... After I have the files from boot.iso the
    ]way I want, I perform the following:

    ]mkisofs -b isolinux/initrd.img -c isolinux/boot.cat -o modified_boot.iso .

    ]The error message I get is: Size of boot image is 5284 sectors ->
    ]mkisofs: Error - boot image './isolinux/initrd.img' is not the an
    ]allowable size.

    ]initrd.img is 2704029 bytes, which appears to be ok according to man
    ]mkisofs.

    ]Can anyone shed some light on what I am doing wrong? Thanks.

    Well, the error message seems pretty clear. The boot image for the cdrom
    is a floppy image, so that the contents must fit on a floppy.

    write the image to a floppy, edit the appropriate stuff, and then make
    an image of that floppy.
    It should be 1440K in size.

    Bill Guest

  3. #3

    Default Re: How To Modify Red Hat 9 boot.iso?

    On Tue, 23 Sep 2003 00:43:58 +0000 (UTC), Bill Unruh staggered into the
    Black Sun and said: [/ref]
     [/ref]
     [/ref]
     [/ref]
     
    >
    > Well, the error message seems pretty clear. The boot image for the
    > cdrom is a floppy image, so that the contents must fit on a floppy.[/ref]

    Nope. "man mkisofs" and look for the -hard-disk-boot option. That's
    what I think Hank wants, since ISTR something about Redhat 9 having
    problems with some older machines since it used "hard disk emulation"
    instead of the floppy images. Or maybe it uses -no-emul-boot. I don't
    know for sure.
     

    Nah, the floppy image can be 1200, 1440, or 2880K. Redhat couldn't fit
    everything on a 2880K image, I guess.

    --
    Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
    Brainbench MVP for Linux Admin /
    http://www.brainbench.com / "He is a rhythmic movement of the
    -----------------------------/ penguins, is Tux." --MegaHAL
    Dances Guest

  4. #4

    Default Re: How To Modify Red Hat 9 boot.iso?



    Dances With Crows wrote: [/ref]
    >
    >
    > [/ref]
    >
    >
    > [/ref]
    >
    >
    > [/ref]
    >
    >

    >>
    >>Well, the error message seems pretty clear. The boot image for the
    >>cdrom is a floppy image, so that the contents must fit on a floppy.[/ref]
    >
    >
    > Nope. "man mkisofs" and look for the -hard-disk-boot option. That's
    > what I think Hank wants, since ISTR something about Redhat 9 having
    > problems with some older machines since it used "hard disk emulation"
    > instead of the floppy images. Or maybe it uses -no-emul-boot. I don't
    > know for sure.
    >

    >
    >
    > Nah, the floppy image can be 1200, 1440, or 2880K. Redhat couldn't fit
    > everything on a 2880K image, I guess.[/ref]

    Thanks for the suggestion, but "-hard-disk-boot" and "-no-emul-boot"
    don't work. I tried them, but no joy...

    Any idea how I can find out how Red Had created their ISO image? If
    they did it, I can do it.

    Thanks,
    Hank

    Hank Guest

  5. #5

    Default Re: How To Modify Red Hat 9 boot.iso?

    On Fri, 26 Sep 2003 02:35:35 GMT, Hank Kingwood staggered into the Black
    Sun and said: 
    >> 
    >> 
    >>
    >> Nope. "man mkisofs" and look for the -hard-disk-boot option. That's
    >> what I think Hank wants, since ISTR something about Redhat 9 having
    >> problems with some older machines since it used "hard disk emulation"[/ref][/ref]
     

    I don't know whether this is true on Redhat CDs (I don't use or
    recommend Redhat) but on SuSE distro CDs, the mkisofs command used was
    actually embedded in the CD image somewhere within the first 128K of the
    CD--I forget exactly where. Dump the first chunk of the CD, then start
    grepping, I guess.

    --
    Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
    Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
    http://www.brainbench.com / "He is a rhythmic movement of the
    -----------------------------/ penguins, is Tux." --MegaHAL
    Dances Guest

Similar Threads

  1. Replies: 5
    Last Post: February 24th, 04:49 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