Re: Destroy GPT partition scheme absolutely, how?

2016-10-04 Thread Steven Hartland
CAM already does this, doesn't really help with speed as much as you might think though. On 04/10/2016 19:53, Maxim Sobolev wrote: For the whole disk destruction, hopefully one day we'd have BIO_DELETE coalesce code, so that you can batch of lot of operations into handful SATA commands. I've he

Re: Destroy GPT partition scheme absolutely, how?

2016-10-04 Thread Maxim Sobolev
For the whole disk destruction, hopefully one day we'd have BIO_DELETE coalesce code, so that you can batch of lot of operations into handful SATA commands. I've heard rumours imp@ was doing something along those lines. As well as SSD disks smart enough to process those requests in the background.

Re: Destroy GPT partition scheme absolutely, how?

2016-10-04 Thread John Baldwin
On Tuesday, October 04, 2016 06:23:26 AM Warren Block wrote: > On Mon, 26 Sep 2016, John Baldwin wrote: > > > On Tuesday, September 27, 2016 12:36:22 AM Ngie Cooper wrote: > >> > >>> On Sep 26, 2016, at 22:48, Ernie Luzar wrote: > >> > >> ... > >> > >>> This little script has been posted before.

Re: Destroy GPT partition scheme absolutely, how?

2016-10-04 Thread Warren Block
On Mon, 26 Sep 2016, John Baldwin wrote: On Tuesday, September 27, 2016 12:36:22 AM Ngie Cooper wrote: On Sep 26, 2016, at 22:48, Ernie Luzar wrote: ... This little script has been posted before. Maybe it will be what your looking for. Called gpart.nuke #! /bin/sh echo "What disk do yo

Re: Destroy GPT partition scheme absolutely, how?

2016-09-29 Thread John Baldwin
On Thursday, September 29, 2016 01:01:44 AM Andriy Gapon wrote: > On 28/09/2016 21:08, Andrey V. Elsukov wrote: > > This is very strange problem, how did you created MBR if you have not > > destroyed GPT? :) > > Using a tool that's not aware of GPT at all? I think the drive's arrived with some pa

Re: Destroy GPT partition scheme absolutely, how?

2016-09-28 Thread Andriy Gapon
On 28/09/2016 21:08, Andrey V. Elsukov wrote: > This is very strange problem, how did you created MBR if you have not > destroyed GPT? :) Using a tool that's not aware of GPT at all? -- Andriy Gapon ___ freebsd-current@freebsd.org mailing list https://

Re: Destroy GPT partition scheme absolutely, how?

2016-09-28 Thread Andrey V. Elsukov
On 28.09.2016 22:02, Allan Jude wrote: > I wonder if this issue is related at all to the new 'auto resize' gpart > bits. That leaves the 'uncommitted' transaction pending, and may require > a 'gpart undo' before the other commands will work correctly. All other commands that do any changes will is

Re: Destroy GPT partition scheme absolutely, how?

2016-09-28 Thread Warner Losh
On Wed, Sep 28, 2016 at 1:02 PM, Allan Jude wrote: > On 2016-09-27 01:58, Warner Losh wrote: >> On Mon, Sep 26, 2016 at 11:06 PM, O'Connor, Daniel >> wrote: >>> On 27 Sep 2016, at 14:28, Warner Losh wrote: dd of 2MB of zeros to the start and end of the disk. That will destroy pre

Re: Destroy GPT partition scheme absolutely, how?

2016-09-28 Thread Allan Jude
On 2016-09-27 01:58, Warner Losh wrote: > On Mon, Sep 26, 2016 at 11:06 PM, O'Connor, Daniel wrote: >> >>> On 27 Sep 2016, at 14:28, Warner Losh wrote: >>> dd of 2MB of zeros to the start and end of the disk. That will destroy >>> pretty much everything. For SSDs, sometimes you can do the same wi

Re: Destroy GPT partition scheme absolutely, how?

2016-09-28 Thread Andrey V. Elsukov
On 26.09.2016 23:51, John Baldwin wrote: >> Why not just use "gpart destroy -F provider"? > > That doesn't always work. In particular, if a disk was partitioned with GPT > and then you use normal MBR on it afterwards, the 'gpart destroy -F' of the > MBR will leave most of the GPT intact and the d

Re: Destroy GPT partition scheme absolutely, how?

2016-09-26 Thread Warner Losh
On Mon, Sep 26, 2016 at 11:06 PM, O'Connor, Daniel wrote: > >> On 27 Sep 2016, at 14:28, Warner Losh wrote: >> dd of 2MB of zeros to the start and end of the disk. That will destroy >> pretty much everything. For SSDs, sometimes you can do the same with >> TRIMs only faster (other times they are

Re: Destroy GPT partition scheme absolutely, how?

