Re: Wipe a drive clean

2008-06-24 Thread Norberto Meijome
On Mon, 23 Jun 2008 14:36:35 -0600
Andrew Falanga [EMAIL PROTECTED] wrote:

  I'd rather not install a port, if I can avoid it.  I  
 
  Have a look at security/wipe.  
 
 Before reading this, yes I did.  In fact, I even installed it.
 However, the first operation appears to be a renaming of the file in
 question.  I was doing:
 
 wipe -z /dev/da2
 
 which was being kicked out with Operation not permitted.  It seemed
 to want to move/rename the file first.  I didn't do enough digging to
 get around this before reading this e-mail.


do you have access rights to write to that device?

is the device mounted ? (it shouldn't)

B
_
{Beto|Norberto|Numard} Meijome

Web2.0 is outsourced RD from Web1.0 companies.
   The Reverend

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Wipe a drive clean

2008-06-24 Thread [EMAIL PROTECTED]
2008/6/23 Andrew Falanga [EMAIL PROTECTED]:
 On Mon, Jun 23, 2008 at 2:23 PM, Roland Smith [EMAIL PROTECTED] wrote:

 I'm not sure about flash memory, but for a harddrive, simple writing 0's
 is not a secure way to delete data. It can still be recovered.

 Actually, this is for an experiment that I want to start with a
 clean device for.  I'm not actually trying to obtain some level of
 security.

Assuming you do not have some geom provider on
said device

# dd if=/dev/zero of=/dev/da2 bs=1024k count=1

should wipe the partition table and superblock, which is
good enough for an insecure erase.

-- 
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Wipe a drive clean

2008-06-24 Thread Andrew Falanga
On Mon, Jun 23, 2008 at 8:03 PM, Norberto Meijome [EMAIL PROTECTED] wrote:
 On Mon, 23 Jun 2008 14:36:35 -0600
 Andrew Falanga [EMAIL PROTECTED] wrote:

  I'd rather not install a port, if I can avoid it.  I
 
  Have a look at security/wipe.

 Before reading this, yes I did.  In fact, I even installed it.
 However, the first operation appears to be a renaming of the file in
 question.  I was doing:

 wipe -z /dev/da2

 which was being kicked out with Operation not permitted.  It seemed
 to want to move/rename the file first.  I didn't do enough digging to
 get around this before reading this e-mail.


 do you have access rights to write to that device?

 is the device mounted ? (it shouldn't)


No.  I unmounted before trying.

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Wipe a drive clean

2008-06-24 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Wojciech Puchar
 Sent: Monday, June 23, 2008 1:40 PM
 To: Steve Bertrand
 Cc: freebsd-questions@freebsd.org; Andrew Falanga
 Subject: Re: Wipe a drive clean
 
 
  I'm having no luck finding hits for wipe drive or zero drive in
  the mail list archives and I can't believe I'm the first to ask this
  question but here it is anyway.  How can I simply write 0's across a
  USB thumb drive?  I'd rather not install a port, if I can avoid it.  I
  was thinking that something like dd would work, but everything I've
  tried thus far is not working.  What suggestions does everyone have?
 
  Will...
 
  dd if=/dev/zero of=/dev/disk
 
 
 dd if=/dev/zero of=/dev/disk bs=1m
 
 bs may be smaller but not the default 512 bytes. it's a block 
 size. having 
 very small block will make the process slow
 

dd if=/dev/random  of=/dev/disk  bs=1024

The above will wipe the drive clean per the 
United States Department of Defence Standard 5220.22-M 

To sanitize it per the 5220.22-M stnadard, do the above
3 times.  This is intended to destabilise the remnants of
data that may exist on the edges of the track of the disk
to which the data is written

The random device is a lot slower than /dev/zero so
the bs isn't as important.

Ted
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Wipe a drive clean

2008-06-23 Thread Andrew Falanga
Hi,

I'm having no luck finding hits for wipe drive or zero drive in
the mail list archives and I can't believe I'm the first to ask this
question but here it is anyway.  How can I simply write 0's across a
USB thumb drive?  I'd rather not install a port, if I can avoid it.  I
was thinking that something like dd would work, but everything I've
tried thus far is not working.  What suggestions does everyone have?

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Wipe a drive clean

2008-06-23 Thread Steve Bertrand

Andrew Falanga wrote:

Hi,

I'm having no luck finding hits for wipe drive or zero drive in
the mail list archives and I can't believe I'm the first to ask this
question but here it is anyway.  How can I simply write 0's across a
USB thumb drive?  I'd rather not install a port, if I can avoid it.  I
was thinking that something like dd would work, but everything I've
tried thus far is not working.  What suggestions does everyone have?


Will...

dd if=/dev/zero of=/dev/disk

...work?

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Wipe a drive clean

2008-06-23 Thread Roland Smith
On Mon, Jun 23, 2008 at 01:57:47PM -0600, Andrew Falanga wrote:
 Hi,
 
 I'm having no luck finding hits for wipe drive or zero drive in
 the mail list archives and I can't believe I'm the first to ask this
 question but here it is anyway.  How can I simply write 0's across a
 USB thumb drive? 

I'm not sure about flash memory, but for a harddrive, simple writing 0's
is not a secure way to delete data. It can still be recovered.

 I'd rather not install a port, if I can avoid it.  I

Have a look at security/wipe.

 was thinking that something like dd would work, but everything I've
 tried thus far is not working.  What suggestions does everyone have?

I think the trick is to use the right block size. Try bs=512 or
2048 in your dd command. Use if=/dev/random instead of if=/dev/zero and
repeat a couple of times. Note that wiping flash drives way will
shorten the lifespan of the device.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpFlUDyCpIT5.pgp
Description: PGP signature


Re: Wipe a drive clean

2008-06-23 Thread Bill Moran
In response to Roland Smith [EMAIL PROTECTED]:

 Note that wiping flash drives way will
 shorten the lifespan of the device.

This statement is largely obsolete.  Modern flash has rewrite cycles
that often exceed traditional platter-based disks.

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Wipe a drive clean

2008-06-23 Thread Andrew Falanga
On Mon, Jun 23, 2008 at 2:23 PM, Roland Smith [EMAIL PROTECTED] wrote:

 I'm not sure about flash memory, but for a harddrive, simple writing 0's
 is not a secure way to delete data. It can still be recovered.

Actually, this is for an experiment that I want to start with a
clean device for.  I'm not actually trying to obtain some level of
security.


 I'd rather not install a port, if I can avoid it.  I

 Have a look at security/wipe.

Before reading this, yes I did.  In fact, I even installed it.
However, the first operation appears to be a renaming of the file in
question.  I was doing:

wipe -z /dev/da2

which was being kicked out with Operation not permitted.  It seemed
to want to move/rename the file first.  I didn't do enough digging to
get around this before reading this e-mail.



 I think the trick is to use the right block size. Try bs=512 or
 2048 in your dd command. Use if=/dev/random instead of if=/dev/zero and
 repeat a couple of times. Note that wiping flash drives way will
 shorten the lifespan of the device.


The man page says that a block size of 512 is the default, though I
put it on the command line anyway (talk about being paranoid).  My
problem was the input file.  I was using /dev/null instead of
/dev/zero (which I didn't know about until this e-mail).  Thanks guys.

Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Wipe a drive clean

2008-06-23 Thread Wojciech Puchar

I'm having no luck finding hits for wipe drive or zero drive in
the mail list archives and I can't believe I'm the first to ask this
question but here it is anyway.  How can I simply write 0's across a
USB thumb drive?  I'd rather not install a port, if I can avoid it.  I
was thinking that something like dd would work, but everything I've
tried thus far is not working.  What suggestions does everyone have?


Will...

dd if=/dev/zero of=/dev/disk



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

bs may be smaller but not the default 512 bytes. it's a block size. having 
very small block will make the process slow



...work?

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Wipe a drive clean

2008-06-23 Thread Tim Daneliuk
Wojciech Puchar wrote:
 I'm having no luck finding hits for wipe drive or zero drive in
 the mail list archives and I can't believe I'm the first to ask this
 question but here it is anyway.  How can I simply write 0's across a
 USB thumb drive?  I'd rather not install a port, if I can avoid it.  I
 was thinking that something like dd would work, but everything I've
 tried thus far is not working.  What suggestions does everyone have?

 Will...

 dd if=/dev/zero of=/dev/disk

 
 dd if=/dev/zero of=/dev/disk bs=1m
 
 bs may be smaller but not the default 512 bytes. it's a block size.
 having very small block will make the process slow
 
 ...work?

 Steve

I like this tool for nuking drives:

  http://dban.sourceforge.net/


-- 

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]