LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-23-2008, 09:15 PM   #1
abecedarian
LQ Newbie
 
Registered: Mar 2008
Posts: 6

Rep: Reputation: 0
Trying to make a bootable iso from folder contents


EDIT: I've solved the problem. See the last post.

Hi,

I'm looking at running Damn Small Linux for a firewall/server box. I had to append some custom boot parameters for it to suit my taste, and as it will be a headless box, that meant editing the default in isolinux.cfg.

So that means I've copied the iso's contents out, edited isolinux.cfg, and I am now trying to burn it. Note that I did not enter the compressed filesystem.

I know how to use mkisofs, but for a cd to be bootable, I would think that there would have to be some special arguments thrown in. This guide uses the following command:
http://www.linuxforums.org/desktop/r..._preamble.html

# mkisofs -no-pad -l -r -J -no-emul-boot -boot-load-size 4 – boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -o mydsl.iso newcd

The only thing I altered was the last word, which is the directory with the cd's contents in it, changed obviously to match my own directory. Otherwise all was kept same. As I copied straight from the CD, all the boot/isolinux contents are there.

When I try this, it returns:
I: -input-charset not specified, using utf-8 (detected in locale settings)
genisoimage: Missing boot image name, use -eltorito-boot option.

The first doesn't seem like a problem. The second, however, I have no idea what to do with. When I looked in the mkisofs man page, I saw:
-b eltorito_boot_image
Specifies the path and filename of the boot image to be used
when making an El Torito bootable CD for x86 PCs. The pathname
must be relative to the source path specified to genisoimage.

But I have no idea how to specify the source path for genisoimage.
Can anyone help? This seems infuriatingly simple.

Last edited by abecedarian; 05-24-2008 at 02:55 AM.
 
Old 05-23-2008, 09:49 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
Quote:
-o mydsl.iso newcd
You have the name for the iso (-o mydsl.iso), and, if I read things correctly, newcd is the folder you want to make into an iso. Try giving the full path to newcd (an absolute path) instead of the relative path now in use. Newcd is relative to the directory in which you run the mkisofs command. /path/to/newcd would be an absolute path from the root of the filesystem. Isolinux would need that absolute path in order to find it's own files for booting the cd/dvd.
 
Old 05-23-2008, 09:57 PM   #3
abecedarian
LQ Newbie
 
Registered: Mar 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the reply, but no luck. I tried absolute paths for the target directory and then for the -b and -c options. Same error.

EDIT: Got it! I used the command from
http://nootech.wordpress.com/2007/12...-5-install-cd/
ignoring the -V -A and -p options. So it ended up:

mkisofs -r -R -J -T -v -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -o $isofilename /home/tom/dsl

Last edited by abecedarian; 05-24-2008 at 02:54 AM.
 
Old 05-24-2008, 05:46 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
This explanation seems to make things easy, it even works for me !!
http://www.asylumnation.com/blogs/am...post-2775.html
If not editing 'initrd' just takes a minute.
Code:
#!/bin/bash
 # make the new iso and put in root.
 mkisofs -o /new.iso -b isolinux/isolinux.bin \
 -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
 -boot-info-table -J -R -V disks .
 #
Good luck.
 
  


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
how to make iso bootable dvd? priyank123 Linux - Newbie 1 05-21-2008 04:19 PM
How to make a bootable .iso CD Gins Linux - General 4 09-14-2007 05:13 AM
how can I make a dvd iso bootable (using k3b) extendedping Linux - Software 2 02-21-2007 08:15 AM
How do you make an ISO bootable?? linuxhippy Slackware 3 05-01-2006 01:52 AM


All times are GMT -5. The time now is 04:53 PM.

Main Menu
Advertisement
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