brock@montreat:/var/tmp$ cd /var/tmp brock@montreat:/var/tmp$ ln -s /home/brock//sysadmin/notes/boot.img . brock@montreat:/var/tmp$ ls -l boot.image ls: cannot access boot.image: No such file or directory brock@montreat:/var/tmp$ ls -l total 72976 lrwxrwxrwx 1 brock users 36 Feb 21 13:02 boot.img -> /home/brock//sysadmin/notes/boot.img -rw-r--r-- 1 uncacsci uncacsci 1560 Feb 6 10:57 home01.html -rw-r--r-- 1 uncacsci uncacsci 1555 Feb 6 10:57 home01.html~ -rw-rw-r-- 1 uncacsci uncacsci 1822 Feb 6 11:09 home01redo.html -rw-rw-r-- 1 uncacsci uncacsci 1676 Feb 6 10:58 home01redo.html~ -rw-r--r-- 1 uncacsci uncacsci 1372 Feb 6 11:09 home02.html -rw-r--r-- 1 uncacsci uncacsci 1372 Feb 6 10:57 home02.html~ -rw-rw-r-- 1 uncacsci uncacsci 1354 Feb 6 11:15 home03.html -rw-rw-r-- 1 uncacsci uncacsci 1911 Feb 6 11:15 home03.html~ drwxr-xr-x 11 brock users 4096 Feb 6 21:59 initrd-dir drwxr-xr-x 11 brock users 4096 Feb 6 21:56 initrd.files -rw-r--r-- 1 brock users 20159433 Feb 6 21:54 initrd.img-3.13.0-100-generic -rw-r--r-- 1 brock users 54525440 Feb 6 21:55 initrd.img-3.13.0-100-generic-big brock@montreat:/var/tmp$ ls boot.img boot.img brock@montreat:/var/tmp$ ls -l boot.img lrwxrwxrwx 1 brock users 36 Feb 21 13:02 boot.img -> /home/brock//sysadmin/notes/boot.img brock@montreat:/var/tmp$ dd if=boot.img of=boot.BPB.img bs=512 count=1 1+0 records in 1+0 records out 512 bytes (512 B) copied, 0.000488933 s, 1.0 MB/s brock@montreat:/var/tmp$ od boot.BPB.img 0000000 036353 066620 063153 027163 060546 000164 010002 000001 0000020 000002 000002 174000 000040 000077 000377 000000 000000 0000040 160000 000001 000600 164451 177121 061004 067557 020164 0000060 020040 020040 020040 040506 030524 020066 020040 017416 0000100 055676 126174 140042 005564 132126 135416 000007 010315 0000120 165536 031360 146744 146426 165431 052376 064550 020163 0000140 071551 067040 072157 060440 061040 067557 060564 066142 0000160 020145 064544 065563 020056 050040 062554 071541 020145 0000200 067151 062563 072162 060440 061040 067557 060564 066142 0000220 020145 066146 070157 074560 060440 062156 005015 071160 0000240 071545 020163 067141 020171 062553 020171 067564 072040 0000260 074562 060440 060547 067151 027040 027056 006440 000012 0000300 000000 000000 000000 000000 000000 000000 000000 000000 * 0000760 000000 000000 000000 000000 000000 000000 000000 125125 0001000 brock@montreat:/var/tmp$ od -c boot.BPB.img 0000000 353 < 220 m k f s . f a t \0 002 020 001 \0 0000020 002 \0 002 \0 \0 370 \0 ? \0 377 \0 \0 \0 \0 \0 0000040 \0 340 001 \0 200 001 ) 351 Q 376 004 b o o t 0000060 F A T 1 6 016 037 0000100 276 [ | 254 " 300 t \v V 264 016 273 \a \0 315 020 0000120 ^ 353 360 2 344 315 026 315 031 353 376 T h i s 0000140 i s n o t a b o o t a b l 0000160 e d i s k . P l e a s e 0000200 i n s e r t a b o o t a b l 0000220 e f l o p p y a n d \r \n p r 0000240 e s s a n y k e y t o t 0000260 r y a g a i n . . . \r \n \0 0000300 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0000760 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 U 252 0001000 brock@montreat:/var/tmp$ od -t a -N 100 -t d2 boot.BPB.img 0000000 k < dle m k f s . f a t nul stx dle soh nul 15595 28048 26219 11891 24934 116 4098 1 0000020 stx nul stx nul nul x sp nul ? nul del nul nul nul nul nul 2 2 -2048 32 63 255 0 0 0000040 nul ` soh nul nul soh ) i Q ~ eot b o o t sp -8192 1 384 -5847 -431 25092 28527 8308 0000060 sp sp sp sp sp sp F A T 1 6 sp sp sp so us 8224 8224 8224 16710 12628 8246 8224 7950 0000100 > [ | , " @ t vt V 4 so ; bel nul M dle 23486 -21380 -16350 2932 -19370 -17650 7 4301 0000120 ^ k p 2 d M syn M em k ~ T h i s sp -5282 13040 -12828 -13034 -5351 21758 26984 8307 0000140 i s sp n 29545 28192 0000144 brock@montreat:/var/tmp$ od -A d -j 11 -N 2 -t d2 boot.BPB.img 0000011 512 0000013 brock@montreat:/var/tmp$ od -j 11 -N 2 -t d2 boot.BPB.img 0000013 512 0000015 brock@montreat:/var/tmp$ od -A d -j 11 -N 2 -t d2 boot.BPB.img | cut -d " " -f 2 0000013 brock@montreat:/var/tmp$ od -A d -j 11 -N 2 -t d2 boot.BPB.img | cut -d " " -f 1 0000011 0000013 brock@montreat:/var/tmp$ od -A d -j 11 -N 2 -t d2 boot.BPB.img 0000011 512 0000013 brock@montreat:/var/tmp$ od -A d -j 11 -N 2 -t d2 boot.BPB.img | cut -d " " -f 0 cut: fields and positions are numbered from 1 Try 'cut --help' for more information. brock@montreat:/var/tmp$ od -A d -j 11 -N 2 -t d2 boot.BPB.img | cut -d " " -f 1 0000011 0000013 brock@montreat:/var/tmp$ od -A d -j 11 -N 2 -t d2 boot.BPB.img | head -1 | cut -d " " -f 2 brock@montreat:/var/tmp$ od -A d -j 11 -N 2 -t d2 boot.BPB.img | head -1 | cut -d " " -f 1 0000011 brock@montreat:/var/tmp$ od -A d -j 11 -N 2 -t d2 boot.BPB.img 0000011 512 0000013 brock@montreat:/var/tmp$ od -A d -j 11 -N 2 -t d2 boot.BPB.img | head -1 0000011 512 brock@montreat:/var/tmp$ od -A d -j 11 -N 2 -t d2 boot.BPB.img | head -1 | cut -d " " -f 0 cut: fields and positions are numbered from 1 Try 'cut --help' for more information. brock@montreat:/var/tmp$ od -A d -j 11 -N 2 -t d2 boot.BPB.img | head -1 | cut -d " " -f 2 brock@montreat:/var/tmp$ od -A d -j 19 -N 2 -t d2 boot.BPB.img 0000019 0 0000021 brock@montreat:/var/tmp$ od -A d -j 32 -N 4 -t d4 boot.BPB.img 0000032 122880 0000036 brock@montreat:/var/tmp$ BPB_TotSec32=122880 brock@montreat:/var/tmp$ TotSec=$BPB_TotSec32 brock@montreat:/var/tmp$ echo $(( $TotSec \* $BPB_BytsPerSec )) bash: 122880 * : syntax error: operand expected (error token is "* ") brock@montreat:/var/tmp$ echo $(( $TotSec \* $BPB_BytsPerSec )) bash: 122880 \* : syntax error: invalid arithmetic operator (error token is "\* ") brock@montreat:/var/tmp$ BPB_BytePerSec=512 brock@montreat:/var/tmp$ echo $(( $TotSec * $BPB_BytsPerSec )) bash: 122880 * : syntax error: operand expected (error token is "* ") brock@montreat:/var/tmp$ BPB_BytsPerSec=512 brock@montreat:/var/tmp$ echo $(( $TotSec * $BPB_BytsPerSec )) 62914560 brock@montreat:/var/tmp$ ls -l boot.img lrwxrwxrwx 1 brock users 36 Feb 21 13:02 boot.img -> /home/brock//sysadmin/notes/boot.img brock@montreat:/var/tmp$ ls -lL boot.img -rw-r--r-- 2 brock users 62914560 Feb 19 14:48 boot.img brock@montreat:/var/tmp$ RootDirSectors=$(( ( ( $BPB_RootEntCnt * 32 ) + ( $BPB_BytsPerSec - 1 ) ) / $BPB_BytsPerSec )) bash: ( ( * 32 ) + ( 512 - 1 ) ) / 512 : syntax error: operand expected (error token is "* 32 ) + ( 512 - 1 ) ) / 512 ") brock@montreat:/var/tmp$ BPB_RootEntCnt=512 brock@montreat:/var/tmp$ RootDirSectors=$(( ( ( $BPB_RootEntCnt * 32 ) + ( $BPB_BytsPerSec - 1 ) ) / $BPB_BytsPerSec )) brock@montreat:/var/tmp$ print $RootDirSectors Warning: unknown mime-type for "32" -- using "application/octet-stream" Error: no such file "32" brock@montreat:/var/tmp$ echo $RootDirSectors 32 brock@montreat:/var/tmp$ od -A d -j 22 -N 2 -t d2 boot.BPB.img 0000022 32 0000024 brock@montreat:/var/tmp$ BPB_FATSz16=32 brock@montreat:/var/tmp$ FATSz=$BPB_FATSz16 brock@montreat:/var/tmp$ bash: + ( * 32 ) + 32 : syntax error: operand expected (error token is "* 32 ) + 32 ") brock@montreat:/var/tmp$ BPB_NumFATs=2 brock@montreat:/var/tmp$ FirstDataSector=$(( $BPB_RsvdSecCnt + ( $BPB_NumFATs * $FATSz ) + $RootDirSectors )) brock@montreat:/var/tmp$ echo $(( $BPB_RsvdSecCnt + ( $BPB_NumFATs * $FATSz ) + $RootDirSectors )) 96 brock@montreat:/var/tmp$ DataSec=$(( $TotSec - ( $BPB_RsvdSecCnt + ( $BPB_NumFATs * $FATSz ) + $RootDirSectors ) )) brock@montreat:/var/tmp$ echo $DataSec 122784 brock@montreat:/var/tmp$ CountofClusters=$(( $DataSec / $BPB_SecPerClus )) bash: 122784 / : syntax error: operand expected (error token is "/ ") brock@montreat:/var/tmp$ echo $(( $DataSec / $BPB_SecPerClus )) bash: 122784 / : syntax error: operand expected (error token is "/ ") brock@montreat:/var/tmp$ echo $DataSec 122784 brock@montreat:/var/tmp$ echo $BPB_SecPerClus brock@montreat:/var/tmp$ BPB_SecPerClus=16 brock@montreat:/var/tmp$ echo $(( $DataSec / $BPB_SecPerClus )) 7674 brock@montreat:/var/tmp$ dc 2 12 ^ f 4096 2 16 ^ f 65536 4096 brock@montreat:/var/tmp$ rootDirStart=$(( $BPB_RsvdSecCnt + $BPB_NumFATs * $FATSz )) brock@montreat:/var/tmp$ echo $rootDirStart 64 brock@montreat:/var/tmp$ dd if=boot.img of=boot.rootdir.img bs=512 count=$RootDirSectors skip=$rootDirStart 32+0 records in 32+0 records out 16384 bytes (16 kB) copied, 0.000586749 s, 27.9 MB/s brock@montreat:/var/tmp$ od -A d -t a boot.rootdir.img 0000000 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul * 0000512 b o o t sp sp sp sp sp sp sp bs nul nul C E 0000528 r H r H nul nul C E r H nul nul nul nul nul nul 0000544 A o nul v nul e nul r nul l nul si nul G a nul 0000560 y nul s nul nul nul del del del del nul nul del del del del 0000576 O V E R L A Y S sp sp sp dle nul nul 7 can 0000592 S J S J nul nul 7 can S J gs nul nul nul nul nul 0000608 e t nul m nul p nul nul nul del del si nul can del del 0000624 del del del del del del del del del del nul nul del del del del 0000640 e . nul d nul p nul k nul g nul si nul can - nul 0000656 d nul i nul v nul e nul r nul nul nul t nul . nul 0000672 e C nul O nul P nul Y nul I nul si nul can N nul 0000688 G nul . nul l nul i nul n nul nul nul u nul x nul 0000704 e O P Y I N ~ 1 T M P sp nul nul & can 0000720 S J S J nul nul & can S J [ dle enq I nul nul 0000736 B c nul o nul m nul nul nul del del si nul g del del 0000752 del del del del del del del del del del nul nul del del del del 0000768 soh L nul I nul C nul E nul N nul si nul g C nul 0000784 E nul . nul b nul r nul o nul nul nul a nul d nul 0000800 L I C E N C ~ 1 B R O sp nul d # can 0000816 S J S J nul nul # can S J P ff V enq nul nul 0000832 B - nul p nul l nul u nul s nul si nul y . nul 0000848 d nul t nul b nul nul nul del del nul nul del del del del 0000864 soh b nul c nul m nul 2 nul 7 nul si nul y 0 nul 0000880 8 nul - nul r nul p nul i nul nul nul - nul b nul 0000896 B C M 2 7 0 ~ 1 D T B sp nul nul $ can 0000912 S J S J nul nul $ can S J Q ff A 7 nul nul 0000928 B . nul d nul t nul b nul nul nul si nul Y del del 0000944 del del del del del del del del del del nul nul del del del del 0000960 soh b nul c nul m nul 2 nul 7 nul si nul Y 0 nul 0000976 8 nul - nul r nul p nul i nul nul nul - nul b nul 0000992 B C M 2 7 0 ~ 2 D T B sp nul d $ can 0001008 S J S J nul nul $ can S J S ff : 6 nul nul 0001024 B m nul . nul d nul t nul b nul si nul 9 nul nul 0001040 del del del del del del del del del del nul nul del del del del 0001056 soh b nul c nul m nul 2 nul 7 nul si nul 9 0 nul 0001072 8 nul - nul r nul p nul i nul nul nul - nul c nul 0001088 B C M 2 7 0 ~ 3 D T B sp nul d $ can 0001104 S J S J nul nul $ can S J U ff ff 6 nul nul 0001120 e C M 2 7 0 ~ 3 D T B sp nul d ( 1 0001136 > I > I nul nul ( 1 > I bel nul ff 6 nul nul 0001152 A i nul s nul s nul u nul e nul si nul sub . nul 0001168 t nul x nul t nul nul nul del del nul nul del del del del 0001184 I S S U E sp sp sp T X T sp nul d E G 0001200 r H r H nul nul E G r H q ht g nul nul nul 0001216 B - nul b nul . nul d nul t nul si nul em b nul 0001232 nul nul del del del del del del del del nul nul del del del del 0001248 soh b nul c nul m nul 2 nul 7 nul si nul em 0 nul 0001264 9 nul - nul r nul p nul i nul nul nul - nul 2 nul 0001280 B C M 2 7 0 ~ 4 D T B sp nul d $ can 0001296 S J S J nul nul $ can S J W ff | ; nul nul 0001312 A C nul O nul P nul Y nul I nul si nul dc2 N nul 0001328 G nul . nul l nul i nul n nul nul nul u nul x nul 0001344 C O P Y I N ~ 1 L I N sp nul nul & can 0001360 S J S J nul nul & can S J [ dle enq I nul nul 0001376 A b nul o nul o nul t nul c nul si nul enq o nul 0001392 d nul e nul . nul b nul i nul nul nul n nul nul nul 0001408 B O O T C O D E B I N sp nul d # can 0001424 S J S J nul nul # can S J M ff ff F nul nul 0001440 A c nul m nul d nul l nul i nul si nul si n nul 0001456 e nul . nul t nul x nul t nul nul nul nul nul del del 0001472 C M D L I N E sp T X T sp nul nul si etb 0001488 S J S J nul nul si etb S J enq nul bs nul nul nul 0001504 A c nul o nul n nul f nul i nul si nul 9 g nul 0001520 . nul t nul x nul t nul nul nul nul nul del del del del 0001536 C O N F I G sp sp T X T sp nul nul sub cr 0001552 8 H vt I nul nul sub cr 8 H v ht v ack nul nul 0001568 A f nul i nul x nul u nul p nul si nul f . nul 0001584 d nul a nul t nul nul nul del del nul nul del del del del 0001600 F I X U P sp sp sp D A T sp nul d " can 0001616 S J S J nul nul " can S J G ff ^ em nul nul 0001632 A f nul i nul x nul u nul p nul si nul w _ nul 0001648 c nul d nul . nul d nul a nul nul nul t nul nul nul 0001664 F I X U P _ C D D A T sp nul d " can 0001680 S J S J nul nul " can S J H ff g ht nul nul 0001696 A f nul i nul x nul u nul p nul si nul g _ nul 0001712 d nul b nul . nul d nul a nul nul nul t nul nul nul 0001728 F I X U P _ D B D A T sp nul d " can 0001744 S J S J nul nul " can S J I ff em & nul nul 0001760 A f nul i nul x nul u nul p nul si nul D _ nul 0001776 x nul . nul d nul a nul t nul nul nul nul nul del del 0001792 F I X U P _ X sp D A T sp nul nul # can 0001808 S J S J nul nul # can S J K ff em & nul nul 0001824 A k nul e nul r nul n nul e nul si nul etb l nul 0001840 . nul i nul m nul g nul nul nul nul nul del del del del 0001856 K E R N E L sp sp I M G sp nul d % can 0001872 S J S J nul nul % can S J ] ff X eot ? nul 0001888 A k nul e nul r nul n nul e nul si nul ht l nul 0001904 7 nul . nul i nul m nul g nul nul nul nul nul del del 0001920 K E R N E L 7 sp I M G sp nul d % can 0001936 S J S J nul nul % can S J V so X dle @ nul 0001952 B - nul b nul . nul d nul t nul si nul Q b nul 0001968 nul nul del del del del del del del del nul nul del del del del 0001984 soh b nul c nul m nul 2 nul 7 nul si nul Q 1 nul 0002000 0 nul - nul r nul p nul i nul nul nul - nul 3 nul 0002016 B C M 2 7 1 ~ 1 D T B sp nul nul % can 0002032 S J S J nul nul % can S J Y ff x > nul nul 0002048 A s nul t nul a nul r nul t nul si nul e _ nul 0002064 d nul b nul . nul e nul l nul nul nul f nul nul nul 0002080 S T A R T _ D B E L F sp nul d ! can 0002096 S J S J nul nul ! can S J . soh D # K nul 0002112 A s nul t nul a nul r nul t nul si nul b _ nul 0002128 x nul . nul e nul l nul f nul nul nul nul nul del del 0002144 S T A R T _ X sp E L F sp nul nul " can 0002160 S J S J nul nul " can S J j nl D sub ; nul 0002176 e T A R T _ X sp E L F sp nul nul E G 0002192 r H r H nul nul so N p H ` bel bs rs : nul 0002208 B e nul nul nul del del del del del del si nul gs del del 0002224 del del del del del del del del del del nul nul del del del del 0002240 soh L nul I nul C nul E nul N nul si nul gs S nul 0002256 E nul . nul o nul r nul a nul nul nul c nul l nul 0002272 L I C E N S ~ 1 O R A sp nul d E G 0002288 r H r H nul nul E G r H r ht rs J nul nul 0002304 B sp nul I nul n nul f nul o nul si nul r r nul 0002320 m nul a nul t nul i nul o nul nul nul n nul nul nul 0002336 soh S nul y nul s nul t nul e nul si nul r m nul 0002352 sp nul V nul o nul l nul u nul nul nul m nul e nul 0002368 S Y S T E M ~ 1 sp sp sp syn nul , q gs 0002384 7 H 7 H nul nul r gs 7 H stx nul nul nul nul nul 0002400 A s nul t nul a nul r nul t nul si nul 5 . nul 0002416 e nul l nul f nul nul nul del del nul nul del del del del 0002432 S T A R T sp sp sp E L F sp nul d sp can 0002448 S J S J nul nul sp can S J ack nul d dc4 + nul 0002464 A s nul t nul a nul r nul t nul si nul syn _ nul 0002480 c nul d nul . nul e nul l nul nul nul f nul nul nul 0002496 S T A R T _ C D E L F sp nul nul ! can 0002512 S J S J nul nul ! can S J ` soh $ . ht nul 0002528 B m nul 3 nul . nul d nul t nul si nul 1 b nul 0002544 nul nul del del del del del del del del nul nul del del del del 0002560 soh b nul c nul m nul 2 nul 7 nul si nul 1 1 nul 0002576 0 nul - nul r nul p nul i nul nul nul - nul c nul 0002592 B C M 2 7 1 ~ 2 D T B sp nul nul % can 0002608 S J S J nul nul % can S J [ ff v ; nul nul 0002624 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul * 0016384 brock@montreat:/var/tmp$ echo dd if=boot.img of=boot.rootdir.img bs=512 count=$RootDirSectors skip=$rootDirStart dd if=boot.img of=boot.rootdir.img bs=512 count=32 skip=64 brock@montreat:/var/tmp$ echo $BPB_RsvdSecCnt + $BPB_NumFATs $FATSz 64 brock@montreat:/var/tmp$ echo $BPB_RsvdSecCnt + $BPB_NumFATs $FATSz + 2 32 brock@montreat:/var/tmp$ BPB_RsvdSecCnt=1 brock@montreat:/var/tmp$ rootDirStart=$(( $BPB_RsvdSecCnt + $BPB_NumFATs * $FATSz )) brock@montreat:/var/tmp$ print $rootDirStart Warning: unknown mime-type for "65" -- using "application/octet-stream" Error: no such file "65" brock@montreat:/var/tmp$ echo $rootDirStart 65 brock@montreat:/var/tmp$ rootDirStart=$(( $BPB_RsvdSecCnt + $BPB_NumFATs * $FATSz )) brock@montreat:/var/tmp$ brock@montreat:/var/tmp$ echo $(( $BPB_RsvdSecCnt * $BPB_SecPerClus + $BPB_NumFATs * $FATSz )) 80 brock@montreat:/var/tmp$ FirstDataSector=$(( $BPB_RsvdSecCnt + ( $BPB_NumFATs * $FATSz ) + $RootDirSectors )) brock@montreat:/var/tmp$ echo $FirstDataSector 97 brock@montreat:/var/tmp$ FirstDataSector=$(( $BPB_RsvdSecCnt * $BPB_SecPerClus + ( $BPB_NumFATs * $FATSz ) + $RootDirSectors )) brock@montreat:/var/tmp$ echo $FirstDataSector 112 brock@montreat:/var/tmp$ rootDirStart=$(( $BPB_RsvdSecCnt * $BPB_SecPerClus + $BPB_NumFATs * $FATSz )) brock@montreat:/var/tmp$ echo $rootDirStart 80 brock@montreat:/var/tmp$ echo dd if=boot.img of=boot.rootdir.img bs=512 count=$RootDirSectors skip=$rootDirStart dd if=boot.img of=boot.rootdir.img bs=512 count=32 skip=80 brock@montreat:/var/tmp$ dd if=boot.img of=boot.rootdir.img bs=512 count=$RootDirSectors skip=$rootDirStart 32+0 records in 32+0 records out 16384 bytes (16 kB) copied, 0.000635111 s, 25.8 MB/s brock@montreat:/var/tmp$ od -A d -t a boot.rootdir.img 0000000 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul * 0008704 . sp sp sp sp sp sp sp sp sp sp dle nul , q gs 0008720 7 H 7 H nul nul r gs 7 H stx nul nul nul nul nul 0008736 . . sp sp sp sp sp sp sp sp sp dle nul , q gs 0008752 7 H 7 H nul nul r gs 7 H nul nul nul nul nul nul 0008768 B G nul u nul i nul d nul nul nul si nul del del del 0008784 del del del del del del del del del del nul nul del del del del 0008800 soh I nul n nul d nul e nul x nul si nul del e nul 0008816 r nul V nul o nul l nul u nul nul nul m nul e nul 0008832 I N D E X E ~ 1 sp sp sp sp nul . q gs 0008848 7 H 7 H nul nul r gs 7 H u ht L nul nul nul 0008864 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul * 0016384 brock@montreat:/var/tmp$ rootDirStart=$(( $BPB_RsvdSecCnt + $BPB_NumFATs * $FATSz )) brock@montreat:/var/tmp$ echo $rootDirStart 65 brock@montreat:/var/tmp$ dd if=boot.img of=boot.rootdir.img bs=512 count=$RootDirSectors skip=$rootDirStart 32+0 records in 32+0 records out 16384 bytes (16 kB) copied, 0.000647708 s, 25.3 MB/s brock@montreat:/var/tmp$ od -A d -t a boot.rootdir.img 0000000 b o o t sp sp sp sp sp sp sp bs nul nul C E 0000016 r H r H nul nul C E r H nul nul nul nul nul nul 0000032 A o nul v nul e nul r nul l nul si nul G a nul 0000048 y nul s nul nul nul del del del del nul nul del del del del 0000064 O V E R L A Y S sp sp sp dle nul nul 7 can 0000080 S J S J nul nul 7 can S J gs nul nul nul nul nul 0000096 e t nul m nul p nul nul nul del del si nul can del del 0000112 del del del del del del del del del del nul nul del del del del 0000128 e . nul d nul p nul k nul g nul si nul can - nul 0000144 d nul i nul v nul e nul r nul nul nul t nul . nul 0000160 e C nul O nul P nul Y nul I nul si nul can N nul 0000176 G nul . nul l nul i nul n nul nul nul u nul x nul 0000192 e O P Y I N ~ 1 T M P sp nul nul & can 0000208 S J S J nul nul & can S J [ dle enq I nul nul 0000224 B c nul o nul m nul nul nul del del si nul g del del 0000240 del del del del del del del del del del nul nul del del del del 0000256 soh L nul I nul C nul E nul N nul si nul g C nul 0000272 E nul . nul b nul r nul o nul nul nul a nul d nul 0000288 L I C E N C ~ 1 B R O sp nul d # can 0000304 S J S J nul nul # can S J P ff V enq nul nul 0000320 B - nul p nul l nul u nul s nul si nul y . nul 0000336 d nul t nul b nul nul nul del del nul nul del del del del 0000352 soh b nul c nul m nul 2 nul 7 nul si nul y 0 nul 0000368 8 nul - nul r nul p nul i nul nul nul - nul b nul 0000384 B C M 2 7 0 ~ 1 D T B sp nul nul $ can 0000400 S J S J nul nul $ can S J Q ff A 7 nul nul 0000416 B . nul d nul t nul b nul nul nul si nul Y del del 0000432 del del del del del del del del del del nul nul del del del del 0000448 soh b nul c nul m nul 2 nul 7 nul si nul Y 0 nul 0000464 8 nul - nul r nul p nul i nul nul nul - nul b nul 0000480 B C M 2 7 0 ~ 2 D T B sp nul d $ can 0000496 S J S J nul nul $ can S J S ff : 6 nul nul 0000512 B m nul . nul d nul t nul b nul si nul 9 nul nul 0000528 del del del del del del del del del del nul nul del del del del 0000544 soh b nul c nul m nul 2 nul 7 nul si nul 9 0 nul 0000560 8 nul - nul r nul p nul i nul nul nul - nul c nul 0000576 B C M 2 7 0 ~ 3 D T B sp nul d $ can 0000592 S J S J nul nul $ can S J U ff ff 6 nul nul 0000608 e C M 2 7 0 ~ 3 D T B sp nul d ( 1 0000624 > I > I nul nul ( 1 > I bel nul ff 6 nul nul 0000640 A i nul s nul s nul u nul e nul si nul sub . nul 0000656 t nul x nul t nul nul nul del del nul nul del del del del 0000672 I S S U E sp sp sp T X T sp nul d E G 0000688 r H r H nul nul E G r H q ht g nul nul nul 0000704 B - nul b nul . nul d nul t nul si nul em b nul 0000720 nul nul del del del del del del del del nul nul del del del del 0000736 soh b nul c nul m nul 2 nul 7 nul si nul em 0 nul 0000752 9 nul - nul r nul p nul i nul nul nul - nul 2 nul 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 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 0000992 A c nul o nul n nul f nul i nul si nul 9 g nul 0001008 . nul t nul x nul t nul nul nul nul nul del del del del 0001024 C O N F I G sp sp T X T sp nul nul sub cr 0001040 8 H vt I nul nul sub cr 8 H v ht v ack nul nul 0001056 A f nul i nul x nul u nul p nul si nul f . nul 0001072 d nul a nul t nul nul nul del del nul nul del del del del 0001088 F I X U P sp sp sp D A T sp nul d " can 0001104 S J S J nul nul " can S J G ff ^ em nul nul 0001120 A f nul i nul x nul u nul p nul si nul w _ nul 0001136 c nul d nul . nul d nul a nul nul nul t nul nul nul 0001152 F I X U P _ C D D A T sp nul d " can 0001168 S J S J nul nul " can S J H ff g ht nul nul 0001184 A f nul i nul x nul u nul p nul si nul g _ nul 0001200 d nul b nul . nul d nul a nul nul nul t nul nul nul 0001216 F I X U P _ D B D A T sp nul d " can 0001232 S J S J nul nul " can S J I ff em & nul nul 0001248 A f nul i nul x nul u nul p nul si nul D _ nul 0001264 x nul . nul d nul a nul t nul nul nul nul nul del del 0001280 F I X U P _ X sp D A T sp nul nul # can 0001296 S J S J nul nul # can S J K ff em & nul nul 0001312 A k nul e nul r nul n nul e nul si nul etb l nul 0001328 . nul i nul m nul g nul nul nul nul nul del del del del 0001344 K E R N E L sp sp I M G sp nul d % can 0001360 S J S J nul nul % can S J ] ff X eot ? nul 0001376 A k nul e nul r nul n nul e nul si nul ht l nul 0001392 7 nul . nul i nul m nul g nul nul nul nul nul del del 0001408 K E R N E L 7 sp I M G sp nul d % can 0001424 S J S J nul nul % can S J V so X dle @ nul 0001440 B - nul b nul . nul d nul t nul si nul Q b nul 0001456 nul nul del del del del del del del del nul nul del del del del 0001472 soh b nul c nul m nul 2 nul 7 nul si nul Q 1 nul 0001488 0 nul - nul r nul p nul i nul nul nul - nul 3 nul 0001504 B C M 2 7 1 ~ 1 D T B sp nul nul % can 0001520 S J S J nul nul % can S J Y ff x > nul nul 0001536 A s nul t nul a nul r nul t nul si nul e _ nul 0001552 d nul b nul . nul e nul l nul nul nul f nul nul nul 0001568 S T A R T _ D B E L F sp nul d ! can 0001584 S J S J nul nul ! can S J . soh D # K nul 0001600 A s nul t nul a nul r nul t nul si nul b _ nul 0001616 x nul . nul e nul l nul f nul nul nul nul nul del del 0001632 S T A R T _ X sp E L F sp nul nul " can 0001648 S J S J nul nul " can S J j nl D sub ; nul 0001664 e T A R T _ X sp E L F sp nul nul E G 0001680 r H r H nul nul so N p H ` bel bs rs : nul 0001696 B e nul nul nul del del del del del del si nul gs del del 0001712 del del del del del del del del del del nul nul del del del del 0001728 soh L nul I nul C nul E nul N nul si nul gs S nul 0001744 E nul . nul o nul r nul a nul nul nul c nul l nul 0001760 L I C E N S ~ 1 O R A sp nul d E G 0001776 r H r H nul nul E G r H r ht rs J nul nul 0001792 B sp nul I nul n nul f nul o nul si nul r r nul 0001808 m nul a nul t nul i nul o nul nul nul n nul nul nul 0001824 soh S nul y nul s nul t nul e nul si nul r m nul 0001840 sp nul V nul o nul l nul u nul nul nul m nul e nul 0001856 S Y S T E M ~ 1 sp sp sp syn nul , q gs 0001872 7 H 7 H nul nul r gs 7 H stx nul nul nul nul nul 0001888 A s nul t nul a nul r nul t nul si nul 5 . nul 0001904 e nul l nul f nul nul nul del del nul nul del del del del 0001920 S T A R T sp sp sp E L F sp nul d sp can 0001936 S J S J nul nul sp can S J ack nul d dc4 + nul 0001952 A s nul t nul a nul r nul t nul si nul syn _ nul 0001968 c nul d nul . nul e nul l nul nul nul f nul nul nul 0001984 S T A R T _ C D E L F sp nul nul ! can 0002000 S J S J nul nul ! can S J ` soh $ . ht nul 0002016 B m nul 3 nul . nul d nul t nul si nul 1 b nul 0002032 nul nul del del del del del del del del nul nul del del del del 0002048 soh b nul c nul m nul 2 nul 7 nul si nul 1 1 nul 0002064 0 nul - nul r nul p nul i nul nul nul - nul c nul 0002080 B C M 2 7 1 ~ 2 D T B sp nul nul % can 0002096 S J S J nul nul % can S J [ ff v ; nul nul 0002112 nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul nul * 0016384 brock@montreat:/var/tmp$ od -A d -t d1 boot.rootdir.img 0000000 98 111 111 116 32 32 32 32 32 32 32 8 0 0 -61 69 0000016 114 72 114 72 0 0 -61 69 114 72 0 0 0 0 0 0 0000032 65 111 0 118 0 101 0 114 0 108 0 15 0 71 97 0 0000048 121 0 115 0 0 0 -1 -1 -1 -1 0 0 -1 -1 -1 -1 0000064 79 86 69 82 76 65 89 83 32 32 32 16 0 0 55 -104 0000080 83 74 83 74 0 0 55 -104 83 74 29 0 0 0 0 0 0000096 -27 116 0 109 0 112 0 0 0 -1 -1 15 0 24 -1 -1 0000112 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 0 -1 -1 -1 -1 0000128 -27 46 0 100 0 112 0 107 0 103 0 15 0 24 45 0 0000144 100 0 105 0 118 0 101 0 114 0 0 0 116 0 46 0 0000160 -27 67 0 79 0 80 0 89 0 73 0 15 0 24 78 0 0000176 71 0 46 0 108 0 105 0 110 0 0 0 117 0 120 0 0000192 -27 79 80 89 73 78 126 49 84 77 80 32 0 0 38 -104 0000208 83 74 83 74 0 0 38 -104 83 74 91 16 5 73 0 0 0000224 66 99 0 111 0 109 0 0 0 -1 -1 15 0 103 -1 -1 0000240 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 0 -1 -1 -1 -1 0000256 1 76 0 73 0 67 0 69 0 78 0 15 0 103 67 0 0000272 69 0 46 0 98 0 114 0 111 0 0 0 97 0 100 0 0000288 76 73 67 69 78 67 126 49 66 82 79 32 0 100 35 -104 0000304 83 74 83 74 0 0 35 -104 83 74 80 12 -42 5 0 0 0000320 66 45 0 112 0 108 0 117 0 115 0 15 0 121 46 0 0000336 100 0 116 0 98 0 0 0 -1 -1 0 0 -1 -1 -1 -1 0000352 1 98 0 99 0 109 0 50 0 55 0 15 0 121 48 0 0000368 56 0 45 0 114 0 112 0 105 0 0 0 45 0 98 0 0000384 66 67 77 50 55 48 126 49 68 84 66 32 0 0 36 -104 0000400 83 74 83 74 0 0 36 -104 83 74 81 12 -63 55 0 0 0000416 66 46 0 100 0 116 0 98 0 0 0 15 0 89 -1 -1 0000432 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 0 -1 -1 -1 -1 0000448 1 98 0 99 0 109 0 50 0 55 0 15 0 89 48 0 0000464 56 0 45 0 114 0 112 0 105 0 0 0 45 0 98 0 0000480 66 67 77 50 55 48 126 50 68 84 66 32 0 100 36 -104 0000496 83 74 83 74 0 0 36 -104 83 74 83 12 -70 54 0 0 0000512 66 109 0 46 0 100 0 116 0 98 0 15 0 -71 0 0 0000528 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 0 -1 -1 -1 -1 0000544 1 98 0 99 0 109 0 50 0 55 0 15 0 -71 48 0 0000560 56 0 45 0 114 0 112 0 105 0 0 0 45 0 99 0 0000576 66 67 77 50 55 48 126 51 68 84 66 32 0 100 36 -104 0000592 83 74 83 74 0 0 36 -104 83 74 85 12 -116 54 0 0 0000608 -27 67 77 50 55 48 126 51 68 84 66 32 0 100 40 -79 0000624 62 73 62 73 0 0 40 -79 62 73 7 0 -116 54 0 0 0000640 65 105 0 115 0 115 0 117 0 101 0 15 0 -102 46 0 0000656 116 0 120 0 116 0 0 0 -1 -1 0 0 -1 -1 -1 -1 0000672 73 83 83 85 69 32 32 32 84 88 84 32 0 100 69 71 0000688 114 72 114 72 0 0 69 71 114 72 -15 9 103 0 0 0 0000704 66 45 0 98 0 46 0 100 0 116 0 15 0 25 98 0 0000720 0 0 -1 -1 -1 -1 -1 -1 -1 -1 0 0 -1 -1 -1 -1 0000736 1 98 0 99 0 109 0 50 0 55 0 15 0 25 48 0 0000752 57 0 45 0 114 0 112 0 105 0 0 0 45 0 50 0 0000768 66 67 77 50 55 48 126 52 68 84 66 32 0 100 36 -104 0000784 83 74 83 74 0 0 36 -104 83 74 87 12 -4 59 0 0 0000800 65 67 0 79 0 80 0 89 0 73 0 15 0 18 78 0 0000816 71 0 46 0 108 0 105 0 110 0 0 0 117 0 120 0 0000832 67 79 80 89 73 78 126 49 76 73 78 32 0 0 38 -104 0000848 83 74 83 74 0 0 38 -104 83 74 91 16 5 73 0 0 0000864 65 98 0 111 0 111 0 116 0 99 0 15 0 5 111 0 0000880 100 0 101 0 46 0 98 0 105 0 0 0 110 0 0 0 0000896 66 79 79 84 67 79 68 69 66 73 78 32 0 100 35 -104 0000912 83 74 83 74 0 0 35 -104 83 74 77 12 12 70 0 0 0000928 65 99 0 109 0 100 0 108 0 105 0 15 0 -113 110 0 0000944 101 0 46 0 116 0 120 0 116 0 0 0 0 0 -1 -1 0000960 67 77 68 76 73 78 69 32 84 88 84 32 0 0 15 -105 0000976 83 74 83 74 0 0 15 -105 83 74 5 0 -120 0 0 0 0000992 65 99 0 111 0 110 0 102 0 105 0 15 0 57 103 0 0001008 46 0 116 0 120 0 116 0 0 0 0 0 -1 -1 -1 -1 0001024 67 79 78 70 73 71 32 32 84 88 84 32 0 0 -102 13 0001040 -72 72 -117 73 0 0 -102 13 -72 72 -10 9 118 6 0 0 0001056 65 102 0 105 0 120 0 117 0 112 0 15 0 -26 46 0 0001072 100 0 97 0 116 0 0 0 -1 -1 0 0 -1 -1 -1 -1 0001088 70 73 88 85 80 32 32 32 68 65 84 32 0 100 34 -104 0001104 83 74 83 74 0 0 34 -104 83 74 71 12 -34 25 0 0 0001120 65 102 0 105 0 120 0 117 0 112 0 15 0 -9 95 0 0001136 99 0 100 0 46 0 100 0 97 0 0 0 116 0 0 0 0001152 70 73 88 85 80 95 67 68 68 65 84 32 0 100 34 -104 0001168 83 74 83 74 0 0 34 -104 83 74 72 12 -25 9 0 0 0001184 65 102 0 105 0 120 0 117 0 112 0 15 0 103 95 0 0001200 100 0 98 0 46 0 100 0 97 0 0 0 116 0 0 0 0001216 70 73 88 85 80 95 68 66 68 65 84 32 0 100 34 -104 0001232 83 74 83 74 0 0 34 -104 83 74 73 12 25 38 0 0 0001248 65 102 0 105 0 120 0 117 0 112 0 15 0 -60 95 0 0001264 120 0 46 0 100 0 97 0 116 0 0 0 0 0 -1 -1 0001280 70 73 88 85 80 95 88 32 68 65 84 32 0 0 35 -104 0001296 83 74 83 74 0 0 35 -104 83 74 75 12 25 38 0 0 0001312 65 107 0 101 0 114 0 110 0 101 0 15 0 23 108 0 0001328 46 0 105 0 109 0 103 0 0 0 0 0 -1 -1 -1 -1 0001344 75 69 82 78 69 76 32 32 73 77 71 32 0 100 37 -104 0001360 83 74 83 74 0 0 37 -104 83 74 93 12 -40 4 63 0 0001376 65 107 0 101 0 114 0 110 0 101 0 15 0 -119 108 0 0001392 55 0 46 0 105 0 109 0 103 0 0 0 0 0 -1 -1 0001408 75 69 82 78 69 76 55 32 73 77 71 32 0 100 37 -104 0001424 83 74 83 74 0 0 37 -104 83 74 86 14 88 -112 64 0 0001440 66 45 0 98 0 46 0 100 0 116 0 15 0 81 98 0 0001456 0 0 -1 -1 -1 -1 -1 -1 -1 -1 0 0 -1 -1 -1 -1 0001472 1 98 0 99 0 109 0 50 0 55 0 15 0 81 49 0 0001488 48 0 45 0 114 0 112 0 105 0 0 0 45 0 51 0 0001504 66 67 77 50 55 49 126 49 68 84 66 32 0 0 37 -104 0001520 83 74 83 74 0 0 37 -104 83 74 89 12 120 62 0 0 0001536 65 115 0 116 0 97 0 114 0 116 0 15 0 -27 95 0 0001552 100 0 98 0 46 0 101 0 108 0 0 0 102 0 0 0 0001568 83 84 65 82 84 95 68 66 69 76 70 32 0 100 33 -104 0001584 83 74 83 74 0 0 33 -104 83 74 -82 1 68 -93 75 0 0001600 65 115 0 116 0 97 0 114 0 116 0 15 0 -30 95 0 0001616 120 0 46 0 101 0 108 0 102 0 0 0 0 0 -1 -1 0001632 83 84 65 82 84 95 88 32 69 76 70 32 0 0 34 -104 0001648 83 74 83 74 0 0 34 -104 83 74 106 10 68 -102 59 0 0001664 -27 84 65 82 84 95 88 32 69 76 70 32 0 0 69 71 0001680 114 72 114 72 0 0 -114 78 112 72 -32 7 8 -98 58 0 0001696 66 101 0 0 0 -1 -1 -1 -1 -1 -1 15 0 -99 -1 -1 0001712 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 0 -1 -1 -1 -1 0001728 1 76 0 73 0 67 0 69 0 78 0 15 0 -99 83 0 0001744 69 0 46 0 111 0 114 0 97 0 0 0 99 0 108 0 0001760 76 73 67 69 78 83 126 49 79 82 65 32 0 100 69 71 0001776 114 72 114 72 0 0 69 71 114 72 -14 9 30 74 0 0 0001792 66 32 0 73 0 110 0 102 0 111 0 15 0 114 114 0 0001808 109 0 97 0 116 0 105 0 111 0 0 0 110 0 0 0 0001824 1 83 0 121 0 115 0 116 0 101 0 15 0 114 109 0 0001840 32 0 86 0 111 0 108 0 117 0 0 0 109 0 101 0 0001856 83 89 83 84 69 77 126 49 32 32 32 22 0 44 113 -99 0001872 -73 72 -73 72 0 0 114 -99 -73 72 2 0 0 0 0 0 0001888 65 115 0 116 0 97 0 114 0 116 0 15 0 -75 46 0 0001904 101 0 108 0 102 0 0 0 -1 -1 0 0 -1 -1 -1 -1 0001920 83 84 65 82 84 32 32 32 69 76 70 32 0 100 32 -104 0001936 83 74 83 74 0 0 32 -104 83 74 6 0 -28 20 43 0 0001952 65 115 0 116 0 97 0 114 0 116 0 15 0 -106 95 0 0001968 99 0 100 0 46 0 101 0 108 0 0 0 102 0 0 0 0001984 83 84 65 82 84 95 67 68 69 76 70 32 0 0 33 -104 0002000 83 74 83 74 0 0 33 -104 83 74 96 1 -92 -82 9 0 0002016 66 109 0 51 0 46 0 100 0 116 0 15 0 -79 98 0 0002032 0 0 -1 -1 -1 -1 -1 -1 -1 -1 0 0 -1 -1 -1 -1 0002048 1 98 0 99 0 109 0 50 0 55 0 15 0 -79 49 0 0002064 48 0 45 0 114 0 112 0 105 0 0 0 45 0 99 0 0002080 66 67 77 50 55 49 126 50 68 84 66 32 0 0 37 -104 0002096 83 74 83 74 0 0 37 -104 83 74 91 12 -10 59 0 0 0002112 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 * 0016384 brock@montreat:/var/tmp$