How to modify an iso image file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to modify an iso image file
# 1  
Old 09-30-2010
Tools How to modify an iso image file

Hi,

I'm trying to create a customized debian installer on a USB key.
I found a tutorial on how to create the usb key.
After the USB key is prepared, all you have to do is to copy the iso file to the stick.

So what I need to do now is to be able to modify the content of the iso file before copying it to the usb stick.

I found how to mount iso file to a mount poinr but I can't find a way to change it.

<edit>
By the way, I thought it would be much easier to have the installation files just copied to the flash drive (instead of inside a iso file inside the flash drive).
That would make edition of installation files much simplier.
Is this possible?
</edit>

Can anyone help me ?
Santiago

Last edited by chebarbudo; 09-30-2010 at 11:10 AM..
# 2  
Old 09-30-2010
One easy way is to use the GUI tool called ISO Master

If you want to modify the ISO from the command line, here is How to edit a Linux Live CD ISO
# 3  
Old 09-30-2010
...in other words, you almost never do. The ISO9660 file structure is not designed for modification, everything has a strictly defined place with no room to extend files or directories. (not the same thing as multisession.) You copy the whole file structure it somewhere else, modify that, and build a new image from it.
# 4  
Old 09-30-2010
Thanks for your answers.

@fpmurphy, I tried the command line procedure following your link but got stuck at #10.
First I don't have any initrd.img but only initrd.gz:
Code:
xxxxxxx:~# find debian-506-i386-netinst/ | grep initrd
debian-506-i386-netinst/pool/main/k/kickseed/initrd-kickseed_0.50_all.udeb
debian-506-i386-netinst/install.386/gtk/initrd.gz
debian-506-i386-netinst/install.386/initrd.gz
xxxxxxx:~#

Anyway, I unzipped it:
Code:
xxxxxxx:~# gunzip -c debian-506-i386-netinst/install.i386/initrd.gz > debian-506-i386-netinst/install.i386/initrd
xxxxxxx:~#

But couldn't find a way to mount it:
Code:
xxxxxxx:~# mount -o loop debian-506-i386-netinst/install.i386/initrd /tmp/initrd
mount: you must specify the filesystem type
xxxxxxx:~#

Could you point me in the right direction?
# 5  
Old 09-30-2010
You don't mount an initrd either. It's not even a filesystem of any sort, it's a CPIO archive. Here is more info on what an initrd is and what it does and how to make one.

I'm not sure that's really what you want to do however. What exactly are you trying to modify where why to do what? That file is in the ISO, not seperate from it.
# 6  
Old 09-30-2010
Hi Corona688 and thanks for your concern.

What I'm trying to do is too make a Debian instalation USB key unattended.

o I want to pre-answer questions like language, name, packges, partitionning, etc...
o I want to store those answer in a file (I guess) on the USB key
o I want to modify the boot process to start installing using the answer file

Cheers
Santiago
# 7  
Old 10-02-2010
You'll need to find where those questions are asked and answered before you start modifying. I have my doubts that it's in the initrd.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to Create ISO Image of a CD/DVD in Solaris 10?

Hi Solaris 10 Experts, How can I create an ISO Image of a CD/DVD from the cdrom to a temporary directory, and then use that image to burn it on a blank DVD in the cdrom in Solaris 10 1/13 OS environment? Please provide me with an example. With best regards, SS (1 Reply)
Discussion started by: ssabet
1 Replies

2. Red Hat

How to make boot.iso image from rhel6 installation dvd iso ?

Hello Everyone, Can anyone let me know how to make minimal boot.iso from rhl6 installation dvd iso image. I have a dvd image with me but i want to make just a minimal boot media. Somehow it is not shipped with dvd iso. I know we can download boot.iso from redhat site but is there any anyway we... (5 Replies)
Discussion started by: Rohit Bhanot
5 Replies

3. Solaris

Solaris ISO image

Hi All, Can anyone give me the lnik to download the iso image file Solaris 10 . I need to install it on my local machine . Pls help me out. VINU (5 Replies)
Discussion started by: vinuvinod
5 Replies

4. AIX

AIX ISO image file

Hi all, Can anyone get the link to download the iso image of AIX as i am new to AIX need to study and work on the concepts of AIX. Thnx in advance... VINU:) (3 Replies)
Discussion started by: vinuvinod
3 Replies

5. AIX

How to mount an ISO image in AIX 5.2

Hi, Could anyone let me know how to mount an ISO image in AIX 5.2 ? --SaiP (2 Replies)
Discussion started by: saip
2 Replies

6. Solaris

Create an ISO image of whole system

Hi All, Please help me with this. My plan is to create an ISO image of my current solaris 8 OS.Because we use a stripped out version of solaris 8 which is different than the standard one in CD. Will dd command will do ? My idea is to create a VMware image from iso file and play it in... (6 Replies)
Discussion started by: Jartan
6 Replies

7. Ubuntu

Writing ISO image to CD

I want to install Ubuntu 7.10 and I have ISO image ubuntu-7.10-desktop-i386.iso . How can I convert to a bootable CD on linux or on windows. Thanks, J. (5 Replies)
Discussion started by: superuser84
5 Replies

8. UNIX for Advanced & Expert Users

mount iso image

I would like to mount an iso CD image on my Suse linux (SLES 9), the image has been copied to my suse linux machine. am able to mount the iso image manually by mount -oloop /iso/SLES-9-i386-CD1.iso /free but I would like to put the above entry in /etc/fstab so that when the machine is rebooted,... (2 Replies)
Discussion started by: hassan1
2 Replies

9. HP-UX

Need iso image on CD_ROM of 9.01 to 9.07 HPUX How do I get one

There is a HP APPOLLO series 700 workstation where I am working that runs some CAD/CAM software. The department has not upgraded, backup, or done anything with the box. They have been using it this way for years. It doesn't boot up now, seems like probably bad drive. It would be nice to... (0 Replies)
Discussion started by: camsoft
0 Replies

10. Tips and Tutorials

Mounting an ISO image on Solaris

Many software packages can be downloaded in the form of an ISO image. ISO images can also be created from CD and saved as ISO images: $ cat /dev/somecd > somename.iso Rather than burning the image to a CD-ROM to access its contents, it is easy to mount the image directly into the filesystem... (0 Replies)
Discussion started by: kduffin
0 Replies
Login or Register to Ask a Question