Tech 2 Game - Ultimate Tech and Game Forum
Welcome to Tech 2 Game - Ultimate Tech and Game Forum Guest!    Register | Lost Password?




Tags: Handling, Removable, Media, Unix,
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Share Post: Digg Delicious Reddit Face Book Stumbleupon
Handling Removable Media in Unix
11-14-2009, 06:56 PM (This post was last modified: 11-14-2009 06:59 PM by rin2.)
Post: #1
Handling Removable Media in Unix :
UNIX supports tools for accessing removable media such as CDROMs and floppy disks.

* mount, umount

The mount command serves to attach the filesystem found on some device to the filesystem tree. Conversely, the umount command will detach it again (it is very important to remember to do this when removing the floppy or CDROM). The file /etc/fstab contains a list of devices and the points at which they will be attached to the main filesystem:

$ cat /etc/fstab
/dev/fd0 /mnt/floppy auto rw,user,noauto 0 0
/dev/hdc /mnt/cdrom iso9660 ro,user,noauto 0 0

In this case, the mount point for the floppy drive is /mnt/floppy and the mount point for the CDROM is /mnt/cdrom. To access a floppy we can use:

$ mount /mnt/floppy
$ cd /mnt/floppy
$ ls (etc...)

To force all changed data to be written back to the floppy and to detach the floppy disk from the filesystem, we use:

$ umount /mnt/floppy

* mtools


If they are installed, the (non-standard) mtools utilities provide a convenient way of accessing DOS-formatted floppies without having to mount and unmount filesystems. You can use DOS-type commands like "mdir a:", "mcopy a:*.* .", "mformat a:", etc.
Find all posts by this user
Sponsored by
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  For each of ur directories how to Check the disk usage in unix rin2 0 113 12-11-2009 08:20 PM
Last Post: rin2
  How to see the Disk usagein unix rin2 0 61 12-11-2009 08:11 PM
Last Post: rin2
  What is the "Top" command in unix rin2 0 79 12-11-2009 07:53 PM
Last Post: rin2
  Finding Files in Unix rin2 0 105 11-14-2009 07:08 PM
Last Post: rin2
  Finding Text in Files in Unix rin2 0 129 11-14-2009 07:03 PM
Last Post: rin2
  Unix File Compression and Backup rin2 1 97 11-10-2009 08:01 PM
Last Post: Sukanjan.K
  Find UNIX Directory Structure rin2 0 269 11-08-2009 07:11 PM
Last Post: rin2


[-]
Permissions Box
You cannot Post Threads.
You cannot Post Replies.
You cannot Post Attachments.
You cannot Edit Your Posts.
HTML is off
MyCode is on
Smilies is on
[img]-code is on