Welcome. A Basic Tutorial Introduction to Using. Floppy Diskettes. Not Dead Yet. By Stan Reichardt

Similar documents
Full file at

RocketRAID 2522 SATA Controller Ubuntu Linux Installation Guide

Fedora Linux Installation Guide

Rocket RAID 2644 SAS Controller opensuse Linux Installation Guide

RocketRAID 231x/230x SATA Controller Debian Linux Installation Guide

Ubuntu Linux Installation Guide

RocketRAID 231x/230x SATA Controller Fedora Linux Installation Guide

File systems and Filesystem quota

The Kfloppy Formatter Handbook

CST8207: GNU/Linux Operating Systems I Lab Nine Disks, Partitions, and File Systems Part 2. Disks, Partitions, and File Systems - Part 2 of 2

Linux System Administration, level 1. Lecture 4: Partitioning and Filesystems Part II: Tools & Methods

SLES Linux Installation Guide

Fedora Linux Installation Guide

RocketRAID 231x/230x SATA Controller Red Hat Enterprise/CentOS Linux Installation Guide

Linux File System Study Guide

This is Worksheet and Assignment 12. Disks, Partitions, and File Systems

RocketRAID 2680/2684 SAS Controller Red Hat Enterprise/CentOS Linux Installation Guide

This manual is for Mtools (version , January 2013), which is a collection of tools to allow Unix systems to manipulate MS-DOS files.

Linux Essentials. Smith, Roderick W. Table of Contents ISBN-13: Introduction xvii. Chapter 1 Selecting an Operating System 1

Stop all processes and then reboot - same as above startx. Log in as superuser from current login exit

Manually Mount Usb Flash Drive Linux Command Line Redhat

CST Algonquin College 2

CompTIA Linux+ Guide to Linux Certification Fourth Edition. Chapter 2 Linux Installation and Usage

Linux Nuts and Bolts

Ubuntu Manually Mount Cdrom Drive Command Line Vmware

Linux+ Guide to Linux Certification, Third Edition. Chapter 2 Linux Installation and Usage

Using grub to Boot various Operating Systems

Some useful UNIX Commands written down by Razor for newbies to get a start in UNIX

Chapter 6. Linux File System

File Management 1/34

Disks, Filesystems 1

Manually Mount Usb Flash Drive Linux Command Line Fedora

Lab 1: Introduction to Linux Networking

LINUX FUNDAMENTALS (5 Day)

Disks, Filesystems, Booting Todd Kelley CST8177 Todd Kelley 1

The student will have the essential skills needed to be proficient at the Unix or Linux command line.

LiLo Crash Recovery. 1.0 Preparation Tips. 2.0 Quick Steps to recovery

Lecture 2: The file system

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Kubuntu Installation:

Partitioning and Formatting Guide

Linux Files and the File System

Disks, Filesystems Todd Kelley CST8177 Todd Kelley 1

RocketRAID 2680 SAS Controller FreeBSD Installation Guide

Step by Step Installation of CentOS Linux 7 and Active Circle

Operating Systems: Lecture 12. File-System Interface and Implementation

Motivation. Operating Systems. File Systems. Outline. Files: The User s Point of View. File System Concepts. Solution? Files!

RocketRAID 2310/2300 Controller Fedora Linux Installation Guide

How to Use This Lab Manual

Manage Directories and Files in Linux. Objectives. Understand the Filesystem Hierarchy Standard (FHS)

NETW 110 Handout Lab 10 - Backup and Restore

JetFlash User s Manual

NETW 110 Lab 4 Using eth0 Configuration Mounting Drives and Devices Page 1

Project 3: An Introduction to File Systems. COP 4610 / CGS 5765 Principles of Operating Systems

Ext3/Ext4 File System

Linux+ Guide to Linux Certification, Third Edition. Chapter 6 Advanced Installation

Partitioning and Formatting Reference Guide

Manually Mount Usb Flash Drive Ubuntu Server Command Line

Operating Systems Design 12a. Special File Systems

Maintenance of /etc/fstab in large network Crashed NFS server will make operation blocked

Manually Mount Usb Device Linux Command Line Ubuntu 12.04

RocketRAID 64xL SAS Controller FreeBSD Installation Guide

Manually Mounting Network Drive Mac Command Line Linux

Manually Mount Network Drive Mac Os X Command Line

