Menu

Writing to raw device

2015-10-28
2015-10-28
  • Zeljko Trogrlic

    Zeljko Trogrlic - 2015-10-28

    Hi,

    Is it possible to write directly to raw device instead of file? I would like to transfer partition content to different machines without unnecesary overhead.

    Thanks!

     
  • Dennis Bush

    Dennis Bush - 2015-10-28

    Theoretically, you should be able to write to a raw device on the receiver side. You would need to set the parent directory of the device in question as one of the destination directories, and the name of the file to send would have to have the same name as the device.

    Be warned, however, that having /dev as a destionation directory could open up the possibility of other devices being written to. So if there's a typo in the name of the file you're sending, you could end up overwriting the wrong device and corrupting your disk.

    On the sender side, sending of special files is not supported. You would need to copy the device to a local file before sending it.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.