2016-09-26 Thread O'Connor, Daniel
> On 27 Sep 2016, at 14:28, Warner Losh wrote: > dd of 2MB of zeros to the start and end of the disk. That will destroy > pretty much everything. For SSDs, sometimes you can do the same with > TRIMs only faster (other times they are slower or unreliable). Yeah, but it would be nicer to not have

Re: Destroy GPT partition scheme absolutely, how?

2016-09-26 Thread Warner Losh
On Mon, Sep 26, 2016 at 8:46 PM, O'Connor, Daniel wrote: > >> On 27 Sep 2016, at 06:21, John Baldwin wrote: >> That doesn't always work. In particular, if a disk was partitioned with GPT >> and then you use normal MBR on it afterwards, the 'gpart destroy -F' of the >> MBR will leave most of the

Re: Destroy GPT partition scheme absolutely, how?

2016-09-26 Thread O. Hartmann
On Tue, 27 Sep 2016 00:36:22 +0900 Ngie Cooper wrote: > > On Sep 26, 2016, at 22:48, Ernie Luzar wrote: > > ... > > > This little script has been posted before. Maybe it will be what your > > looking for. Called gpart.nuke > > > > #! /bin/sh > > echo "What disk do you want" > > echo "to wip

Re: Destroy GPT partition scheme absolutely, how?

2016-09-26 Thread O. Hartmann
On Mon, 26 Sep 2016 09:48:22 -0400 Ernie Luzar wrote: > Hartmann, O. wrote: > > I ran into a very nasty and time consuming problem. Creating a NanoBSD > > image with a modified script framework creating GPT partitions, I put > > the imaes via "dd(1)" on USB flash or SD flash. Because the images a

Re: Destroy GPT partition scheme absolutely, how?

2016-09-26 Thread O'Connor, Daniel
> On 27 Sep 2016, at 06:21, John Baldwin wrote: > That doesn't always work. In particular, if a disk was partitioned with GPT > and then you use normal MBR on it afterwards, the 'gpart destroy -F' of the > MBR will leave most of the GPT intact and the disk will come up with the old > GPT partiti

Re: Destroy GPT partition scheme absolutely, how?

2016-09-26 Thread John Baldwin
On Tuesday, September 27, 2016 12:36:22 AM Ngie Cooper wrote: > > > On Sep 26, 2016, at 22:48, Ernie Luzar wrote: > > ... > > > This little script has been posted before. Maybe it will be what your > > looking for. Called gpart.nuke > > > > #! /bin/sh > > echo "What disk do you want" > > echo

Re: Destroy GPT partition scheme absolutely, how?

2016-09-26 Thread Ngie Cooper
> On Sep 26, 2016, at 22:48, Ernie Luzar wrote: ... > This little script has been posted before. Maybe it will be what your looking > for. Called gpart.nuke > > #! /bin/sh > echo "What disk do you want" > echo "to wipe? For example - da1 :" > read disk > echo "OK, in 10 seconds I will destroy

Re: Destroy GPT partition scheme absolutely, how?

2016-09-26 Thread Nikolai Lifanov
On 09/26/2016 11:08, Gary Jennejohn wrote: > On Mon, 26 Sep 2016 09:48:22 -0400 > Ernie Luzar wrote: > >> Hartmann, O. wrote: >>> I ran into a very nasty and time consuming problem. Creating a NanoBSD >>> image with a modified script framework creating GPT partitions, I put >>> the imaes via "dd(

Re: Destroy GPT partition scheme absolutely, how?

2016-09-26 Thread Gary Jennejohn
On Mon, 26 Sep 2016 09:48:22 -0400 Ernie Luzar wrote: > Hartmann, O. wrote: > > I ran into a very nasty and time consuming problem. Creating a NanoBSD > > image with a modified script framework creating GPT partitions, I put > > the imaes via "dd(1)" on USB flash or SD flash. Because the images a

Re: Destroy GPT partition scheme absolutely, how?

2016-09-26 Thread Ernie Luzar
Hartmann, O. wrote: I ran into a very nasty and time consuming problem. Creating a NanoBSD image with a modified script framework creating GPT partitions, I put the imaes via "dd(1)" on USB flash or SD flash. Because the images are usually much smaller than the overall capacity of the USB or SD,

Re: Destroy GPT partition scheme absolutely, how?

2016-09-26 Thread Miroslav Lachman
Hartmann, O. wrote on 09/26/2016 15:01: [...] Using a fresh/new SD or USB resolves the problem. But the question remains: how can I destroy any relevant GPT information on a Flash drive (or even harddisk) to avoid unwanted remains of an foul image installation? First guess was to write the las

Destroy GPT partition scheme absolutely, how?

2016-09-26 Thread Hartmann, O.
I ran into a very nasty and time consuming problem. Creating a NanoBSD image with a modified script framework creating GPT partitions, I put the imaes via "dd(1)" on USB flash or SD flash. Because the images are usually much smaller than the overall capacity of the USB or SD, the OS (FreeBSD CURREN