brock@arden:~/sysadmin/notes/tryit$ od -A d -t a boot.rootdir.img | grep "C O P" 0000832 C O P Y I N ~ 1 L I N sp nul nul & can brock@arden:~/sysadmin/notes/tryit$ od -j 832 -A d -t a boot.rootdir.img | head -10 0000832 C O P Y I N ~ 1 L I N sp nul nul & can 0000848 S J S J nul nul & can S J [ dle enq I nul nul 0000864 A b nul o nul o nul t nul c nul si nul enq o nul 0000880 d nul e nul . nul b nul i nul nul nul n nul nul nul 0000896 B O O T C O D E B I N sp nul d # can 0000912 S J S J nul nul # can S J M ff ff F nul nul 0000928 A c nul m nul d nul l nul i nul si nul si n nul 0000944 e nul . nul t nul x nul t nul nul nul nul nul del del 0000960 C M D L I N E sp T X T sp nul nul si etb 0000976 S J S J nul nul si etb S J enq nul bs nul nul nul brock@arden:~/sysadmin/notes/tryit$ od -j 800 -A d -t a boot.rootdir.img | head -10 0000800 A C nul O nul P nul Y nul I nul si nul dc2 N nul 0000816 G nul . nul l nul i nul n nul nul nul u nul x nul 0000832 C O P Y I N ~ 1 L I N sp nul nul & can 0000848 S J S J nul nul & can S J [ dle enq I nul nul 0000864 A b nul o nul o nul t nul c nul si nul enq o nul 0000880 d nul e nul . nul b nul i nul nul nul n nul nul nul 0000896 B O O T C O D E B I N sp nul d # can 0000912 S J S J nul nul # can S J M ff ff F nul nul 0000928 A c nul m nul d nul l nul i nul si nul si n nul 0000944 e nul . nul t nul x nul t nul nul nul nul nul del del brock@arden:~/sysadmin/notes/tryit$ od -j 768 -A d -t a boot.rootdir.img | head -10 [ 0000768 B C M 2 7 0 ~ 4 D T B sp nul d $ can 0000784 S J S J nul nul $ can S J W ff | ; nul nul 0000800 A C nul O nul P nul Y nul I nul si nul dc2 N nul 0000816 G nul . nul l nul i nul n nul nul nul u nul x nul 0000832 C O P Y I N ~ 1 L I N sp nul nul & can 0000848 S J S J nul nul & can S J [ dle enq I nul nul 0000864 A b nul o nul o nul t nul c nul si nul enq o nul 0000880 d nul e nul . nul b nul i nul nul nul n nul nul nul 0000896 B O O T C O D E B I N sp nul d # can 0000912 S J S J nul nul # can S J M ff ff F nul nul brock@arden:~/sysadmin/notes/tryit$ bash: [: missing `]' brock@arden:~/sysadmin/notes/tryit$ brock@arden:~/sysadmin/notes/tryit$ brock@arden:~/sysadmin/notes/tryit$ brock@arden:~/sysadmin/notes/tryit$ brock@arden:~/sysadmin/notes/tryit$ brock@arden:~/sysadmin/notes/tryit$ brock@arden:~/sysadmin/notes/tryit$ brock@arden:~/sysadmin/notes/tryit$ brock@arden:~/sysadmin/notes/tryit$ brock@arden:~/sysadmin/notes/tryit$ brock@arden:~/sysadmin/notes/tryit$ brock@arden:~/sysadmin/notes/tryit$ brock@arden:~/sysadmin/notes/tryit$ od -j 768 -A d -t a boot.rootdir.img 0000768 B C M 2 7 0 ~ 4 D T B sp nul d $ can 0000784 S J S J nul nul $ can S J W ff | ; nul nul 0000800 A C nul O nul P nul Y nul I nul si nul dc2 N nul 0000816 G nul . nul l nul i nul n nul nul nul u nul x nul 0000832 C O P Y I N ~ 1 L I N sp nul nul & can 0000848 S J S J nul nul & can S J [ dle enq I nul nul 0000864 A b nul o nul o nul t nul c nul si nul enq o nul 0000880 d nul e nul . nul b nul i nul nul nul n nul nul nul 0000896 B O O T C O D E B I N sp nul d # can 0000912 S J S J nul nul # can S J M ff ff F nul nul brock@arden:~/sysadmin/notes/tryit$ od -j 800 -N 32 -N -A d -t a boot.rootdir.img od: invalid -N argument '-A' brock@arden:~/sysadmin/notes/tryit$ od -j 800 -N 32 -A d -t a boot.rootdir.img 0000800 A C nul O nul P nul Y nul I nul si nul dc2 N nul 0000816 G nul . nul l nul i nul n nul nul nul u nul x nul 0000832 brock@arden:~/sysadmin/notes/tryit$ od -j 800 -N 64 -A d -t a boot.rootdir.img 0000800 A C nul O nul P nul Y nul I nul si nul dc2 N nul 0000816 G nul . nul l nul i nul n nul nul nul u nul x nul 0000832 C O P Y I N ~ 1 L I N sp nul nul & can 0000848 S J S J nul nul & can S J [ dle enq I nul nul 0000864 brock@arden:~/sysadmin/notes/tryit$ od -j 800 -N 64 -A d -t x1 boot.rootdir.img 0000800 41 43 00 4f 00 50 00 59 00 49 00 0f 00 12 4e 00 0000816 47 00 2e 00 6c 00 69 00 6e 00 00 00 75 00 78 00 0000832 43 4f 50 59 49 4e 7e 31 4c 49 4e 20 00 00 26 98 0000848 53 4a 53 4a 00 00 26 98 53 4a 5b 10 05 49 00 00 0000864 brock@arden:~/sysadmin/notes/tryit$ dd if=rootdir.img of=copying.linux.direntry.txt bs=1 skip=832 count=32 dd: failed to open ‘rootdir.img’: No such file or directory brock@arden:~/sysadmin/notes/tryit$ pwd /home/brock/sysadmin/notes/tryit brock@arden:~/sysadmin/notes/tryit$ cd .. brock@arden:~/sysadmin/notes$ ls boot.img find16b.html Mar21.html sysadmin.notes day08.html find16b.html~ Mar28.html systemd df-out.txt find16.html Mar28.html~ #systemd-commands# encryption.html findfile.html messaging systemd-commands fat16.txt finishing.txt morenotes systeminstall.html Feb07 googlechrome.html mygpg.txt tryit Feb07.html google-picts networking tryit2 Feb14.html google.txt processes.html tryit-old Feb21.html harddrive.txt processes.txt udev-out.txt Feb28.html hardware python VirtualBox.picts filesearch.html keys readings virtualbox.txt files.html keysigning.html security WhatIsAFile filesystem.notes lvdisplay-out.txt ssh.html #WhatIsAFile# find16a.html Mar07.html ssh-maybe.html Wired connection 1 brock@arden:~/sysadmin/notes$ cd tryit2 brock@arden:~/sysadmin/notes/tryit2$ dd if=rootdir.img of=copying.linux.direntry.txt bs=1 skip=832 count=32 dd: failed to open ‘rootdir.img’: No such file or directory brock@arden:~/sysadmin/notes/tryit2$ ls boot.BPB.img cluster2549 issue.txt.sect RUNOUT-00.TXT~ boot.img #cluster2549# qsect RUNOUT-01.TXT boot.img.fat cluster2549-sector1 rsect RUNOUT-01.TXT~ boot.rootdir.asc issue.txt.cluster #RUNOUT-00.TXT# RUNOUT-02.TXT boot.rootdir.img issue.txt.direntry.txt RUNOUT-00.TXT RUNOUT-02.TXT~ brock@arden:~/sysadmin/notes/tryit2$ dd if=boot.rootdir.img of=copying.linux.direntry.txt bs=1 skip=832 count=32 32+0 records in 32+0 records out 32 bytes (32 B) copied, 0.0311975 s, 1.0 kB/s brock@arden:~/sysadmin/notes/tryit2$ od -A d -j 26 -N 2 -t d2 copying.linux.direntry.txt 0000026 4187 0000028 brock@arden:~/sysadmin/notes/tryit2$ od -A d -j 28 -N 4 -t d4 copying.linux.direntry.txt 0000028 18693 0000032 brock@arden:~/sysadmin/notes/tryit2$ CopyingLinuxCluster1=4187 brock@arden:~/sysadmin/notes/tryit2$ od -A d -j $CopyingLinuxCluster1 -N 1 -t d2 boot.img.fat 0004187 0 0004188 brock@arden:~/sysadmin/notes/tryit2$ od -A d -j 4185 -N 1 -t d2 boot.img.fat 0004185 0 0004186 brock@arden:~/sysadmin/notes/tryit2$ brock@arden:~/sysadmin/notes/tryit2$ dc 4178 2 * f 8356 brock@arden:~/sysadmin/notes/tryit2$ od -A d -j 8356 -N 1 -t d2 boot.img.fat 0008356 83 0008357 brock@arden:~/sysadmin/notes/tryit2$ od -A d -j 0 -t d2 boot.img.fat | head -50 0000000 -8 -1 -1 0 0 -1 7 8 0000016 9 10 11 12 13 14 15 16 0000032 17 18 19 20 21 22 23 24 0000048 25 26 27 28 30 4234 31 32 0000064 33 34 35 36 37 38 39 40 0000080 41 42 43 44 45 46 47 48 0000096 49 50 51 52 53 54 55 56 0000112 57 58 59 60 61 62 63 64 0000128 65 66 67 68 69 70 71 72 0000144 73 74 75 76 77 78 79 80 0000160 81 82 83 84 85 86 87 88 0000176 89 90 91 92 93 94 95 96 0000192 97 98 99 100 101 102 103 104 0000208 105 106 107 108 109 110 111 112 0000224 113 114 115 116 117 118 119 120 0000240 121 122 123 124 125 126 127 128 0000256 129 130 131 132 133 134 135 136 0000272 137 138 139 140 141 142 143 144 0000288 145 146 147 148 149 150 151 152 0000304 153 154 155 156 157 158 159 160 0000320 161 162 163 164 165 166 167 168 0000336 169 170 171 172 173 174 175 176 0000352 177 178 179 180 181 182 183 184 0000368 185 186 187 188 189 190 191 192 0000384 193 194 195 196 197 198 199 200 0000400 201 202 203 204 205 206 207 208 0000416 209 210 211 212 213 214 215 216 0000432 217 218 219 220 221 222 223 224 0000448 225 226 227 228 229 230 231 232 0000464 233 234 235 236 237 238 239 240 0000480 241 242 243 244 245 246 247 248 0000496 249 250 251 252 253 254 255 256 0000512 257 258 259 260 261 262 263 264 0000528 265 266 267 268 269 270 271 272 0000544 273 274 275 276 277 278 279 280 0000560 281 282 283 284 285 286 287 288 0000576 289 290 291 292 293 294 295 296 0000592 297 298 299 300 301 302 303 304 0000608 305 306 307 308 309 310 311 312 0000624 313 314 315 316 317 318 319 320 0000640 321 322 323 324 325 326 327 328 0000656 329 330 331 332 333 334 335 336 0000672 337 338 339 340 341 342 343 344 0000688 345 346 347 348 349 350 351 -1 0000704 353 354 355 356 357 358 359 360 0000720 361 362 363 364 365 366 367 368 0000736 369 370 371 372 373 374 375 376 0000752 377 378 379 380 381 382 383 384 0000768 385 386 387 388 389 390 391 392 0000784 393 394 395 396 397 398 399 400 brock@arden:~/sysadmin/notes/tryit2$ od -A d -j 8000 -t d2 boot.img.fat | head -20 0008000 4001 4002 4003 4004 4005 4006 4007 4008 0008016 4009 4010 4011 4012 4013 4014 4015 4016 0008032 4017 4018 4019 4020 4021 4022 4023 4024 0008048 4025 4026 4027 4028 4029 4030 4031 4032 0008064 4033 4034 4035 4036 4037 4038 4039 4040 0008080 4041 4042 4043 4044 4045 4046 4047 4048 0008096 4049 4050 4051 4052 4053 4054 4055 4056 0008112 4057 4058 4059 4060 4061 4062 4063 4064 0008128 4065 4066 4067 4068 4069 4070 4071 4072 0008144 4073 4074 4075 4076 4077 4078 4079 4080 0008160 4081 4082 4083 4084 4085 4086 4087 4088 0008176 4089 4090 4091 4092 4093 4094 4095 4096 0008192 4097 4098 4099 4100 4101 4102 4103 4104 0008208 4105 4106 4107 4108 4109 4110 4111 4112 0008224 4113 4114 4115 4116 4117 4118 4119 4120 0008240 4121 4122 4123 4124 4125 4126 4127 4128 0008256 4129 4130 4131 4132 4133 4134 4135 4136 0008272 4137 4138 4139 4140 4141 4142 4143 4144 0008288 4145 4146 4147 4148 4149 4150 4151 4152 0008304 4153 4154 4155 4156 4157 4158 4159 4160 brock@arden:~/sysadmin/notes/tryit2$ od -A d -j 8300 -t d2 boot.img.fat | head -20 0008300 4151 4152 4153 4154 4155 4156 4157 4158 0008316 4159 4160 4161 4162 4163 4164 4165 4166 0008332 4167 4168 4169 4170 4171 4172 4173 4174 0008348 4175 4176 4177 4178 4179 4180 4181 4182 0008364 4183 4184 4185 4186 -1 4188 4189 -1 0008380 4191 4192 4193 4194 4195 4196 -1 -1 0008396 -1 -1 -1 -1 -1 -1 -1 -1 * 0008476 -1 -1 4241 -1 -1 -1 -1 -1 0008492 -1 -1 -1 -1 -1 -1 -1 -1 * 0008588 0 0 0 0 0 0 0 0 * 0016380 0 0 0016384 brock@arden:~/sysadmin/notes/tryit2$ od -j 832 -N 32 -A d -t n2 boot.rootdir.img od: invalid character 'n' in type string ‘n2’ brock@arden:~/sysadmin/notes/tryit2$ od -j 832 -N 32 -A d -t d2 boot.rootdir.img 0000832 20291 22864 20041 12670 18764 8270 0 -26586 0000848 19027 19027 0 -26586 19027 4187 18693 0 0000864 brock@arden:~/sysadmin/notes/tryit2$ od -A d -j 8374 -N 2 -t d2 boot.img.fat 0008374 4188 0008376 brock@arden:~/sysadmin/notes/tryit2$ CopyingLinuxCluster1=4187 brock@arden:~/sysadmin/notes/tryit2$ od -A d -j $$(( $CopyingLinuxCluster * 2 )) -N 2 -t d2 boot.img.fat bash: syntax error near unexpected token `(' brock@arden:~/sysadmin/notes/tryit2$ od -A d -j $(( $CopyingLinuxCluster * 2 )) -N 2 -t d2 boot.img.fat bash: * 2 : syntax error: operand expected (error token is "* 2 ") brock@arden:~/sysadmin/notes/tryit2$ od -A d -j $(( $CopyingLinuxCluster \* 2 )) -N 2 -t d2 boot.img.fat bash: \* 2 : syntax error: operand expected (error token is "\* 2 ") brock@arden:~/sysadmin/notes/tryit2$ od -A d -j $(( $CopyingLinuxCluster1 \* 2 )) -N 2 -t d2 boot.img.fat bash: 4187 \* 2 : syntax error: invalid arithmetic operator (error token is "\* 2 ") brock@arden:~/sysadmin/notes/tryit2$ od -A d -j $(( $CopyingLinuxCluster1 * 2 )) -N 2 -t d2 boot.img.fat 0008374 4188 0008376 brock@arden:~/sysadmin/notes/tryit2$ CopyingLinuxCluster1=4187 brock@arden:~/sysadmin/notes/tryit2$ od -A d -j $(( $CopyingLinuxCluster1 * 2 )) -N 2 -t d2 boot.img.fat 0008374 4188 0008376 brock@arden:~/sysadmin/notes/tryit2$ CopyingLinuxCluster2=4188 brock@arden:~/sysadmin/notes/tryit2$ od -A d -j $(( $CopyingLinuxCluster2 * 2 )) -N 2 -t d2 boot.img.fat 0008376 4189 0008378 brock@arden:~/sysadmin/notes/tryit2$ CopyingLinuxCluster3=4189 brock@arden:~/sysadmin/notes/tryit2$ od -A d -j $(( $CopyingLinuxCluster3 * 2 )) -N 2 -t d2 boot.img.fat 0008378 -1 0008380 brock@arden:~/sysadmin/notes/tryit2$ BPB_SecPerClus=16 brock@arden:~/sysadmin/notes/tryit2$ FirstDataSection=97 brock@arden:~/sysadmin/notes/tryit2$ function DataSector2Cluster() > { > local result=$(( ( ( $1 - 2 ) * $BPB_SecPerClus ) + $FirstDataSector )) > echo "$result" > } brock@arden:~/sysadmin/notes/tryit2$ DataSector2Cluster $CopyingLinuxCluster1 bash: ( ( 4187 - 2 ) * 16 ) + : syntax error: operand expected (error token is "+ ") brock@arden:~/sysadmin/notes/tryit2$ FirstDataSector=97 brock@arden:~/sysadmin/notes/tryit2$ DataSector2Cluster $CopyingLinuxCluster1 67057 brock@arden:~/sysadmin/notes/tryit2$ DataSector2Cluster $CopyingLinuxCluster2 67073 brock@arden:~/sysadmin/notes/tryit2$ DataSector2Cluster $CopyingLinuxCluster3 67089 brock@arden:~/sysadmin/notes/tryit2$ dd if=boot.img of=CopyingLinux1 skip=67057 bs=512 count=8 8+0 records in 8+0 records out 4096 bytes (4.1 kB) copied, 0.0364037 s, 113 kB/s brock@arden:~/sysadmin/notes/tryit2$ dd if=boot.img of=CopyingLinux2 skip=67073 bs=512 count=8 8+0 records in 8+0 records out 4096 bytes (4.1 kB) copied, 0.040988 s, 99.9 kB/s brock@arden:~/sysadmin/notes/tryit2$ dd if=boot.img of=CopyingLinux3 skip=67089 bs=512 count=8 8+0 records in 8+0 records out 4096 bytes (4.1 kB) copied, 0.0357325 s, 115 kB/s brock@arden:~/sysadmin/notes/tryit2$ dd if=boot.img of=CopyingLinux1 skip=67057 bs=512 count=16 16+0 records in 16+0 records out 8192 bytes (8.2 kB) copied, 0.0257388 s, 318 kB/s brock@arden:~/sysadmin/notes/tryit2$ dd if=boot.img of=CopyingLinux2 skip=67073 bs=512 count=16 16+0 records in 16+0 records out 8192 bytes (8.2 kB) copied, 0.0349236 s, 235 kB/s brock@arden:~/sysadmin/notes/tryit2$ dd if=boot.img of=CopyingLinux3 skip=67089 bs=512 count=16 16+0 records in 16+0 records out 8192 bytes (8.2 kB) copied, 0.0333907 s, 245 kB/s brock@arden:~/sysadmin/notes/tryit2$ ls -l CopyingLinux* -rw-r--r-- 1 brock users 8192 Apr 24 22:30 CopyingLinux1 -rw-r--r-- 1 brock users 8192 Apr 24 22:31 CopyingLinux2 -rw-r--r-- 1 brock users 8192 Apr 24 22:31 CopyingLinux3 brock@arden:~/sysadmin/notes/tryit2$ cat CopyingLinux? > CopyingLinuxClusters brock@arden:~/sysadmin/notes/tryit2$ ls -l CopyingLinux* -rw-r--r-- 1 brock users 8192 Apr 24 22:30 CopyingLinux1 -rw-r--r-- 1 brock users 8192 Apr 24 22:31 CopyingLinux2 -rw-r--r-- 1 brock users 8192 Apr 24 22:31 CopyingLinux3 -rw-r--r-- 1 brock users 24576 Apr 24 22:32 CopyingLinuxClusters brock@arden:~/sysadmin/notes/tryit2$ dd if=CopyingLinuxClusters of=COPYING.linux bs=1 count=18693 18693+0 records in 18693+0 records out 18693 bytes (19 kB) copied, 0.0583077 s, 321 kB/s brock@arden:~/sysadmin/notes/tryit2$ ls -l C* -rw-r--r-- 1 brock users 18693 Apr 24 22:33 COPYING.linux -rw-r--r-- 1 brock users 8192 Apr 24 22:30 CopyingLinux1 -rw-r--r-- 1 brock users 8192 Apr 24 22:31 CopyingLinux2 -rw-r--r-- 1 brock users 8192 Apr 24 22:31 CopyingLinux3 -rw-r--r-- 1 brock users 24576 Apr 24 22:32 CopyingLinuxClusters brock@arden:~/sysadmin/notes/tryit2$ cksum COPYING.linux 2507618403 18693 COPYING.linux brock@arden:~/sysadmin/notes/tryit2$ exit exit Process shell<1> finished