On 2016年06月24日 14:15, Carl Karsten wrote:
> This isn't exactly a clonezilla thng, but maybe it can help.
> 
> these images go on to an SD card:
> https://cberner.com/share/
> 
> [ ]   ubuntu-server-14.04-v4.4-rc6-mfc.img.xz
> <https://cberner.com/share/ubuntu-server-14.04-v4.4-rc6-mfc.img.xz>
> 2016-05-01 17:12      222M    
> 
> 
> uncompressed that turns into a 8gig file even though it is a 128M and
> 550M partition.  I am guessing it was put onto an 8 gig media and dd the
> whole thing.
> 
> There are many images like this.
> 
> Is there some way to trim that file so that when I write it to the SD
> card I am not writing all the extra 0's? 
First dd the image, then use partclone to save the partitions if the
file system is supported by partclone. Of course you can use clonezilla
to do that, too.
> 
> And then once it is written, how to I resize the partition to fit the media?
First you must have a equal or larger partition size. Once it's written,
the resizing depends on the file system. There is a program on
Clonezilla live called ocs-resize-part which you can use for this
purpose. You can use it like:
/usr/sbin/ocs-resize-part /dev/sdc1
to tune the file system on /dev/sdc1 to fit the partition size.

Steven

> 
> 
> 
> 
> -- 
> Carl K
> 
> 
> 
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> 
> 
> 
> _______________________________________________
> Clonezilla-live mailing list
> Clonezilla-live@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/clonezilla-live
> 

-- 
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/47CF935C
Fingerprint: 0240 1FEB 695D 7112 62F0  8796 11C1 12DA 47CF 935C

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Clonezilla-live mailing list
Clonezilla-live@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clonezilla-live

Reply via email to