LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-28-2005, 01:50 AM   #1
xelnt
LQ Newbie
 
Registered: Oct 2005
Posts: 12

Rep: Reputation: 0
modify linux iso image


hi there,
ive download auditor live cd. but im wanting to access a few text files on my hdd. they are too big to print out, it would be a waste of paper and i think it would just be easier to see it on the computer...... i want to be able to boot up the auditor live cd and have the files on the same cd. i tried first to extract the image to my hdd, put the txt files in and then burned it to a cd. rebooted pc and it would not burn the cd. i think i have it in a wrong directory or something. where am i meant to put it so i can access it from the cd?

or another way would be from accessing it from my hdd, but how?? auditor is knoppic based but i cannot seem to access the hdd.
 
Old 10-28-2005, 02:25 AM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Use the mount command! Take a look at "man mount".
ex.: mount -t ntfs /dev/hda1 /mnt/afolder
where -t is the partition type, hda1, the first partition of your IDE1 master HD, and /mnt/afolder an empty folder in the right place to mount things.
 
Old 10-28-2005, 03:51 AM   #3
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
To modify an ISO, mount it using the loopback device (check your man pages for details, should be something like "mount -o loop (device) (mountpoint)" from memory

You can't directly edit the ISO, IIRC, so copy the files across to a new directory with "cp -R". You'll then have the whole filesystem of the ISO as part of your normal filesystem. Copy the files you want into the directory, create a new ISO image with mkisofs or similar, and then burn the ISO to the disk using cdrecord or whatever.

So long as there's enough space on the CD to accomodate the extra files, this should work. Haven't tried it myself tho, so no promises!

Last edited by oneandoneis2; 10-28-2005 at 04:00 AM.
 
1 members found this post helpful.
Old 10-28-2005, 09:02 AM   #4
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
oneandoneis2:

I suspect the new CD may not boot. If you make a copy of a hard disk you need to at least run LILO again to configure the boot loader. CDs use isolinux instead of LILO but I think the principle is the same.
 
Old 10-28-2005, 09:15 AM   #5
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Actually, I think you'll find the principle is different - You have to re-install the boot loader when copying a hard drive because it installs it to the MBR, which isn't part of the file system, and so not transferrable via "cp"

But because CD-ROMs don't have a MBR, they have to use something that IS part of the file system, which therefore IS cp-able.

I don't have a Knoppix CD handy, but my Knoppix-based DSL CD is indeed isolinux based, and that is in turn eltorito based. And when I made a Grub CD via the eltorito option, it only involved copying a file onto the CD.

So a straightforward file-copy should work, AFAIK.
 
Old 10-28-2005, 09:48 AM   #6
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
OK - I am also familiar with syslinux (for FAT filesystems) but not isolinux. The command to create a bootable CD is

mkisofs -o output.iso \
-b isolinux/isolinux.bin -c isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \
root-of-iso-tree

so I guess you are saying that only the names of the isolinux files are important, and not their absolute position inside the image.

In fact the first 1024 bytes (at least) on a Knoppix CD are all zero (I just checked).
 
1 members found this post helpful.
Old 07-15-2010, 06:41 PM   #7
A.Thyssen
Member
 
Registered: May 2006
Location: Brisbane, Australia
Distribution: linux
Posts: 158

Rep: Reputation: 44
Quote:
Originally Posted by maroonbaboon View Post
OK - I am also familiar with syslinux (for FAT filesystems) but not isolinux. The command to create a bootable CD is

mkisofs -o output.iso \
-b isolinux/isolinux.bin -c isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \
root-of-iso-tree

so I guess you are saying that only the names of the isolinux files are important, and not their absolute position inside the image.

In fact the first 1024 bytes (at least) on a Knoppix CD are all zero (I just checked).
That command is fine for a linux booting ISO image, but what about VFAT image? What are the boot files for those types of ISO's?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
program to modify iso image shanenin Linux - Software 6 08-26-2006 06:15 AM
problem booting vector linux iso image degraffenried13 Linux - General 2 01-15-2005 09:07 AM
Burning an ISO disk image on Linux paulsh2k4 Linux - Software 15 10-11-2004 09:50 AM
Burning a LINUX iso image for use as a boot disk/CD Howerton Linux - Newbie 9 07-19-2004 02:53 PM
How to make a Linux bootable cd from an ISO image using Nero? Godxilla2001 Linux - Newbie 6 10-28-2002 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:32 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
Open Source Consulting | Domain Registration