Solved

mount my floppy dirve

Posted on 2000-04-15
7
346 Views
Last Modified: 2010-04-20
why that I can't mount my floppy drive by this way : mount -t msdos /mnt/floppy /somedir/ but mount it like this way : mount /dev/fd0 /mnt/floppy -t vfat, can anyone explain it to me ?
0
Comment
Question by:ahchong
  • 3
  • 3
7 Comments
 
LVL 1

Accepted Solution

by:
paulmitch earned 20 total points
ID: 2719186
The syntax of the mount command is:

mount -t <FS type> /dev/<DEVICE> /<DIRECTORY TO MOUNT ON>

Your second command, which you say works, follows this syntax.  The first however, specifies a directory, /mnt/floppy instead of /dev/fd0 as the device.

/mnt/floppy is not the floppy device, but /dev/fd0.

Check the mount man page for a wealth of information:

man mount

Cheers,

Paul
0
 

Author Comment

by:ahchong
ID: 2719754
yes !! Thanks, before I give the points, still got a question, how you know which device use fdx or hdx ?
0
 
LVL 1

Expert Comment

by:paulmitch
ID: 2720233
fdx are drives connected to the floppy controller, and hdx are drives connected to the ide bus.

hda - primary master
hdb - primary slave
hdc - secondary master
hdd - secondary slave

fd0 - first device on floppy controller
fd1 - second device on floppy controller

(Note that fd is not necessarily a floppy drive - you can connect tape drives on the floppy controller.  Also, hd is not necessarily a hard disk drive - you can connect cdrom drives on the ide bus)

Note that in kernel 2.3.x and 2.4.x when  it is released (I imagine you are running a 2.2.x kernel) the ide devices will change to be called ide0, ide1 etc etc.

Paul
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:ahchong
ID: 2722664
then how can I mount the cdrom ?
0
 
LVL 1

Expert Comment

by:andrewljohn70
ID: 2722786
Hi ahchong,
use the command

mount /mnt/cdrom

to mount the cdrom drive.

read the 'man mount' pages, That is the basic and the details of all information.
Careful with the points  :)
0
 

Author Comment

by:ahchong
ID: 2725869
hello, I heard that I will need to know which partition (they said hda1, hda2, hda3...), is it true that got hda1, hda2 ??? If realy got, how can I know that my Windows is hdax ??? (because I want to load the file from my windows)
0
 
LVL 1

Expert Comment

by:paulmitch
ID: 2726338
Yes, you need the partition number.  I would suggest the easiest is to simply try out a few different numbers!

mount -t vfat /dev/hda1 /mnt/windows

and if that doesn't work, thry hda2 etc etc.  It'll probably be hda1.

Paul
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question