How to dd an image and save it to tftp without saving into local machine?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I want dd an image and save it to remote using tftp for example I'm trying to do



"dd if=/dev/mtd2" | save it to tftp server.


the direction of the file I have used in that code is wrong I'm trying my best to learn how it can be, this is the wrong code I made my self I mean half of it :'(



"dd if=/dev/mtd2" | tftp -l -p RootFS.bin 10.10.233.238 | dd of=File.bin 


`



also if it's possible to transfer multiple folders and save it as one file on tftp for e.g I want to copy given below



/ #



or these directories



bin dev etc lib mnt opt proc root sbin sys tmp usr var



and save it as



fielname.bin



on



tftp server



My wrong code is




tftp -l /bin && /dev/ && /etc/ && /lib/ && /mnt/ && /opt/ && /proc/ &&
/root/ && /sbin/ && /sys/ && /tmp/ && / usr/ && /var/ -r Linux.bin -p
10.10.233.238











share|improve this question
























  • Dear Can you mention the command for multiple directories transfer at once also.

    – noob-scientist
    Jul 26 '17 at 5:31

















2















I want dd an image and save it to remote using tftp for example I'm trying to do



"dd if=/dev/mtd2" | save it to tftp server.


the direction of the file I have used in that code is wrong I'm trying my best to learn how it can be, this is the wrong code I made my self I mean half of it :'(



"dd if=/dev/mtd2" | tftp -l -p RootFS.bin 10.10.233.238 | dd of=File.bin 


`



also if it's possible to transfer multiple folders and save it as one file on tftp for e.g I want to copy given below



/ #



or these directories



bin dev etc lib mnt opt proc root sbin sys tmp usr var



and save it as



fielname.bin



on



tftp server



My wrong code is




tftp -l /bin && /dev/ && /etc/ && /lib/ && /mnt/ && /opt/ && /proc/ &&
/root/ && /sbin/ && /sys/ && /tmp/ && / usr/ && /var/ -r Linux.bin -p
10.10.233.238











share|improve this question
























  • Dear Can you mention the command for multiple directories transfer at once also.

    – noob-scientist
    Jul 26 '17 at 5:31













2












2








2








I want dd an image and save it to remote using tftp for example I'm trying to do



"dd if=/dev/mtd2" | save it to tftp server.


the direction of the file I have used in that code is wrong I'm trying my best to learn how it can be, this is the wrong code I made my self I mean half of it :'(



"dd if=/dev/mtd2" | tftp -l -p RootFS.bin 10.10.233.238 | dd of=File.bin 


`



also if it's possible to transfer multiple folders and save it as one file on tftp for e.g I want to copy given below



/ #



or these directories



bin dev etc lib mnt opt proc root sbin sys tmp usr var



and save it as



fielname.bin



on



tftp server



My wrong code is




tftp -l /bin && /dev/ && /etc/ && /lib/ && /mnt/ && /opt/ && /proc/ &&
/root/ && /sbin/ && /sys/ && /tmp/ && / usr/ && /var/ -r Linux.bin -p
10.10.233.238











share|improve this question
















I want dd an image and save it to remote using tftp for example I'm trying to do



"dd if=/dev/mtd2" | save it to tftp server.


the direction of the file I have used in that code is wrong I'm trying my best to learn how it can be, this is the wrong code I made my self I mean half of it :'(



"dd if=/dev/mtd2" | tftp -l -p RootFS.bin 10.10.233.238 | dd of=File.bin 


`



also if it's possible to transfer multiple folders and save it as one file on tftp for e.g I want to copy given below



/ #



or these directories



bin dev etc lib mnt opt proc root sbin sys tmp usr var



and save it as



fielname.bin



on



tftp server



My wrong code is




tftp -l /bin && /dev/ && /etc/ && /lib/ && /mnt/ && /opt/ && /proc/ &&
/root/ && /sbin/ && /sys/ && /tmp/ && / usr/ && /var/ -r Linux.bin -p
10.10.233.238








linux dd remote tftp arch-arm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 9 at 14:34









Rui F Ribeiro

41.9k1483142




41.9k1483142










asked Jul 24 '17 at 19:51









noob-scientistnoob-scientist

133




133












  • Dear Can you mention the command for multiple directories transfer at once also.

    – noob-scientist
    Jul 26 '17 at 5:31

















  • Dear Can you mention the command for multiple directories transfer at once also.

    – noob-scientist
    Jul 26 '17 at 5:31
















Dear Can you mention the command for multiple directories transfer at once also.

– noob-scientist
Jul 26 '17 at 5:31





Dear Can you mention the command for multiple directories transfer at once also.

– noob-scientist
Jul 26 '17 at 5:31










1 Answer
1






active

oldest

votes


















3














This is a tricky one, and it also appears you're using an embedded device (by the use of /dev/mtd).



It looks like you're trying to take an image of a block device, and create a 'bin' file on another machine. You may be overthinking this - a block device is openable as a file, and can be read by normal tools.



If that is what you are trying to achieve, the command you want to run is



tftp -l /dev/mtd2 -r file.bin -p 10.10.233.238



This opens the file /dev/mtd2 (even though it's a block device) and saves it as 'file.bin' on 10.10.233.238.






share|improve this answer

























  • Dear check the question again and see I've change it to /dev/mtd2 as I mistakenly use the wrong name before. Plz also check this satsig.net/cgi-bin/yabb/YaBB.pl?num=1249745511

    – noob-scientist
    Jul 24 '17 at 20:40







  • 2





    I updated it, but the concept is the same - you can tread /dev/mtd2 as a file. There is no need to dd it.

    – xrobau
    Jul 24 '17 at 23:04











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f381523%2fhow-to-dd-an-image-and-save-it-to-tftp-without-saving-into-local-machine%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














This is a tricky one, and it also appears you're using an embedded device (by the use of /dev/mtd).



It looks like you're trying to take an image of a block device, and create a 'bin' file on another machine. You may be overthinking this - a block device is openable as a file, and can be read by normal tools.



If that is what you are trying to achieve, the command you want to run is



tftp -l /dev/mtd2 -r file.bin -p 10.10.233.238



This opens the file /dev/mtd2 (even though it's a block device) and saves it as 'file.bin' on 10.10.233.238.






share|improve this answer

























  • Dear check the question again and see I've change it to /dev/mtd2 as I mistakenly use the wrong name before. Plz also check this satsig.net/cgi-bin/yabb/YaBB.pl?num=1249745511

    – noob-scientist
    Jul 24 '17 at 20:40







  • 2





    I updated it, but the concept is the same - you can tread /dev/mtd2 as a file. There is no need to dd it.

    – xrobau
    Jul 24 '17 at 23:04















3














This is a tricky one, and it also appears you're using an embedded device (by the use of /dev/mtd).



It looks like you're trying to take an image of a block device, and create a 'bin' file on another machine. You may be overthinking this - a block device is openable as a file, and can be read by normal tools.



If that is what you are trying to achieve, the command you want to run is



tftp -l /dev/mtd2 -r file.bin -p 10.10.233.238



This opens the file /dev/mtd2 (even though it's a block device) and saves it as 'file.bin' on 10.10.233.238.






share|improve this answer

























  • Dear check the question again and see I've change it to /dev/mtd2 as I mistakenly use the wrong name before. Plz also check this satsig.net/cgi-bin/yabb/YaBB.pl?num=1249745511

    – noob-scientist
    Jul 24 '17 at 20:40







  • 2





    I updated it, but the concept is the same - you can tread /dev/mtd2 as a file. There is no need to dd it.

    – xrobau
    Jul 24 '17 at 23:04













3












3








3







This is a tricky one, and it also appears you're using an embedded device (by the use of /dev/mtd).



It looks like you're trying to take an image of a block device, and create a 'bin' file on another machine. You may be overthinking this - a block device is openable as a file, and can be read by normal tools.



If that is what you are trying to achieve, the command you want to run is



tftp -l /dev/mtd2 -r file.bin -p 10.10.233.238



This opens the file /dev/mtd2 (even though it's a block device) and saves it as 'file.bin' on 10.10.233.238.






share|improve this answer















This is a tricky one, and it also appears you're using an embedded device (by the use of /dev/mtd).



It looks like you're trying to take an image of a block device, and create a 'bin' file on another machine. You may be overthinking this - a block device is openable as a file, and can be read by normal tools.



If that is what you are trying to achieve, the command you want to run is



tftp -l /dev/mtd2 -r file.bin -p 10.10.233.238



This opens the file /dev/mtd2 (even though it's a block device) and saves it as 'file.bin' on 10.10.233.238.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jul 24 '17 at 23:04

























answered Jul 24 '17 at 20:31









xrobauxrobau

28926




28926












  • Dear check the question again and see I've change it to /dev/mtd2 as I mistakenly use the wrong name before. Plz also check this satsig.net/cgi-bin/yabb/YaBB.pl?num=1249745511

    – noob-scientist
    Jul 24 '17 at 20:40







  • 2





    I updated it, but the concept is the same - you can tread /dev/mtd2 as a file. There is no need to dd it.

    – xrobau
    Jul 24 '17 at 23:04

















  • Dear check the question again and see I've change it to /dev/mtd2 as I mistakenly use the wrong name before. Plz also check this satsig.net/cgi-bin/yabb/YaBB.pl?num=1249745511

    – noob-scientist
    Jul 24 '17 at 20:40







  • 2





    I updated it, but the concept is the same - you can tread /dev/mtd2 as a file. There is no need to dd it.

    – xrobau
    Jul 24 '17 at 23:04
















Dear check the question again and see I've change it to /dev/mtd2 as I mistakenly use the wrong name before. Plz also check this satsig.net/cgi-bin/yabb/YaBB.pl?num=1249745511

– noob-scientist
Jul 24 '17 at 20:40






Dear check the question again and see I've change it to /dev/mtd2 as I mistakenly use the wrong name before. Plz also check this satsig.net/cgi-bin/yabb/YaBB.pl?num=1249745511

– noob-scientist
Jul 24 '17 at 20:40





2




2





I updated it, but the concept is the same - you can tread /dev/mtd2 as a file. There is no need to dd it.

– xrobau
Jul 24 '17 at 23:04





I updated it, but the concept is the same - you can tread /dev/mtd2 as a file. There is no need to dd it.

– xrobau
Jul 24 '17 at 23:04

















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f381523%2fhow-to-dd-an-image-and-save-it-to-tftp-without-saving-into-local-machine%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?