INSTALLATION. Security of Information and Communication Systems

CIT 470: Advanced Network and System Administration. Topics. Workstation Management. Workstations

Computer Center, CS, NCTU. Outline. Backup devices and media Backup philosophy Unix backup and archiving commands

Getting Started with Linux

Linux Distribution: Kernel Configuration

Chapter 02 Linux Installation and Usage

File System: Interface and Implmentation

CREATION OF A MINIMAL STAND ALONE RTAI SYSTEM ================================================

Setting up and running the pyrophosphate tools under the Knoppix GNU Linux system

Once your USB drive is formatted for the FAT32 file system it can be mounted and tested on the GESBC To do this, use the following command:

Introduction of Linux

UNIX System Programming Lecture 3: BASH Programming

Step-by-step guide for the libradtran virtual machine. A) Installation

HP-UX System Administration

Manually Mount Usb Flash Drive Ubuntu Server 12.04

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

Figure 1.0 ULTRA 22C Board Layout JP1 JP5. Table 1.0 Default Jumper Settings

The landscape. File hierarchy overview. A tree structure of directories The directory tree is standardized. But varies slightly among distributions

INSTALLING INSTALLING INSTALLING

Linux: The Complete Reference By Richard Petersen

Linux Reference Card - Command Summary

Linux Manually Mounting External Hard Drive Mac Terminal

The UNIX Time- Sharing System

OPS235. Linux File Systems Partitioning Mounting File Systems

Advanced Operating Systems

VIRTUAL FILE SYSTEM AND FILE SYSTEM CONCEPTS Operating Systems Design Euiseong Seo

COURSE OUTLINE. UNIX Programming 2014 Fall by Euiseong Seo

LINUX & FEDORA RED HAT ENTERPRISE. Learning. 4th Edition BILL MCCARTY DEPLOYING OFFICE PRODUCTIVITY APPLICATIONS & SOFTWARE DEVELOPMENT ENVIRONMENTS

SysadminSG RHCSA Study Guide

CSE 265: System and Network Administration

A Seminar Report On. Linux Administration and Server Configuration

V Workstation Imaging

ITT Technical Institute. NT1430 Linux Networking Onsite Course SYLLABUS

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

APPLICATION NOTE Using DiskOnChip Under Linux With M-Systems Driver

Transcription:

Welcome A Basic Tutorial Introduction to Using Floppy Diskettes Not Dead Yet By Stan Reichardt stan2007@sluug.org 1

First "The rumors of my death have been greatly exaggerated." -- Mark Twain Consider: Floppy diskettes are not dead At least not yet 2

Definitions Floppy Disks removable magnetic media 5¼'' Floppy Diskettes removable magnetic media 3½'' Floppy Drive device that reads FDs mount[ing] attach[ing] a filesystem mount point a directory 3

Alternatives Serial ports - cross over cables Networking Network Interface Cards (NICs) Local Area Network (switch or router box) Internal or external drives, Zip Drives Tape, CDROM or DVD discs USB Thumbnail Drives USB 1.1/2.0 Interface 64 Megabyte to 2 Gigabyte (or more) 4

Considerations Good Diskettes relatively inexpensive media Floppy Drives on most existing computers Linux reads most Floppy Diskette formats Bad Low capacity Floppy Drives NOT always in laptops Frequent Microsoft Virus carrier Mounting issues 5

Mounting Filesystems By design, UNIX and Unix-like filesystems all flow from the / or the root point. Devices can be attached to a point along that structure. These are directories, know as mount points. Usually implies that you know name of device, name of mount point and type of filesystem. 6

*nix Filesystem Structure Often described as an inverted tree No single standard mount point 7

*nix Mount requirement Usual advice is that floppy diskettes always have to be mounted under *nix That means that the floppy diskettes must be unmounted with umount before removal Failure to do so correctly can corrupt data! TIP: Always watch the lights! Most books blindly say little more 8

Mount Not Always Required Mount NOT always needed: 1 Floppies not mounted before formatting 2 NOT necessary with some commands: dd, file, tar 3 The mtools commands simulate the MS DOS/Windows environment 4 automount - somewhat reliable in doing mount and umount for you 5 BTW: CDROM music disks are NOT mounted 9

