Results 1 to 6 of 6

Thread: Error building cloop under RedHat

  1. #1
    zamoose
    Guest

    Error building cloop under RedHat

    Having some trouble here:
    When I try to build cloop under RedHat 7.3, I get the following error:
    compressed_loop.c: In function `clo_read_from_file':
    compressed_loop.c:238: too few arguments to function `do_generic_file_read_Rsmp_5342f1d0'
    make: *** [compressed_loop.o] Error 1

    I've altered the Makefile in one way:
    I changed :
    ifndef APPSONLY
    include $(KERNEL_DIR)/.config
    endif

    to:
    include $(KERNEL_DIR)/configs/kernel-2.4.18-athlon-smp.config

    as no such file exists on my RedHat system.

    I'm trying to get it so I can repackage my MAME roms with a KnoppiXMAME 0.5 iso.

    Anyone have any suggestions?

  2. #2
    Member registered user
    Join Date
    Jan 2003
    Location
    Florida, US
    Posts
    41
    Here is the beginning of the remaster script for Modularity (www.modularity.org):

    Code:
    # $Image -- name of the iso to be remastered
    # $hd_part -- Partition to be remastered
    # $swapfile -- Location\name of swap file
    Image=/mnt/modelk-0.5.2.iso
    hd_part=hda8
    swapfile=/tmp/knx-swapfile
    cd /tmp
    
    #Setup tmp 2K (2000M) swap file
    
    swapoff $swapfile
    
    echo "Creating 2Gig Temperary Swap File in /tmp as knx-swapfile"
    dd if=/dev/zero of=$swapfile bs=1M count=2000 && sync && sync
    
    # creates a 2G (2000M) swapfile in /tmp/
    
    echo "Initializing Swap"
    mkswap $swapfile    # (initializes /swapfile)
    swapon $swapfile    # (turn on new swap)
    echo "Swap enabled"
    
    echo "Setting up file system"
    mkfs /dev/$hd_part
    mount /dev/$hd_part /mnt/$hd_part
    echo "Mounting CD-ROM Image as loop back device"
    mkdir /mnt/$hd_part/tmp
    
    mkdir /mnt/$hd_part/tmp/CDROM
    
    echo "Mounting CD-ROM iso to tmp"
    mount -o loop $Image /mnt/$hd_part/tmp/CDROM
    echo "Coping files from loop mounted .iso to CDROM directory of harddrive"
    cp -Rp /mnt/$hd_part/tmp/CDROM /mnt/$hd_part/
    echo "Copying complete"
    echo "Unmounting .iso loop back"
    umount $Image
    rm /mnt/$hd_part/tmp/CDROM
    
    mkdir /mnt/$hd_part/tmp/WORKING
    
    echo "Extracting KNOPPIX compressed file system"
    extract_compressed_fs /mnt/$hd_part/CDROM/KNOPPIX/KNOPPIX > /tmp/UNCOMPRESSED
    echo "Mounting UNCOMPRESSED cloop (compressed file system) to loopback device"
    mount -o loop /tmp/UNCOMPRESSED /mnt/$hd_part/tmp/WORKING
    #rsync -plarv   /mnt/$hd_part/tmp/WORKING /mnt/$hd_part/
    echo "Copying files from cloop to hard drive"
    cp -Rp /mnt/$hd_part/tmp/WORKING /mnt/$hd_part/
    
    echo "Cleaning up"
    umount /mnt/$hd_part/tmp/WORKING
    rm /tmp/UNCOMPRESSED
    
    #rm /mnt/$hd_part/tmp/UNCOMPRESSED
    rm /mnt/$hd_part/CDROM/KNOPPIX/KNOPPIX
    
    echo " Ready to chroot to Knoppix"
    echo "To begin -- Type chroot /mnt/hda?/WORKING"

  3. #3
    Member registered user
    Join Date
    Jan 2003
    Location
    Florida, US
    Posts
    41
    Oops -- You also need to download

    extract_compressed_fs
    and
    create_compressed_fs

    This is the mk_compressed script to compress the WORKING dir back to a compressed file system

    Code:
    mkisofs -R /mnt/hda7/WORKING  |  create_compressed_fs -   65536  > /mnt/hda7/CDROM/KNOPPIX/KNOPPIX
    And this the iso creation script:

    Code:
    d /mnt/hda7/CDROM
    mkisofs -r -J -b KNOPPIX/boot.img -c KNOPPIX/boot.cat   -o /mnt/myknoppix.iso  /mnt/hda7/CDROM
    Make sure to change the hda7 to your drive from the first script.

  4. #4
    zamoose
    Guest
    That's lovely, but where do I get those executables? I haven't been able to find a download site for the life of me...

  5. #5
    Member registered user
    Join Date
    Jan 2003
    Location
    Florida, US
    Posts
    41
    Sorry

    They are on the CD but you can also download them from http://www.modularity.org/knoppix/

    Also in the first script I forgot to set the swapfile=/tmp/swapfile so add that after the Image= line.

    I still need to add a lot of error checking code.

    Good luck,
    Avid

  6. #6
    zamoose
    Guest
    Many thanks. From your script and this howto: http://www.stirnimann.com/mystuff/doc/knoppix.txt I was able to throw together a new disc complete with ROMs.

Similar Threads

  1. Building cloop for kernel 2.6.x
    By kawazu in forum Customising & Remastering
    Replies: 3
    Last Post: 09-16-2004, 09:02 AM
  2. failed boot cloop error-3
    By BlkBear in forum General Support
    Replies: 2
    Last Post: 02-24-2004, 09:44 PM
  3. Error compiling cloop module
    By dafne in forum Customising & Remastering
    Replies: 0
    Last Post: 02-13-2004, 02:19 PM
  4. cloop error while reading
    By dil in forum Customising & Remastering
    Replies: 0
    Last Post: 02-13-2004, 01:30 PM
  5. Error building cloop under RedHat part 2
    By sergiornunes in forum Customising & Remastering
    Replies: 1
    Last Post: 04-09-2003, 03:01 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
  •  


Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS picture

Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS

$712.98



DELL PowerEdge R730XD 24x 2.5

DELL PowerEdge R730XD 24x 2.5" Server Dual 750W Dual Heatsink - BareBones TESTED

$269.99



HP ProLiant DL360 G9 Server | 2 x E5-2660V3 2.6Ghz | 64GB | 2 x 900GB SAS HDD picture

HP ProLiant DL360 G9 Server | 2 x E5-2660V3 2.6Ghz | 64GB | 2 x 900GB SAS HDD

$339.00



Dell Poweredge R640 Server | 2x Xeon Gold 6132 | 128GB | H730P | 8x HDD Trays picture

Dell Poweredge R640 Server | 2x Xeon Gold 6132 | 128GB | H730P | 8x HDD Trays

$1849.00



Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD picture

Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD

$89.99



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



Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox

$340.00



HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD picture

HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD

$196.95



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

$297.00



Dell PowerEdge R620 Server 2x E5-2650 V2 = 16 Cores H710P 128GB RAM 2x 600GB SAS picture

Dell PowerEdge R620 Server 2x E5-2650 V2 = 16 Cores H710P 128GB RAM 2x 600GB SAS

$274.99