March 2005 1R. Smith - University of St Thomas - Minnesota Today’s Class Homework GradedHomework Graded Hard DrivesHard Drives File StructureFile Structure.

Slides:



Advertisements
Similar presentations
1 X-Ways Security: Permanent Erasure Supervised By: Dr. Lo’ai Tawalbeh Prepared By :Murad M. Ali.
Advertisements

March /18R. Smith - University of St Thomas - Minnesota QMCS 230: Today in Class Lab Status?Lab Status? Stuff from the readingStuff from the reading.
March R. Smith - University of St Thomas - Minnesota QMCS 230: Today in Class ProjectsProjects 2 dimensional arrays2 dimensional arrays Higher dimensionsHigher.
March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class Vectors and DimensionsVectors and Dimensions Scripts (shell scripts)Scripts.
March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class More about FunctionsMore about Functions RecursionRecursion.
March R. Smith - University of St Thomas - Minnesota Today’s Class Recap of a simple programRecap of a simple program A “history” of CA “history”
March R. Smith - University of St Thomas - Minnesota QMCS Class Today Homework collect/returnHomework collect/return OS Security/PolicyOS Security/Policy.
March /18R. Smith - University of St Thomas - Minnesota QMCS 230: Today in Class Hard Drives – more laterHard Drives – more later MethodsMethods.
March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class Functions and Array ArgumentsFunctions and Array Arguments ExamExam.
March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class Today: covering through P. 83 of textToday: covering through P. 83 of.
March R. Smith - University of St Thomas - Minnesota Today’s Class Program LayoutProgram Layout Problem SolvingProblem Solving Reading InputReading.
March R. Smith - University of St Thomas - Minnesota Today’s Class RecapRecap More course thingsMore course things Work on labs/projectsWork on labs/projects.
Spring R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class Final Exam ReviewFinal Exam Review –Assessment –Exam Format –C –Matlab.
March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class Exam StatusExam Status Recap of Lab 7 ExampleRecap of Lab 7 Example.
March R. Smith - University of St Thomas - Minnesota QMCS Class Today Perimeters inside computersPerimeters inside computers Protection inside.
March /18R. Smith - University of St Thomas - Minnesota QMCS 230: Today in Class I/O ObjectsI/O Objects Lab 12Lab 12.
Lecture 10: The FAT, VFAT, and NTFS Filesystems 6/17/2003 CSCE 590 Summer 2003.
File management in UNIX and windows 2000
Connecting with Computer Science, 2e
March R. Smith - University of St Thomas - Minnesota CISC Class Today Return Homework; grading recapReturn Homework; grading recap “Enigma”
March /18R. Smith - University of St Thomas - Minnesota QMCS 230: Today in Class Class projectsClass projects Lab 13: Use the method documentation.
6/22/2015 1R. Smith - University of St Thomas - Minnesota QMCS Class Today St. Lukes Case StudySt. Lukes Case Study.
Linux+ Guide to Linux Certification, Second Edition
Spring R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class Return HomeworkReturn Homework Class ScheduleClass Schedule Functions:
March R. Smith - University of St Thomas - Minnesota QMCS Class Today Cryptography – introductory termsCryptography – introductory terms “Enigma”
March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class RecapRecap Functions and CFunctions and C Using FunctionsUsing Functions.
March R. Smith - University of St Thomas - Minnesota Today’s Class Lab 1 commentsLab 1 comments Data Types in Chapter 4Data Types in Chapter 4 Lab.
March R. Smith - University of St Thomas - Minnesota Today’s Class First, course surveysFirst, course surveys RecapRecap More course thingsMore course.
March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class Lab Status, Paper StatusLab Status, Paper Status Comments on Ints vs.
March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class Data IndependenceData Independence Matlab #3: Exercise 5.1Matlab #3:
March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class StatusStatus –Survey –Returning homework ArraysArrays –What are they?
March R. Smith - University of St Thomas - Minnesota ENGR 330: Today’s Class CachesCaches Direct mapped cacheDirect mapped cache Set associative.
March R. Smith - University of St Thomas - Minnesota Today’s Class Class StuffClass Stuff ProjectProject Vectors and DimensionsVectors and Dimensions.
March R. Smith - University of St Thomas - Minnesota ENGR 330: Today’s Class Administrative: do you want another lab?Administrative: do you want.
March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class Revised Lab 14/15Revised Lab 14/15 Counting WordsCounting Words Moving.
March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class Matlab “Matrix Laboratory”Matlab “Matrix Laboratory” Chapter 1 – matrices.
March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class Homework & GradesHomework & Grades Multiple DimensionsMultiple Dimensions.
March R. Smith - University of St Thomas - Minnesota Today’s Class Homework NotesHomework Notes –Always try to match the printed output if I give.
March /18R. Smith - University of St Thomas - Minnesota QMCS 230: Today in Class The ExamThe Exam Homework NotesHomework Notes.
March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class AssignmentsAssignments Logical operationsLogical operations Summations.
Chapter 4: Operating Systems and File Management 1 Operating Systems and File Management Chapter 4.
Fundamentals of Networking Discovery 1, Chapter 2 Operating Systems.
Objectives Learn what a file system does
LIS508 lecture 5: storage devices Thomas Krichel
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
4 1 Operating System Activities  An operating system is a type of system software that acts as the master controller for all activities that take place.
Lecture 9: The FAT and VFAT Filesystems 6/16/2003 CSCE 590 Summer 2003.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Unix Basics Chapter 4.
IOS110 Introduction to Operating Systems using Windows Session 8 1.
Linux+ Guide to Linux Certification, Second Edition
Component 4: Introduction to Information and Computer Science Unit 4: Application and System Software Lecture 3 This material was developed by Oregon Health.
1 3 Computing System Fundamentals 3.7 Utility Software.
File System Management File system management encompasses the provision of a way to store your data in a computer, as well as a way for you to find and.
Chapter 5 Organizing Files and Folders. 2Practical PC 5 th Edition Chapter 5 Getting Started In this Chapter, you will learn: − How to get a list of your.
March R. Smith - University of St Thomas - Minnesota QMCS 130: Today’s Class Grades & Lab 12Grades & Lab 12 Upcoming ExamUpcoming Exam StructuresStructures.
March R. Smith - University of St Thomas - Minnesota QMCS Class Today “Enigma” recap and finish“Enigma” recap and finish The quiz/surveyThe.
Chapter 14: Files and Streams. 2Microsoft Visual C# 2012, Fifth Edition Files and the File and Directory Classes Temporary storage – Usually called computer.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
CS101 Storage Information Storage The zeros and ones in the input devices, output devices and process devices are in _______ form and are lost when the.
1/28/2016 1R. Smith - University of St Thomas - Minnesota CISC 130: Today’s Class Assignments 7 and 8Assignments 7 and 8 ExamExam History Paper AssignmentHistory.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
March /18R. Smith - University of St Thomas - Minnesota QMCS 230: Today in Class What’s on the Exam Next Week?What’s on the Exam Next Week? Lab 8Lab.
Chapter 8 File Systems FAT 12/16/32. Defragmentation Defrag a hard drive – Control Panel  System and Security  Administration tools  Defrag hard drive.
March R. Smith - University of St Thomas - Minnesota Today’s Class Class StuffClass Stuff ProjectProject Vectors and DimensionsVectors and Dimensions.
File and File Systems Compiled by IITG Team Need to be reorganized and reworded.
7/6/2016 1R. Smith - University of St Thomas - Minnesota CISC 130: Today’s Class Computer HardwareComputer Hardware Recap: next programRecap: next program.
Windows 7 and file management
Chapter 5 File Systems -Compiled for MCA, PU
Presentation transcript:

