Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th July 2005, 04:01 AM
Papoon Offline
Registered User
 
Join Date: Apr 2005
Posts: 32
Trying to cp files onto floppies from bash shell

Hiya Friends,

I'm trying to do something with Linux that is very simple in DOS but maybe not so simple in Linux. I have a bunch of files on an old PII running Mandrake 10 --- a box that used to run Win NT, but which nevertheless lacks the resources to be able to run Konqueror or any other GUI-type file manager. I am trying to copy these files onto floppies. All I have is questions. Let's start with some really basic ones.

I've inserted a floppy into the drive. I formatted it, using the mke2fs command. Then, I mounted this filesystem (command: mount /dev/fd0 /mnt). Then, I managed to copy some files onto the floppy.

Now it's time to take the floppy out of the drive, and swap it into the newer computer. However, the command

~]# umount /dev/fd0

results in an error message:

/dev/fd0 not mounted

... but when I try at this point to run the command

~]# mount /dev/fd0 /mnt

I am told that /dev/fd0 is already mounted or /mnt is busy.

Huh? Both statements can't be true. I think I'm following these instructions exactly, but I'm not getting the expected results. What am I doing wrong here? What is the proper procedure for formatting floppies, copying files onto them, getting these floppies out of the machine and into another one?

--- Exasperated in Vancouver
Reply With Quote
  #2  
Old 19th July 2005, 04:21 AM
tejas's Avatar
tejas Offline
Registered User
 
Join Date: Feb 2005
Location: Bangalore
Age: 25
Posts: 1,574
see

/etc/mtab and see if It is mounted

Also, where are you when you try to unmount it?

You can't unmount it if you are in the floppy directory
__________________
I Was Counted! Registered Linux User #384707

BASH && Beer && Bass! Now THAT makes sense!!
Reply With Quote
  #3  
Old 19th July 2005, 04:37 AM
Papoon Offline
Registered User
 
Join Date: Apr 2005
Posts: 32
Thanks, Tejas in Bangalore. I am in root's home directory when I try to do this.

/etc/mtab contains the line:

none /mnt/floppy supermount rw,sync,dev=/dev/fdo/,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,codepage=850 0 0

... which I do not know how to interpret.
Reply With Quote
  #4  
Old 19th July 2005, 04:43 AM
tejas's Avatar
tejas Offline
Registered User
 
Join Date: Feb 2005
Location: Bangalore
Age: 25
Posts: 1,574
Wait a second, where did you mount the floppy?

The command should have been:

mount /dev/fd0 /mnt/floppy

after making the folder /mnt/floppy

If you had some other filesystem at /mnt/something I doubt you'll be able to umount anything. I think you'll have to reboot.

And look at your /etc/fstab. If you see a floppy line there, then there is no need to mount the floppy as root. Just say mount /dev/fd0
__________________
I Was Counted! Registered Linux User #384707

BASH && Beer && Bass! Now THAT makes sense!!
Reply With Quote
  #5  
Old 19th July 2005, 04:55 AM
Papoon Offline
Registered User
 
Join Date: Apr 2005
Posts: 32
Oh, dear. This is absolutely not the same as the instructions I had been following, which were to (1) insert the physical floppy in the floppy drive and run mke2fs to format it, and then (2) mount /dev/fd0 /mnt. So I've gotten myself into another Linux mess, I see. Um. What do you mean when you talk of "making" the folder /mnt/floppy? You're not talking about the "make" command, which as near as I can tell has little bearing on the simple little thing I'm trying to do here. So let's back out of this, and start again from square zero. Before I do so, however, what are the consequences of rebooting with the floppy, which is neither mounted nor unmounted, in the floppy drive? Sheesh. This is too hard (or too underdocumented). As a friend of mine likes to say, It's a good thing these modern computers are so fast because everything takes longer. I'm not into two hours of time spent trying to copy a couple of files onto a floppy. From the command line, no less.
Reply With Quote
  #6  
Old 19th July 2005, 05:42 AM
tejas's Avatar
tejas Offline
Registered User
 
Join Date: Feb 2005
Location: Bangalore
Age: 25
Posts: 1,574
OK. Now, from step 0

$ for user commands, # for root

# cat /etc/fstab <-- prints contents of fstab. See if you can find a line on floppy like the one at the bottom

my fstab has this line:
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0

remember the folder in the second coloumn (for me /media/floppy). Ignore everything after the first two coloumns

Is a similar line there?

if so:
$ mount /media/floppy (or whatever)
$ do whatever work
$ umount /media/floppy

If not:
# mount /dev/fd0 /media/floppy
# work
# umount /dev/fd0

note: my floppy goes to /media/floppy. Yours may go to /mnt/fd0, /mnt/floppy, whatever
__________________
I Was Counted! Registered Linux User #384707

BASH && Beer && Bass! Now THAT makes sense!!
Reply With Quote
  #7  
Old 19th July 2005, 06:27 AM
Papoon Offline
Registered User
 
Join Date: Apr 2005
Posts: 32
My fstab contains

none /mnt/floppy supermount dev=/dev/fdo/,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0

... and ]# mount /dev/fd0 /mnt/floppy

returns

mount: permission denied

FYI, the formatted diskette is still in the drive.
Reply With Quote
Reply

Tags
bash, files, floppies, shell

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
bash shell programs friar_tux Using Fedora 1 9th October 2009 03:47 PM
Q: Saving large files on multiple floppies, how? FamilyCompany Using Fedora 2 5th November 2004 07:29 PM


Current GMT-time: 17:05 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat