Page 18 of 31 FirstFirst ... 8161718192028 ... LastLast
Results 171 to 180 of 302

Thread: multicd.sh - combine Linux ISOS into one

  1. #171
    Join Date
    Jun 2007
    Beans
    9

    Re: multicd.sh - combine Linux ISOS into one

    Amazing script. I've updated a pentoo plugin posted before for 5.1 to version 6.4, and changed (in the "copy" action) a {} expansion to a for .. in loop, as the expansion was breaking with a stat error, what's strange is this happened only from the script, when i tried manually after the script stopped it worked fine.

    Code:
    #!/bin/sh
    set -e
    . ./functions.sh
    #Pentoo plugin for multicd.sh
    #version 6.4?
    #Copyright (c) 2009 maybeway36
    #
    #Permission is hereby granted, free of charge, to any person obtaining a copy
    #of this software and associated documentation files (the "Software"), to deal
    #in the Software without restriction, including without limitation the rights
    #to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    #copies of the Software, and to permit persons to whom the Software is
    #furnished to do so, subject to the following conditions:
    #
    #The above copyright notice and this permission notice shall be included in
    #all copies or substantial portions of the Software.
    #
    #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    #IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    #FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    #AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    #LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    #OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    #THE SOFTWARE.
    
    # BUGS
    # modules directory is not read correctly, as it is searched for in /
    if [ $1 = scan ];then
        if [ -f pentoo.iso ];then
            echo "Pentoo Linux"
        fi
    elif [ $1 = copy ];then
        if [ -f pentoo.iso ];then
            echo "Copying Pentoo Linux..."
            mcdmount pentoo
    
            mkdir -p $WORK/boot/pentoo
            for item in modules tools win32 image.squashfs livecd; do
                cp -r $MNT/pentoo/$item $WORK/boot/pentoo
            done
            for item in pentoo isolinux.cfg pentoo.igz; do
                cp -r $MNT/pentoo/isolinux/$item $WORK/boot/pentoo
            done
    
            # Fix the isolinux.cfg
            sed -i 's@loop=/image.squashfs@loop=/boot/pentoo/image.squashfs subdir=/boot/pentoo@' $WORK/boot/pentoo/isolinux.cfg
            sed -i 's@kernel @kernel /boot/pentoo/@' $WORK/boot/pentoo/isolinux.cfg
            sed -i 's@initrd=@initrd=/boot/pentoo/@' $WORK/boot/pentoo/isolinux.cfg
    
            umcdmount pentoo
        fi
    elif [ $1 = writecfg ];then
    if [ -f pentoo.iso ];then
    cat >> $WORK/boot/isolinux/isolinux.cfg << EOF
    label pentoo
    menu label ---> ^Pentoo Menu
    com32 menu.c32
    append /boot/pentoo/isolinux.cfg
    
    EOF
    
    cat >> $WORK/boot/pentoo/isolinux.cfg << EOF
    
    label back
    menu label Back to main menu
    com32 menu.c32
    append /boot/isolinux/isolinux.cfg
    
    EOF
    
    fi
    else
        echo "Usage: $0 {scan|copy|writecfg}"
        echo "Use only from within multicd.sh or a compatible script!"
        echo "Don't use this plugin script on its own!"
    fi
    I have another multiboot i've made at hand with grub4dos and boots some 20 distros or so, but all are loopback chained to a grub4dos emulated drive. Its structure is as this

    /boot
    /boot/grub
    /boot/grub4dos
    /boot/grub4dos/menu/*.lst (submenus)
    /iso/*.iso (isos only)
    /menu.lst
    grldr

    I want to integrate these in the multicd iso, is this possible? Can isolinux and grub4dos coexist? If there arent any name clashes for folders or files, they can be chained right?

    Anyway i might aswell try to write plugins for the one or two isos that multicd doesn't list as of now and get done. IIUC i can get the same effect with MEMDISK as with grub4dos "map".

    After two days of learning all this stuff i'm seeing i'll have to drop the idea of an universal way to boot iso files, and multicd seems great for the "remaster distros" approach, nevertheless I'd like to keep the distros that are capable of booting directly from an iso in a single directory, and remaster the rest with multicd.

    Having the isos right there has its advantages, the setup is way easier and they can be easily transferred, burned, etc. I hope some day all isos can be chained directly
    Last edited by juako; March 8th, 2011 at 05:15 PM. Reason: phrasing

  2. #172
    Join Date
    Jun 2007
    Beans
    9

    Re: multicd.sh - combine Linux ISOS into one

    Patches for some errors i had with Ntpasswd, RIPLinux, Pmagic and RIPLinux:

    ntpasswd.sh: 49: mcdmount: not found
    pmagic.sh: 94: mcdmount: not found

    couldn't find /home/me/data/ware/os/multi/jmulticd/1/riplinux
    couldn't find /home/me/data/ware/os/multi/jmulticd/1/ping
    the last two popped up in a dialog (i guess at the stage of compiling the iso)

    I had errors with doudoulinux (I/O errors, perhaps my iso is bad i'll re-download it)

    I also had errors with caine, it couldn't find some windows files it expected in the iso, the version i have here (caine 2) doesn't have those files, maybe it is for a different version?

    Ophcrack had trouble too (using both isos), also caused by the script using a seemingly "old" code (not using umcdmount for example), but this is a little bit more complex and anyway i'd like to rewrite this plugin to better handling of xp+vista isos together.

    NT Password recovery suite
    Code:
    diff -uNr plugins.orig/ntpasswd.sh plugins/ntpasswd.sh
    --- plugins.orig/ntpasswd.sh    2010-12-06 22:03:04.000000000 -0300
    +++ plugins/ntpasswd.sh 2011-03-08 10:21:04.000000000 -0300
    @@ -1,5 +1,6 @@
     #!/bin/sh
     set -e
    +. ./functions.sh
     #NT Password Editor plugin for multicd.sh
     #version 6.2
     #Copyright (c) 2010 libertyernie
    Partimage Is Not Ghost
    Code:
    diff -uNr plugins.orig/ping.sh plugins/ping.sh
    --- plugins.orig/ping.sh	2010-12-06 18:13:03.000000000 -0300
    +++ plugins/ping.sh	2011-03-08 10:57:27.000000000 -0300
    @@ -1,5 +1,6 @@
     #!/bin/sh
     set -e
    +. ./functions.sh
     #PING plugin for multicd.sh
     #version 5.0
     #Copyright (c) 2009 libertyernie
    @@ -28,22 +29,14 @@
     elif [ $1 = copy ];then
     	if [ -f ping.iso ];then
     		echo "Copying PING..."
    -		if [ ! -d ping ];then
    -			mkdir ping
    -		fi
    -		if grep -q "`pwd`/ping" /etc/mtab ; then
    -			umount ping
    -		fi
    -		mount -o loop ping.iso ping/
    -		mkdir -p multicd-working/boot/ping
    -		cp ping/kernel multicd-working/boot/ping/kernel
    -		cp ping/initrd.gz multicd-working/boot/ping/initrd.gz
    -		umount ping
    -		rmdir ping
    -	fi
    +        mcdmount ping
    +        cp $MNT/ping/kernel $WORK/boot/ping
    +		cp $MNT/ping/initrd.gz $WORK/boot/ping
    +        umcdmount ping
    +    fi
     elif [ $1 = writecfg ];then
     if [ -f ping.iso ];then
    -cat >> multicd-working/boot/isolinux/isolinux.cfg << "EOF"
    +cat >> $WORK/boot/isolinux/isolinux.cfg << "EOF"
     label ping
     menu label ^PING (Partimage Is Not Ghost)
     kernel /boot/ping/kernel
    Parted Magic
    Code:
    diff -uNr plugins.orig/pmagic.sh plugins/pmagic.sh
    --- plugins.orig/pmagic.sh	2010-12-28 01:11:39.000000000 -0300
    +++ plugins/pmagic.sh	2011-03-08 10:26:55.000000000 -0300
    @@ -1,5 +1,6 @@
     #!/bin/sh
     set -e
    +. ./functions.sh
     #Parted Magic plugin for multicd.sh
     #version 6.3
     #Copyright (c) 2010 libertyernie
    RIPLinux
    Code:
    diff -uNr plugins.orig/riplinux.sh plugins/riplinux.sh
    --- plugins.orig/riplinux.sh	2010-12-06 18:13:03.000000000 -0300
    +++ plugins/riplinux.sh	2011-03-08 11:06:59.000000000 -0300
    @@ -1,5 +1,6 @@
     #!/bin/sh
     set -e
    +. ./functions.sh
     #RIPLinuX plugin for multicd.sh
     #version 5.6.1
     #Copyright (c) 2010 libertyernie
    @@ -27,34 +28,26 @@
     	fi
     elif [ $1 = copy ];then
     	if [ -f riplinux.iso ];then
    -		if [ ! -d riplinux ];then
    -echo "Copying RIP Linux..."
    -			mkdir riplinux
    -		fi
    -		if grep -q "`pwd`/riplinux" /etc/mtab ; then
    -			umount riplinux
    -		fi
    -		mount -o loop riplinux.iso riplinux/
    -		mkdir -p multicd-working/boot/riplinux
    -		cp -r riplinux/boot/doc multicd-working/boot/ #Documentation
    -		cp -r riplinux/boot/grub4dos multicd-working/boot/riplinux/ #GRUB4DOS :)
    -		cp riplinux/boot/kernel32 multicd-working/boot/riplinux/kernel32 #32-bit kernel
    -		cp riplinux/boot/kernel64 multicd-working/boot/riplinux/kernel64 #64-bit kernel
    -		cp riplinux/boot/rootfs.cgz multicd-working/boot/riplinux/rootfs.cgz #Initrd
    -		perl -pi -e 's/\/boot\/kernel/\/boot\/riplinux\/kernel/g' multicd-working/boot/riplinux/grub4dos/menu-cd.lst #Fix the menu.lst
    -		perl -pi -e 's/\/boot\/rootfs.cgz/\/boot\/riplinux\/rootfs.cgz/g' multicd-working/boot/riplinux/grub4dos/menu-cd.lst #Fix it some more
    -		umount riplinux
    -		rmdir riplinux
    -	fi
    +        echo "Copying RIP Linux..."
    +        mcdmount riplinux
    +        cp -r $MNT/riplinux/boot/doc $WORK/boot/riplinux #Documentation
    +		cp -r $MNT/riplinux/boot/grub4dos $WORK/boot/riplinux #GRUB4DOS :)
    +		cp $MNT/riplinux/boot/kernel32 $WORK/boot/riplinux #32-bit kernel
    +		cp $MNT/riplinux/boot/kernel64 $WORK/boot/riplinux #64-bit kernel
    +		cp $MNT/riplinux/boot/rootfs.cgz $WORK/boot/riplinux #Initrd
    +		sed -i 's|/boot/kernel|/boot/riplinux/kernel|g' $WORK/boot/riplinux/grub4dos/menu-cd.lst #Fix the menu.lst
    +		sed -i 's|/boot/rootfs.cgz|/boot/riplinux/rootfs.cgz|g' $WORK/boot/riplinux/grub4dos/menu-cd.lst #Fix it some more
    +        umcdmount riplinux
    +    fi
     elif [ $1 = writecfg ];then
     if [ -f riplinux.iso ];then
    -cat >> multicd-working/boot/isolinux/isolinux.cfg << "EOF"
    +cat >> $WORK/boot/isolinux/isolinux.cfg << "EOF"
     label riplinux
     menu label ^RIPLinuX
     com32 menu.c32
     append riplinux.cfg
     EOF
    -cat >> multicd-working/boot/isolinux/riplinux.cfg << "EOF"
    +cat >> $WORK/boot/isolinux/riplinux.cfg << "EOF"
     DEFAULT menu.c32
     PROMPT 0
     MENU TITLE RIPLinuX v6.7
    Last edited by juako; March 20th, 2011 at 05:52 PM. Reason: corrected all patches

  3. #173
    Join Date
    Jun 2007
    Beans
    9

    Re: multicd.sh - combine Linux ISOS into one

    Caine patch for my 2.0 iso

    Code:
    diff -uNr plugins.orig/caine.sh plugins/caine.sh
    --- plugins.orig/caine.sh	2011-01-08 13:44:25.000000000 -0300
    +++ plugins/caine.sh	2011-03-08 12:54:11.000000000 -0300
    @@ -23,45 +23,47 @@
     #OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     #THE SOFTWARE.
     if [ $1 = scan ];then
    -	if [ -f caine.iso ];then
    -		echo "Caine"
    -	fi
    +    if [ -f caine.iso ];then
    +        echo "Caine"
    +    fi
     elif [ $1 = copy ];then
    -	if [ -f caine.iso ];then
    -		echo "Copying Caine..."
    -		mcdmount caine
    -		cp -R $MNT/caine/casper $WORK/boot/caine #Live system
    -		cp $MNT/caine/README.diskdefines multicd-working/
    -		mkdir $WORK/CaineFiles
    -		cp -R $MNT/caine/{AutoPlay,autorun.exe,autorun.inf,comdlg32.ocx,files,license.txt,page5,preseed,Programs,RegOcx4Vista.bat,rw_common,tabctl32.ocx,vbrun60.exe,WinTaylor.exe} $WORK/CaineFiles
    -		umcdmount caine
    -		echo -n "Making initrd(s)..."
    -		if [ -d $MNT/caine-inittmp ];then rm -r $MNT/caine-inittmp;fi
    -		mkdir $MNT/caine-inittmp
    -		cd $MNT/caine-inittmp
    -		gzip -cd $WORK/boot/caine/initrd.gz | cpio -id
    -		perl -pi -e 's/path\/casper/path\/boot\/caine/g' scripts/casper
    -		perl -pi -e 's/directory\/casper/directory\/boot\/caine/g' scripts/casper
    -		find . | cpio --create --format='newc' | gzip -c > $WORK/boot/caine/initrd.gz
    -		cd -
    -		rm -r $MNT/caine-inittmp
    -		echo " done."
    -	fi
    +    if [ -f caine.iso ];then
    +        echo "Copying Caine..."
    +        mcdmount caine
    +        cp -R $MNT/caine/casper $WORK/boot/caine #Live system
    +        cp $MNT/caine/README.diskdefines multicd-working/
    +        mkdir $WORK/CaineFiles
    +        for item in AutoPlay autorun.exe autorun.inf comdlg32.ocx files license.txt page5 preseed Programs RegOcx4Vista.bat rw_common tabctl32.ocx vbrun60.exe WinTaylor.exe; do
    +            [[ -a $MNT/caine/$item ]] && cp -R $MNT/caine/$item $WORK/CaineFiles
    +        done
    +        umcdmount caine
    +        echo -n "Making initrd(s)..."
    +        if [ -d $MNT/caine-inittmp ];then rm -r $MNT/caine-inittmp;fi
    +        mkdir $MNT/caine-inittmp
    +        cd $MNT/caine-inittmp
    +        gzip -cd $WORK/boot/caine/initrd.gz | cpio -id
    +        perl -pi -e 's/path\/casper/path\/boot\/caine/g' scripts/casper
    +        perl -pi -e 's/directory\/casper/directory\/boot\/caine/g' scripts/casper
    +        find . | cpio --create --format='newc' | gzip -c > $WORK/boot/caine/initrd.gz
    +        cd -
    +        rm -r $MNT/caine-inittmp
    +        echo " done."
    +    fi
     elif [ $1 = writecfg ];then
    -	if [ -f $TAGS/lang ];then
    -		LANGCODE=$(cat $TAGS/lang)
    -	else
    -		LANGCODE=en
    -	fi
    -	if [ -f caine.iso ];then
    -		echo "label caine2
    -		kernel /boot/caine/vmlinuz
    -		initrd /boot/caine/initrd.gz
    -		append live-media-path=/boot/caine ignore_uuid noprompt persistent BOOT_IMAGE=/casper/vmlinuz file=/cdrom/CaineFiles/custom.seed boot=casper -- debian-installer/language=$LANGCODE console-setup/layoutcode=$(cat $TAGS/lang)
    -		" >> $WORK/boot/isolinux/isolinux.cfg
    -	fi
    +    if [ -f $TAGS/lang ];then
    +        LANGCODE=$(cat $TAGS/lang)
    +    else
    +        LANGCODE=en
    +    fi
    +    if [ -f caine.iso ];then
    +        echo "label caine2
    +        kernel /boot/caine/vmlinuz
    +        initrd /boot/caine/initrd.gz
    +        append live-media-path=/boot/caine ignore_uuid noprompt persistent BOOT_IMAGE=/casper/vmlinuz file=/cdrom/CaineFiles/custom.seed boot=casper -- debian-installer/language=$LANGCODE console-setup/layoutcode=$(cat $TAGS/lang)
    +        " >> $WORK/boot/isolinux/isolinux.cfg
    +    fi
     else
    -	echo "Usage: $0 {scan|copy|writecfg}"
    -	echo "Use only from within multicd.sh or a compatible script!"
    -	echo "Don't use this plugin script on its own!"
    +    echo "Usage: $0 {scan|copy|writecfg}"
    +    echo "Use only from within multicd.sh or a compatible script!"
    +    echo "Don't use this plugin script on its own!"
     fi
    Last edited by juako; March 20th, 2011 at 05:54 PM. Reason: corrected the patch

  4. #174
    Join Date
    Jun 2007
    Beans
    9

    Re: multicd.sh - combine Linux ISOS into one

    anybody here?

    Allright i think that putting grub4dos and an /isos dir should be easy, as grub4dos is suppa easy to chainload from isolinux.

    What i'm struggling now with is putting multicd.iso in a usb partition and boot it. What i did was copying all the iso contents in the (vfat 32) partition, run syslinux /dev/sdX (the whole usb) and making a copy of every isolinux dir to a syslinux dir, and in those dirs renaming every isolinux.cfg to syslinux.cfg. Wherever isolinux.cfg doesn't exist in a "isolinux" dir, i just copied to a syslinux.cfg file.

    Then in every syslinux.cfg i replaced references to isolinux.cfg to syslinux.cfg and references to isolinux folders to syslinux folders.

    It booted fine, but at least INSERT doesn't find its filesystem, i wonder why? Mint doesn't seem to boot properly too. I'll test more thorougly both the .iso and the usb in a virtualbox and in my real machine and report back. But...

    Please, any clue? any answer????
    Last edited by juako; March 9th, 2011 at 05:09 PM.

  5. #175
    Join Date
    Apr 2007
    Location
    USA
    Beans
    1,043

    Re: multicd.sh - combine Linux ISOS into one

    Quote Originally Posted by juako View Post
    Amazing script. I've updated a pentoo plugin posted before for 5.1 to version 6.4, and changed (in the "copy" action) a {} expansion to a for .. in loop, as the expansion was breaking with a stat error, what's strange is this happened only from the script, when i tried manually after the script stopped it worked fine.

    Code:
    #!/bin/sh
    set -e
    . ./functions.sh
    #Pentoo plugin for multicd.sh
    #version 6.4?
    #Copyright (c) 2009 maybeway36
    #
    #Permission is hereby granted, free of charge, to any person obtaining a copy
    #of this software and associated documentation files (the "Software"), to deal
    #in the Software without restriction, including without limitation the rights
    #to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    #copies of the Software, and to permit persons to whom the Software is
    #furnished to do so, subject to the following conditions:
    #
    #The above copyright notice and this permission notice shall be included in
    #all copies or substantial portions of the Software.
    #
    #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    #IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    #FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    #AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    #LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    #OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    #THE SOFTWARE.
    
    # BUGS
    # modules directory is not read correctly, as it is searched for in /
    if [ $1 = scan ];then
        if [ -f pentoo.iso ];then
            echo "Pentoo Linux"
        fi
    elif [ $1 = copy ];then
        if [ -f pentoo.iso ];then
            echo "Copying Pentoo Linux..."
            mcdmount pentoo
    
            mkdir -p $WORK/boot/pentoo
            for item in modules tools win32 image.squashfs livecd; do
                cp -r $MNT/pentoo/$item $WORK/boot/pentoo
            done
            for item in pentoo isolinux.cfg pentoo.igz; do
                cp -r $MNT/pentoo/isolinux/$item $WORK/boot/pentoo
            done
    
            # Fix the isolinux.cfg
            sed -i 's@loop=/image.squashfs@loop=/boot/pentoo/image.squashfs subdir=/boot/pentoo@' $WORK/boot/pentoo/isolinux.cfg
            sed -i 's@kernel @kernel /boot/pentoo/@' $WORK/boot/pentoo/isolinux.cfg
            sed -i 's@initrd=@initrd=/boot/pentoo/@' $WORK/boot/pentoo/isolinux.cfg
    
            umcdmount pentoo
        fi
    elif [ $1 = writecfg ];then
    if [ -f pentoo.iso ];then
    cat >> $WORK/boot/isolinux/isolinux.cfg << EOF
    label pentoo
    menu label ---> ^Pentoo Menu
    com32 menu.c32
    append /boot/pentoo/isolinux.cfg
    
    EOF
    
    cat >> $WORK/boot/pentoo/isolinux.cfg << EOF
    
    label back
    menu label Back to main menu
    com32 menu.c32
    append /boot/isolinux/isolinux.cfg
    
    EOF
    
    fi
    else
        echo "Usage: $0 {scan|copy|writecfg}"
        echo "Use only from within multicd.sh or a compatible script!"
        echo "Don't use this plugin script on its own!"
    fi
    I have another multiboot i've made at hand with grub4dos and boots some 20 distros or so, but all are loopback chained to a grub4dos emulated drive. Its structure is as this

    /boot
    /boot/grub
    /boot/grub4dos
    /boot/grub4dos/menu/*.lst (submenus)
    /iso/*.iso (isos only)
    /menu.lst
    grldr

    I want to integrate these in the multicd iso, is this possible? Can isolinux and grub4dos coexist? If there arent any name clashes for folders or files, they can be chained right?

    Anyway i might aswell try to write plugins for the one or two isos that multicd doesn't list as of now and get done. IIUC i can get the same effect with MEMDISK as with grub4dos "map".

    After two days of learning all this stuff i'm seeing i'll have to drop the idea of an universal way to boot iso files, and multicd seems great for the "remaster distros" approach, nevertheless I'd like to keep the distros that are capable of booting directly from an iso in a single directory, and remaster the rest with multicd.

    Having the isos right there has its advantages, the setup is way easier and they can be easily transferred, burned, etc. I hope some day all isos can be chained directly
    Thanks for the pentoo update.
    You can load GRUB4DOS from ISOLINUX. multicd.sh will detect grub.exe and add it as a boot option (it's stored as /boot/grub.exe); then, you can make an "includes" folder and put your menu.lst and the ISOs in there.

    Quote Originally Posted by juako View Post
    anybody here?

    Allright i think that putting grub4dos and an /isos dir should be easy, as grub4dos is suppa easy to chainload from isolinux.

    What i'm struggling now with is putting multicd.iso in a usb partition and boot it. What i did was copying all the iso contents in the (vfat 32) partition, run syslinux /dev/sdX (the whole usb) and making a copy of every isolinux dir to a syslinux dir, and in those dirs renaming every isolinux.cfg to syslinux.cfg. Wherever isolinux.cfg doesn't exist in a "isolinux" dir, i just copied to a syslinux.cfg file.

    Then in every syslinux.cfg i replaced references to isolinux.cfg to syslinux.cfg and references to isolinux folders to syslinux folders.

    It booted fine, but at least INSERT doesn't find its filesystem, i wonder why? Mint doesn't seem to boot properly too. I'll test more thorougly both the .iso and the usb in a virtualbox and in my real machine and report back. But...

    Please, any clue? any answer????
    If you're find with read-only access, you could just "dd" the .iso image to a USB drive (yay isohybrid!) I can't help you with anything more complex - I generally use DVD-Rs.

    @juako: You shouldn't have to take away the ./functions.sh call - that's the .sh file that contains the mcdmount and mcdumount functions. If those functions don't work, something odd is going on. I'd also like to keep using the $MNT and $WORK variables, at least for now, in case I want to change them later.
    Are there any other changes I need to make that have to do with newer versions of the ISO files?

  6. #176
    Join Date
    Apr 2008
    Beans
    2

    Wink Re: multicd.sh - combine Linux ISOS into one

    Quote Originally Posted by juako View Post

    Parted Magic
    Code:
    diff -uNr multicd-6.4/plugins/pmagic.sh plugins/pmagic.sh
    --- multicd-6.4/plugins/pmagic.sh	2011-03-08 10:26:55.156782001 -0300
    +++ plugins/pmagic.sh	2010-12-28 01:11:39.000000000 -0300
    @@ -1,6 +1,5 @@
     #!/bin/sh
     set -e
    -. ./functions.sh
     #Parted Magic plugin for multicd.sh
     #version 6.3
     #Copyright (c) 2010 libertyernie
    Hi,
    Somehow I think you generate the patch backward.
    I tried 6.4 and multicd-HEAD and try to run it with only parted magic 5.10. This is what I got:

    Code:
    sudo ./multicd.sh 
    Password: 
    md5sum: plugins/caine.sh: No such file or directory
    
    
    Plugins that are not from the official release: plugins/caine.sh
    
    Make sure you trust every script in the plugins folder - all these scripts will get root access!
    Press Ctrl+C to cancel
    
    Parted Magic
    Parted Magic
    Memtest86+
    
    Continuing in 2 seconds - press Ctrl+C to cancel
    Copying Parted Magic...
    /home/share/iso/multicd/plugins/pmagic.sh: line 35: mcdmount: command not found
    I re-add function.sh
    (some how I have to download memtest manually. Btw, there's a new memtest 4.20)

    Code:
    #!/bin/sh
    set -e
    . ./functions.sh
    
    #Parted Magic plugin for multicd.sh
    #version 6.3
    ................
    And I can generate the ISO successfully (I haven't test it though)

    Code:
    $ sudo ./multicd.sh 
    md5sum: plugins/caine.sh: No such file or directory
    md5sum: WARNING: 1 listed file could not be read
    md5sum: WARNING: 1 computed checksum did NOT match
    
    Plugins that are not from the official release: plugins/caine.sh
    plugins/pmagic.sh 
    Make sure you trust every script in the plugins folder - all these scripts will get root access!
    Press Ctrl+C to cancel
    
    Parted Magic
    Memtest86+
    
    Continuing in 2 seconds - press Ctrl+C to cancel
    Copying Parted Magic...
    mount: warning: /tmp/multicd-root/pmagic/ seems to be mounted read-only.
    Downloading SYSLINUX...
    Copying from installed SYSLINUX files...
    Writing isolinux.cfg...
    Building CD image...
    Running isohybrid...

    @maybeway36: I think you need to add md5 hash check when downloading memtest. My download failed (memtest size was 0byte) and the script still generate ISO files successfully.

  7. #177
    Join Date
    Jun 2007
    Beans
    9

    Re: multicd.sh - combine Linux ISOS into one

    @maybeway36
    @juako: You shouldn't have to take away the ./functions.sh call - that's the .sh file that contains the mcdmount and mcdumount functions. If those functions don't work, something odd is going on. I'd also like to keep using the $MNT and $WORK variables, at least for now, in case I want to change them later.
    @kuadhual
    Hi,
    Somehow I think you generate the patch backward.
    I tried 6.4 and multicd-HEAD and try to run it with only parted magic 5.10. This is what I got:
    My mistake, indeed i had got backwards the patches , they are corrected now. I tried patching the origs and they work fine this time, thanks for pointing it out.

    @maybeway36
    You can load GRUB4DOS from ISOLINUX. multicd.sh will detect grub.exe and add it as a boot option (it's stored as /boot/grub.exe); then, you can make an "includes" folder and put your menu.lst and the ISOs in there.
    Totally, it's very easy as you say. I'll post the list of iso's that boot and mount everything correctly from a grub4dos emulated drive, here's a thread in reboot.pro where many are listed, and i have some others.
    Last edited by juako; March 20th, 2011 at 06:07 PM. Reason: reply to patches error

  8. #178
    Join Date
    May 2008
    Location
    Nigeria
    Beans
    2

    Re: multicd.sh - combine Linux ISOS into one

    Greetings,
    first off I would like to say that this tool is awesome.

    Now for my prob:

    When trying to use backtrack.iso I keep getting the message:

    "-> ./multicd.sh

    Plugins that are not from the official release: ./plugins/kubuntu.sh
    Make sure you trust every script in the plugins folder - all these scripts will get root access!
    Press Ctrl+C to cancel

    BackTrack
    super_grub_disk_hybrid-1.98s1
    Memtest86+

    Continuing in 2 seconds - press Ctrl+C to cancel
    Copying BackTrack...
    mount: warning: /tmp/multicd-root/backtrack/ seems to be mounted read-only.
    Making initrd(s)...gzip: multicd-working/boot/backtrack/initrd.gz: No such file or directory
    cpio: premature end of archive

    ->
    "


    I'm using multicd version 6.5 and backtrack version 4 r2.
    any help will be welcome.

    Also, how can I transfer this image to a usb drive so I can boot he drive and have the multicd menu but also be able to use the drive as a normal usb drive other than using unetbootin which I can't get to work?

    Ibrahim

  9. #179
    Join Date
    Apr 2007
    Location
    USA
    Beans
    1,043

    Re: multicd.sh - combine Linux ISOS into one

    I don't know how to get USB working, but I'll look into the issue with Backtrack soon.

  10. #180
    Join Date
    May 2008
    Location
    Nigeria
    Beans
    2

    Re: multicd.sh - combine Linux ISOS into one

    Quote Originally Posted by maybeway36 View Post
    I don't know how to get USB working, but I'll look into the issue with Backtrack soon.
    Ok, Thanks. I'm impatiently waiting .........

Page 18 of 31 FirstFirst ... 8161718192028 ... LastLast

Tags for this Thread

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
  •