0% found this document useful (0 votes)
5 views33 pages

Understanding Operating Systems Basics

The document discusses operating systems and their functions. It explains that operating systems manage hardware resources, control application access to those resources, perform tasks like scheduling and memory management, and provide a standardized interface to hardware through abstractions. It describes the typical structure of an operating system, including the kernel, applications/libraries, system calls, hardware abstraction layer, and device drivers. It also discusses file systems, I/O streams, and how operating systems are crucial for managing shared resources and deciding which programs run in a system.

Uploaded by

amzeus
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views33 pages

Understanding Operating Systems Basics

The document discusses operating systems and their functions. It explains that operating systems manage hardware resources, control application access to those resources, perform tasks like scheduling and memory management, and provide a standardized interface to hardware through abstractions. It describes the typical structure of an operating system, including the kernel, applications/libraries, system calls, hardware abstraction layer, and device drivers. It also discusses file systems, I/O streams, and how operating systems are crucial for managing shared resources and deciding which programs run in a system.

Uploaded by

amzeus
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

MEDIA AND STORAGE

Today
 Operating systems
 What are they for
 What do they do
Not really
 I wouldn’t use that OS
 But what does that mean and why?
 Is there something I’m looking for?

 Youwill be able to answer these questions


and many more
Today
 Operating systems
 What are they for
 What do they do
Operating Systems
 Group discussion
 What is an operating system ?
 What are its key functions ?
 How many OS can you name
Versions of OS
 There is over 600 main stream OS’s
 Windows Is not the only OS
 MicroSoft are not the only OS makers
 Just a Few of them #
Operating System
 They all have the same basics in
common
 What are they ?
 Manages the resources of the hardware
 Attempts to optimise use of available
resources by enabling and controlling
application access.
O/S functions
 Scheduling
 Memory Management
 File System
 Device Management
Typical O/S structure
User

Applications
Librarie
s
System Function
Calls
Kernel

Hardware Abstraction
Device Device
driver driver
O/S structure
 Applications : programs used by users
or other programs
 Libraries : re-usable code implementing
useful functions
 System calls : points of interaction with
the kernel
O/S structure

 Kernel - the main part of the O/S


 kernel implements the critical
functions and is, usually, the only
program which is guaranteed to get
access to all resources.
 responsible for starting, managing
and ending ALL other programs in
the system
 CANNOT be interrupted/terminated
by anything except itself.
O/S structure

 Hardware Abstraction Layer


 found in modern portable O/S
 capable of running on different
architectures
 Provides a standardised view of the
underlying hardware through a
virtual machine implementation
 O/S need not know much/anything
about the real hardware
Device drivers
 Plug into H.A.L. to allow access to real
hardware.
 Translate from O/S command to real
device commands
 e.g. allow O/S to work with ANY storage
device (ATA, SATA, USB) transparently
 e.g. allow O/S to use ANY graphics
device
Example

 Unix streams model of I/O


 Unix treats ALL Input/Output
devices as streams
 a sequence of bits which can be
read/written
 File system is implemented on top
of the device stream
 filesystem is ALSO a stream
 so are files...
So...
 what does this mean for DE examiners ?
Examining devices
 Applying ACPO principles means that
we usually have to produce a verifiably
accurate copy of the device to be
examined
 How ?
Old method
 When HAL was less-common
 Device to device copy using an
IDENTICAL target device
 Not always successful
 subtle difference between devices (bad
block positions etc.)
Current Method
 Apply streams concept and perform a
bitwise copy
 Contents of device copied to some
medium
 file, partition etc.
Why is this valid ?
 Interpretation of data is independent of
hardware
 Bitwise copy can be shown to be
equivalent to the device at all levels
above device driver
 stream is already an abstract view of the
device
Verifying equivalence
 Compute “hashes’
 a mathemetical operation using all
data in the input
 provides a near-unique “signature”
for the stream
 very low probability that any two
different streams will generate the
same hash
 e.g. MD5 gives 128 bit = 1 in 2^128
chance of collision
Proposition
 hash(device)=hash(copied stream) =>
copied stream can be used as if it is the
device for investigation

 Is this acceptable ?
Operating System
 Performs system management
 Scheduling
 Resource access control
 Resource allocation
Share fairly
 In groups work out the best method for
 Sharing a cake when
2 people love the cake and what to have more
than the other
 3 people love the cake and what to have more
than the other
O/S Critical functions :
Scheduling
 Scheduling - deciding which program
(process) should be running now

Running Waiting

Blocked
Scheduling
 Only one process can be running at any
time
 O/S “timeslices” to create appearance
of parallelism
 Data for waiting or blocked processes is
held in RAM or swapped to disk
O/S Critical functions :
Filesystem
 File-system management
 Managing storage devices
 Deciding where to write data on
 disk, memory devices, etc.
 Detecting device errors
 Tracking used (allocated) space
 Tracking unused (unallocated) space
 Dealing with file deletion
Filesystems
 There are more file systems than
O/S
 Most O/S support multiple file
systems
 File systems have their own
strengths, weaknesses
What does this mean and
idiosyncrasies
 All have the same 4 basic
operations
C RUD
 Create,
 read,
O/S
 is “god” in the system
 ALL programs MUST request access to
