LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2009, 04:45 PM   #1
rtrahan
Member
 
Registered: Jan 2009
Location: Georgia
Distribution: OpenSuse Fedora
Posts: 64

Rep: Reputation: 17
Question Mount a Floppy Drive


This is theoretical because I don't actually have a floppy drive to mount but I am studying for the Linux+. I am using OpenSuse
The example is:
mount -t ext2 /dev/fd0 /mnt/floppy and I understand why and what..but

Ok first of all there was no file called "fd0" under /dev, nor is there a file called floppy; so I created one with touch.(touch fd0)..no problem

What I don't understand is that /mnt/floppy does not work since there is no file called floppy anyware. Since there is no file named "Floppy" under /dev or /mnt then this does not work, I get an error; no such file.

However, if I really did have a floppy to mount then would "floppy" appear under /mnt..so I could do a /mnt/floppy without adding the file floppy?

I know exactly what I said I hope you do

Thanks in advance..
 
Old 02-19-2009, 04:51 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Quote:
Originally Posted by rtrahan View Post
However, if I really did have a floppy to mount then would "floppy" appear under /mnt..so I could do a /mnt/floppy without adding the file floppy?
I have not a floopy drive on my computer, now. However, I remember from my old desktop that /dev/fd0 was automatically created when the drive was detected by the kernel. Instead, the mount point /mnt/floppy is not created automatically. Older linux OS had some default mount points as /mnt/fd0 or /mnt/cdrom, but they where pre-built and not created on-the-fly upon connection of a floppy drive. To me you have to manually create the mount point, then use it:
Code:
# mkdir /mnt/floppy
# mount -t ext2 /dev/fd0 /mnt/floppy
 
Old 02-19-2009, 05:11 PM   #3
rtrahan
Member
 
Registered: Jan 2009
Location: Georgia
Distribution: OpenSuse Fedora
Posts: 64

Original Poster
Rep: Reputation: 17
Ok yea, I made the /dev/fd0 I just was not sure about the /mnt/floppy..should I make those in my /etc/fstab file. According to this text all mount points should be in the /etc/fstab file. For instance I checked my /etc/fstab and I didn't have any files for cdrom or usb. So if I wanted to mount those then I would have to make a mount point in the fstab file correct? Then the mount would be automatic....I think.

Thanks..
 
Old 02-19-2009, 05:20 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
You have an entry in /etc/fstab for each drive or partition you want automatically to be mounted at boot. Usually removable drives like floppy, cdrom, usb sticks, zip drives and so on... are not included in /etc/fstab because it would require that a floppy disk or a CD is actually inserted in the proper drive at boot time.
Quote:
According to this text all mount points should be in the /etc/fstab file.
To me this is not correct. All necessary devices and their related mount points have to be in /etc/fstab, but you are free to mount any drive manually after the system is up! Just out of curiosity, which text are you reading?
 
Old 02-19-2009, 05:41 PM   #5
rtrahan
Member
 
Registered: Jan 2009
Location: Georgia
Distribution: OpenSuse Fedora
Posts: 64

Original Poster
Rep: Reputation: 17
It's called Linux+ Guide to Linux Certification, Second Edition. By Jason W. Eckert and M. John Schitka. It's CompTIA certified and was highly recommended...so...this particular part of mounting I understand the theory but I'm having a hard time with the mechanics. Like having to manually create the /dev/fb0 and /mnt/floppy..this is what the book says

"To save time typing on the command line, you can alternatively specify one argument and allow the system to look up the remaining information in the /etc/fstab (filesystem) file. The /etc/fstab file has a dual purpose; it is used to mount devices at boot time and is consulted when a user does not specify enough arguments on the command line when using the mount command"

that last part of the last sentence "and is consulted...." tells me the info has to be in the /etc/fstab when mounting manually.

???
 
Old 02-19-2009, 05:47 PM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
It just tells that you can spare some typing when using the mount command if there is a corresponding device or mount point in /etc/fstab. For example you can do
Code:
mount /dev/fd0
if - and only if - in /etc/fstab there is an entry for /dev/fd0 which specifies the filesystem type and the mount point. In other words, if you don't give enough arguments to the mount command, it look for information in /etc/fstab. If no useful info is found in it, you receive an error message like this:
Code:
$ mount /dev/fd0
mount: can't find /dev/fd0 in /etc/fstab or /etc/mtab
Regarding the fact you have to manually create /dev/fd0, I disagree. To me it is the kernel and the proper driver which takes care of creating it for you. Anyway, I cannot test it right now, since I've not a machine with a floppy drive at hand.

Last edited by colucix; 02-19-2009 at 05:49 PM.
 
Old 02-19-2009, 06:22 PM   #7
rtrahan
Member
 
Registered: Jan 2009
Location: Georgia
Distribution: OpenSuse Fedora
Posts: 64

Original Poster
Rep: Reputation: 17
It's ok because I ran into another barrier anyway. After doing touch /dev/fd0 and
touch /mnt/floppy
I ran mount -t ext2 /dev/fd0 /mnt/floppy;

I got an error stating the fd0 is not a block device (touch doesn't do it)
so I tried the mknod command but since there never was a fd0 file it did not have the major and minor numbers (even though I did through 2 and 0 in there)...think I will move on to cdrom and skip the rest of this one,

The funny thing is I really am getting an external floppy drive next week to make some boot disk; I'll figure it out..thanks
 
Old 02-19-2009, 06:44 PM   #8
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 74
Quote:
Originally Posted by rtrahan View Post
It's ok because I ran into another barrier anyway. After doing touch /dev/fd0 and
touch /mnt/floppy
I ran mount -t ext2 /dev/fd0 /mnt/floppy;

I got an error stating the fd0 is not a block device (touch doesn't do it)
so I tried the mknod command but since there never was a fd0 file it did not have the major and minor numbers (even though I did through 2 and 0 in there)...think I will move on to cdrom and skip the rest of this one,

The funny thing is I really am getting an external floppy drive next week to make some boot disk; I'll figure it out..thanks
Yes, that's how it would work, since you don't actually have a floppy installed. ICYDK, you can't mount a single file on a filesystem that's already mounted.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't mount floppy drive mikescony Linux - Newbie 6 10-19-2006 03:51 PM
Help need to mount floppy drive paschal83 Linux - Laptop and Netbook 7 12-01-2003 07:22 AM
Can't mount floppy drive crudux_cruo Linux - Laptop and Netbook 1 11-25-2003 03:40 AM
My floppy drive is not mount. m_pahlevanzadeh Linux - Hardware 2 06-20-2003 09:30 AM
Can not mount my floppy drive. drfeelgood Linux - Newbie 4 10-22-2001 09:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration