Results 1 to 7 of 7

Thread: ?Building a new KNOPPIX/boot.img

  1. #1
    Member registered user
    Join Date
    Dec 2003
    Posts
    57

    ?Building a new KNOPPIX/boot.img

    I need to re-construct the boot.img file used during the CD boot. I searched the forums for 'boot.img' and read all those. I read through http://www.knoppix.net/docs/index.ph...tomKernelHowto.
    I am not running M$Win, I am not installing a new kernel or ISOLinux. I have the boot.img opened through a /dev/loop and have modified files. Unfortunately it looks like loop is read-only. So I copy these to a HD directory, make changes, and then what?

    root@knop1:/bld/newstuff# ll bootimg/
    total 1402
    -rwxr--r-- 1 root root 107 Nov 19 15:28 boot.msg
    -rwxr--r-- 1 root root 1791 Nov 19 15:28 f2
    -rwxr--r-- 1 root root 256 Nov 19 15:28 german.kbd
    -r-xr--r-- 1 root root 7836 Nov 19 15:28 ldlinux.sys
    -rw-r--r-- 1 root root 9258 Jan 8 08:29 logo.16
    -rwxr--r-- 1 root root 489495 Nov 19 15:28 miniroot.gz
    -rwxr--r-- 1 root root 2797 Jan 8 08:27 syslinux.cfg
    -rwxr--r-- 1 root root 921593 Nov 19 15:28 vmlinuz

    Note modified files. Now what is the 'mkisofs' command to rebuild the boot.img file? Then I will put it back into the remastering structure.

    Thanks in advance

    BillS

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: ?Building a new KNOPPIX/boot.img

    Quote Originally Posted by BillS
    I need to re-construct the boot.img file used during the CD boot. I searched the forums for 'boot.img' and read all those. I read through http://www.knoppix.net/docs/index.ph...tomKernelHowto.
    I am not running M$Win, I am not installing a new kernel or ISOLinux. I have the boot.img opened through a /dev/loop and have modified files. Unfortunately it looks like loop is read-only. So I copy these to a HD directory, make changes, and then what?

    root@knop1:/bld/newstuff# ll bootimg/
    total 1402
    -rwxr--r-- 1 root root 107 Nov 19 15:28 boot.msg
    -rwxr--r-- 1 root root 1791 Nov 19 15:28 f2
    -rwxr--r-- 1 root root 256 Nov 19 15:28 german.kbd
    -r-xr--r-- 1 root root 7836 Nov 19 15:28 ldlinux.sys
    -rw-r--r-- 1 root root 9258 Jan 8 08:29 logo.16
    -rwxr--r-- 1 root root 489495 Nov 19 15:28 miniroot.gz
    -rwxr--r-- 1 root root 2797 Jan 8 08:27 syslinux.cfg
    -rwxr--r-- 1 root root 921593 Nov 19 15:28 vmlinuz

    Note modified files. Now what is the 'mkisofs' command to rebuild the boot.img file? Then I will put it back into the remastering structure.

    Thanks in advance

    BillS
    Why not use Knoppix Customize and have it do what you want without remastering at all?

  3. #3
    Member registered user
    Join Date
    Dec 2003
    Posts
    57

    Remastering is already required...

    I looked at that program/procedure. It showed me how to process my new boot graphic. But it is constrained to smaller than what is already there.

    I am already re-mastering for my basic application, so I just need to re-build that file. I have all the pieces already pulled apart as part of the pseudo-CD I use for testing before burning....

    BillS

  4. #4
    i got this from a remastering how to hope it helps



    ** #cp /KNOPPIX/boot.img /mnt/hda3
    *Mount the image as follows
    * * * #*mount -t msdos -o loop * /mnt/hda3/boot.img */mnt/hda3/image
    * Now look in the image directory you created. There are a number of interesting *files in this directory

    **** Boot logo **
    logo.16 is the image displayed on boot screen. *It is encoded in a special format. For replacing it grab a 640*400 *16 color image. I downloaded an image from gnu.org.*Convert the image to a png file ( call it logo.png)*


    ** #pngtopnm <logo.png >logo.pnm

    * *** #ppmtolss16 <logo.pnm >logo.16

    *** # cp logo.16 /mnt/hda3/image/logo.16

  5. #5
    Senior Member registered user
    Join Date
    Jun 2003
    Posts
    611
    skip this part- -t msdos

    and you can write the files.

    Don't skip it an you'll need to cp the files ouitside of the mounted loop, edit them, mv a non-essential file like logo.png outside the mounted loop, then cp the editied config files back in, then mv the non-essential logo.png back in the loop (it will be a tiny bit smaller probably), then unmount the loop.

  6. #6
    Senior Member registered user
    Join Date
    Sep 2003
    Posts
    106
    I put a custom boot image on a knoppix cd using instructions from this page under custom boot cd:
    http://www.cclug.org/wiki/Main/KnoppixTricks

  7. #7
    Member registered user
    Join Date
    Dec 2003
    Posts
    57

    Thank you all

    Folks;
    I want to thank you all for the help. On Friday I had the boot image change, but couldn't figure out why. I had done the cloop mount and say the files. I copied in a new image (appropriately processed), but the size of the file didnt' change.

    Since that didn't work I went on to other tasks. I did *NOT* unmount the looped directory. Apparently the changes are not written out (or at least visible) until thing are flushed or unmounted. Later I shutdown to test a burn, which registered the new image which I found in the subsequet burn.

    Thanks again for confirming what had happened. I am looking forward to moving on in this project.. Individual burn dates and serial numbers
    incremented on the boot screen with each remastering

    BillS

