www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

remaking iso9660 filesystem without any change BLOWS UP size

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell
View previous topic :: View next topic  
Author Message
linuxophilicsb



Joined: 26 May 2012
Posts: 4

PostPosted: Mon Jun 18, 2012 9:03 am    Post subject: remaking iso9660 filesystem without any change BLOWS UP size Reply with quote

Environment details:

ZS (ZeroShell-1.0.beta16-CompactFlash-IDE-USB-SATA-1GB.img) image

is loaded (without booting it) in an extra hard disk device ( sdb)

The OS in which the procedure was carried out : Xubuntu 12.04

What I did:

1. Mounted iso filesystem of zs(the 2nd partition) in /mnt/sdb2

Code:
 
mount /dev/sdb2 /mnt/sdb2


2. Made a new iso image using the files that were in the mounted isofs

Code:
       
cd  /mnt/sdb2
mkisofs -U -r -hide-rr-moved -o /var/tmp/zs_par2.iso ./


Findings:

"ls -lh" of the original isoimage(copied using "dd if=/dev/sdb2 of=zspar2_orig.iso") gives size as 168MB whereas the new image created has a size of 362M without the slightest change.


It's OK if the sizes aren't the exact same, but the 2nd image is larger than twice the

size of the 1st image. I guess I'm missing something .

Please help me by pointing out what I've missed. Thanks.
Back to top
View user's profile Send private message
dvanzan



Joined: 21 Jun 2012
Posts: 1

PostPosted: Thu Jun 21, 2012 7:19 pm    Post subject: Reply with quote

I think it's because the orignial iso9660 partition is compressed
Back to top
View user's profile Send private message
linuxophilicsb



Joined: 26 May 2012
Posts: 4

PostPosted: Fri Jun 22, 2012 11:35 am    Post subject: Reply with quote

Yeah, it worked.

Thanks a lot.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group