LinuxQuestions.org
Visit Jeremy's Blog.
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 11-23-2010, 03:01 PM   #1
a1danel
LQ Newbie
 
Registered: Apr 2007
Location: California
Distribution: Debian/Redhat/Fedora
Posts: 18

Rep: Reputation: 0
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?
 
Old 11-23-2010, 03:18 PM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
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
 
Old 11-29-2010, 03:50 AM   #3
samin
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Rep: Reputation: 1
"mkisofs -o /tmp/cd.iso /tmp/directory/" ===> will create an empty ISO in your HDD.
 
1 members found this post helpful.
Old 11-29-2010, 05:40 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by a1danel View Post
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.
 
Old 11-29-2010, 07:06 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,920

Rep: Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375Reputation: 6375
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?
 
Old 01-04-2011, 02:20 AM   #6
Paul G.
LQ Newbie
 
Registered: May 2006
Location: Auckland, New Zealand
Distribution: ArtistX 0.9
Posts: 7

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] logrotate not create empty file malikperera Linux - Server 1 03-24-2010 06:30 PM
create empty file in script roadrash Linux - General 2 10-26-2009 07:33 PM
how do i create an empty bash(.sh) file in command line? bbmak Linux - Newbie 1 10-26-2007 02:39 AM
How to create cron job to empty mbox folder/file sjmo2 Linux - General 4 03-23-2006 02:39 PM
Can you create an empty file and specify the byte length? harryo Linux - General 3 02-25-2004 10:01 PM

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

All times are GMT -5. The time now is 12:28 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