LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-26-2005, 07:29 PM   #1
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Rep: Reputation: 15
I can mount a floppy, but can't transfer anything over?


My spec:

Debian 'Sarge' with 2.6.8-smp kernel

Logged on as 'root'

This is what I have in fstab file:

/dev/fd0 /fd0 auto rw,user,noauto 0 0

I mount the floppy drive with a fat16 floppy disk and I saw the light go on:

mount /dev/fd0

I tried to copy a file from /root

cp /root/karl /fd0

Nothing happens. No light flashing.

What did I do wrong?
 
Old 04-26-2005, 07:31 PM   #2
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
try this

make a directory called floppy in our mount folder

mkdir /mnt/floppy

then mount the floppy here

mount /dev/fd0 /mnt/floppy

then copy to /mnt/floppy

cp /root/karl /fd0

then unmount

umount /mnt/floppy
 
Old 04-27-2005, 10:09 AM   #3
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Original Poster
Rep: Reputation: 15
This is what I did:

mount /dev/fd0 /mnt/floppy

This is what came up:

mount: mount point /mnt/floppy is not a directory

This is what it looks like now in fstab after I did a fresh install:

/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

/mnt/floppy is there by default

?
 
Old 04-27-2005, 10:50 AM   #4
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
so make sure the dir /media/floppy0 exists, put in a floppy, and type, in a terminal: "mount /media/floppy0"


PS: hope you didn't actually reinstall just because of this problem....
 
Old 04-27-2005, 10:50 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,253

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
To answer your question. You did nothing wrong.

linux buffers writing to disk including floppy drives so the actual physical write process might not happen until you unmount the disk.
 
Old 04-27-2005, 10:51 AM   #6
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
ExCIA: It sounds like you donít understand the concept of a mount point.

For mount to work, it needs a target location (i.e., a mount point) to link the device to. A mount point is just a folder/directory and it must preexist before using the mount command. Mount does not create the mount point. You create the mount point.

For example, in your first post, the fstab entry will only work if the folder /fd0 exists on the system.

The /media/... vs. /mnt/... directories are the typical locations where devices are mounted, but a mount point can be anywhere.
 
Old 04-27-2005, 11:42 AM   #7
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Original Poster
Rep: Reputation: 15
Yes. I know that I do not understand it fully and I finally got it to work by using mount /media/floppy0 suggested by Genesee.

I assumed that I'm suppose to be using /dev/fd0, but I was wrong and I guess I can change /media/floppy0 to say /fd0 as long as the fd0 exist in /fd0, right?

Genesee, I didn't completing reinstall since I created an image of it using Acronis TrueImage.
 
Old 04-27-2005, 12:05 PM   #8
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
the fstab (filesystem table) is just a file listing mounts - that table can be used to automount filesystems at boot, or can be used as a shortcut, in that you only need to type the mountpoint if the mount is listed in fstab. in this case, the mountpoint is /media/floppy0, listed in fstab, so all you need is "mount /media/floppy0"

you can also do it manually, by identifying the device (/dev/fd0) and the mount point, plus any options, using the mount command. see "man mount" for lots of options and the command format.

sure you could change /media/floppy0 to anything you want, /media/fd0, /fd0, /mnt/floppy, or whatever. just make sure the directory exists before you try to mount to it. if not, use mkdir to make it
 
Old 04-27-2005, 12:13 PM   #9
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
To add something to this. The default option in mount considaring the I/O is async.
async: All I/O to the file system should be done asynchronously.
This way you give the freedom to the system to do the transfer whenever it likes. (usualy this is done when you umount the device).
If you want to force your system to copy the files when you type the transfer command (like windows do), you may use the sync option in fstab.
sync: All I/O to the file system should be done synchronously.
But my expirience says that this is a bad practice, because most users forget to umount the floppy before they eject it.
 
Old 04-27-2005, 02:27 PM   #10
ExCIA
Member
 
Registered: Mar 2005
Posts: 78

Original Poster
Rep: Reputation: 15
Thanks for the advices guys.
 
  


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
TRANSfer -To -Floppy Disc -RHAT,MaNDKE chilibowl Linux - Software 1 02-10-2005 04:24 PM
Can mount a floppy but... beginner16 Linux - Newbie 2 11-21-2003 12:53 PM
redhat kde floppy transfer Nay Linux - Newbie 1 11-09-2003 01:50 AM
Transfer floppy boot..to harddrive? kuriptic Linux - Newbie 12 02-25-2003 06:43 PM
Floppy drive acting strange (I'm trying to transfer files from linux to windows) jolly_good2000 Linux - General 10 11-19-2002 10:32 AM


All times are GMT -5. The time now is 05:05 PM.

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