View previous topic :: View next topic |
Author |
Message |
justin_brody Apprentice


Joined: 26 Jan 2005 Posts: 283
|
Posted: Sun Jul 30, 2006 10:22 pm Post subject: ISOFS Files Too Big? |
|
|
Hi,
I have a (relatively) small directory that I want to burn to DVD:
Code: |
localhost home # du -hs /home/justin/
2.7G /home/justin/
|
When I use mkisofs to create an image, it ends up being 11 gigs!
Here's the command I used:
Code: |
localhost home # mkisofs -o /tmp/justin.iso -R -J /home/justin/
|
Does anyone know what's going on here? It seems like it shouldn't get that much bigger!
If this is what's supposed to happen, any suggestions for bakcing up my home dir to DVD? I guess I could tar it and burn the tarball. Is there a better way?
Thanks,
Justin |
|
Back to top |
|
 |
justin_brody Apprentice


Joined: 26 Jan 2005 Posts: 283
|
Posted: Mon Jul 31, 2006 1:07 am Post subject: |
|
|
For what it's worth, I get an 11 gig file when I tar the directory too. This seems really counter-intuitive to me. I would think that tarring would create a smaller file since it would get rid of any space wasted by partially used blocks... |
|
Back to top |
|
 |
madams n00b


Joined: 31 Jul 2006 Posts: 30 Location: Charlotte, NC, USA
|
Posted: Mon Jul 31, 2006 6:23 pm Post subject: |
|
|
do you have any 'symlinks' pointing somewhere else??
Either:
A) try using du -hsL /path/to/files (this will include filesizes of the file the symlink points to)
or
B) ensure that 'tar' does not to follow the symlinks, just include the symlink pointer itself i.e. don't use the 'tar -h or --dereference flags. |
|
Back to top |
|
 |
justin_brody Apprentice


Joined: 26 Jan 2005 Posts: 283
|
Posted: Mon Jul 31, 2006 6:51 pm Post subject: [solved] |
|
|
Doh! That seems to be it.
My .wine directory has a big symlink
pointing right back to the root!
Thanks for the suggestion! |
|
Back to top |
|
 |
madams n00b


Joined: 31 Jul 2006 Posts: 30 Location: Charlotte, NC, USA
|
Posted: Mon Jul 31, 2006 7:04 pm Post subject: |
|
|
I had a symlink to /proc in my home directory that got me.. all of a sudden my backups where twice as big. Chased it that one for a couple of hours..  |
|
Back to top |
|
 |
|