Similar Threads

  1. Newbie building a Bootp/tftp server with knoppix
    By gbrisset in forum Customising & Remastering
    Replies: 4
    Last Post: 11-28-2004, 10:20 PM
  2. Building minirt24.gz help
    By netgirl in forum Customising & Remastering
    Replies: 2
    Last Post: 10-19-2004, 02:28 PM
  3. Building Knoppix-like CD
    By oldmarti in forum Customising & Remastering
    Replies: 0
    Last Post: 09-07-2004, 11:01 AM
  4. Need custom knoppix CD building
    By andrewtayloruk in forum Customising & Remastering
    Replies: 9
    Last Post: 01-29-2004, 07:05 PM
  5. Building custom kernel under KNOPPIX and package it ?
    By garyng in forum General Support
    Replies: 2
    Last Post: 04-21-2003, 09:54 PM

Posting Permissions

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


DELL PowerEdge R730XD Server 2x E5-2690v4 2.6GHz =28 Cores 64GB H730 4xRJ45 picture

DELL PowerEdge R730XD Server 2x E5-2690v4 2.6GHz =28 Cores 64GB H730 4xRJ45

$387.00



1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$273.00



Cisco UCS C220 M4 1x Xeon E5-2667 V4 3.20GHZ 128GB DDR4-2400MHZ 2x 770W AC PSU picture

Cisco UCS C220 M4 1x Xeon E5-2667 V4 3.20GHZ 128GB DDR4-2400MHZ 2x 770W AC PSU

$129.99



Cisco UCS C220 M3 1U 2x 6-Core Xeon E5-2620 2.0GHz / 64GB RAM / No HDD picture

Cisco UCS C220 M3 1U 2x 6-Core Xeon E5-2620 2.0GHz / 64GB RAM / No HDD

$89.99



DELL R630 SERVER 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU picture

DELL R630 SERVER 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU

$169.95



Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330 picture

Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330

$182.65



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



Dell Poweredge R210 Server X3450 2.67GHz 8GB RAM - NO HDDs picture

Dell Poweredge R210 Server X3450 2.67GHz 8GB RAM - NO HDDs

$59.99



1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture

1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports

$149.00