Lecture 27. Extended Read Service used for extended read is int 13h/42h On Entry AH=42H DL=drive # DS:SI= far address of Disk address packet On Exit If.

Slides:



Advertisements
Similar presentations
Hard Disks Low-level format- organizes both sides of each platter into tracks and sectors to define where items will be stored on the disk. Partitioning:
Advertisements

Chapter 12: File System Implementation
Volume Analysis. What is a volume?  Carrier defines a volume: “… a collection of addressable sectors that an Operating System (OS) or application can.
Volume Analysis – Intro Chapter 4, Carrier 1.Volume structure 2.Volume analysis 3.Volume recovery
BSD Partitions COEN 152/252 Computer Forensics. BSD Partitions Some BSD systems use IA32 hardware  Designed to co-exists with MS partitions.  Use DOS.
Disk Fundamentals. More than one platter (round cylinders)
Computer System Basics 2 Hard Drive Storage & File Partitions Computer Forensics BACS 371.
04/21/2004CSCI 315 Operating Systems Design1 Disk Management.
BACS 371 Computer Forensics
File Systems Examples.
FILE SYSTEMS. File Names 1 to 255 characters in length  This includes the path You can use uppercase and lowercase (case-aware, but not case-sensitive)
Assembly Language for Intel-Based Computers, 4 th Edition Chapter 14: Disk Fundamentals (c) Pearson Education, All rights reserved. You may modify.
Operating Systems File Systems CNS 3060.
Digital Forensics Module 11 CS /26/2004Module 112 Outline of Module #11 Overview of Windows file systems Overview of ProDiscover Overview of UNIX.
Managing Your Hard Disk and Operating System 23,26 March :30pm - 4:00pm.
Lecture 10: The FAT, VFAT, and NTFS Filesystems 6/17/2003 CSCE 590 Summer 2003.
Operating Systems File systems
1 File Management in Representative Operating Systems.
Avishai Wool lecture Introduction to Systems Programming Lecture 12 File Systems.
Contiguous Allocation of Disk Space. Linked Allocation.
Files & Partitions BACS 371 Computer Forensics. Data Hierarchy Computer Hard Disk Drive Partition File Physical File Logical File Cluster Sector Word.
BACS 371 Computer Forensics
FDISK Partitioning Hard Disks. History We bought our new hard disk drive –Right size for BIOS and OS –Right connections (PATA/SATA) We installed our new.
Implementing Hard Drives Chapter 10
Computer Forensics DOS Partitioning. Partitioning Practices  We separate partition practices into those used by Personal Computers:  DOS  Apple Servers.
1 Partitioning a Hard Drive ©Richard Goldman Revised January 8, 2001 Revised December 9, 2002.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 8 Understanding and Installing Hard Drives.
Tel : 同济大学软件学院 UEFI 与固件程序设计.
Using Large Hard Drives in Linux Presented by Kevin McGregor Manitoba UNIX User Group March 12, 2013.
Chapter Sixteen Data Recovery and Fault Tolerance.
Unix File System Internal Structures By C. Shing ITEC Dept Radford University.
LIS508 lecture 5: storage devices Thomas Krichel
Disk Structures. CTEC 1102 Formatting a Disk Two parts to formatting a disk:  Low-level (physical) formatting  High level (logical) formatting Low-level.
File Systems (1). Readings r Silbershatz et al: 10.1,10.2,
CSN08101 Digital Forensics Lecture 5A: PC Boot Sequence and Storage Devices Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak.
Linux Booting Procedure
Lecture 9: The FAT and VFAT Filesystems 6/16/2003 CSCE 590 Summer 2003.
Assembly Language for Intel-Based Computers, 5 th Edition Chapter 14: Disk Fundamentals (c) Pearson Education, All rights reserved. You may.
PC Maintenance: Preparing for A+ Certification Chapter 10: Introduction to Disk Storage.
File Systems Dr John Cowell phones off (please). Q 1 Which of the following statements about NTFS is NOT true? a) NTFS uses 64 bit addressing. b) Supports.
1 EN0129 PC and Network Technology - 1 Sajjad Shami Adrian Robson Gerhard Fehringer School of Computing, Engineering & Information Sciences Northumbria.
The disk surface is divided into tracks. into tracks. 1.
Hard disk drives It is a non volatile mass storage device. It consists of platters made of aluminum alloy or glass ceramic composite material. Platters.
CSC 322 Operating Systems Concepts Lecture - 20: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
COEN 152/252 Computer Forensics Apple Partitions.
Chapter 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
Virtual Memory Review Goal: give illusion of a large memory Allow many processes to share single memory Strategy Break physical memory up into blocks (pages)
File Systems in Real-Time Embedded Applications March 5th Eric Julien Understanding How the File Allocation Table (FAT) Operates 1.
1 Floppy Drive Formatting ©Richard Goldman February, 2001.
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
FAT File Allocation Table
Lecture 10 Page 1 CS 111 Summer 2013 File Systems Control Structures A file is a named collection of information Primary roles of file system: – To store.
Chapter 6 File Systems. Essential requirements 1. Store very large amount of information 2. Must survive the termination of processes persistent 3. Concurrent.
Computer Forensics Hard Drive Format.
Disk storage systems Question#1 (True/False) A track is divided into multiple units called sectors.
GUID Partition Table Unified Extensible Firmware Interface (UEFI) GUID Partition Table (GPT)
Lecture 26.
Master Boot Record (MBR)
Assembly Language for x86 Processors 7th Edition Chapter 15: Disk Fundamentals (c) Pearson Education, All rights reserved. You may modify and copy.
Today topics: File System Implementation
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
File System Structure How do I organize a disk into a file system?
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
Partitioning a Hard Drive
CS-401 Computer Architecture Assembly Language Programming
CS-401 Computer Architecture & Assembly Language Programming
File Systems Implementation
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
Hard disk basics Prof:R.CHARLES SILVESTER JOE Departmet of Electronics St.Joseph’s College,Trichy.
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
Presentation transcript:

