Gentoo Archives: gentoo-user

From: Kai Krakow <hurikhan77@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: [OT] Tools for putting HDD back to new state
Date: Mon, 03 Apr 2017 18:35:25
Message-Id: 20170403203445.16964263@jupiter.sol.kaishome.de
In Reply to: [gentoo-user] [OT] Tools for putting HDD back to new state by Harry Putnam
1 Am Mon, 03 Apr 2017 14:11:40 -0400
2 schrieb Harry Putnam <reader@×××××××.com>:
3
4 > I probably should know this, but off the top of my head I don't
5 > remember ever running into anything like this.
6 >
7 > I'd like to do what ever is done to set a used disk back to the
8 > state it was in when new... Not sure what that state is, but at least
9 > no evidence of boot manager or fs having been installed.
10 >
11 > This if for something I'm doing on OS openindiana (a solaris offshoot)
12 > and the disks are for that OS.
13 >
14 > The solaris milieu is somewhat behind linux in development of tools at
15 > least in my opinion. That is why I'm asking here.
16 >
17 > I am a gentoo user as well, but expect I may have to boot the solaris
18 > host with one or another linux boot ISO in order to have the tools
19 > required.
20
21 Just dd /dev/zero to the complete device. That purges everything you
22 need: partition tables, boot sectors, contents:
23
24 # dd if=/dev/zero of=/dev/sdX
25
26 where sdX is the disk to "kill". Be sure not to purge just on partition
27 by saying sdX1 or so but the complete disk (without number). Then,
28 before running any partitioning software, reboot, so the partition
29 cache of the kernel becomes cleared, or run part-probe if it is
30 installed.
31
32 dd should also be available in solaris but I guess the whole-disk
33 devices are named differently.
34
35 A faster alternative may be ddrescue. You could also give dd bigger
36 block sizes:
37
38 # dd ... bs=1M
39
40 --
41 Regards,
42 Kai
43
44 Replies to list-only preferred.

Replies