Information on fd man page fd (4) - floppy disk device 3.5 inch high density device files: Name Capac. Cyl. Sect. Heads Base minor # ---------------------------------------------------------- fdnh360 360K 40 9 2 12 fdnh720 720K 80 9 2 16 fdnh820 820K 82 10 2 52 fdnh830 830K 83 10 2 68 fdnh1440 1440K 80 18 2 28 fdnh1600 1600K 80 20 2 124 fdnh1680 1680K 80 21 2 44 10

Device names The following figure shows the meaning of the different parts of the name of a floppy device: +--------------- /dev: directory for devices +------------- fd: floppy disk device prefix +------------ 0: floppy drive #0 (A:)(0-1 typical, 0 to 7 possible) +-- 3.5" drive:(use d for 5.25"double density drives, and h for 5.25" high density drives, u for 3.5" drive of any density) +---- 1440: Capacity (in KB) of format (usually between 360 and 3920) /dev/fd0u1440 11

Mounting file systems man pages: mount (2) - mount and unmount filesystems mount (8) - mount a file system umount (8) - unmount file systems Note spelling of umount command!!! 12

Mounting Floppies Usual CLI process is to mount first # mount /dev/fd0 /mnt/floppy # mount -t vfat /dev/fd0 /floppy # ls /floppy Not required with mtools commands CLI syntax similar to MS DOS # mdir A: # mlabel A: 13

Information on mtools man page mtools (1) - utilities to access DOS disks in Unix (p)info documentation mtools (1) - utilities to access DOS disks in Unix Various mtool commands: mattrib, mbadblocks, mcat, mcd, mclasserase, mcopy, mdel, mdeltree, mdir, mdoctorfat, mdu, mformat, minfo, mlabel, mmd, mmount, mpartition, mrd, mread, mmove, mren, mshowfat, mtoolstest, mtype, mwrite, mzip 14

Mounting examples GUI: Fedora Core 2 Launch System Tools Disk Management TIP: Always watch the lights! 15

Mounting examples CLI example To find out what is mounted: # mount (lists mounted filesystems) # mount -l (lists with filesystem labels) You may have to be superuser or root # mount /dev/fd0 /mnt/floppy You may have to specify filesystem type # mount -t vfat /dev/fd0 /mnt/floppy TIP: Always watch the lights!!! 16

Automounting man pages autofs (5) - Format of the automounter maps automount (8) - configure mount points for autofs /etc/auto.master [auto] (5) - Master Map for autofs /etc/rc.d/init.d/autofs [autofs] (8) - Control Script amd (8) - automatically mount file systems amq (8) - automounter query tool pawd (1) - print automounter working directory 17

Formatting Purpose Filesytems require formating of media Before: Like natural wilderness Unknown Don't know what is there After: Like plowed field Overgrowth and stumps removed Fenced off bad areas Furrows are made 18

Formatting With Other O/S One stage combined process under MS DOS/Windows C:> format A: Does a low-level format & test for bad sectors Makes a DOS/Windows filesystem 19

Formatting With *nix Two stages under Linux/Unix # fdformat /dev/fd0u1440 Does a low-level format Option to verify & test for bad sectors # mkfs /dev/fd0 NOT always required Can make many kinds of filesystems GUI tools incorporate both stages fdformat to be replaced by superformat 20

Information on floppy man page floppy (8) - format floppy disks Requires creation of /etc/floppy config file 21

Information on fdformat man page fdformat (8) - Low-level formats a floppy disk Alternative utility called superformat Apparently developed by same developer Supposedly fdformat is depreciated Favored superformat much more powerful 22

Formatting example GUI: Fedora Core 2 Launch System Tools Floppy Formatter 23

Formatting examples CLI example You may have to be the superuser - root # fdformat /dev/fd0h1440 (depreciated) or # fdformat /dev/fd0u1440 (preferred) May find bad blocks on media TIP: Discard any media with bad blocks 24

Information on dd man page dd (1) - convert and copy a file (p)info documentation dd - Convert and copy a file 25

Using Archive Image Create an exact image from floppy # dd if=/dev/fd0 of=/home/me/disk001.img Use image just like a floppy # mount -t vfat -o loop /home/me/disk001.img /mnt/floppy 26

Information on file man page file (1) - determine file type example> $ file -s /dev/fd0 man page magic (5) - file command's magic number file 27

Information on tar man page tar (1) - GNU version of the tar archiving utility (p)info documentation tar 28

