delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/30/14:03:22

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Accessing ram drive as raw disk volume fails?
Date: Thu, 30 Nov 2006 19:03:00 -0000
Message-ID: <04ca01c714b2$27d9ae20$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

    Hi all,


  I'm trying to use dd to dump stuff to a usb flash drive (i.e. mass storage
device).  However something tricks it into thinking the device is full
(/dev/sdb is the pendrive):


dk AT CHILLI ~
$ dd if=/tmp/msd-test-data.cXoEqa2332 of=/dev/sdb bs=100 count=1
dd: writing `/dev/sdb': No space left on device
1+0 records in
0+0 records out

dk AT CHILLI ~
$


  Reading from it is no problem:


dk AT CHILLI ~
$ dd if=/dev/sdb bs=100 count=1 | od -c
1+0 records in
1+0 records out
0000000 353   < 220   M   S   D   O   S   5   .   0  \0 002 001 006  \0
0000020 002  \0 002   @  \0 370 001  \0 001  \0 001  \0  \0  \0  \0  \0
0000040  \0  \0  \0  \0  \0  \0   )   {   6 354 024   N   O       N   A
0000060   M   E                   F   A   T   1   2               3 311
0000100 216 321 274 360   { 216 331 270  \0     216 300 374 275  \0   |
0000120   8   N   $   }   $ 213 301 231 350   < 001   r 034 203 353   :
0000140   f 241 034   |
0000144

dk AT CHILLI ~
$

Is this expected behaviour under cygwin?  What does "no space left on device"
even mean for a raw disk volume as opposed to a logical volume / partition?


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019