This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: physical disk access
- To: Bob McGowan <Robert dot McGowan at veritas dot com>
- Subject: Re: physical disk access
- From: Corinna Vinschen <corinna at vinschen dot de>
- Date: Thu, 30 Dec 1999 23:56:54 +0100
- CC: Cygwin <cygwin at sourceware dot cygnus dot com>
- References: <386BCF1A.667751E3@veritas.com>
Bob McGowan wrote:
> [...]
> I wanted to use dd to verify disk sizes on reads and writes, so I used
> the following two commands:
>
> dd if='\\.\F:' of=/dev/null bs=1024k
> zero | dd of='\\.\F:' bs=1024k
>
> where the command zero just generates null bytes on standard out.
> [...]
> I would have expected dd to work for both in and out operations under
> these circumstances. Any idea why it didn't?
>
> I am running the Cygwin 1.0 environment from the CD, no updates.
If you want to use raw devices with cygwin you have to mount them.
Some examples:
mount -f -b -s //./F: /dev/hdb2 # partition
mount -f -b -s //./physicaldrive0 /dev/hda # hard disk
mount -f -b -s //./tape0 /dev/st0 # rewind tape
mount -f -b -s //./tape0 /dev/nst0 # same as norewind
In further commands you have to use the mountpoints for correct
results:
dd if=/dev/hdb2 of=/dev/null bs=1024k
zero | dd of=/dev/hdb2 bs=1024k
Hope, this helps,
Corinna
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com