mkfifo
Par stombi le mardi, 2 août 2005, 00:20 - Console - Lien permanent
J'adore ce genre d'astuces :)
Hi this article was awesome I am using the same technique to image a hard drive to a new one. First i booted both of the laptops to live cd's then i did:
local$ mkfifo ddfifo; dd if=/dev/hda | bzip2 > ddfifo
remote$ nc -l -p 5000 | bunzip2 | dd of=/dev/hda
local$ cat ddfifo | nc remote 5000Now I have my old filesystem perfectly set up on my new laptop....ta da.
Source : ce commentaire
Commentaires
Les pipes c'est toujours aussi agréable !
rrrhhhoooo...lol, j'ai compris que le commentaire... :)
enfin, le commentaire a zeubeubeu quoi..hein ...désolé :) je sors ok :)
nc et dd c'est bien nedit ?
$ nc -l -p 5000
nc: Unrecognized option -l
Usage: nc [-read] [-create]
[-line n | +n] [-do command] [-lm languagemode]
[-svrname name] [-svrcmd command]
[-ask] [-noask] [-timeout seconds]
[-geometry geometry | -g geometry] [-icon | -iconic]
[-wait]
[-V | -version]
[-xrm resourcestring] [-display [host]:server[.screen]]
[--] [file...]
C'est quoi le rapport avec NEdit ?
man nc
...
nc - TCP/IP swiss army knife
man dd
...
dd - convert and copy a file
j'ai du mal à comprendre le principe. Cela marche aussi si l'on a plusieurs partitions? et si les disques ne sont pas de même taille comment ça se passe?