LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-20-2003, 06:33 PM   #16
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58

if it's damaged try this for high density low level format

fdformat /dev/fd0u1440
 
Old 06-20-2003, 06:33 PM   #17
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 47
Well, I just tested this with another diskette and I was able to view the file after removing the floppy without umount'ing, changing directories, putting the floppy back in, and going back to /mnt/floppy.

I must be in the TwighLight Zone.

But, I didn't yank it out while the light was on. I haven't done that since my first year of college back in 1980 on an Apple IIe.
 
Old 06-20-2003, 06:36 PM   #18
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
the low level format should repair it or tell you if it can't
 
Old 06-20-2003, 07:00 PM   #19
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 47
Apparently I'm just floppy ignorant.

I pulled out the floppy diskette that I wrote a file on and put back in the floppy diskette that is suspected of being corrupt. But, when I cd to /mnt/floppy and do ls, I still see the file from the removed floppy????

I did a cd back to /home/myusername and I can't umount /mnt/floppy. I can't umount /dev/fd0. I can't view the contents of the second floppy diskette because ls still shows that file from the removed first floppy.

This is on a red hat machine where this is in fstab:
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

So, I fired up my slackware machine. Put the floppy diskette in. cd to /mnt/floppy, since the same entry appears in fstab, except for the kudzu thing. And I can't view files on either of the floppy diskettes there either.

Yes, I AM floppy ignorant, and didn't even realize it until today.

So i can't test the fdformat thing until I can at least list the files on a good floppy.
 
Old 06-20-2003, 07:36 PM   #20
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
the device /dev/fd0 is hung because it's mounted

put in the proper disk, close programs like file manager that would be using the floppy, cd out of the /mnt/floppy folder if your in it. then unmount it.
 
Old 06-20-2003, 10:10 PM   #21
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 47
Well, the weirdness continues. No matter what I do I can't umount the /mnt/floppy or /dev/fd0 on any linux system I have and I can't convince red hat that the ipl.txt file is not on every diskette I put in that drive.

I put the suspected corrupt diskette back in the floppy drive. This disk does not have an ipl.txt file on it.

[bsl1@localhost floppy]$ su -
Password:
[root@localhost root]# umount /dev/fd0
umount: /dev/fd0: not mounted
[root@localhost root]# cd /mnt/floppy
[root@localhost floppy]# ls
ipl.txt
[root@localhost floppy]# cd
[root@localhost root]# fdformat /dev/fd0u1440
Double-sided, 80 tracks, 18 sec/track. Total capacity 1440 kB.
Formatting ... done
Verifying ... done
[root@localhost root]# ls /mnt/floppy
ipl.txt
[root@localhost root]# umount /dev/fd0
umount: /dev/fd0: not mounted
[root@localhost root]# cat etc//fstab
.
.
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

I put the floppy with the ipl.txt file back into the drive and got this verify error after fdformat (this was not the diskette that was corrupted, although it might be now!):

[root@localhost root]# cd /mnt/floppy
[root@localhost floppy]# ls
ipl.txt
[root@localhost floppy]# cd
[root@localhost root]# fdformat /dev/fd0u1440
Double-sided, 80 tracks, 18 sec/track. Total capacity 1440 kB.
Formatting ... done
Verifying ... Read: : Input/output error
Problem reading cylinder 0, expected 18432, read -1
[root@localhost root]# ls /mnt/floppy
ipl.txt

Where does ls get the data that, it thinks, the ipl.txt file is on the /mnt/floppy?

Why can't I umount the thing? I can't umount /mnt/floppy on my slackware box either.

Is the key for me here, for using floppies, to figure out fstab and mtab and autofs, or something, before I can effectively use a floppy drive? Is there a HOWTO somewhere for using the floppy drives? I know it shouldn't be this much trouble.

thanks...



Maybe I should take the floppy drive out of the computer and run over it with my car.

Last edited by itsjustme; 06-20-2003 at 10:14 PM.
 
Old 06-20-2003, 10:28 PM   #22
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
the file is in /mnt/floppy which is on your hard drive on the / partition

you mount the floppy then put the files there, if you put the files there and then mount the floppy there the files are not accessable until you unmount the floppy

it looks like the floppy that gave errors from fdformat is bad
 
Old 06-20-2003, 11:04 PM   #23
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 47
Ok, I did a 'cd /mnt/floppy' and rm'ed the 2 files in there.
Then I put the supposedly good fdformat'ed dikette into the drive.

