s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
Next
Previous
Contents
6. Floppies, Hard Disks, and the Like
There are two ways to manage devices under Linux: the DOS way and the UNIX way. Take your pick.
6.1 Managing Devices the DOS Way
Most Linux distributions include the Mtools suite, a set of commands that
are perfectly equivalent to their DOS counterpart, but start with an `m':
i.e., You can't access files on the floppy with a command like, say,
6.2 Managing Devices the UNIX Way
UNIX has a different way to handle devices. There are no separate volumes like A: or C:; a disk, be it a floppy or whatever, becomes part of the local file system through an operation called ``mounting''. When you're done using the disk, before extracting it you must ``unmount'' it. Physically formatting a disk is one thing, making a file system on it is
another. The DOS command
You can use
specifying the right file system if you don't use
When you've finished, before extracting the disk you must unmount it with the command
Obviously, you have to Needless to say, what applies to floppies also applies to other devices; for instance, you may want to mount another hard disk or a CD--ROM drive. Here's how to mount the CD--ROM:
This was the ``official'' way to mount your disks, but there's a trick in store. Since it's a bit of a nuisance having to be root to mount a floppy or a CD--ROM, every user can be allowed to mount them this way:
Now, to mount a DOS floppy and a CD--ROM:
/mnt/floppy and /mnt/cdrom can now be accessed by every user. Remember that allowing everyone to mount disks this way is a gaping security hole, if you care. Two useful commands are
6.3 Backing Up
There are several packages to help you, but the very least you can do for a multi-volume backup is (as root):
Make sure to have a formatted floppy in the drive, and several more ready. To restore your stuff, insert the first floppy in the drive and do:
Next Previous Contents |