LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2004, 04:08 PM   #1
rhxk
LQ Newbie
 
Registered: Nov 2004
Distribution: FC6
Posts: 12

Rep: Reputation: 0
how can i calculate an image size w/o creating one?


Hi,

is there a software/script out there that can help me figure out the total image
size to be put on dvd without actually creating the image?

I have hundreds and thousands of files in 8+ nested directories that I need to burn
on dvd. i have to someway calculate the filesize, filename length, directory length,
etc.etc.etc., chop them into like dvd1, dvd2, dvd3 dirs, and have my automated
script burn those dvd dirs....

can anyone help? ...thanx...


--Robert
 
Old 11-10-2004, 04:49 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 11
Posts: 8,265

Rep: Reputation: 528Reputation: 528Reputation: 528Reputation: 528Reputation: 528Reputation: 528
" i have to someway calculate the filesize, filename length, directory length,
etc.etc.etc., chop them into like dvd1, dvd2, dvd3 dirs, and have my automated
script burn those dvd dirs...."

Part of the solution is to play around with the du command. See man du. For example you could find the size of a directory called /home/user/biggy with:

MYCWD=${PWD}
cd /home/user/biggy
THISSIZE=$(du -s -h)
cd ${MYCWD}


---------------------------
Steve Stites
 
Old 11-10-2004, 04:52 PM   #3
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
also
mkisofs -print-size [..parameters needed to make the image]
see man mkisofs for details.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to calculate kernel structure size? cranium2004 Programming 1 04-15-2005 04:09 AM
Creating a cd image of installation AndrewB Mandriva 2 03-30-2005 06:05 PM
creating image on FreeBSD radus *BSD 2 02-17-2005 01:25 PM
Creating a Drive image Earl_UK Linux - Newbie 1 02-16-2005 08:49 PM
creating an image gallery meluser Linux - Software 1 07-22-2003 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:05 PM.

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