View Single Post
Old 08-13-2016, 09:47 AM   #14
coplate
Guru
coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.
 
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
Quote:
Originally Posted by geekmaster View Post
The following 'resize2fs' also does nothing in this case. It extends a filesystem to fill all the trailing zeroes after appending /dev/zero to an the end of an existing filesystem. It is faster to format a small fs then append zeoes and resize it, than format a large fs, though.
The resize2fs doesn't just fill the filesystem with zeroes, it also tells the partition map that the partition is now 2 GB, and that's what we want from it in this case.

Otherwise when we boot from it, the OS will see only 512MB


Quote:
Originally Posted by knc1 View Post
... sparse file[s] ...
It looks like qemu and debian can use the sparse files, so that would be a nice shortcut for people working on this, if they start with that image.
coplate is offline   Reply With Quote