LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-21-2011, 10:00 PM   #1
udaypratapyati
LQ Newbie
 
Registered: Feb 2011
Posts: 17

Rep: Reputation: 0
How to add a folder/directory in the iso image of linux cd.


Hi all,

Can any one tell me how i should add a directory/folder in the iso image of linux(redhat) cd and keep the image/cd in bootable state.

I have tried the same but after adding the directory say "Extras", i am facing the following error...

Quote:
ISOLINUX 3.11 2005-09-02 isolinux: Image checksum error, sorry....
Thank you all in advance for ur earliest replies.
Uday.
 
Old 02-21-2011, 10:21 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Copy the contents of the cd to a directory, add your own directory, recreate the iso with mkisofs

Code:
cd /<mydir>
mkisofs -r -N -allow-leading-dots -d -J -T -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /tmp/newimage.iso
cheers
 
Old 02-22-2011, 03:01 AM   #3
udaypratapyati
LQ Newbie
 
Registered: Feb 2011
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kbp View Post
Copy the contents of the cd to a directory, add your own directory, recreate the iso with mkisofs

Code:
cd /<mydir>
mkisofs -r -N -allow-leading-dots -d -J -T -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /tmp/newimage.iso
cheers
i was able to create the image file... but if i try to boot from the same in my virtual machine (for testing) it goes in an infinite loop seaching for cd in the cdrom drive....

but in my case i am booting from the newly created image and no from any cd/dvd.

Error message is :
Quote:
The Red Hat Enterprise Linux Server CD was not found in any or your CDROM drives.
Please suggest what to do in this case...

note: I have dowloaded the isoimage and burnt it into a single dvd from which i am able to boot.
 
Old 02-22-2011, 03:33 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
You need to ensure that hidden files are also copied to the directory, you're probably missing '.discinfo' from the root of the cd

cheers
 
Old 02-25-2011, 03:25 AM   #5
udaypratapyati
LQ Newbie
 
Registered: Feb 2011
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kbp View Post
You need to ensure that hidden files are also copied to the directory, you're probably missing '.discinfo' from the root of the cd

cheers
Hi,

i tried copying the hidden files i,e. .treeinfo and .discinfo and then created the image... but still i am facing the same problem...

Quote:
The Red Hat Enterprise Linux Server CD was not found in any or your CDROM drives.
Thanks,
Uday.
 
Old 02-25-2011, 04:27 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
A slightly different command line :

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 .

http://www.asylumnation.com/blogs/am...post-2775.html
I have used the method a couple of times for "non live DVDs / cd" : It works.

..
 
  


Reply

Tags
bootdisk, fedora, redhat



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 add a loopback DVD iso image to fstab?? carl0ski Linux - General 3 09-02-2011 02:55 PM
Add scripts in ISO image knockout_artist Red Hat 4 11-20-2008 11:41 AM
linux image iso albywiller Linux - General 5 05-18-2006 07:59 AM
How can i add files 2 an iso image? Braveheart1980 Linux - Software 4 02-29-2004 06:30 PM
How may I add a file to an ISO image? geraldomanaus Linux - Newbie 6 04-24-2003 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:53 AM.

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