Transcription of 8.파일시스템과 파일 복구 - parkjonghyuk.net
1 UCS Lab Tel: 970-6702 Email: SeoulTech 2012-2nd UCS Lab , . , FAT, NTFS . FAT NTFS UCS Lab 1. 1. 2. 3. 4. 5. 2. MBR 1. 3. 2. 4. 5. , function of FAT (Volume Boot Record) (Master File Table) 5. 6. , 5.
2 6. 1. 2. UCS Lab ? , ? , , UCS Lab Windows FAT(FAT12,FAT16,FAT32,exFAT), NTFS Linux Ext2, Ext3, Ext4 Unix-like UFS OS2 HPFS Mac OS HFS, HFS+ Solaris ZFS HP-UX ODS-5, VxFS ISO 9660, UDF UCS Lab , , , UCS Lab Hard disk Sector 571 bytes (59 bytes) 512 bytes (Sector size)
3 UCS Lab Addressing ( ) CHS (Cylinder, Head, Sector) ATA BIOS 504MB BIOS ATA-6 , LBA UCS Lab Addressing ( ) LBA (Logical Block Addressing) 0 , 0 , 1 (0 ) ( ) ROM BIOS 28bit 127GB 48bit UCS Lab Cluster ( ) = ( ) 4,096 (4KB) , 100 3996 4MB(4,096KB) 4KB = 1,024 4MB(4,096KB = 4,194,304B) 512B = 8,192 UCS Lab Cluster ( )
4 32MB - 8GB 4KB 8GB - 16GB 8KB 16GB - 32GB 16KB 32GB 32KB 512MB 512 Byte 513MB - 1GB 1KB 1GB - 2GB 2KB 2GB 4KB FAT32 NTFS UCS Lab Slack Space - , RAM Slack (Sector Slack) File Slack (Drive Slack) , File System Slack Volume Slack UCS Lab Slack Space (RAM Slack & File Slack) RAM Slack (Sector Slack) 512 (Sector Slack) 512 0x00 UCS Lab Slack Space (RAM Slack & File Slack) File Slack (Drive Slack) (Drive Slack) , 0x00 (I/O )
5 UCS Lab Slack Space (File System Slack & Volume Slack) cluster cluster cluster cluster .. cluster cluster cluster File System Slack Partition 1 Partition 2 Partition 3 Volume Slack File System Slack 1,026KB 4KB 2KB Volume Slack UCS Lab (Partition) , , Boot Record(BR) , windows C:\ [Windows XP] C:\ [Windows XP] D.
6 \ [Windows7] UCS Lab MBR (Master Boot Record) BR MBR (LBA 0) 512 446 (Boot Code) , 64 (Partition Table) , 2 (Signature) BR C:\ [Windows XP] MBR BR C:\ [Windows XP] BR D:\ [Windows7] Boot Record wnd Boot Record UCS Lab , (Boot Sector) (Byte Range) 10 16 0 - 445 0x0000 - 0x01BD Boot code 446 - 461 0x01BE - 0x01CD Partition table entry #1 462 - 477 0x01CE - 0x01DD Partition table entry #2 478 - 493 0x01DE - 0x01ED Partition table entry #3 494 - 509 0x01EE - 0x01FD Partition table entry #4 510 - 511 0x01FE - 0x01FF Signature (0x55AA)
7 MBR UCS Lab 16 4 (Bootable Flag) , 0x80 MBR 0x80 , , MBR MBR (Byte Range) 10 16 0 - 0 0x0000 - 0x0000 Bootable flag 1 - 3 0x0001 - 0x0003 CHS 4 - 4 0x0004 - 0x0004 Partition 5 - 7 0x0005 - 0x0007 CHS 8 - 11 0x0008 - 0x000B LBA 12 - 15 0x000C - 0x000F UCS Lab (Extended Partition) MBR 64 4 4 MBR 4 UCS Lab FAT (File Allocation Table) History FAT12 1980 (QDOS)
8 FAT16 1980 VFAT 1995 FAT , FAT32 1996 VFAT , MS-DOS FAT FAT FAT12 4,084 FAT16 65,524 FAT32 67,092,481 FAT12 12 : 212 = 4,096 , 12 4,084 UCS Lab FAT / FAT / UCS Lab FAT (File Allocation Table) Layout Reserved Area FAT Area Data Area #1 FAT #2 FAT C:[NTFS] 500MB M B R D:[FAT32] 500MB B R B R BIOS Boot Code Partition Table 1 2 3 4 UCS Lab Structure Reserved Area 0 1 2 3 4 5 6 7 8 9 10 11 12.
9 31 FAT32 6 , 0, 1, 2, 6, 7, 8 0, 6 : Volume Boot Sector (0 , 6 ) 1, 7 : File System Information(FSINFO) Structure (7 , FSINFO ) 2, 8 : Additional bootstrap code ( , ) Reserved Area FAT Area Data Area #1 FAT #2 FAT UCS Lab Structure First Sector(Volume Boot Sector) of Reserved Area Boot Code (3 bytes) BIOS parameter block ( 3 ~ 61 bytes) Boot code and error messages (62 ~ 509 bytes) Signature (510 ~ 511 bytes) Boot Code (3 bytes) BIOS parameter block ( 3 ~ 89 bytes) Boot code and error messages (89 ~ 509 bytes) Signature (510 ~ 511 bytes)
10 FAT 12/16 FAT 32 Reserved Area FAT Area Data Area #1 FAT #2 FAT , FAT12/14 = UCS Lab (Boot Sector) FAT12/16 BPB(BIOS Parameter Block) BPB FAT (Byte Range) FAT12/16 0 - 2 0x0000 - 0x0002 Jump command to boot code FAT32 FAT12/16 3 - 61 0x0003 - 0x003D BIOS parameter block(BPB) FAT32 3 - 89 0x0003 - 0x0059 FAT12/16 62 - 509 0x003E - 0x01FD Boot code and error message FAT32 90 - 509 0x005A - 0x01FD FAT12/16 510 - 511 0x01FE - 0x01FF Signature (0x55AA) FAT32 FAT UCS Lab Structure FAT Area Reserved Area FAT Area Data Area #1 FAT #2 FAT - FAT 12/16, FAT 32 FAT (File Allocation Table) Area - #1 FAT, #2 FAT(Backup)