On Jun 28, 2007, at 3:17 PM, Hubert Feyrer wrote:

> On Thu, 28 Jun 2007, Jesse Peterson wrote:
>> If you happen to be preparing a fresh OS it might be useful to have a
>> disk zero feature. Say "zero wd0" (or wd0e, or any other partition)
>> so that you may start a disk with zero'd blocks and install your OS
>> over that for smaller images. It's easy enough to do by simply
>> issuing dd manually, but a shortcut might be handy and it saves you
>> from having to do it from your actual OS.
>
> That would require g4u to have knowledge of the "OS" file system.
> It's easier to leave that to the OS-side, see http://www.feyrer.de/ 
> g4u/#shrinkimg

Hrm.. I think I wasn't being clear. This action would be before an OS  
is installed - so that it may be installed "over" a zero'ed-out disk  
so that you wouldn't have to do OS-specific free-space zeroing.  
Essentially "zero" would be a shell script:

#!/bin/sh

dd if=/dev/zero of=$1 bs=1m

That's all ;)

Thanks,
- Jesse

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
g4u-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/g4u-help

Reply via email to