resources via the O/S
 Programs only run if the O/S allows
them to
 => understanding of O/S is crucial

Common questions

Powered by AI

Potential issues from hardware differences during device-to-device data copying include inconsistencies such as different bad block positions, which can cause incomplete or incorrect data transfers. These discrepancies could lead to corrupted or incomplete copies of the data, thus compromising the integrity of the duplication. Contemporary methodology addresses these challenges by applying the streams concept and performing bitwise copies, which produce an exact replica of the device data without being affected by hardware variances. This approach ensures that the copy is identical to the source at all levels above the device driver, thereby enhancing the reliability and accuracy of digital forensic processes .

The bitwise copy method addresses several challenges in verifying the integrity of device data, specifically in ensuring that digital evidence remains unaltered during investigations. By performing a bitwise copy, the method creates an exact replica of the data on a device, down to every single bit, ensuring a verifiable duplicate of the original data. This duplication process is crucial for maintaining the soundness of evidence used for forensic investigations, as it avoids any potential data corruption or alteration that could arise from accessing the device directly. Furthermore, the use of hash functions to generate near-unique signatures of both the original device data and the bitwise copy guarantees their equivalence, making it possible to confidently use the copy as reliable evidence .

Modern operating systems manage resource allocation by using several techniques, primarily involving scheduling, memory management, and device management. The operating system serves as a mediator that manages the hardware resources and orchestrates the allocation to various applications and processes. Scheduling involves deciding which process should run at any given time, often using timeslicing to simulate parallelism. Memory management includes allocating and deallocating memory space as needed by different programs and ensuring efficient access to files through the file system. Device management facilitates interaction between hardware and software using device drivers that allow the operating system to communicate with any hardware device, making the hardware resources available for applications .

Understanding the critical functions of an operating system is essential for ensuring system security and stability because these functions dictate how resources are managed, processes are scheduled, and security protocols are enforced. The operating system acts as a gatekeeper, controlling access to hardware resources and ensuring that only authorized processes are executed. Scheduling determines which processes have access to the processor at a given time, influencing how effectively resources are used. Memory management prevent unauthorized access to data by isolating processes. Robust file system management is crucial for preventing data loss and managing storage effectively. Familiarity with these aspects allows for better protection against vulnerabilities and ensures the operating system can recover from errors, manage workload efficiently, and maintain the overall health of the system .

Most file systems support four basic operations, known as CRUD: Create, Read, Update, and Delete. These operations are foundational for data management in operating systems as they define how files and data are handled. Creation involves allocating space and registering new files in the system, while reading allows programs to access and retrieve data. Update operations enable existing data to be modified without creating new files, and deletion removes files and frees storage space. Together, these operations ensure effective data handling, space management, and access control, contributing to overall system efficiency and robustness .

Hash functions contribute to data integrity during forensic investigations by creating a unique digital fingerprint or signature for any data set, allowing investigators to verify the authenticity and integrity of data copies. This is achieved by applying a hash function like MD5 or SHA, which generates a fixed-size string from any size input. The hash uniquely identifies a dataset, and even a small change in data will result in a significantly different hash output. This ensures that a copied dataset is identical to its source, as matching hashes confirm that no unauthorized changes have occurred. The very low probability of hash collisions—where two different datasets produce the same hash—underpins their reliability, making hashes a crucial tool for ensuring data integrity in digital forensics .

Device drivers facilitate hardware and software interaction in an operating system by acting as translators between the hal (Hardware Abstraction Layer) and actual hardware devices. They convert general operating system commands into device-specific actions that allow the software to utilize the hardware effectively without needing to know the technical specifics of the hardware. For instance, a device driver will enable an OS to access various types of storage or graphics devices seamlessly. Drivers also plug into the HAL, providing a layer of abstraction that allows different hardware components to be interchangeably supported, thus improving the overall flexibility and compatibility of the system .

The Unix streams model of I/O enhances flexibility and efficiency by treating all input/output operations as streams, which are sequences of bits read or written. This abstraction allows for a uniform interface for I/O operations across different types of devices, such as disk drives, network interfaces, and tape drives. By implementing file systems on top of these streams, the I/O model can manage file operations in the same way it manages device interactions. This streamlining reduces the complexity of I/O management and boosts efficiency by simplifying how devices communicate with the operating system, thus supporting more seamless integration and communication with various hardware types .

The Hardware Abstraction Layer (HAL) plays a crucial role in providing compatibility across different hardware architectures. It offers a standardized interface that hides the hardware specificity from the operating system, allowing the same operating system to run on various hardware configurations. The HAL achieves this by representing hardware resources through a virtual machine layer, which means the operating system does not need to directly interact with actual hardware details, thereby simplifying device management and support for multiple device drivers .

The kernel is considered the most critical part of the operating system because it implements essential functions that enable the operation of the whole system. As the core component, the kernel is responsible for managing the system's hardware resources, coordinating interactions between hardware and software, and ensuring the execution of processes. It is the only part of the operating system that has unrestricted access to all hardware components, which underscores its importance. Furthermore, the kernel handles critical tasks such as process management, memory management, device management, and system calls, which are essential to maintain system operations, stability, and security .

You might also like