Lecture 27

Extended Read Service used for extended read is int 13h/42h On Entry AH=42H DL=drive # DS:SI= far address of Disk address packet On Exit If CF=0 AH=0= Success If CF=1 AH= Error code

Extended Write Service used for extended read is int 13h/42h On Entry AH=43H AL=0,1 write with verify off 2 write with verify on DL=drive # DS:SI= far address of Disk address packet On Exit If CF=0 AH=0= Success If CF=1 AH= Error code

Reading a LBA block #include struct DAP { unsigned char size; unsigned char reserved1; unsigned char blocks; unsigned char reserved2; unsigned char far *buffer; unsigned long int lbalod; unsigned long int lbahid; } dap; char st[80]; unsigned char buf[512]; FILE *fptr;

void main (void) { puts ("enter the lba low double word: "); gets (st); dap.lbalod=atol(st); puts ("enter the lba high double word: "); gets (st); dap.lbahid=atol(st); dap.size=16; dap.reserved1=0; dap.blocks=1; dap.reserved2=0; dap.buffer = (unsigned char far *)MK_FP(_DS,buf);

_AH=0x42; _DL=0x80; _SI=(unsigned int)&dap; geninterrupt(0x13); puts ("enter the path: "); gets (st); fptr = fopen(st,"wb"); fwrite(buf,512,1,fptr); fclose (fptr); }

Disk Partitioning Partition Table contains information pertaining to disk partitions. Partition Table is the first physical sector Head = 0 Track/Cylinder = 0 Sec = 1 or LBA = 0 Partition Table at CHS = 001 is also called MBR (Master Boot Record).

Structure of Partitioning Table Total size of Partition Table is 512 bytes. First 446 bytes contains code which loads the boot block of active partition and is executed at Boot Time. Rest of the 66 bytes is the Data part. Last two bytes of the Data part is the Partition table signature.

File System for Each O.S. On a single disk there can be 4 different file systems and hence 4 different O.S. Each O.S. will have its individual partition on disk. Data related to each partition is stored in a 16- bytes chunk within the Data Part of Partition Table.

Structure of Data Part of P.T. SizeDescription 16 BytesPartition into of 1 st partition. 16 BytesPartition into of 2 nd partition. 16 BytesPartition into of 3 rd partition. 16 BytesPartition into of 4 th partition. 02 BytesSignature

SizeDescription Byte80H if Bootable, 0 if Not ByteHead # for first block in the partition Byte0 – 5 bits are sector # for first block within the partition and bits 6 -7 are higher bits of cylinder # ByteLow 8-bits of cylinder # for last block within the partition.. ByteFile System ID

SizeDescription ByteHead # for last block in the partition Byte0 – 5 bits are sector # for last block within the partition and bits 6 -7 are higher bits of cylinder # ByteLow 8-bits of cylinder # for last block within the partition. Double Word Relative address of the boot record for the partition with respect to the first block in partition in terms of LBA address. Double Word Count of total blocks within the partition.

File System ID Bit #Description 00Empty 01DOS 12-bit partition 02Xenix root 03Xenix/usr 04MS-DOS 16-bits < 32MB 05MS-DOS extended partition can manage disks of sizes up to 8.4 GB 0 ~ FF for various O.S.

06MS-DOS 16-bits FAT >= 32MB 07OS/2, 1FS = Installable file system Advanced Unix Windows NT NTFS 08AIX Boot partitions 09AIX Data partitions 0AOS/2 Boot Manager 0BWin 95 FAT 32 0CWin 95 FAT 32 LBA Mapped 0EWin 95 FAT 16 LBA Mapped 0FExtended partitions LBA Mapped

Primary Partition Partition defined in the MBR (Master Boot Record) are primary partition. Each Primary Partition contains information about its respective O.S. However if only one O.S. is to be installed then extended partitions.

Extended Partitions MBR Primary Partition Extended Partition