Download The document as a pdf

Document related concepts
Transcript
Appendix D. Various "Homemade" Solutions
The first thing you have to do is to copy the contents of that CD over to your hard drive. You put the
CD into the CD-ROM and then mount /cdrom
•
You can check if the CD is mounted with the command df -h. Look at the line
/dev/cdrom
•
692M
692M
0 100% /cdrom
After that you copy the old version from the CD over to you hard drive with the command
dd if=/dev/cdrom of=/skole/tjener/home0/iso/debian-edu_sarge-i386-pr05.iso
. Replace the pr05 with the number of the new version that you want to download.
•
Now all you have to do is execute the rsync command.
•
If everything works the way it’s supposed to do, you will see the following on the screen:
klaus@tjener:/skole/tjener/home0/iso$ rsync --no-whole-file
\--progress -vv --stats
\developer.skolelinux.no::skolelinux-cd/debian-edu_sarge-i386-pr05.iso
\/skole/tjener/home0/iso/skolelinux-i386-pr44.iso
opening tcp connection to developer.skolelinux.no port 873
/skole/tjener/home0/iso/woody-i386-1.raw
679182336 100%
1.96MB/s
0:05:30
rsync[1396] (receiver) heap statistics:
arena:
115288
(bytes from sbrk)
ordblks:
2
(chunks not in use)
smblks:
0
hblks:
0
(chunks from mmap)
hblkhd:
0
(bytes from mmap)
usmblks:
0
fsmblks:
0
uordblks:
101336
(bytes used)
fordblks:
13952
(bytes free)
keepcost:
13904
(bytes in releasable chunk)
Number of files: 1
Number of files transferred: 1
Total file size: 679182336 bytes
Total transferred file size: 679182336 bytes
Literal data: 21512192 bytes
Matched data: 657670144 bytes
File list size: 35
Total bytes written: 248397
Total bytes read: 16827778
wrote 248397 bytes read 16827778 bytes 42007.81 bytes/sec
total size is 679182336 speedup is 39.77
176