Using tar Using tar on floppy diskette without file system # tar cvf /dev/fd0 *.txt # verbosely create # tar tvf /dev/fd0 # verbosely list # tar xvf /dev/fd0 # verbosely extract 29

Multi-volume tar Archives tar -Mcvf /dev/fd0 *.txt verbosely create archive multiple floppy diskettes Note: dash may be required in front of M 30

Information on filesystems man page [fs] filesystems [fs] (5) - Linux filesystem types: minix, ext, ext2,ext3, xia, msdos, umsdos, vfat, proc, nfs,iso9660, hpfs, sysv, smb, ncpfs 31

Information on mkfs man pages mkfs (8) - build a Linux file system mkdosfs [mkfs] (8) - create an MS-DOS file system under Linux mke2fs [mkfs] (8) - create an ext2/3 filesystem 32

Determine filesystem With dd command: # dd if=/dev/fd0 count=1 bs=512 file - # dd if=/dev/fd0 count=1 bs=512 \ hexdump -c less With file command: # file -s /dev/fd0 33

Example Results $ file -s /dev/fd0 /dev/fd0: PC formatted floppy with no filesystem $ file -s /dev/fd0 /dev/fd0: data $ file -s /dev/fd0 /dev/fd0: x86 boot sector $ file -s /dev/fd0 /dev/fd0: x86 boot sector, code offset 0x34, OEM-ID "IBM 3.3", root entries 224, sectors 2880 (volumes <=32 MB), sectors/fat 9, dos < 4.0 BootSector (0x0) $ file -s /dev/fd0 /dev/fd0: x86 boot sector, code offset 0x3c, OEM-ID "'y}jjihc", root entries 224, sectors 2880 (volumes <=32 MB), sectors/fat 9, hidden sectors 34 1866661888, sectors 1769109872 (volumes > 32 MB), physical drive 0x67,

References On Your System Read the source on your own system file: ///usr/src/linux-2.6.../documentation/devices.txt file: ///usr/src/linux-2.6.../doc.../magic-number.txt file: ///usr/src/linux-2.6.../doc.../filesystems/vfat.txt and the other filesystems text files! Configuration files /etc/fstab /proc/fs (shows which filesystems supported by kernel) 35

Wikipedia References Floppy disks http://en.wikipedia.org/wiki/floppy_disk Example Images http://commons.wikimedia.org/wiki/floppy_disk Floppy Diskette Types http://www.computermuseum.li/testpage/floppydiskettetypes.htm Floppy Diskette Brands http://www.computermuseum.li/testpage/floppydiskettebrands.htm 36

Other Internet References URLS on the Internet Linux: Rute User's Tutorial and Exposition http://www.icon.co.za/~psheer/rute-home.html The Linux Cookbook: Tips and Techniques for Everyday Use http://dsl.org/cookbook Fdutils http://olympus.het.brown.edu/doc/fdutils/fdutils.html 37

References Book: The Linux Cookbook: Tips and Techniques for Everyday Use AUTHOR: Michael Stutz PUBLISHER: No Starch Press PUBLISHED: August, 2001 LIST: $29.95 ISBN: 1-886411-48-4 STLC: 005.432/S937L 38

References Book: Linux: Rute User's Tutorial and Exposition AUTHOR: Paul Sheer PUBLISHER: Prentice Hall PUBLISHED: October 2001 LIST: $39.99 ISBN: 0-13-033351-4 STLC: 005.4469/S541L NOTE: Debian & Red Hat, 650pp+cdrom 39

References Book: Linux Hardware Handbook SUBTITLE:Selecting,Installing,&ConfiguringThe RightComponentsForYourLinuxSystem AUTHOR: Roderick W. Smith PUBLISHER: SAMS PUBLISHED: July 2000 LIST: $39.99 ISBN: 0-6723-1918-7 STLC: 631.3916/S658L 40

References Book: PC Hardware In A Nutshell, 3rd Edition SUB-TITLE: A Desktop Quick Reference AUTHOR1: Robert Bruce Thompson AUTHOR2: Barbara Fritchman Thompson PUBLISHER: O'Reilly PUBLISHED: July 2003 LIST: $39.95 ISBN: 0-596-00513-X STLC: N/A 41

Questions? A Basic Tutorial Introduction to Using Floppy Diskettes Not Dead Yet By Stan Reichardt stan2007@sluug.org 42