Terminal Command Question

  • Posted: 29 March 2013 01:45 PM

    What would be the terminal commands to copy an image file on my Macbook pro. The image file is here
    /Volumes/Mac SATS (File Name) AppleTVDrive.img) the image is here on this drive

    /dev/disk1
      #:                TYPE NAME             SIZE     IDENTIFIER
      0:    GUID_partition_scheme                 *500.1 GB   disk1
      1:                EFI                 209.7 MB   disk1s1
      2:            Apple_HFS Mac SATS           499.8 GB   disk1s2

    to a Hard drive connected to a USB port on my mac.

    /dev/disk2
      #:                TYPE NAME             SIZE     IDENTIFIER
      0:    GUID_partition_scheme                 *40.0 GB   disk2
      1:                EFI                 209.7 MB   disk2s1
      2:            Apple_HFS Apple TV           39.7 GB   disk2s2

    The hard drive on my 1s gen Apple tv carped out and I really don’t want to replace the Apple TV, I like the internal hard drive.

    Thanks For the help

     

     

    [ Edited: 30 March 2013 02:58 PM by cudafish ]      
  • Posted: 01 April 2013 12:04 PM #1

    To do this you’d use:

    sudo cp -Rfv /Volumes/Mac\ SATS/(filename) /Volumes/Apple\ TV/

    This would copy a file of your choice (filename) from a volume called “Mac SATS” to another volume called “Apple TV”. The -R flag isn’t really necessary, but I put it in for good measure as it won’t hurt anything.

    - Osiris
    Apple Certified Technician

    Signature

    Roger
    Apple Certified Tech
    PDXMacRepair.com

         
  • Posted: 01 April 2013 04:02 PM #2

    Thanks for the reply.

    I typed in the commands like you said. I have the drive Apple TV connected with usb. I get this error
    Not sure why ?

    Thanks again for the reply

    Roberts-MacBook-Pro:~ RAF$ sudo cp -Rfv /Volumes/Mac\ SATS/AppleTV.img /Volumes/Apple\ TV/
    cp: directory /Volumes/Apple TV does not exist

    [ Edited: 01 April 2013 06:44 PM by cudafish ]      
  • Posted: 01 April 2013 06:40 PM #3

    Does the Apple TV drive show up in Finder? If you type “ls -la /Volumes/”, does the Apple TV volume show up? Also, are you sure there’s supposed to be a space between “Apple” and “TV”? Perhaps removing the space might help. Unix is picky about these sorts of things. wink

    - Osiris

    Signature

    Roger
    Apple Certified Tech
    PDXMacRepair.com

         
  • Posted: 01 April 2013 06:46 PM #4

    Yes I am sure the drive shows up in the finder. I also tried without the space still get error.

    Thanks again

         
  • Posted: 01 April 2013 06:50 PM #5

    The only other thing I can think of is maybe “Apple TV” has some extra spaces at the end of the volume name? I’m not sure how UNIX handles a situation like that. Also, does the Apple TV drive have write permissions enabled?

    Signature

    Roger
    Apple Certified Tech
    PDXMacRepair.com

         
  • Posted: 01 April 2013 07:08 PM #6

    Yes I do have write permission set. I’ll keep trying.

    Thanks Again