Am Mon, 03 Apr 2017 14:11:40 -0400
schrieb Harry Putnam <rea...@newsguy.com>:

> I probably should know this, but off the top of my head I don't
> remember ever running into anything like this.
> 
> I'd like to do what ever is done to set a used  disk back to the
> state it was in when new... Not sure what that state is, but at least
> no evidence of boot manager or fs having been installed.
> 
> This if for something I'm doing on OS openindiana (a solaris offshoot)
> and the disks are for that OS.
> 
> The solaris milieu is somewhat behind linux in development of tools at
> least in my opinion.  That is why I'm asking here.
> 
> I am a gentoo user as well, but expect I may have to boot the solaris
> host with one or another linux boot ISO in order to have the tools
> required. 

Just dd /dev/zero to the complete device. That purges everything you
need: partition tables, boot sectors, contents:

# dd if=/dev/zero of=/dev/sdX

where sdX is the disk to "kill". Be sure not to purge just on partition
by saying sdX1 or so but the complete disk (without number). Then,
before running any partitioning software, reboot, so the partition
cache of the kernel becomes cleared, or run part-probe if it is
installed.

dd should also be available in solaris but I guess the whole-disk
devices are named differently.

A faster alternative may be ddrescue. You could also give dd bigger
block sizes:

# dd ... bs=1M

-- 
Regards,
Kai

Replies to list-only preferred.


Reply via email to