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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
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.