LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 09-07-2009, 03:04 AM   #1
debinux
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
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

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

http://www.bo.infn.it/alice/alice-do...ed/node25.html

Plus you might benefit from reading the manual:

Code:
man mkisofs
Regards,

Fordeck
 
Old 09-07-2009, 09:38 AM   #3
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

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

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

Code:
#!/bin/bash
# ---------------------------------------------------
# Script to create bootable ISO in Linux
# usage: make_iso.sh [ /tmp/slax.iso ]
# author: Tomas M. <http://www.linux-live.org>
# ---------------------------------------------------

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"
  exit
fi

CDLABEL="SLAX"
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
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,

Code:
./make_iso.sh
so, cd into boot folder and invoke


this script is to make a grub-bootable iso

Code:
#!/bin/bash
# ---------------------------------------------------
# Script to create bootable GRUB ISO in Linux
# usage: make_grubiso.sh 
# author: Linus72 <http://multidistro.com/>
# ---------------------------------------------------
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
make_iso.sh

and the grub one as

make_grubiso.sh

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

OH,
uh...so, 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

GRUB
make_grubiso.sh

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

boot
KNOPPIX

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.
 
  


Reply


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


All times are GMT -5. The time now is 08:15 AM.

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