Installing Freebsd with PC-SYSINSTALL

Total Page:16

File Type:pdf, Size:1020Kb

Installing Freebsd with PC-SYSINSTALL ������� ���������������������������� ������������� ��������������� � ������������������������������������ ������������������������������������������������������������ �������������������������������������������������� ����������������������������������������������������������� ������������������������� ���������������������������������������������������������������� � ����������������������������������� �������������������������������������������������������� ����������������������������� �������������������������������������������� �������������������������������������������������������� � ���������������������������������� ��������������������������� �������������������������������������������������������������� � ������������������������������ ���������������������������������������������������������� ���������������������������������������� �������������������� �������������������� � ��������������������������������������������� ������������������������������������������������ ������������������������������������������ ��������������������������������������������������������� � ���������������������������������������� �������������������������������������� �������������������������������������������������� ���������������������������������������������� ������������������� � ���������������������� � ������������������������������������� ��������������������������� � �������� ������������������������������ �������� � ����������������������������������� ��������� ���������� ������������� �������� ���������������������������������������������������� ������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������������� ������� ���������������������������� ������������� ��������������� � ������������������������������������ ������������������������������������������������������������ �������������������������������������������������� ����������������������������������������������������������� ������������������������� ���������������������������������������������������������������� � ����������������������������������� �������������������������������������������������������� ����������������������������� �������������������������������������������� �������������������������������������������������������� � ���������������������������������� ��������������������������� �������������������������������������������������������������� � ������������������������������ ���������������������������������������������������������� ���������������������������������������� �������������������� �������������������� � ��������������������������������������������� ������������������������������������������������ ������������������������������������������ ��������������������������������������������������������� � ���������������������������������������� �������������������������������������� �������������������������������������������������� ���������������������������������������������� ������������������� � ���������������������� � ������������������������������������� ��������������������������� � �������� ������������������������������ �������� � ����������������������������������� ��������� ���������� ������������� �������� ���������������������������������������������������� ������������������������������������� ��������������������������������������������������������������������������������������������������������������������������������������������� CONTENTS Here it is! Editor in Chief: We are back and present you with the June issue Zbigniew Puchciński of BSD magazine. As you may have noticed, this [email protected] month’s issue is a little bit thicker than usual and we Contributing: Ivan „Rambius” Ivanov, Josh Paetzel, Dru Lavigne, Antoine hope you enjoy all the content! Jacoutot, Justin C. Sherrill, Kris Moore, Rob Somerville, Sufyan We get started with Ivan Rambius Ivanov and his bin Uzayr, Erwin Kooi, Michael Hernandez, Girish Venkatachalam, „Introduction to OpenSSL: Command line Tool” Mohammed Farrag, Jim Brown. article followed by the What’s New section Proofreaders: Sander Reiche, Christopher J. Umina where you will �nd a short summary of the BSDCan Top betatester: 2011 conference written by Josh Paetzel, and Dru Josmar Calin de Pierri, Daniel Cialdella Converti Lavigne who will introduce us to the recently released Special Thanks: FreeNAS 8.0. Denise Ebery, Matt Olander, Rafał Jaworowski In the Developers Corner we will meet Antoine Art Director: Jacoutot describing an OpenBSD success story, Justin Ireneusz Pogroszewski C. Sherrill sharing news about the Dragon�yBSD DTP: project, and Kris Moore who shows us how to install Ireneusz Pogroszewski FreeBSD with the PC-BSD installer – PC-SYSINSTALL. Senior Consultant/Publisher: In this months How-Tos Rob Somerville introduces Paweł Marciniak [email protected] us to GIS in what seems to be a promise of another CEO: Ewa Dudzic series of his. Then you will �nd Sufyan bin Uzayr’s [email protected] article teaching how to deploy a Cloud OS on BSD, Production Director: and the third part of the Mutt series written by Andrzej Kuca Michael Hernandez. [email protected] Also in How-Tos you will �nd a cover story – Executive Ad Consultant: Ewa Dudzic „NanoBSD and ALIX” written by Erwin Kooi. [email protected] In the Let’s Talk section we have articles from Girish Advertising Sales: Venkatachalam and Mohammed Farrag, as well Zbigniew Puchciński as a �rst of BSD Certi�cation articles written by Jim [email protected] Brown. Publisher : Software Press Sp. z o.o. SK In the end we prepared an Interview with Rafał ul. Bokserska 1, 02-682 Warszawa Poland Jaworowski from Semihalf – an embedded hardware worldwide publishing and software developing company which makes tel: 1 917 338 36 31 great use of BSD in their work. www.bsdmag.org Software Press Sp z o.o. SK is looking for partners from all over the world. If you are interested in cooperation with us, please I wish you have a good read and feedback is always contact us via e-mail: [email protected] welcome! All trade marks presented in the magazine were used only for Thank you! informative purposes. All rights to trade marks presented in the magazine are reserved by the companies which own them. Zbigniew Puchciński Editor in Chief The editors use automatic DTP system [email protected] Mathematical formulas created by Design Science MathType™. 4 06/2011 Contents Get Started Exploring The Powers Of The Cloud 34 Deploying eyeOS On BSD 06Introduction to OpenSSL: Command-line Sufyan bin Uzayr Tool Ever thought of running things in the cloud? How about doing Ivan ‘Rambius’ Ivanov that from your own server, without any extra effort or cost? The article describes the command-line utility of openssl. It is a tool that supports encryption and decryption, NanoBSD and ALIX message digests, key generation and exchange and ssl 38 Erwin Kooi channel manipulations. In the previous issue of BSD Magazine, Bill Harris described how to do a basic installation of FreeBSD on a What’s New PC-Engines ALIX board with a Compact Flash card. BSDCan Mutt On OS X Part III 13 Josh Paetzel 44Michael Hernandez Josh has prepared a short summary of BSDCan 2011 In this article, I’ll go into setting up Mutt to make the conference. most of Gmail’s features, as well as a way to handle attachments on your Mac. 14 Introducing FreeNAS 8.0 Dru Lavigne Let’s Talk On May 2, 2011 the much anticipated redesign of FreeNAS was released. This article introduces FreeNAS 8.0. OpenBSD Networking 46 Girish Venkatachalam Developers Corner OpenBSD has an often mistaken image across the world that it stands for cryptography and crypto alone. Only for security 20 A Puffy In The Corporate Aquarium. applications OpenBSD is a good choice. This is what I used Success story: OpenBSD as an to think till I started looking at its IPsec stack in 2003. Enterprise Desktop Antoine Jacoutot 48 OMAP3 Full Support is Coming Soon in While OpenBSD is well known for its use in infrastructure FreeBSD services (MTA, DNS, firewall...) or appliances, this Mohammed Farrag article will focus on a less known application: the use of The trend in the FreeBSD development is bringing OpenBSD as a Joe User Desktop. FreeBSD for new sets of hardware. The OMAP™ 3 family of multimedia applications processors from TI introduces DragonflyBSD news a new level of performance. 25 Justin C. Sherrill What It Takes Starting and Running an Installing FreeBSD with PC-SYSINSTALL 50Open Source Certification Program, Part I 26 Kris Moore Jim Brown Several months ago, the PC-SYSINSTALL system (The So you’re all excited about your new software and its installer for PC-BSD 8.0 and higher) was merged into amazing capabilities to change the world. You truly FreeBSD CURRENT, in preparation for FreeBSD 9.0. believe that if only more people knew about it and were competent at using it, the world would be revolutionized. How Tos Interview An introduction to GIS on FreeBSD 30Rob Somerville Interview with Rafał Jaworowski Geographic information systems (GIS) are rapidly gaining 54 BSDmag team popularity both commercially and on the Internet, and Rafal Jaworowski is a co-founder of Semihalf, where he is used with location aware devices such as mobile phones leading the operating systems department. He contributes can be a powerful tool for aiding productivity. to the FreeBSD Project as a src committer. www.bsdmag.org 5 GET STARTED Introduction to OpenSSL: Command-line
Recommended publications
  • Katalog Elektronskih Knjiga
    KATALOG ELEKTRONSKIH KNJIGA Br Autor Naziv Godina ISBN Str. Porijeklo izdavanja 1 Peter Kent Pay Per Click Search 2006 0-471-74594-3 130 Kupovina Engine Marketing for Dummies 2 Terry Large Access 1 2007 Internet Freeware 3 Kevin Smith Excel Lassons & Tutorials 2004 Internet Freeware 4 Terry Michael Photografy Tutorials 2006 Internet Freeware Janine Peterson Phil Pivnick 5 Jake Ludington Converting Vinyl LPs 2003 Internet Freeware to CD 6 Allen Wyatt Cleaning Windows XP 2004 0-7645-7311-X Poklon for Dummies 7 Peter Kent Sarch Engine Optimization 2006 0-4717-5441-2 Kupovina for Dummies 8 Terry Large Access 2 2007 Internet Freeware 9 Dirk Dupon How to write, create, 2005 Internet Freeware promote and sell E-books on the Internet 10 Chayden Bates eBook Marketing 2000 Internet Freeware Explained 11 Kevin Sinclair How To Choose A 1999 Internet Freeware Homebased Bussines 12 Bob McElwain 101 Newbie-Frendly Tips 2001 Internet Freeware 13 Windows Basics 2004 Poklon 14 Michael Abrash Zen of Graphic 2005 Poklon Programming, 2. izdanje 15 13 Hot Internet 2000 Internet Freeware Moneymaking Methods 16 K. Williams The Complete HTML 1998 Poklon Teacher 17 C. Darwin On the Origin of Species Internet Freeware 2/175 Br Autor Naziv Godina ISBN Str. Porijeklo izdavanja 18 C. Darwin The Variation of Animals Internet Freeware 19 Bruce Eckel Thinking in C++, Vol 1 2000 Internet Freeware 20 Bruce Eckel Thinking in C++, Vol 2 2000 Internet Freeware 21 James Parton Captains of Industry 1890 399 Internet Freeware 22 Bruno R. Preiss Data Structures and 1998 Internet
    [Show full text]
  • DMFS - a Data Migration File System for Netbsd
    DMFS - A Data Migration File System for NetBSD William Studenmund Veridian MRJ Technology Solutions NASAAmes Research Center" Abstract It was designed to support the mass storage systems de- ployed here at NAS under the NAStore 2 system. That system supported a total of twenty StorageTek NearLine ! have recently developed DMFS, a Data Migration File tape silos at two locations, each with up to four tape System, for NetBSD[I]. This file system provides ker- drives each. Each silo contained upwards of 5000 tapes, nel support for the data migration system being devel- and had robotic pass-throughs to adjoining silos. oped by my research group at NASA/Ames. The file system utilizes an underlying file store to provide the file The volman system is designed using a client-server backing, and coordinates user and system access to the model, and consists of three main components: the vol- files. It stores its internal metadata in a flat file, which man master, possibly multiple volman servers, and vol- resides on a separate file system. This paper will first man clients. The volman servers connect to each tape describe our data migration system to provide a context silo, mount and unmount tapes at the direction of the for DMFS, then it will describe DMFS. It also will de- volman master, and provide tape services to clients. The scribe the changes to NetBSD needed to make DMFS volman master maintains a database of known tapes and work. Then it will give an overview of the file archival locations, and directs the tape servers to move and mount and restoration procedures, and describe how some typi- tapes to service client requests.
    [Show full text]
  • An Incremental Path Towards a Safer OS Kernel
    An Incremental Path Towards a Safer OS Kernel Jialin Li Samantha Miller Danyang Zhuo University of Washington University of Washington Duke University Ang Chen Jon Howell Thomas Anderson Rice University VMware Research University of Washington LoC Abstract Incremental Progress Tens of Linux Safe Linux Linux has become the de-facto operating system of our age, Millions FreeBSD but its vulnerabilities are a constant threat to service availabil- Hundreds of Singularity ity, user privacy, and data integrity. While one might scrap Thousands Biscuit Linux and start over, the cost of that would be prohibitive due Theseus Thousands RedLeaf seL4 to Linux’s ubiquitous deployment. In this paper, we propose Hyperkernel Safety an alternative, incremental route to a safer Linux through No Type Ownership Functional proper modularization and gradual replacement module by Guarantees Safety Safety Verification module. We lay out the research challenges and potential Figure 1: Our vision and the current state of systems. solutions for this route, and discuss the open questions ahead. security vulnerabilities are reported each year, and lifetime CCS Concepts analysis suggests that the new code added this year has intro- duced tens of thousands of more bugs. ! • Software and its engineering Software verification; While operating systems are far from the only source of se- ! • Computer systems organization Reliability. curity vulnerabilities, it is hard to envision building trustwor- Keywords thy computer systems without addressing operating system correctness. kernel safety, verified systems, reliable systems One attractive option is to scrap Linux and start over. Many ACM Reference Format: past works focus on building more secure and correct op- Jialin Li, Samantha Miller, Danyang Zhuo, Ang Chen, Jon Howell, erating systems from the ground up: ones based on strong and Thomas Anderson.
    [Show full text]
  • FS Design Around SMR Approved SNIA Tutorial © 2015 Storage Networking Industry Association
    PRESENTATIONFS Design TITLE Around GOES HERE SMR Seagate’s Journey with EXT4 Adrian Palmer - Seagate SNIA Legal Notice The material contained in this tutorial is copyrighted by the SNIA unless otherwise noted. Member companies and individual members may use this material in presentations and literature under the following conditions: Any slide or slides used must be reproduced in their entirety without modification The SNIA must be acknowledged as the source of any material used in the body of any document containing material from these presentations. This presentation is a project of the SNIA Education Committee. Neither the author nor the presenter is an attorney and nothing in this presentation is intended to be, or should be construed as legal advice or an opinion of counsel. If you need legal advice or a legal opinion please contact your attorney. The information presented herein represents the author's personal opinion and current understanding of the relevant issues involved. The author, the presenter, and the SNIA do not assume any responsibility or liability for damages arising out of any reliance on or use of this information. NO WARRANTIES, EXPRESS OR IMPLIED. USE AT YOUR OWN RISK. FS Design Around SMR Approved SNIA Tutorial © 2015 Storage Networking Industry Association. All Rights Reserved. 2 Abstract SMR Friendly File System SMR is a fundamental drive technology, embraced by drive vendors. SMR changes fundamental assumptions of file system management. This long-held notion of Random-Writes now resembles the write profile of sequential-access tape. Seagate is leading the way in providing a standards compliant IO stack for use with the new drives.
    [Show full text]
  • Bsdcan 2004 by Bill Moran Bsdcan Conference Roundup This Is a Description of My Trip to Bsdcan 2004 in Ottawa, by Chris Coleman Canada
    Daemon News: May 2004 http://ezine.daemonnews.org/200405/ Mirrors Issues April 2004 May 2004 Get BSD Contact Us Search BSD FAQ New to BSD? DN Print Magazine BSD News BSD Mall BSD Support Join Us 1 of 4 26.05.2004 08:14 Daemon News: May 2004 http://ezine.daemonnews.org/200405/ T H I S M O N T H ' S F E A T U R E S From the Editor BSDCan 2004 by Bill Moran BSDCan Conference Roundup This is a description of my trip to BSDCan 2004 in Ottawa, by Chris Coleman Canada. If you're interested in BSD or computers in general and Didn't make it to BSDCan? did not go to BSDCan, then you made a huge mistake. The Here are all the things you conference was tremendiously educational, and the trip was a missed so you can start great opportunity to meet a number of great people, and visit a feeling guilty. beatiful city. The conference was also very affordable, and there were more than a few who attended on a shoestring budget (I tried to do this, but ended up drinking far too much beer). A Get BSD Stuff number of people also visited from tremendious distances ... attendees arrived from all over the world, so anyone who didn't make it really has no excuse. Read More Bosko's Adventures at BSDCan 2004 by Bosko Milekic It's Sunday, May 16, 2004. 5:30PM. BSDCan has come to a formal close late last night at around 2:00AM, when George, other NYCBUGers, myself, and a friend decided to finally give the poor waitresses tending on us a break, and leave the pub once and for all.
    [Show full text]
  • A Bibliography of O'reilly & Associates and O
    A Bibliography of O'Reilly & Associates and O'Reilly Media. Inc. Publishers Nelson H. F. Beebe University of Utah Department of Mathematics, 110 LCB 155 S 1400 E RM 233 Salt Lake City, UT 84112-0090 USA Tel: +1 801 581 5254 FAX: +1 801 581 4148 E-mail: [email protected], [email protected], [email protected] (Internet) WWW URL: http://www.math.utah.edu/~beebe/ 08 February 2021 Version 3.67 Title word cross-reference #70 [1263, 1264]. #70-059 [1263]. #70-068 [1264]. 2 [949]. 2 + 2 = 5986 [1456]. 3 [1149, 1570]. *# [1221]. .Mac [1940]. .NET [1860, 22, 186, 342, 441, 503, 591, 714, 716, 721, 730, 753, 786, 998, 1034, 1037, 1038, 1043, 1049, 1089, 1090, 1091, 1119, 1256, 1468, 1858, 1859, 1863, 1899, 1900, 1901, 1917, 1997, 2029]. '05 [461, 1532]. 08 [1541]. 1 [1414]. 1.0 [1009]. 1.1 [59]. 1.2 [1582]. 1000 [1511]. 1000D [1073]. 10g [711, 710]. 10th [2109]. 11 [1385]. 1 2 2 [53, 209, 269, 581, 2134, 919, 940, 1515, 1521, 1530, 2023, 2045]. 2.0 [2, 55, 203, 394, 666, 941, 1000, 1044, 1239, 1276, 1504, 1744, 1801, 2073]. 2.1 [501]. 2.2 [201]. 2000 [38, 202, 604, 610, 669, 927, 986, 1087, 1266, 1358, 1359, 1656, 1751, 1781, 1874, 1959, 2069]. 2001 [96]. 2003 [70, 71, 72, 73, 74, 279, 353, 364, 365, 789, 790, 856, 987, 1146, 1960, 2026]. 2003-2013 [1746]. 2004 [1195]. 2005 [84, 151, 755, 756, 1001, 1041, 1042, 1119, 1122, 1467, 2120, 2018, 2056]. 2006 [152, 153]. 2007 [618, 726, 727, 728, 1123, 1125, 1126, 1127, 2122, 1973, 1974, 2030].
    [Show full text]
  • Advanced File Systems and ZFS
    Advanced File Systems and ZFS Jan Šenolt [email protected] Solaris Engineering May 6, 2021 1 Agenda • Crash Consistency Problem • fsck • Journalling • Log-structured File Systems • Soft-Updates • ZFS 2 Crash Consistency Problem 3 Traditional UNIX File System • appending a new block to the file involves at least 3 writes to different data structures: • block bitmap - allocate the block • inode - update e2di_blocks[], e2di_size • data block - actual payload • what will happen if we fail to make some of these changes persistent? • crash-consistency problem • File System Inconsistency • how to deal with? 4 File System Checker, fsck • a reactive approach • let the inconsistencies happen and try to find (and eventually fix) them later (on reboot) • metadata-only based checks • verify that each allocated block is referenced by exactly one inode • … but what if it is not?? • unable to detect corrupted (missing) user data • does not scale well • O(file system size) • improvements? • check only recently changed data? • … still useful! 5 Journaling, logging 1. start a new transaction 2. write all planned change to the journal 3. make sure that all writes to log completed properly • close the transaction 4. make the actual in-place updates • journal reply • after crash, on reboot • walk the journal, find all complete transactions and apply them 6 Journaling, logging (2) • journal can be a (preallocated) file within the file system or a dedicated device • small circular buffer • UFS: 1MB per 1GB, 64MB max • types of journals • physical - stores
    [Show full text]
  • Ted Ts'o on Linux File Systems
    Ted Ts’o on Linux File Systems An Interview RIK FARROW Rik Farrow is the Editor of ;login:. ran into Ted Ts’o during a tutorial luncheon at LISA ’12, and that later [email protected] sparked an email discussion. I started by asking Ted questions that had I puzzled me about the early history of ext2 having to do with the perfor- mance of ext2 compared to the BSD Fast File System (FFS). I had met Rob Kolstad, then president of BSDi, because of my interest in the AT&T lawsuit against the University of California and BSDi. BSDi was being sued for, among other things, Theodore Ts’o is the first having a phone number that could be spelled 800-ITS-UNIX. I thought that it was important North American Linux for the future of open source operating systems that AT&T lose that lawsuit. Kernel Developer, having That said, when I compared the performance of early versions of Linux to the current version started working with Linux of BSDi, I found that they were closely matched, with one glaring exception. Unpacking tar in September 1991. He also archives using Linux (likely .9) was blazingly fast compared to BSDi. I asked Rob, and he served as the tech lead for the MIT Kerberos explained that the issue had to do with synchronous writes, finally clearing up a mystery for me. V5 development team, and was the architect at IBM in charge of bringing real-time Linux Now I had a chance to ask Ted about the story from the Linux side, as well as other questions in support of real-time Java to the US Navy.
    [Show full text]
  • Freebsd Enterprise Storage Polish BSD User Group Welcome 2020/02/11 Freebsd Enterprise Storage
    FreeBSD Enterprise Storage Polish BSD User Group Welcome 2020/02/11 FreeBSD Enterprise Storage Sławomir Wojciech Wojtczak [email protected] vermaden.wordpress.com twitter.com/vermaden bsd.network/@vermaden https://is.gd/bsdstg FreeBSD Enterprise Storage Polish BSD User Group What is !nterprise" 2020/02/11 What is Enterprise Storage? The wikipedia.org/wiki/enterprise_storage page tells nothing about enterprise. Actually just redirects to wikipedia.org/wiki/data_storage page. The other wikipedia.org/wiki/computer_data_storage page also does the same. The wikipedia.org/wiki/enterprise is just meta page with lin s. FreeBSD Enterprise Storage Polish BSD User Group What is !nterprise" 2020/02/11 Common Charasteristics o Enterprise Storage ● Category that includes ser$ices/products designed &or !arge organizations. ● Can handle !arge "o!umes o data and !arge num%ers o sim#!tano#s users. ● 'n$olves centra!ized storage repositories such as SA( or NAS de$ices. ● )equires more time and experience%expertise to set up and operate. ● Generally costs more than consumer or small business storage de$ices. ● Generally o&&ers higher re!ia%i!it'%a"aila%i!it'%sca!a%i!it'. FreeBSD Enterprise Storage Polish BSD User Group What is !nterprise" 2020/02/11 EnterpriCe or EnterpriSe? DuckDuckGo does not pro$ide search results count +, Goog!e search &or enterprice word gi$es ~ 1 )00 000 results. Goog!e search &or enterprise word gi$es ~ 1 000 000 000 results ,1000 times more). ● /ost dictionaries &or enterprice word sends you to enterprise term. ● Given the *+,CE o& many enterprise solutions it could be enterPRICE 0 ● 0 or enterpri$e as well +.
    [Show full text]
  • The Book of PF Covers the Most • Stay in Control of Your Traffic with Monitoring and Up-To-Date Developments in PF, Including New Content PETER N.M
    EDITION3RD BUILD A Covers OpenBSD 5.6, MORE SECURE FreeBSD 10.x, and NETWORK EDITION NETWORK 3RD NetBSD 6.x WITH PF THETHE BOOKBOOK THE BOOK OF PF OF THE BOOK THE BOOK OF PF OF THE BOOK OFOF PFPF OpenBSD’s stateful packet filter, PF, is the heart of • Build adaptive firewalls to proactively defend against A GUIDE TO THE the OpenBSD firewall. With more and more services attackers and spammers NO-NONSENSE placing high demands on bandwidth and an increas- OPENBSD FIREWALL • Harness OpenBSD’s latest traffic-shaping system ingly hostile Internet environment, no sysadmin can to keep your network responsive, and convert your afford to be without PF expertise. existing ALTQ configurations to the new system The third edition of The Book of PF covers the most • Stay in control of your traffic with monitoring and up-to-date developments in PF, including new content PETER N.M. HANSTEEN visualization tools (including NetFlow) on IPv6, dual stack configurations, the “queues and priorities” traffic-shaping system, NAT and redirection, The Book of PF is the essential guide to building a secure wireless networking, spam fighting, failover provision- network with PF. With a little effort and this book, you’ll ing, logging, and more. be well prepared to unlock PF’s full potential. You’ll also learn how to: ABOUT THE AUTHOR • Create rule sets for all kinds of network traffic, whether Peter N.M. Hansteen is a consultant, writer, and crossing a simple LAN, hiding behind NAT, traversing sysadmin based in Bergen, Norway. A longtime DMZs, or spanning bridges or wider networks Freenix advocate, Hansteen is a frequent lecturer on OpenBSD and FreeBSD topics, an occasional • Set up wireless networks with access points, and contributor to BSD Magazine, and the author of an lock them down using authpf and special access often-slashdotted blog (http://bsdly.blogspot.com/ ).
    [Show full text]
  • Journaling File Systems
    JOURNALING FILE SYSTEMS CS124 – Operating Systems Spring 2021, Lecture 26 2 File System Robustness • The operating system keeps a cache of filesystem data • Secondary storage devices are much slower than main memory • Caching frequently-used disk blocks in memory yields significant performance improvements by avoiding disk-IO operations • ProBlem 1: Operating systems crash. Hardware fails. • ProBlem 2: Many filesystem operations involve multiple steps • Example: deleting a file minimally involves removing a directory entry, and updating the free map • May involve several other steps depending on filesystem design • If only some of these steps are successfully written to disk, filesystem corruption is highly likely 3 File System Robustness (2) • The OS should try to maintain the filesystem’s correctness • …at least, in some minimal way… • Example: ext2 filesystems maintain a “mount state” in the filesystem’s superBlock on disk • When filesystem is mounted, this value is set to indicate how the filesystem is mounted (e.g. read-only, etc.) • When the filesystem is cleanly unmounted, the mount-state is set to EXT2_VALID_FS to record that the filesystem is trustworthy • When OS starts up, if it sees an ext2 drive’s mount-state as not EXT2_VALID_FS, it knows something happened • The OS can take steps to verify the filesystem, and fix it if needed • Typically, this involves running the fsck system utility • “File System Consistency checK” • (Frequently, OSes also run scheduled filesystem checks too) 4 The fsck Utility • To verify the filesystem,
    [Show full text]
  • 62 ABI. See Application Binary Inter
    Index /,38–39, 348 implementation of, 509–510 .., 125, 307, 315, 327, 339–340, 345, 621 purpose of, 509 ., 307, 315, 339–340, 621 address, socket, 453–454 #!,62 address space. See virtual address space address structure A Internet, 454 local domain, 454 ABI. See application binary interface socket, 438, 645 absolute pathname, 39, 615, 635 address translation, 136, 615 accept system call, 440, 453, 455–457, 469, addresses, IPv6, 560–561 540, 564 adjtime system call, 66 definition, 439 administrative control, 123–129 access control, filesystem, 41 ad_start(), 280 access control list, 41, 125, 301, 615 adstrategy(), 280–281 access rights, 450, 460 advanced configuration and power interface, receiving, 463 266, 289 access system call, 254 advanced programmable interrupt controller, access vnode operator, 296 265, 268, 600 accounting, process resource, 58–59, 73–74, advisory locking, 232, 296, 615 111 advlock vnode operator, 296 accton, 608 AF_INET, 438, 564 ACL. See access control list AF_INET6, 564 ACPI. See advanced configuration and AH. See authentication header power interface ahc_action(), 279 active page list, 188 ahc_done(), 279 ad_done(), 281 aio_error system call, 230–231 address family, 450–451, 454, 473, 615 aio_read system call, 230, 260 address resolution protocol, 492, 509–510, aio_return system call, 231 567, 615–616 aio_suspend system call, 231 653 Front Page 653 654 Index aio_waitcomplete system call, 231 asymmetric cryptography, 581, 616 aio_write system call, 230, 260 asynchronous I/O, 229–231 algorithm asynchronous system trap, 105, 616 for disksort(), 224 AT A disk, 24, 265–267, 279–281, 286–289 elevator sorting, 224 I/O request, 280–281 mbuf storage-management, 447–448 layer, 279–281 for physical I/O, 221 AT A.
    [Show full text]