Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-07-2009, 03:04 AM   #1
LQ Newbie
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
how to use mkisofs or genisoimage

I want to make a back up or livecd of my debian system and don't know how to use mkisofs
the command i used was mkisofs -b -o ../
but got this result:

image not written to terminal.

I need help???
Old 09-07-2009, 09:09 AM   #2
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Here is a link that may be helpful:

Plus you might benefit from reading the manual:

man mkisofs

Old 09-07-2009, 09:38 AM   #3
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
here you go
I got a couple gifts for ya

this scitp is called
it is found in linux-live-scripts, slax, and any slax dirivative

# ---------------------------------------------------
# Script to create bootable ISO in Linux
# usage: [ /tmp/slax.iso ]
# author: Tomas M. <>
# ---------------------------------------------------

if [ "$1" = "--help" -o "$1" = "-h" ]; then
  echo "This script will create bootable ISO from files in curent directory."
  echo "Current directory must be writable."
  echo "example: $0 /mnt/hda5/slax.iso"

ISONAME=$(readlink -f "$1")

cd $(dirname $0)

if [ "$ISONAME" = "" ]; then
   SUGGEST=$(readlink -f ../../$(basename $(pwd)).iso)
   echo -ne "Target ISO file name [ Hit enter for $SUGGEST ]: "
   read ISONAME
   if [ "$ISONAME" = "" ]; then ISONAME="$SUGGEST"; fi

mkisofs -o "$ISONAME" -v -J -R -D -A "$CDLABEL" -V "$CDLABEL" \
-no-emul-boot -boot-info-table -boot-load-size 4 \
-b boot/isolinux/isolinux.bin -c boot/isolinux/isolinux.boot ../.
this will automate the iso creation
place that script in /boot folder, with a isolinux folder in there which must
contain isolinux.bin

either click or double-clcik it to invoke, choose run or run in terminal
remembere to make the name end in .iso like mycd.iso

u can also invoke in terminal,

so, cd into boot folder and invoke

this script is to make a grub-bootable iso

# ---------------------------------------------------
# Script to create bootable GRUB ISO in Linux
# usage: 
# author: Linus72 <>
# ---------------------------------------------------
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o grub.iso GRUB
NOTE: this script must be run in a folder where there is a folder named GRUB which contains your iso folders, ie boot and whatever
you can edit the name grub.iso to whatever and whatever folder you use instead of GRUB

basically, you need a boot/grub folder with at least stage2 in there
so, just copy all of grub to the boot/grub folder

cp -a /usr/lib/grub/i386-pc/* /wherever/boot/grub folder is

so, just copy and paste those 2 scripts to a new text file and save one as

and the grub one as

I always leave stuff out huh?
short-term memory problems Linus72?

OH,, lets say you got a folder named "LAB"
on your desktop
inside that folder is your "GRUB" folder for making a grub-iso
this is what the folder LAB would conatin


and then inside the GRUB folder would be
for example with DSL iso


inside the boot folder would be a isolinux folder and a grub folder you put there
which must contain stage2_eltorito
(best just to copy everything from /usr/lib/grub/i386-pc to LAB/GRUB/boot/grub)

Last edited by linus72; 09-07-2009 at 09:51 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What should we use to make ISO images, mkisofs or genisoimage? Violin Linux - Software 5 02-15-2010 10:23 PM
Can genisoimage burn folder ; hence cant they be recursive ?? frenchn00b Linux - General 1 05-06-2008 01:17 AM
Using genisoimage to make an iso of a live system ? uncle-c Linux - Newbie 1 03-13-2008 09:44 AM
genisoimage Pedroski Debian 10 01-08-2008 11:21 AM
Genisoimage can't make ISO with file >4G kotnik Debian 4 09-08-2007 12:51 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration