[Gllug] Recovering disk space

Martin A. Brooks martin at hinterlands.org
Sun Dec 10 14:33:52 UTC 2006


John G Walker wrote:
> What's the easiest way to recover my disk space? 

If you're asking what I think you're asking then just wipe the partition 
table and, optionally, the MBR.

Both can be done at once with the 'dd' utility.

Something like:  dd if=/dev/zero of=/dev/<target> bs=1024k count=1

The 1024k is overkill, the partition table lives much closer to the 
start of the disk than that,  I just don't recall the offset.

-- 

Martin A. Brooks | http://www.antibodymx.net/ | Anti-spam & anti-virus
   Consultant    | e: martin at antibodymx.net   | filtering. Inoculate
 antibodymx.net  | m: +447896578023           | your mail system.



-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list