Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem saving to floppy disk!
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
stuarte9



Joined: Mon Mar 08, 2010 5:03 pm
Posts: 53
Location: Scotland

PostPosted: Fri Sep 06, 2013 5:24 pm    Post subject: Problem saving to floppy disk! Reply with quote

Hi,

I'm currently having a problem saving files to 3 1/2 " floppy disk and was wondering if someone could offer any suggestions as to how to resolve this.

I'm using openSUSE 12.3 and KDE 4 on a P4 system.

The floppy drive is properly cabled up and is enabled in the B.I.O.S. and in fact is the third boot device. I should also state that the floppy disk is not(!) write protected. The little "window" in the disk top right hand corner is "closed".

In Dolphin, the device appears near the bottom of the left hand column, above the entry for the usb flash drive.

Using Dolphin, I can not only "see" the directories/files on the floppy disk but can also read them into relevant applications, for example, a ".doc" file into Libre Office Writer.

However, when I try to save a ".doc" file to the floppy disk, a dialog box appears with the following text.

"Error saving the document List:
/var/run/media/suse/disk/List.doc does not exist"

In the above text, "suse" is just the username.

This error message is true in that it appears each time I try to save this new file to disk.

Has anyone seen this type of error before ?

Does anyone know how to fix this ?

Thanks in advance to anyone who can help with this.

Stuart
Back to top
View user's profile Send private message
guy
LXF regular


Joined: Thu Apr 07, 2005 1:07 pm
Posts: 1070
Location: Worcestershire

PostPosted: Fri Sep 06, 2013 7:10 pm    Post subject: Reply with quote

Have you tried saving to HD then copying across to floppy?

Like any other external or media device, a floppy drive has to be "mounted" on the Linux filesystem. Floppy drives are unusual in that the eject button is purely physical and pressing it, e.g. swapping disks, while the drive is mounted can cause problems because the OS doesn't know you just did that. The floppy driver seems to take what precautions it can against that, but it is still a bit clunky and can itself cause odd effects. I don't know if what you are seeing might be one of them.

Also, when the disk actually gets written to depends on your device settings. If the OS writes immediately to disk, making many small writes can take ages and really slow you down. So there is another mode in which the OS writes to a cache. The disk itself is not written to until it is unmounted, so you only have one wait. Sorry I can't remember the magic words or GUI location, this PC doesn't have a floppy drive.

I always try to stick rigorously to the prcedure:
1. Insert floppy
2. Mount drive
3. read/write as desired
4. Unmount drive
4. Eject floppy

Not sure if all that helps?
_________________
Cheers,
Guy
The eternal help vampire
Back to top
View user's profile Send private message
johnhudson
LXF regular


Joined: Wed Aug 03, 2005 2:37 pm
Posts: 870

PostPosted: Fri Sep 06, 2013 9:51 pm    Post subject: Reply with quote

The problem is that your system is treating the floppy as a removable device rather than a fixed one.

That is why you are getting a message that it does not exist.

Assuming it is a fixed one, you need to check the entry in fstab. It should read:

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

This means that it is not mounted when you boot because it has to have a floppy in to be moutable. When you put a floppy in or take one out, you may need to issue the relevant mount and umount commands - or you may be able to right click on the /media/floppy0 icon and do it that way.

As I have the floppy drive on a very old machine, this may be one of those 'features' that has got left out of more modern DEs over the years. PCmanFM still has it on the older machine.
Back to top
View user's profile Send private message
stuarte9



Joined: Mon Mar 08, 2010 5:03 pm
Posts: 53
Location: Scotland

PostPosted: Mon Sep 09, 2013 5:37 pm    Post subject: Reply with quote

Hi,

Thank you both for the speedy replies.

@guy:
Yes I did try saving to HD then copying across to floppy. This gave the same result as I mentioned in my original post in this thread. With respect to the drive eject button activity not being "caught" by the OS, I really was not aware of that. With respect to the drive using a cache, how do I check that this is indeed happening ? What do I look at ? BTW, thanks for both these points. Smile

@johnhudson:
Yes, the floppy drive is a fixed one. I've now copied fstab to fstab_original and added
/dev/fd0 /media/floppy0 auto rw,user,noauto
to the end of fstab. I can now access the floppy drive to read files, as I previously could, provided that I take the following action. I must load a floppy disk into the drive after the B.I.O.S. "Boot Floppy Seek" has finished. (Failure to do so causes other boot problems.) This is workable.

When I run Dolphin, the floppy drive initially(!) does not show. However, if in Dolphin's left hand column I right click on an empty space under "Devices" and select "Show All Entries" from the pop up menu, then an entry for the floppy drive does then appear under "Devices". When I click on that entry the floppy drive is accessed and the files and directories are thereby made available, for reading!

(I then went into Yast/Security and User/User and Group Management where I found that user suse did not have floppy in their list of groups. Group floppy has now been added to suse's list of groups. I'm not sure if this was an oops(!). Smile )

