Find the answer to your Linux question:
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 29
all you have to do is put # in front of the lines you don't want. you should be able to just copy the text to the bottom of the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux User hatebreed's Avatar
    Join Date
    May 2010
    Posts
    335

    all you have to do is put # in front of the lines you don't want. you should be able to just copy the text to the bottom of the script and then replace it with the distro you want. may take a little trial and error, so would use a dvd rewritable to experiment.

  2. #12
    Linux Engineer MASONTX's Avatar
    Join Date
    May 2010
    Location
    Mason Texas
    Posts
    934
    Thank you Hatebreed, I'll try that.

  3. #13
    Linux Engineer MASONTX's Avatar
    Join Date
    May 2010
    Location
    Mason Texas
    Posts
    934
    Am I correct, that the section below checks to see if Puppy linux and Slax, and could safely be eliminated if you don't want those on the DVD?

    if [ -d tags ];then rm -r tags;fi
    mkdir -p tags/puppies

    if echo $* | grep -q "\bmd5\b";then
    MD5=1
    else
    if echo $* | grep -q "\bc\b";then
    MD5=1
    else
    MD5=0
    fi
    fi
    if echo $* | grep -q "\bm\b";then
    MEMTEST=0
    else
    MEMTEST=1
    fi
    if echo $* | grep -q "\bv\b";then
    VERBOSE=1
    echo > tags/verbose
    else
    VERBOSE=0
    fi
    if echo $* | grep -q "\bcondeb\b";then
    CONDEB=1
    else
    CONDEB=0
    fi
    if echo $* | grep -q "\bmodules\b";then
    MODULES=1
    else
    MODULES=0
    fi

    if [ $MODULES = 1 ];then
    if which dialog;then
    dialog --checklist "Slax modules to include:" 13 45 6 \
    002-xorg.lzm Xorg on \
    003-desktop.lzm KDE on \
    004-kdeapps.lzm "KDE applications" on \
    005-koffice.lzm "KDE Office" on \
    006-devel.lzm Development on \
    2> ./slaxlist0
    echo >> ./slaxlist0
    cat ./slaxlist0|sed -e 's/"//g' -e 's/ /\n/g'>./slaxlist
    rm ./slaxlist0
    else
    echo "Please install dialog to use the module selector."
    exit 1
    fi
    fi

  4. #14
    Linux Engineer MASONTX's Avatar
    Join Date
    May 2010
    Location
    Mason Texas
    Posts
    934
    And can I remove below if not using puppy linux?
    if [ $(find tags/puppies -maxdepth 1 -type f|wc -l) -gt 1 ] && which dialog &> /dev/null;then
    echo "dialog --radiolist \"Which Puppy variant would you like to be installable to HD from the disc?\" 13 45 6 \\">puppychooser
    for i in tags/puppies/*;do
    echo $(echo $i|sed -e 's/tags\/puppies\///g') \"\" off \\ >> puppychooser
    done
    echo "2> puppyresult" >> puppychooser
    sh puppychooser
    echo>tags/puppies/$(cat puppyresult).inroot
    rm puppychooser puppyresult
    fi
    if [ $(find tags/puppies -maxdepth 1 -type f|wc -l) -eq 1 ];then
    NAME=$(ls tags/puppies)
    true>$(find tags/puppies -maxdepth 1 -type f).inroot
    fi

  5. #15
    Linux Engineer MASONTX's Avatar
    Join Date
    May 2010
    Location
    Mason Texas
    Posts
    934
    I think I am in way over my head. The first section seemed fairly clear, but when I got down to:#START COPY
    if [ -f antix.iso ];then
    if [ ! -d antix ];then
    mkdir antix
    fi
    if grep -q "`pwd`/antix" /etc/mtab ; then
    umount antix
    fi
    mount -o loop antix.iso antix/
    cp -r antix/mepis multicd-working/ #Everything in antiX but the kernel and initrd
    mkdir -p multicd-working/boot/antix
    cp antix/boot/vmlinuz multicd-working/boot/antix/vmlinuz #Kernel
    cp antix/boot/initrd.gz multicd-working/boot/antix/initrd.gz #Initrd
    umount antix
    rmdir antix
    fi
    if [ -f arch.iso ];then
    echo "Copying Arch Linux..."
    if [ ! -d arch ];then
    mkdir arch
    fi
    if grep -q "`pwd`/arch" /etc/mtab ; then
    umount arch
    fi
    mount -o loop arch.iso arch/
    mkdir multicd-working/boot/arch
    cp arch/boot/vmlinuz26 multicd-working/boot/arch/vmlinuz26 #Kernel
    cp arch/boot/archiso.img multicd-working/boot/arch/archiso.img #initrd
    cp arch/*.sqfs multicd-working/ #Compressed filesystems
    cp arch/isomounts multicd-working/ #Text file
    umount arch
    rmdir arch
    fi
    if [ -f archdual.iso ];then
    echo "Copying Arch Linux Dual..."
    if [ ! -d arch ];then
    mkdir arch
    fi
    if grep -q "`pwd`/arch" /etc/mtab ; then
    umount arch
    fi
    mount -o loop archdual.iso arch/
    mkdir multicd-working/boot/arch
    mkdir multicd-working/boot/arch/i686
    mkdir multicd-working/boot/arch/x86_64
    mkdir multicd-working/i686
    mkdir multicd-working/x86_64
    cp arch/boot/i686/vmlinuz26 multicd-working/boot/arch/i686/vmlinuz26 #i686 Kernel
    cp arch/boot/x86_64/vmlinuz26 multicd-working/boot/arch/x86_64/vmlinuz26 #x86_64 Kernel
    cp arch/boot/i686/archiso.img multicd-working/boot/arch/i686/archiso.img #i686 initrd
    cp arch/boot/x86_64/archiso.img multicd-working/boot/arch/x86_64/archiso.img #x86_64 initrd
    cp arch/i686/*.sqfs multicd-working/i686 #i686 Compressed filesystems
    cp arch/x86_64/*.sqfs multicd-working/x86_64 #x86_64 Compressed filesystems
    cp arch/isomounts multicd-working/ #Text file
    umount arch
    rmdir arch
    fi
    and on and on, I realized I didn't have a clue as to how to midify the cp lines.

    I guess the multi-boot DVD is a nice idea, but one too far beyond my knowledge for now.

  6. #16
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    MASONTX:

    I'm not a programmer so I won't be able to explain this all. In your last post, you show the script "if antix" at the top. If there is an antix.iso file in the directory then it creates a directory for it. This is needed because the iso file is read only and if you create a directory for it, you can copy the files from it after the iso is mounted as a loop which is what this command does:

    mount -o loop antix.iso antix/
    The next line in the script "cp -r antix/mepis multicd-working/ " copies the directory antix/mepis to the main directory for the overall dvd/cd whic I assume is multicd-working? If you mount the antix CD as a loop you will see there is a mepis directory in it which contains most of the antx files. The version of antiX I have when mounted as a loop shows the following directories: boot, mepis OSX and the files: boot.catalog, cdrom.ico and version.

    The next line in the script " mkdir -p multicd-working/boot/antix" creates a sub-directory in the /multicd-working/boot directory for antix to place the vmlinuz (kernel) and initrd files. This is necessary because many Linux distributions have kernel files named vmlinuz and intird.gz files also. Obviously, you cannot have multiple files with the same name in the same directory!

    After these directories/files are copied to the multicd-working main directory, you unmount antix and then remove the directory as you have copied the files and no longer need them.

    This process is repeated for each distribution you want. You could do this without the scripts yourself and the process would probably be clearer to you if more time consuming.

    Using a rw dvd as suggested by hatebreed is a good idea. Another option which I used, was installing VirtualBox. Not having any previous experience with this, it was my 2rth iso image in VBox that finally worked with 10 different systems.

    Good luck with this.

  7. #17
    Linux Engineer MASONTX's Avatar
    Join Date
    May 2010
    Location
    Mason Texas
    Posts
    934
    Thank you for your reply. What I am most unclear about, is for the distros I want to add that are not on the list. I don't have a clue as to how to determine which cp lines to add or how to find them. When I plunged into this, I thought it would be fairly simple, like

    if [ -f mint.iso ];then
    echo "Copying mint Linux..."
    mnt mint.iso
    fi
    and so on for each distro I wanted on the DVD

    I have 10 live CD or DVD that I am playing with trying to decide the best one for: my desktop, my old laptop, my wifes desktop, my wifes laptop (fairly new), an older desktop the grandkids use when they are here, and my mother-in-laws desktop, which is a few years old. It would be convenient to have them all on 2 disks, but I can manage the 10 if I have to.

  8. #18
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    I didn't use these scripts (or any other scripts) to create the multi-boot CD's and DVD's that I have. If all you want to do is put 10 systems on a DVD there isn't really any need to modify these scripts or create others, you could do it fairly easily from the command line or even GUI for copying files. What are the ten CD's (distros) you are interested in? What I have got that I have been able to boot on several CD/DVD's are: AntiX, Puppy43, DSL, Slax, Slitaz, Macpup, NimbleX, DreamLinux 3.5, Clonezilla, Opensuse 11.2, PartedMagic, PcLinux-2009, PCLinux-2010, SystemRescueCD and the first CD of Slackware install.

    I doubt I'd be much help trying to write/modify scripts but could explain the steps I used in the process to create multi-boot CD's and DVD's. If you're interested in trying that, post back.

  9. #19
    Just Joined! imWACC0's Avatar
    Join Date
    Jun 2010
    Posts
    7
    I don't know if it helps any, but there is one for USB drives also.

    pendrivelinux.com/boot-multiple-iso-from-usb-multiboot-usb

  10. #20
    Linux Engineer MASONTX's Avatar
    Join Date
    May 2010
    Location
    Mason Texas
    Posts
    934
    thankyou Yanck, the 10 I am trying to put on 2 DVD's are: DVD 1, ubuntu, ubuntu netbook, easypeasy, kubuntu and opensuse, DVD 2, zorin, mint, peppermint, ylmf, and mepis.

Page 2 of 3 FirstFirst 1 2 3 LastLast

Posting Permissions

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