Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2004 21:32:38 +0100
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        Aaron Peterson <aaron@alpete.com>
Cc:        ticso@cicely.de
Subject:   Re: bcwipe won't wipe a block device...
Message-ID:  <20040219203237.GD44313@cicely12.cicely.de>
In-Reply-To: <29352.162.114.211.143.1077222503.squirrel@mail.alpete.com>
References:  <9615.162.114.211.143.1077213472.squirrel@mail.alpete.com> <20040219201520.GB44313@cicely12.cicely.de> <29352.162.114.211.143.1077222503.squirrel@mail.alpete.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 19, 2004 at 03:28:23PM -0500, Aaron Peterson wrote:
> > On Thu, Feb 19, 2004 at 12:57:52PM -0500, Aaron Peterson wrote:
> >> I don't know if this is a problem specific to CURRENT or not, but bcwipe
> >> seems to do the right thing when wiping files.  however, when using the
> >> -b
> >> option to wipe an entire block device, there is an "Invalid Argument"
> >> error, and I don't understand exactly why...
> >>
> >> fbsd52# bcwipe -bvmd /dev/da0
> >> Wipe /dev/da0 (y/[n]/a)?a
> >> Wiping device      /dev/da0
> >> Writing to /dev/da0: Invalid argument
> >> fbsd52# bcwipe -bvm3 /dev/fd0
> >> Wipe /dev/fd0 (y/[n]/a)?a
> >> Wiping device      /dev/fd0
> >> Writing to /dev/fd0: Invalid argument
> >> fbsd52#
> 
> > Why - if the device is there you have a node in /dev.
> > If you don't have the device then there is no node.
> > See devfs(8)
> 
> I understand how devfs works, and i don't think that is the problem,
> although perhaps I'm misunderstanding what you mean.
> 
> dd if=/dev/urandom of=/dev/da0
> dd if=/dev/urandom of=/dev/fd0
> 
> these devices and nodes all exist, and these dd commands do as expected
> and take off writing random data to the raw device.  However i get the
> errors mentioned previously when i try to use bcwipe on the same drives. 
> I would like to find a way to make bcwipe work.  any suggestions about
> what is causing this problem?

Ah - I missunderstood you.
The point is to find out what bcwipe does - e.g. by using ktrace.

-- 
B.Walter                   BWCT                http://www.bwct.de
ticso@bwct.de                                  info@bwct.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040219203237.GD44313>