Keeping in mind that this is in fstab:
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

[root@localhost floppy]# mount /dev/fd0 /mnt/floppy
mount: you must specify the filesystem type
[root@localhost floppy]# mount -t ext3 /dev/fd0 /mnt/floppy
mount: wrong fs type, bad option, bad superblock on /dev/fd0,
or too many mounted file systems
[root@localhost floppy]# mount -t vfat /dev/fd0 /mnt/floppy
mount: wrong fs type, bad option, bad superblock on /dev/fd0,
or too many mounted file systems
[root@localhost floppy]# mount -t msdos /dev/fd0 /mnt/floppy
mount: wrong fs type, bad option, bad superblock on /dev/fd0,
or too many mounted file systems
[root@localhost floppy]# crap dangit spit cuss
-bash: crap: command not found
[root@localhost floppy]# ls /mnt/floppy
[root@localhost floppy]# cp /home/bsl1/time2.txt /mnt/floppy
[root@localhost floppy]# ls /mnt/floppy
time2.txt
[root@localhost floppy]# mount -t ext3 /dev/fd0 /mnt/floppy
mount: wrong fs type, bad option, bad superblock on /dev/fd0,
or too many mounted file systems
[root@localhost floppy]# umount /dev/fd0
umount: /dev/fd0: not mounted
[root@localhost floppy]# umount /mnt/floppy
umount: /mnt/floppy: not mounted

I am really confused. Looking at the experience above, how do I get the text file out of /mnt/floppy and actually get it on the diskette. mount and umount aren't doing anything for me. I've got something hosed up somwhere, or I'm just not understanding something.

thanks for the replies.
 
Old 06-21-2003, 12:44 AM   #24
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
If you formatted the floppy you will need to put a filesystem on it.

if you want dos try this..

mkfs -t msdos /dev/fd0

ext2 try this..

mkfs -t ext2 /dev/fd0

to see what you have available run this

locate bin/mkfs


/sbin/mkfs.msdos
/sbin/mkfs.vfat
/sbin/mkfs.ext2
/sbin/mkfs.ext3
/sbin/mkfs.reiserfs
/sbin/mkfs
/sbin/mkfs.bfs
/sbin/mkfs.minix
/sbin/mkfs.jfs
 
Old 06-21-2003, 12:49 AM   #25
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
to get the file from /mnt/floppy you need to mount a floppy somewhere other than /mnt/floppy so you can move or copy the file to it

mkfs -t vfat /dev/fd0
mkdir /mnt/other
mount /dev/fd0 /mnt/other
mv /mnt/floppy/* /mnt/other
(it looks like you already deleted the files so they would be gone if that's true)
umount /mnt/other
rm -rf /mnt/other
mount /dev/fd0

ls /mnt/floppy

files on floppy are listed

umount /mnt/floppy

ls /mnt/floppy

nothing there



for just plain normal everyday floppy use.

insert (formated, with filesystem) floppy into drive

run this..

mount /dev/fd0
use floppy for adding or removing, copying files. etc. by accessing /mnt/floppy

umount /dev/fd0

remove floppy disk from drive

Last edited by DavidPhillips; 06-21-2003 at 12:57 AM.
 
Old 08-09-2004, 09:33 AM   #26
mr666white
Member
 
Registered: Jun 2004
Location: Leeds, England
Distribution: Gentoo, IPCop
Posts: 54

Rep: Reputation: 15
If you're driven nuts by having to remember to umount things, try autofs. It'll mount anything on demand, and once you've navigate4d away from a device, will umount it after a given timeout. A great way to avound having too many filesystems mounted at once if resources are sparse. If you set the timeout to 3 seconds or so, floppies and cdroms will behave the way windows users (enlighten them someone) expect - you wit for the light to go out and count to 5 and most of the time you get your data all on your disk.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: installing Windows XP on laptop with no cd/floppy drive woes :S kevingpo General 6 10-25-2005 01:49 PM
Floppy problem: inable to find floppy vasanthraghavan Linux - Hardware 1 07-03-2005 09:34 PM
Just installed Fedora, fatal error when it looks for floppy, i have no floppy Zieroth Linux - Software 18 07-19-2004 06:42 PM
FC1: New DVDRom not automounted and can not be ejected a000a Linux - Software 0 03-08-2004 01:33 AM
Debian Woody floppy install problems with ATAPI floppy jturnicate Linux - Newbie 0 02-17-2004 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:45 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
Open Source Consulting | Domain Registration