Hi
I hope you get a more detailed answer from some experts.
Firstly Here is a link to a tutorial on the linux file system.
http://community.linuxmint.com/tutorial/view/355If you know windows at all, then you know that under 'MyComputer' you will see several devices, C:, D:, A: etc. and also some Network locations etc.
In Linux the entire list of all devices is under / (Forward slash). That is the beginning (root).
The other major difference in Linux is that to make a device, or a disk partition visible, you need to 'mount' it. (This is a GOOD thing in general, but it does mean there is an extra step, and extra level of complexity).
In your case you have what amounts to only one 'disk drive' /dev/sda1 the first partition on your hard drive. in Windows this would be the C: drive usually.
This is mounted at "/" as part of the boot process.
Your other partition is /dev/sda5, which linux uses to save stuff to disk when it runs out of memory. This is like the windows 'pagefile.sys' except it is in its own partition instead of being in with other files.
Now lets say you have a file on a floppy disk you want to get at.
To make your floppy visisble you need two things.
a) The Kernel (Linux OS) must have detected the floppy during boot. Usually it wiil create a device called /dev/fd0 when it detects it.
b) you need to 'mount' the device. you could mount it anywhere, but the usual place is in /media/floppy or /media/fd0. (that is a zero)
Check to see that you have a directory called /media by issuing the cmd
- Code: Select all
ls -l /media
you should see something like:
drwxr-xr-x 2 root root 4096 Jan 12 22:18 cdrom0
drwxr-xr-x 2 root root 4096 Jan 12 22:18 fd0
drwxr-xr-x 2 root root 4096 Jan 12 22:18 usb0
so now you can put a floppy in the drive and issue the cmd
- Code: Select all
sudo mount -t vfat /dev/fd0 /media/fd0
and when sudo prompts you you can enter your password.
If all goes well you can then say:
- Code: Select all
ls -l /media/fd0
to see what is on the disk.
to copy a file called say myjunk.txt to your home directory:
- Code: Select all
cp /media/fd0/myjunk.txt ~/mygoodstuff.txt
To explain:
the sudo mount mumbo jumbo above tells linux that the type of media in the drive is a FAT kind of filesystem (as for msdos etc.) and you want to make this drive avaiable through the media/fd0 directory.
You usually need to use sudo to mount things, because for security reasons linux does not by default let users mount stuff. (i.e. they might be mounting disks with viruses on them for example).
If there is no disk in the drive then the mount cmd will fail. The error message you get may not be all that accurate, but that will be the problem most often.
The mount cmd might fail if there is a hardware problem with the drive also, but that is more rare.
There is another aspect to this.
In linux there are many 'magic' files that tell various pieces of linux what to do.
One of these is /etc/fstab
In this file you can specify defaults for various mount options, so you don't have to type them out every time.
In some cases Linux has been configured to automatically detect when a CD or DVD is inserted, or a USB device is connected, or a floppy is inserted and to automatically
take certain actions. But that is another topic, somewhat beyond my expertise to explain.
If you are getting a 'cannot mount floppy' type of error at boot, it is probably because you have a line in /etc/fstab that refers to /dev/fd0 and you have no disk in the drive.
You could try to use an editor to modify fstab (BACK IT UP FIRST), and put a hash mark (#) in front of the line with /dev/fd0 on it.
e.g.
- Code: Select all
cd /etc
sudo cp fstab fstab_original
sudo vi fstab
........ etc.
Regards,
pgmer6809
ex