Page 1 of 2 12 LastLast
Results 1 to 10 of 11
Discuss [/DEV] How can i copy this folder in my computer ? at the Tools - Hackint0sh.org; I need to copy to my computer this folder: /dev/ and all of the items ...
  1. #1
    Newbie Array

    Join Date
    Jan 2008
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default [/DEV] How can i copy this folder in my computer ?

    I need to copy to my computer this folder:
    /dev/
    and all of the items in it..
    how can i do that?
    changing permission do not work

    TY

    -PoPCoP-



  2. #2
    Young Padawan Array duck9000's Avatar

    Join Date
    Sep 2007
    Location
    The Outer Rim
    Posts
    2,461
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    149

    Default

    SCP/SFTP. WinSCP is a great software to do that
    ** If you just want to support hackint0sh.org with a donation, please click here **.

  3. #3
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    152
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    WinSCP isn't a great software to do that at all!
    Actually, you won't find any software able to do that.
    Because what you find in /dev aren't real "files" as you're used to them, but pseudo-files giving access to devices. They're usually not static, so a copy wouldn't be helpful at all.

    You can use dd on the command line to copy information from devices to actual files that you would store somewhere else in the file system.

    So, what exactly do you "need" to copy these "files" for?

  4. #4
    Newbie Array

    Join Date
    Jan 2008
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    can you give the commend to putty?
    i need some files from there to my iTouch

  5. #5
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    152
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Didn't you understand?

    There are no real files in /dev!

    Whichever "some files" you need, you need to ask for very specific help. Each /dev "file" represents a different piece of hardware, and each piece of hardware needs to be talked to differently.

    If you say you want files "from there", that means you want to access the hardware with the help of any driver.


  6. #6
    Newbie Array

    Join Date
    Jan 2008
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    now i understand..

    "You can use dd on the command line to copy information from devices to actual files that you would store somewhere else in the file system."

    what is the commend for cu.bluetooth and tty.bluetooth?
    where i type this commend?

    TY

  7. #7
    Senior Professional Array n000b's Avatar

    Join Date
    Mar 2007
    Posts
    117
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    16

    Default

    Quote Originally Posted by popcop View Post
    I need to copy to my computer this folder:
    /dev/
    and all of the items in it..
    how can i do that?
    changing permission do not work

    TY

    -PoPCoP-
    Why not login to iphone and enter: tar cf /tmp/dev.tar /dev, and then copy the tar file?

  8. #8
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    152
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    @n000b: because there's not enough free space on the device? If you have a 8 GB iPhone, you would need at least 32 GB. If you had a 16 GB iPhone, you would need at least 64 GB... /dev/disk0 represents the full memory (as does /dev/rdisk0 afaik), plus /dev/disk0s1 and /dev/disk02s2 represent the two partitions (plus the rdisk ones)!
    Not containing the dozens of devices that would simply let the copy process wait forever since they're... READ!... not files!

    @popcop: dd is useful to copy raw blocks from the flash memory, e.g. from /dev/disk0s1. dd if=/dev/disk0s1 of=/tmp/mycopy bs=512 count=2 would copy 1024 Byte for example.

    tty means "teletype"... and the Bluetooth traffic isn't something static! You write something into the "file", it gets send to the Bluetooth chip (probably). And what the "file" contains is - one-time only until it is read! - what has been sent through Bluetooth. Very roughly spoken, since there's probably a lot of control mechanisms only.
    If you don't even know the command, or where to type it, it is impossible to help you, since you don't even understand what the file is about, and the "command" can be everything quite depending on what you're trying to achieve.

  9. #9
    Senior Professional Array n000b's Avatar

    Join Date
    Mar 2007
    Posts
    117
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    16

    Default

    It's not true, /dev/disk0 is only a device node, a tar should have no problem dealing with it, it tars the device node, but not the device contents. Did you try it?

  10. #10
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    152
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I only remembered from desktop Linuxes that it always fails at some device anyway, so I admit that was purely theoretical, pointing at how useless it is to play around with /dev if you don't know what you're dealing with.

    I tried again on my Mac, where of course it failed at some device as well, but then on the iPhone, it did indeed proceed! Not sure why, maybe the bsd version is less "powerful" or more powerful or whatever, but I apologize for mistake.

    Doesn't change that just copying "files" to the desktop from there doesn't really show a lot of sense usually, and that popcop should better describe what he wants to get at, instead of how he is trying to achieve it.


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 10-13-2007, 07:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 09:49 AM.
twitter, follow us!