| [ CnUnix ] in KIDS 글 쓴 이(By): hello (Yang S.S.) 날 짜 (Date): 1996년09월12일(목) 09시55분31초 KDT 제 목(Title): [Re] dd. 명령. 음.. dd명령은 어떤 것을 image로 뜰때 사용합니다. 예를들면 floppy를 diskcopy한다던가... 아님. 화일을 아무런 조작하지 않고 tape등에 담을 때 사용합니다. 그리고 cat명령은 그냥 표준입력으로 받아서 표준 출력으로 출력하는 것이죠. 물론 파라메터가 있을 경우 파라메타의 이름을 가진 화일을 입력으로하고 표준 출력으로 출력하죠. 위에서 말씀하신 경우는 어떤 경우냐하면요. tar로 압축된것의 size가 커서 하나의 tape등에 들어가지 않을때 disk로 tar를 한다음. split등의 명령을 사용하여 임의적으로 disk에있는 화일을 원하는 file size로 나눈뒤에 각각을 dd명령으로 tape에 옮김니다. 이것을 다시 받을때는 ... tape에 있는 것을 dd로 다시 디스크로 받은 후에 순서를 맞추어 합쳐야 되는 거죠. 이 합칠때 보통 간단하게 사용할 수 있는 것이 cat명령이죠. ex) cat file1 file2 file3 > resultfile 하면 첫번째로 file1, 그다음으로 file2 마지막으로 file3 순으로 합쳐서 resultfile 이란 화일로 만들죠. 이렇게 만들어진것을 다시 tar명령으로 tar xvf resultfile하면 되죠. 그런데..레님의 경우와 같은것을 tar에서 설명을 해놨더군요... 그래서 그 부분을 발췌해 봅니다. If there are multiple archive files on a tape, each is separated from the following one by an EOF marker. tar does not read the EOF mark on the tape after it finishes reading an archive file because tar looks for a special header to decide when it has reached the end of the archive. Now if you try to use tar to read the next archive file from the tape, tar does not know enough to skip over the EOF mark and tries to read the EOF mark as an archive instead. The result of this is an error message from tar to the effect: tar: blocksize=0 This means that to read another archive from the tape, you must skip over the EOF marker before starting another tar command. You can accomplish this using the mt(1) command, as shown in the example below. Assume that you are reading from /dev/rmt/0n. example% tar xvfp /dev/rmt/0n read first archive from tape messages from tar example% mt fsf 1 skip over the end-of-file marker example% tar xvfp /dev/rmt/0n read second archive from tape messages from tar example% 음.. 이러면 해결 될것 같은데... 좋은 결과가 있기를.... ------------------------------------------- 안녕하세요? <o>------< HELLO e-mail : ssyang@metro.telecom.samsung.co.kr ------------------------------------------- |