From: James Griffiths (jamesg at domain linsol.com)
Date: Sun 11 Apr 1999 - 12:26:06 IST
Colm O'Toole wrote :
> The problem is that I can't access my DOS drives or my CD-rom - or
> rather I don't know how to access them!
Under Linux (and other Unix versions), there is a different model for
accessing storage devices compared to MS-DOS etc. The Linux model
is to have a single directory tree with a single root directory. To
data stored on a device e.g. a CD-ROM, it is necessary to execute the
"mount" command to integrate the filesystem on the CD-ROM into the
main directory tree. e.g.
mount /dev/cdrom /mnt
The "mnt" directory should exist already (it was probably created by the
install process). The mount command above will make the contents of the
CD-ROM available within the /mnt directory. e.g. if the CD-ROM
contained two files "a.txt" and "b.txt" and a directory "software",
after the mount command if you "cd /mnt" and then do an "ls" command
you will see the files "a.txt", "b.txt" and the "software" directory.
Before removing the CD-ROM from the drive, execute a "umount"
command to detach the contents of the CD-ROM from the directory
NB: you may need to be root to execute the above commands. See the
man pages for the mount command for more details - "man mount"
> The hda drive is not listed in the /dev folder, but the CD-ROM is. I
>installed from the CD-ROM initially anyway!!
Assuming the machine has a single IDE disk (i.e. not a SCSI disk) and
that the disk is attached as the first IDE device on the first
then the device file /dev/hda should exist. Try executing the command
"df" - this will show you what device files are being used by the Linux
Note : The file /dev/hda refers to an entire disk. Each partition
disk can be accessed via the files
/dev/hda1, /dev/hda2, /dev/hda3, /dev/hda4
for the first to fourth primary partitions. If one of these is an
partition then the corresponding device file is just a "container" for
further partitions and the real data will be in logical partitions which
be accessed via /dev/hda5, /dev/hda6 ...etc.
Supposing you have three primary partitions - with DOS on the first
filesystem, the main Linux partition on the second and the Linux swap
partition on the third, then you should be able to mount the DOS/Win
mount -tvfat /dev/hda1 /mnt
- if you have already mounted the CD-ROM to /mnt, you can
umount it before executing this command.
Hope this helps, if there is still something problematic, feel free to
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:07 GMT