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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-23-2010, 03:01 PM
|
#1
|
LQ Newbie
Registered: Apr 2007
Location: California
Distribution: Debian/Redhat/Fedora
Posts: 18
Rep:
|
Howto Create empty or blank iso file
I having been searching for a way to create an empty or blank iso file, so that I can mount it, and have a backup application think it's a blank CD. I am tired of wasting CD's by having the application write a recovery CD, just for me to turn around and export it to an iso image to be stored in a online archive, and then throw away the physical CD.
Any suggestions here?
|
|
|
11-23-2010, 03:18 PM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573
|
make a skeleton cd image in a empty folder
basically, depending on the iso setup (boot/isolinux or isolinux/) you can copy isolinux.bin from
/usr/lib/syslinux or /usr/share/syslinux
example on Desktop
Code:
mkdir -p iso/isolinux
cp -r /usr/lib/syslinux/isolinux.bin iso/isolinux/
genisoimage -r -V "iso label" -cache-inodes -J -l \
-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
-boot-load-size 4 -boot-info-table -o isoname.iso iso/
substitute "mkisofs" for genisoimage if you only have mkisofs
|
|
|
11-29-2010, 03:50 AM
|
#3
|
LQ Newbie
Registered: Nov 2010
Posts: 8
Rep:
|
"mkisofs -o /tmp/cd.iso /tmp/directory/" ===> will create an empty ISO in your HDD.
|
|
1 members found this post helpful.
|
11-29-2010, 05:40 AM
|
#4
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by a1danel
I having been searching for a way to create an empty or blank iso file, so that I can mount it, and have a backup application think it's a blank CD. I am tired of wasting CD's by having the application write a recovery CD, just for me to turn around and export it to an iso image to be stored in a online archive, and then throw away the physical CD.
Any suggestions here?
|
I don't think that it works the way you think. You wouldn't only need a blank image (on which the application burns the ISO-filesystem, there is no ISO-filesystem before burning the disk), but also an emulation for the burning device. I would recommend to change your backup system instead.
Last edited by TobiSGD; 11-29-2010 at 05:42 AM.
|
|
|
11-29-2010, 07:06 AM
|
#5
|
Moderator
Registered: Aug 2002
Posts: 26,920
|
As TobiSGD posted it does not work that way... You can mount an ISO9660 image using a loop device but file system is read only. What backup application are you using?
|
|
|
01-04-2011, 02:20 AM
|
#6
|
LQ Newbie
Registered: May 2006
Location: Auckland, New Zealand
Distribution: ArtistX 0.9
Posts: 7
Rep:
|
I agree that this is not really the way to go.
Why not just create a compressed file of the backup data?
This is simple to do and avoids the need for an ISO and a CD altogether. The compressed file can be put anywhere or in several places and individual files may be extracted.
The simplest way is to use the dd command, along with a compression tool, such as gzip.
Documentation of Backup using dd, gzip and split
Another, probably better solution, would be to use something like rsnapshot : --
Quote:
local and remote filesystem snapshot utility
rsnapshot is an rsync-based filesystem snapshot utility. It can take
incremental backups of local and remote filesystems for any number of
machines. rsnapshot makes extensive use of hard links, so disk space is
only used when absolutely necessary.
Homepage: http://www.rsnapshot.org/
|
Paul
|
|
|
All times are GMT -5. The time now is 12:28 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|