Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th February 2010, 12:24 AM
joe.pelayo's Avatar
joe.pelayo Offline
An ape descendant
 
Join Date: Dec 2006
Location: Mexico City
Age: 29
Posts: 3,101
macosfirefox
Question Create an ISO image out of a directory from command line

Hello everybody.

I am implementing a strategy to organize my data among the several machines I work with and thought that getting some ISO images out of it could be a good idea because that way data would be 'read only' thus allowing for easier synchronization.

At first I thought of using the "dd" command to create the ISO out of a directory, but it fails:
Code:
axayacatl-lord:Desktop joe$ dd if=Directory/ of=Directory.iso
dd: Directory/: Is a directory
0+0 records in
0+0 records out
0 bytes transferred in 0.000299 secs (0 bytes/sec)
axayacatl-lord:Desktop joe$
Since I am still working on some of these data the ISOs would have need to be created regularly. I tried using Brasero but it keeps complaining about some non-standard filenames (for Windows compatibility I think, which is irrelevant here).

So, I have two questions:

Is the ISO 'format' capable of storing complex directory structures with long filenames (pretty much as any Linux filesystem does), or are there some inherent limitations?

Supposing the ISO format is not constrained, which command would allow me to create an ISO file out of a directory?

Thanks,
Joe.
__________________
Notebook: Acer Aspire 5536-5112.
AMD Athlon X2 QL64 @ 2.1GHz, 4GB DDR2 PC2-5300, ATI Radeon HD3200 (256MB), 250GB Toshiba HDD, HL-DT-ST DVDRAM GT20N
Fedora 16 x86_64

Netbook: Acer Aspire One A150
Intel Atom N270 @ 1.6GHz, 1.5 GB DDR2 PC2-4200, Intel Graphics (8MB?), 160GB Seagate HDD
Fedora 15 i686
Reply With Quote
  #2  
Old 7th February 2010, 01:40 AM
kyryder
Guest
 
Posts: n/a
linuxfedorafirefox
Hello Joe,
There is the "mkisofs" command. check out "mkisofs --help" and the man. You can make a iso of a directory and burn it all in one CLI. :
Code:
mkisofs -r /opt/oracle | cdrecord dev=/dev/sr0 -v -eject-
Hope this helps,

Ky
Reply With Quote
  #3  
Old 7th February 2010, 01:42 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,978
linuxopera
A dvd or CD? If cd

mkisofs -J -r -o $1 $2

Where $1 is the output file and $2 the directory.

If a dvd, you would then run growisofs.

If the output file was dvd.iso and your dvd writing device is /dev/scd0


Then
growisofs -Z /dev/scd0=dvd.iso -speed=4

see man mkisofs

Oh, if burning it to CD, rather than DVD

cdrecord dev=/dev/scd0 outfile.iso
Reply With Quote
  #4  
Old 7th February 2010, 01:51 AM
kyryder
Guest
 
Posts: n/a
linuxfedorafirefox
Is there a echo in here?

I notice allot of options for file name length available with the "mkisofs" command.

Ky
Reply With Quote
  #5  
Old 7th February 2010, 02:10 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,978
linuxopera
Oops, you beat me to it. (I then walked away from the computer, so didn't even notice)

Errm, yeah, what Kryder said.
Reply With Quote
  #6  
Old 7th February 2010, 05:13 AM
joe.pelayo's Avatar
joe.pelayo Offline
An ape descendant
 
Join Date: Dec 2006
Location: Mexico City
Age: 29
Posts: 3,101
linuxfedorafirefox
Hello guys,

Thanks for your responses. I don't intend to burn it, just want a 'read-only' portable filesystem. Being this the case, does it make any difference whether I use one command or the other? I mean, right now the data uses about 517MB (so the 'cd' option works) but if it grows beyond a CD size, would it cause a problem to use its related command?

EDIT: Apparently I got it guys, I used the following command: mkisofs -input-charset default -r -o File.iso Directory
Now it remains to be seen if the resulting image will be properly read in the Mac I work with at school.

Thanks,
Joe.
__________________
Notebook: Acer Aspire 5536-5112.
AMD Athlon X2 QL64 @ 2.1GHz, 4GB DDR2 PC2-5300, ATI Radeon HD3200 (256MB), 250GB Toshiba HDD, HL-DT-ST DVDRAM GT20N
Fedora 16 x86_64

Netbook: Acer Aspire One A150
Intel Atom N270 @ 1.6GHz, 1.5 GB DDR2 PC2-4200, Intel Graphics (8MB?), 160GB Seagate HDD
Fedora 15 i686

Last edited by joe.pelayo; 7th February 2010 at 05:30 AM.
Reply With Quote
Reply

Tags
command, create, directory, image, iso, line

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create FTP server/client the easiest way using command-line? mus1402 Servers & Networking 1 8th February 2006 01:34 PM
howto see size of directory on command line? linuxted Using Fedora 7 9th July 2005 09:38 PM


Current GMT-time: 22:02 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat