Visit Our UNIX and Linux User Community

how floppy disks, CDs and flash drives (pen drives) are accessed in UNIX

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting how floppy disks, CDs and flash drives (pen drives) are accessed in UNIX
# 1  
Old 04-06-2007
Question how floppy disks, CDs and flash drives (pen drives) are accessed in UNIX

how floppy disks, CDs and flash drives (pen drives) are accessed in UNIX?


Previous Thread | Next Thread
Test Your Knowledge in Computers #738
Difficulty: Medium
RadioShack introduced a 50 MB external hard disk for the TRS-80 Model III/4 in 1983.
True or False?

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ACL (POSIX and NFSv4) Support over NFS shared drives on different Unix platforms

Hello, I have a question regarding ACLs and their availability across different Unix platforms via NFS share. If I have an AIX/FreeBSD/Solaris/HP-UX client that has an nfs share from a different system mounted on it, will the ACLs on the nfs share be processed properly? My guess is that as... (2 Replies)
Discussion started by: bstring
2 Replies

2. What is on Your Mind?

Idea: selling Puppy Linux flash drives

What do you think of the idea of selling flash drives already prepared to boot Puppy Linux on PCs? (I still need to see if I can boot on Macs using online instructions I've found.) I know it's not too hard to prep your own flash drive, even if you have to buy one first, but just think about why... (8 Replies)
Discussion started by: MrMormon
8 Replies

3. Shell Programming and Scripting

BASH Script to Detect and List USB Flash Drives

Hello. This is my first post to this forum. I've read many of the posts over the last two or three years and I've learned a lot. I'm creating a live Linux distribution using the Linux Live Scripts -- just as a hobby project -- and I'm wanting to create an automated way for a user to copy the... (7 Replies)
Discussion started by: godzillarama
7 Replies

4. Solaris

Does Solaris Volume Manager support USB flash drives?

I would like to mirror or stripe across multiple USB flash drives on a Sun Blade 100 workstation running Solaris 10. Thanks! (6 Replies)
Discussion started by: yoda9999
6 Replies

5. Filesystems, Disks and Memory

USB Flash Drives

Can Solaris/any GNU/Linux distros/ any flavor of FreeBSD be booted, right from aUSB flash drive? Mine's the one pictured here. SanDisk | Products | USB Flash Drives | SanDisk CruzerŽ Titanium Plus USB Flash Drive Also, on a completely unrelated note (just so I don't have to fill up forum... (4 Replies)
Discussion started by: led3234
4 Replies

6. SCO

Sharing unix drives from two unix systems

I have two SCO openserver systems, 1 in the US and 1 in the UK. I am setting up a vpn to connect the two local networks that also have windows pc's on them. Is there a way that either unix system can see the hard drive on the other unix system so that I can share data between them. I run a cobol... (1 Reply)
Discussion started by: rongrout
1 Replies

7. UNIX for Dummies Questions & Answers

detecting drives

I know that Unix is different from windows in that it needs more manual configuring but how do I get Solaris 8 (Intel version) to recognize my floppy drive and cd-rom?? I mean does it automatically detect the drives at startup and I have to mount them or do I have to create the drives somehow and... (1 Reply)
Discussion started by: eloquent99
1 Replies

8. UNIX for Dummies Questions & Answers

Partioning Drives

I have this 36 GB harddisk which houses the root partition along with a 28 GB partion for the rest of the data. The thing I wish to do is that partition this 28 GB into two partions. I have never partitioned the root disk. I just wanted to know whether is it possible to do when the disk is online... (1 Reply)
Discussion started by: DPAI
1 Replies

9. IP Networking

mapping drives

how can i map a shared network drive? Is there any command to perform mapping? For example if i want to map a shared directory named "wwwroot" in machine "dev001" to my machine's "X" drive, how can it be done?? -Thanks Sakthi. (1 Reply)
Discussion started by: cs_sakthi
1 Replies
mformat(1)						      General Commands Manual							mformat(1)

mformat - mtools utility to add a DOS file system to a low-level formatted diskette SYNOPSIS
mformat [-t tracks] [-h heads] [-s vectors] [-l volumelabel] drive: OPTIONS
Specifies the number of tracks (not cylinders) on the diskette. Specifies the number of heads (sides) on the diskette. Specifies the num- ber of sectors per track. Specifies the volume label. This is an optional option. DESCRIPTION
Note You must specify the floppy disk storage device that is to be formatted. If you do not specify a device, or if a device is not found, the command may incorrectly format a SCSI device which could be a system or data disk. The mformat command adds a minimal DOS compatible file system (boot sector, FAT, and root directory) to a UNIX formatted diskette. If the diskette is unformatted, you must low-format the disk. You can do this with a PC system, or on Tru64 UNIX using either the scu utility or the fddisk utility, depending on your floppy drive. Tru64 UNIX supports both FDI and SCSI attached 3.5" floppy drives with DD, HD, or ED media. Not all floppy drives are compatible with ED media. The following track/head/sector values are supported: --------------------------------------------------------------- Media Capacity Tracks Heads Sectors type KB/MB Bytes Sectors -t -h -s --------------------------------------------------------------- DD 720KB 737280 1440 80 2 9 HD 1.44MB 1474560 2880 80 2 18 ED 2.88MB 2949120 5760 80 2 36 --------------------------------------------------------------- To format a diskette for other than the ED 2.88MB default capacity, you must specify the number of sectors per track with the -s option. No error is returned if you use mformat to put an ED file system onto an HD floppy, but you will get errors from other utilities if you try to write beyond the physical end of the media. RESTRICTIONS
The following restrictions apply: The mformat command requires a low-level format utility from UNIX. The mformat command does not detect (or record) bad block information. EXIT STATUS
The following exit values are returned: Success. Failure. EXAMPLES
In the following example, a SCSI floppy diskette is formatted at the ED 2.88MB capacity, then a DOS file system is initialized with mfor- mat: $ /sbin/scu -f /dev/rdisk/dsk/6a format density ED $ mformat a: In the following example, an FDI floppy diskette is formatted at the HD 1.44MB capacity, then a DOS file system is initialized with mformat, a file is copied to the diskette, and the mdir command is used to check the contents of the diskette. The mlabel command is used to add a label and mdir is used to again check the diskette contents. Finally, a DD file system is placed on the diskette, mcopy is used to place a file on it, and mdir is used to verify the diskette contents: $ fddisk -fmt /dev/rfd0a NOTE: Setting interleave factor to ``-i2:4''. Use ``-i<nnn>[:<ccc>]'' option to override. Disk type: 3.50 inch, HD (1.44MB) Number of sectors per track: 18 Number of surfaces: 2 Number of cylinders: 80 Sector size: 512 interleave factor: 2:4 Formatting disk... Percentage complete: Format complete, checking... Quick check of disk passes OK. $ mformat -s 18 a: $ mcopy README a: Copying README $ mdir a: Volume in drive A has no label Directory for A:/ README 769 6-04-97 8:59a 1 File(s) 1456640 bytes free $ mlabel a: Volume in drive A is unlabeled Enter the new volume label (11 characters): hddisk $ mdir a:Volume in drive A is hddisk Directory for A:/ README 769 6-04-97 8:59a 1 File(s) 1456640 bytes free $ mformat -s 9 -l dddisk a: $ mcopy README a:README.1 $ mdir a: Volume in drive A is dddisk Directory for A:/ README 1 769 6-04-97 9:16a 1 File(s) 729088 bytes free In the following example, an unformatted 2.8Mb floppy diskette is formatted using the scu command, followed by the mformat command. Once it is formatted by both the scu and mformat commands, it is ready for use: $ /sbin/scu -f /dev/disk/floppy format density ED $ mformat -t 80 -h 2 -s 36 a: FILES
Executable file SEE ALSO
Commands: mlabel(1), mtools(1) Utilities: fddisk(8), scu(8) Floppy disk interface: fd(7) mformat(1)

Featured Tech Videos