March R. Smith - University of St Thomas - Minnesota Today’s Class Homework GradedHomework Graded Hard DrivesHard Drives File StructureFile Structure File NamesFile Names Matlab ScriptsMatlab Scripts

Homework If you have questions – see me after classIf you have questions – see me after class Project PlansProject Plans –Scored maximum of 15 points –Ideal: should have required all sections explicitly identified When you are given a report format, you ignore it at your peril – a fundamental rule of any assignmentWhen you are given a report format, you ignore it at your peril – a fundamental rule of any assignment Better scores = more specific plansBetter scores = more specific plans Better scores = realistically thought out plansBetter scores = realistically thought out plans Assignments 11 and 12Assignments 11 and 12 –Looked for clean output – no debug printings –I ignored presence of extra search at the end (11) March R. Smith - University of St Thomas - Minnesota

Hard Drives Based on magnetic recordingBased on magnetic recording –Motion of magnet = current (reading) –Current in a coil can magnetize (writing) Magnetic tape = same principleMagnetic tape = same principle –Drag the tape across a read/write head –Recording tape, VCRs Disks and Drums as storageDisks and Drums as storage –Read/write head hovers over the data Drum = stationary head, one per trackDrum = stationary head, one per track Disk = moving head -> what we use todayDisk = moving head -> what we use today Can PCs read and write Mac hard drives?Can PCs read and write Mac hard drives? –What about Linux hard drives? March R. Smith - University of St Thomas - Minnesota

