|
How Do I Read What Is On My CD-ROM, ThumbDrive Or Floppy?
you, in linux, need to mount a storage device. this can be done very easily as long as you know the device names.
to mount you do ...
mount <device driver> <folder to link to the device> //Now this is the easy mount, but if linux doesn't know what type of file format it is, you have to specify it manually, like so...
mount -t<format> <dev. driver> <folder to link>
I.E. mount -t vfat /dev/hda /mnt/harddrive
There is a dir(folder) that you should use to linux, it's called either the /mnt or new linux versions have it as /media, in there you should create a folder that you will link to the device, I.E. /mnt/harddrive. This Will Be the folder to which you go into to look at the folders on the device.
in linux, there is a Dir(Folder) that contains most of the device drivers you would need. it's called /dev and under it is about 200 device files. so, the question is, which is for your device?
Floppy Disks Are FD and they add a number at the end if you have more then 1, sometimes it starts it as a 0, others it will start as a 1, floppies are usually fd0, to mount a floppy it...
mount /dev/fd0 /mnt/floppy //regular way
mount -t vfat /dev/fd0 /mnt/floppy //hard way, use if it gives you format type error
CD-ROMS are called hdc usually, but they can range, and again, they sometimes have a number, sometimes not, so mounting a CD-rom is
mount /devb/hdc /mnt/cdrom
mount -t iso9660 /dev/hdc /mnt/cdrom //hard way
Or
mount /devb/hdc0 /mnt/cdrom
mount -t iso9660 /dev/hdc0 /mnt/cdrom //hard way
and last but not least, thumbdrives. these are fun to mount, cause linux has a file format made especially for them, but you shold never use this because it is a beta format and it can corrupt the data on your Thumbdrive, linux calls the device sda, and again adds the number...
mount -t vfat /dev/sda1 /mnt/usb //try to specify the file format on the thumbdrive, to avoid complications....
now, you have your device mounted, when you are finished, and you want to take the device out, such as eject the CDrom, you generally should unmount it, you don't need to, but if you don't, there is a chance that the files are still being accessed and they can be lost.
FYI, linux will unmount al drives when shutting down, so don't worry about that. also, if you have your device in while booting up, linux might mount it already, such ar CDroms or FLoppies, but since thumbdrives are new, then usually aren't auto-mounted. before you mount a device, be sure to check under the /mnt or /media folders, or just type in the
mount
and it will print out the mounted devices and what folder they are mounted to...
__________________
Suicide Command in Linux : rm -rf / ;)
AIM:TheLoneWolf071@aim.com--If You Need Help, Don't Hesitate...
|