- swapfile
166lsblk
167sudo dd if=/dev/zero of=/swapfile bsize=1M count=1000
168man dd
169sudo dd if=/dev/zero of=/swapfile bs=1M count=1000
170ls /
171sudo mkswap /swapfile
172sudo swapon /swapfile
173sudo chmod 600 /swapfile
174sudo swapon /swapfile
175swapon -s
- entire copy of disk b to disk c
176fdisk /dev/sdb
177sudo fdisk /dev/sdb
178lsblk
179sudo mkfs.btrfs /dev/sdb1
180sudo mkfs.xfs /dev/sdb6
181sudo mkfs.ext4 /dev/sdb5
182lsblk -f
183sudo mkdir /devsdb1
184sudo mkdir /devsdb5
185sudo mkdir /devsdb6
186sudo mount /dev/sdb1 /devsdb1
187sudo mount /dev/sdb5 /devsdb5
188sudo mount /dev/sdb6 /devsdb6
189sudo touch /devsdb6/slash-volgens-marvy
190sudo touch /devsdb5/noel-gaapt
191sudo touch /devsdb1/sam-kijkt-bedenkelijk
192sudo init 6
193lsblk
194df
195dd if=/dev/sdb of=/dev/sdc bs=1M
196sudo dd if=/dev/sdb of=/dev/sdc bs=1M
197lsblk
198lsblk -f
199sudo mount /dev/sdc5 /devsdb5
200sudo mount /dev/sdc6 /devsdb6
201sudo mount /dev/sdc1 /devsdb1
202ls /devsdb1
203ls /devsdb5
204ls /devsdb6
- safeguarding a bootsector
205dd if=/dev/sdc of=bootsector bs=1M count=1
206sudo dd if=/dev/sdc of=bootsector bs=1M count=1
220sudo dd if=/dev/zero of=/dev/sdc bs=1M count=1
221sudo hexedit /dev/sdc
222sudo dd if=/dev/random of=/dev/sdc bs=1M count=1
223lsblk
224sudo dd of=/dev/sdc if=bootsector bs=1M count=1
225lsblk
226dd if=/dev/random of=/dev/pts/1 bs=1 count=1M
227history
- copy ssd to ssd
terminal 1:$ sudo dd if=/dev/sdb of=/dev/sda bs=1G
terminal 2:$ watch -n600 sudo kill -USR1 $(pgrep ^dd$)
Every 600.0s:**sudo kill -USR1 $(pgrep ^dd$)
**
na 15 min: (202 GB, 188 GiB) copied, 875.616 s, 231 MB/s
na 90 min: (912 GB, 849 GiB) copied, 5181.38 s, 176 MB/s
na 100 min: (1.0 TB, 941 GiB) copied, 5778.7 s, 175 MB/s
enzoverder: (1.1 TB, 1.0 TiB) copied, 6382.23 s, 174 MB/s
400 min voor 4TB --> nog 5 uur >> klaar om 23h45
Begonnen om 17uur
1 Gbyte elke 6 seconden = 166 MByte per seconde >> 1.5 Gbit/s
10 Gbyte per minuut
100 Gbyte elke 10 minuten
600 Gbyte per uur
2400 GByte per 4 uur
4 TeraByte per 6u40min