File Structure –Different structures in different operating systems NTFS – WindowsNTFS – Windows FAT – older Windows, still used for a ‘cheap’ file systemFAT – older Windows, still used for a ‘cheap’ file system HFS+ - MacintoshHFS+ - Macintosh Unix file systems – “UFS” and “ext” systemsUnix file systems – “UFS” and “ext” systems –How are they similar All have hierarchies of directories (folders)All have hierarchies of directories (folders) All have file ownership and permissions (except FAT)All have file ownership and permissions (except FAT) All support larger files (except FAT)All support larger files (except FAT) –How are they different “Path names” may use different delimiters \ : /“Path names” may use different delimiters \ : / “Internal” structure is different“Internal” structure is different –How they store files –How they handle free space on the hard drive March R. Smith - University of St Thomas - Minnesota

Disk Formatting “Low level” formatting (“slow” formatting)“Low level” formatting (“slow” formatting) –Rebuilds the structure of the hard drive itself Structure: magnetic format used to arrange ‘raw’ dataStructure: magnetic format used to arrange ‘raw’ data –Low level reformatting can eliminate “bad sectors”can eliminate “bad sectors” makes it VERY HARD to recover data (EXPENSIVE)makes it VERY HARD to recover data (EXPENSIVE) VERY SLOWVERY SLOW “High level” formatting (“quick” formatting)“High level” formatting (“quick” formatting) –Rebuilds the file system by overwriting old directories –Gives you a newly emptied hard drive –You lose ALL of your old data It is hard, though possible to recover some of this dataIt is hard, though possible to recover some of this data Special software can sometimes recover the lost dataSpecial software can sometimes recover the lost data March R. Smith - University of St Thomas - Minnesota

“Sanitizing” a hard drive The process of removing all the dataThe process of removing all the data Example: I’m returning a laptop to IRTExample: I’m returning a laptop to IRT –I used it to do taxes and home finance stuff –It had all sorts of personal (ID fraud sensitive) data Problem: even deleted data is recoverableProblem: even deleted data is recoverable –“Undelete” programs can often find deleted files Murphy’s Law: the programs can always recover stuff you want to lose forever, but never seem to recover stuff you deleted by accident and Really, Really need backMurphy’s Law: the programs can always recover stuff you want to lose forever, but never seem to recover stuff you deleted by accident and Really, Really need back Sanitization OptionsSanitization Options –“Wipe” the drive with multiple passes of writing data –Physically destroy the drive – harder than it sounds March R. Smith - University of St Thomas - Minnesota

Working with file system hierarchy The problem: “include” files are in other placesThe problem: “include” files are in other places –Or, we’re looking for something in a web site What do we do?What do we do? –We provide a “path” to the folder containing the right file Most programs work from a “local” folderMost programs work from a “local” folder –Usually the folder containing other working files –Example: the folder with your “c” file when compiling That folder must also contain “inputs.h”That folder must also contain “inputs.h” –If we put a file elsewhere, we need to provide the “path” March R. Smith - University of St Thomas - Minnesota

The “path” to a file Referring to other “local” foldersReferring to other “local” folders –Subfolders: put the folder name in front of the file name Multiple subfolders: include the ‘path’ from here to thereMultiple subfolders: include the ‘path’ from here to there –Folders “above” the local folder –Use “..” as name of the folder above this one. Each set of.. goes up a level in the folder hierarchyEach set of.. goes up a level in the folder hierarchy –A path can contain mixtures of “..” and subfolder names Referring to an absolute locationReferring to an absolute location –Include whole path from the drive letter or “root” March R. Smith - University of St Thomas - Minnesota

March R. Smith - University of St Thomas - Minnesota Back to Matlab: Scripts Just save a series of Matlab commands in a fileJust save a series of Matlab commands in a file Give it a.m suffixGive it a.m suffix Refer to it by name inside Matlab as a ‘command’Refer to it by name inside Matlab as a ‘command’ Use % as comment marker (like //)Use % as comment marker (like //) Use the built-in Matlab text editorUse the built-in Matlab text editor Functions are different – we’ll get to that laterFunctions are different – we’ll get to that later

March R. Smith - University of St Thomas - Minnesota Import/Export of Matrices New population vectorNew population vector –Row 1 = #people in a house –Row 2-5 = four highest ages of people in a house Using Excel to type in a matrixUsing Excel to type in a matrix Using TextpadUsing Textpad Importing/ExportingImporting/Exporting –x = importdata(‘file.txt’); –x = csvread(‘file.csv’); –csvwrite(‘file2.csv’, x);

Writing a script to work with that file How does the script read in the file?How does the script read in the file? Where does the file reside?Where does the file reside? How do we calculate:How do we calculate: –Mean age of adults (over 21) –Mean age of children (under 18) March R. Smith - University of St Thomas - Minnesota

March R. Smith - University of St Thomas - Minnesota Creative Commons License This work is licensed under the Creative Commons Attribution-Share Alike 3.0 United States License. To view a copy of this license, visit sa/3.0/us/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.