Thread: read data off USB stick directly somehow

  1. #16
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,596
    > dd if=/Volumes/USBSTICK
    Like I said, use the /dev entries not the OS mounted volumes
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  2. #17
    Registered User
    Join Date
    Apr 2017
    Posts
    80
    Quote Originally Posted by Salem View Post
    Sorry, I alias hd as follows.

    alias hd='od -Ax -t x1z'

    > Does that only do one sector at a time?
    You need to find the /dev entries, not the mounted volumes (which may be damaged).

    But yes, 8192 bytes copied = 512 * 16 records.
    OK, great, thanks, but is there a way to copy the whole drive's empty space somehow? Because the "file" in question is empty. But it would have been big. Thanks.

  3. #18
    Registered User
    Join Date
    Jul 2017
    Posts
    1
    Quote Originally Posted by Epy View Post
    Find a Windows PC and try Recuva, I've used it in the past to recover lost file fragments
    Yes that works.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ - Eject USB stick
    By mad-hatter in forum C++ Programming
    Replies: 0
    Last Post: 03-17-2017, 01:09 PM
  2. Replies: 21
    Last Post: 11-03-2007, 02:56 PM
  3. Read size of data array when reading .txt data
    By Taquito in forum C Programming
    Replies: 13
    Last Post: 04-29-2007, 01:52 AM
  4. drawing a stick man
    By bigjoke in forum C Programming
    Replies: 3
    Last Post: 12-27-2005, 01:53 PM
  5. read/write directly from VideoRam?
    By Magica in forum C Programming
    Replies: 5
    Last Post: 03-31-2003, 04:23 PM

Tags for this Thread