This is fine as far as it goes. However, I still can't save a file to floppy disk. The problem now seems to be one of permissions. Using gEdit I prepared a small .txt file and tried to save that to the floppy disk. gEdit responded with the following error message:

"Could not save the file /media/floppy0/save_test.txt.
You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again."

I am familiar with using chmod to change the access permissions on a file. So I opened a terminal where I found that /media/floppy0 was owned by root. I then executed the various incarnations of chmod "copied and pasted" below.

dhcppc0:/media> su -
Password:
dhcppc0:~ # cd /media
dhcppc0:/media # ls -l
total 7
drwxr-xr-x 3 root root 7168 Jan 1 1970 floppy0
dhcppc0:/media # chmod 777 floppy0
dhcppc0:/media # ls -l
total 7
drwxr-xr-x 3 root root 7168 Jan 1 1970 floppy0
dhcppc0:/media # chmod +777 floppy0
dhcppc0:/media # ls -l
total 7
drwxr-xr-x 3 root root 7168 Jan 1 1970 floppy0
dhcppc0:/media # chmod u=rwx floppy0
dhcppc0:/media # ls -l
total 7
drwxr-xr-x 3 root root 7168 Jan 1 1970 floppy0
dhcppc0:/media # chmod u=rwx,g=rwx,o=rwx floppy0
dhcppc0:/media # ls -l
total 7
drwxr-xr-x 3 root root 7168 Jan 1 1970 floppy0
dhcppc0:/media # chmod a+rwx floppy0
dhcppc0:/media # ls -l
total 7
drwxr-xr-x 3 root root 7168 Jan 1 1970 floppy0

As you can see, floppy0 has stubbornly refused to change its access permissions. I've verified (most of) these usages of chmod with "LINUX IN A NUTSHELL" 3rd Ed., Chapter 3 "Linux Commands", p.63, chmod, "Examples".

What am I missing/have forgotten here ?

If someone could point me in the right direction to solve this last small problem I would be very grateful.

Thanks in advance.

Stuart
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8457
Location: Warrington, UK

PostPosted: Mon Sep 09, 2013 9:00 pm    Post subject: Reply with quote

What filesystem do you have on the floppy disk? If it is FAT, you cannot apply Linux file permissions to it. Instead, add umask=0 to the list of options in fstab. That makes all files and directories world writeable, the equivalent of chmod 777.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
guy
LXF regular


Joined: Thu Apr 07, 2005 1:07 pm
Posts: 1070
Location: Worcestershire

PostPosted: Mon Sep 09, 2013 9:12 pm    Post subject: Reply with quote

Once the thing is working, the easiest way to tell is by checking the disk activity. If it lights up and whirrs for ages every time you write to it, then it is writing as you go. But if it sits quiet when you write to it, the OS is cacheing your writes.

The exact buzzwords to set this behaviour probably depend on your distro/toolset, GUI tools have arbitrary menus and may be leaving the past behind anyway so maybe bash is your best option. Sorry I can't help more.
_________________
Cheers,
Guy
The eternal help vampire
Back to top
View user's profile Send private message
johnhudson
LXF regular


Joined: Wed Aug 03, 2005 2:37 pm
Posts: 870

PostPosted: Mon Sep 09, 2013 9:53 pm    Post subject: Reply with quote

My experience on my old floppy drive is that there is only any noise during writes if I exceed a certain quota of data. Otherwise, it is all cached until I issue umount, when it is written to the disk.

I certainly haven't had any difficult writing to the floppy as an ordinary user with the fstab settings I mentioned. So I am slightly puzzled about this. Maybe this is a query for Hardware forum on the openSUSE forums.

Incidentally, next time you try to install a new version of openSUSE, put a disk in the drive throughout the install - it won't install if there isn't a disk in the drive because the drive will not respond - and then check fstab to see if it has.
Back to top
View user's profile Send private message
stuarte9



Joined: Mon Mar 08, 2010 5:03 pm
Posts: 53
Location: Scotland

PostPosted: Sun Oct 27, 2013 1:18 pm    Post subject: Reply with quote

Good afternoon all,

@johnhudson:
Thanks for that tip about leaving a floppy disk in the drive all the way through an install of openSUSE. It worked!

The "alert" box that pops up in the screen lower right hand corner when you pop in a thumb/flash drive now has an icon for the floppy next to which is the usual list of suggested applications. Clicking on the File Manager icon starts Dolphin which itself now has a small icon for the floppy drive in its left hand list of devices and can display the contents of the floppy disk.

Having seen the above, I didn't bother to look in fstab. It didn't seem necessary.

Thanks again.

Stuart
Back to top
View user's profile Send private message
Alex01UK
LXF regular


Joined: Thu Jun 14, 2012 5:31 pm
Posts: 223
Location: Scarborough, North Yorkshire, United Kingdom

PostPosted: Sun Nov 03, 2013 11:01 pm    Post subject: Re: Problem saving to floppy disk! Reply with quote

stuarte9 wrote:
Hi,

I'm currently having a problem saving files to 3 1/2 " floppy disk and was wondering if someone could offer any suggestions as to how to resolve this.
t


Please excuse my ignorance, but wtf is a floppy disk? Wink
_________________
Acer Aspire 5551: AMD Athlon P320 (2.1 GHz), 3GB RAM, ATI HD 425o Graphics.
64bit Windows 7 Home Premium, 64bit Ubuntu Studio 14.o4, 32bit Mint 17 MATE.

''I am what I am, because we are what we are.''
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
dandnsmith
LXF regular


Joined: Fri Apr 15, 2005 11:01 am
Posts: 308
Location: Berks, UK

PostPosted: Mon Nov 04, 2013 7:36 am    Post subject: Reply with quote

A 3.5 inch square plastic case which contains a coated disk (magnetic). Capacity limited - 360K 720K 1.7MB.
Used to be present on all systems as the primary boot device - but not many have them now
_________________
Derek
Back to top
View user's profile Send private message
johnhudson
LXF regular


Joined: Wed Aug 03, 2005 2:37 pm
Posts: 870

PostPosted: Mon Nov 04, 2013 10:07 pm    Post subject: Reply with quote

Nah! That's not the real thing - the real thing was a piece of 8" circular magnetic tape inside a cardboard folder not dissimilar to an LP sleeve with a slot through which it could be read which could hold 128KB on either side, initially developed by IBM for backups but taken up by hobbyists in the 1970s as an improvement on saving to tape recording tape.

The 3" version was a late-comer on the scene, as was the plastic case - but if you've ever wondered why a hard-drive is labelled C: in certain well-known computers, it's because drives A: and B: were always for the two floppy drives.

The first computer I used had an amazing two double-sided 8" floppy disks labelled A:, B:, C: and D: giving a total of 512KB (though A: held the OS and some programs had to spill over onto B: in order to work).
Back to top
View user's profile Send private message
dandnsmith
LXF regular


Joined: Fri Apr 15, 2005 11:01 am
Posts: 308
Location: Berks, UK

PostPosted: Tue Nov 05, 2013 8:01 am    Post subject: Reply with quote

If you want to argue about 'the real thing' (I was explaining the 3.5 inch mentioned), then you should remember that the IBM original was 5.25 inch, and the 8inch was used by Xerox (I think) and was the boot disk for the LISP machine which was the programmers dream of the time.
_________________
Derek
Back to top
View user's profile Send private message
guy
LXF regular


Joined: Thu Apr 07, 2005 1:07 pm
Posts: 1070
Location: Worcestershire

PostPosted: Tue Nov 05, 2013 10:58 am    Post subject: Reply with quote

I do struggle with the newer, smaller variants you microcomputer folks love to bring on. The first magnetic floppy disk I ever came across was a large-diameter type (probably 8" or 12") used by an analogue voice recorder, ca.1968. No slotted cardboard envelope, just slip it out of its sleeve and plonk it on the gramophone-style record/playback machine like any other audio disk of the period and off you go. It was an obsolescent-looking curiosity even then, and a poor loser in quality not only to my reel-to-reel tape (Best of the Beach Boys anybody?) but even to the wax cylinder still used by my Dad's office Dictaphone.

But what I don't know is which came first - was an analogue medium adapted for digital use, or vice versa? As I struggle to recall, I have vague memories of the kid who brought it into school saying something about the voice recorder being a failed spinoff from something hi-tech his dad's company was working on, but that is very unreliable. Names? No chance, sigh.
_________________
Cheers,
Guy
The eternal help vampire
Back to top
View user's profile Send private message
johnhudson
LXF regular


Joined: Wed Aug 03, 2005 2:37 pm
Posts: 870

PostPosted: Tue Nov 05, 2013 11:06 pm    Post subject: Reply with quote

dandnsmith wrote:
If you want to argue about 'the real thing' (I was explaining the 3.5 inch mentioned), then you should remember that the IBM original was 5.25 inch, and the 8inch was used by Xerox (I think) and was the boot disk for the LISP machine which was the programmers dream of the time.


Not according to http://en.wikipedia.org/wiki/History_of_the_floppy_disk; my brother who worked on IBM machines in the 1970s remembers them as temporary storage. I didn't encounter them until CP/M.
Back to top
View user's profile Send private message
Nuke
LXF regular


Joined: Wed Feb 09, 2011 12:11 pm
Posts: 217
Location: Chepstow, UK

PostPosted: Tue Nov 05, 2013 11:39 pm    Post subject: Reply with quote

I still have a couple of 5.25" floppies, for keepsake. They came from work. I hated them, and when I ordered my first PC, which would have had a 3.5" and 5.25" drives (a common transitional arrangement at the time) I told them to omit the 5.25".

I have about two hundred 3.5" floppies, and a PC that can read them. I ought to go through them one day and take off anything I might still need.

I even have about thirty 3" floppies from a 1980's Amstrad.
_________________
Unsolved mysteries of the Universe, No 13 :-
How many remakes of Anna Karenina does the World need?
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast