setting write permissions for floppy
I can mount my floppy but it only reads,how might I set it to write as well?
Thank you
Question information
- Language:
- Italian (Italy) Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Lorenzo Tom James
- Solved:
- Last query:
- Last reply:
|
Revision history for this message
|
#1 |
run:
sudo mkdir /media/floppy; gksudo gedit /etc/fstab
add the line:
/dev/fd0 /media/floppy auto rw,user,
Save the new file and close gedit, then run:
gksudo gedit /etc/modules
and add the word:
floppy
To the end. Save the file and close gedit. You should now have write access. You MUST remember to unmount the floppy before removing
|
Revision history for this message
|
#2 |
After doing all the commands,I tried copying over a odt.file and got(error opening file '/media/
|
Revision history for this message
|
#3 |
lorenzo@
[sudo] password for lorenzo:
mkdir: cannot create directory `/media/floppy': File exists
(gedit:5978): Gtk-WARNING **: Attempting to store changes into `/root/
(gedit:5978): Gtk-WARNING **: Attempting to set the permissions of `/root/
(gedit:5978): Gtk-WARNING **: Attempting to store changes into `/root/
(gedit:5978): Gtk-WARNING **: Attempting to set the permissions of `/root/
lorenzo@
(gedit:5995): Gtk-WARNING **: Attempting to store changes into `/root/
(gedit:5995): Gtk-WARNING **: Attempting to set the permissions of `/root/
(gedit:5995): Gtk-WARNING **: Attempting to store changes into `/root/
(gedit:5995): Gtk-WARNING **: Attempting to set the permissions of `/root/
lorenzo@
Once I was able to mount in10.4,there was never a problem reading or writing.I hope this output will be of some help.
|
Revision history for this message
|
#4 |
The first command actionparsnip asked you to run should have opened up a text editor where you can edit the file /etc/fstab. Did that not occur?
|
Revision history for this message
|
#5 |
Yes that did occur ,but please note,that particular directory already existed.
|
Revision history for this message
|
#6 |
I also would like to add,based on the terminal output it did in fact tried to set the permissions but failed.It seems to me,it's a matter of why?Either some kind of BUG exists or I have failed to do this properly.It's certainly not the hardware because it works excellent under windows..
|
Revision history for this message
|
#7 |
"Yes that did occur"
Did you then modify the file, as actionparsnip described? Is your original problem now solved?
"but please note,that particular directory already existed."
That's not a problem. The purpose of the first part of the command ("sudo mkdir /media/floppy") was to ensure that it exists, not to ensure that it was newly created.
"based on the terminal output it did in fact tried to set the permissions but failed."
The terminal output you saw had absolutely nothing to do with the problem of making it possible to write to floppy disks. The filename "/root/
The text editor cannot write to that file because it does not exist. So it tries to create it, but it cannot create it because the directory /root/.local/share does not exist. When running as a real human user, that file typically exists or can be created (the location /home/$
"Either some kind of BUG exists or I have failed to do this properly."
I am not sure I am recalling correctly, but I seem to remember that some people think, or have at one point thought, that the display of those messages constitutes a bug. I think that was a minority position which is widely not adopted, but I could be remembering wrongly. If you're interested in this topic, which I again emphasize has nothing at all to do with being able to write to floppy disks (and which happens no matter *what* file you open with "gksu gedit" or "gksudo gedit"), you may want to post a new question about it (https:/
Anyway, that does not in any way interfere with opening a file, editing it, and saving it. Unless you have reason to believe otherwise, that operation probably succeeded. After rebooting, are you able to easily write to floppy disks now?
|
Revision history for this message
|
#8 |
First of all,I would like to thank you for giving your time to shed light on these matters.
Yes,I did modify the file as instructed.
No,the problem still exist.
What I can't seem to wrap my head around is if I issue a specific command(sudo mkdir/media/
As for posting a new question,it's forth coming....soon as I figure out exactly what I would like to ask that would best fit what I don't know and/or understand.
|
Revision history for this message
|
#9 |
Sorry, I should have been clearer--did you modify *both* files as instructed? Did you try rebooting afterwards (this should not be strictly necessary, but may help.)
If so, then perhaps the problem is that while any user can mount the floppy, and while the floppy can be mounted for both read and write access, the default permissions for files on the floppy are such that only root has the ability to do so. To test for this, put a floppy disk in the drive, mount it (if it doesn't mount automatically), and open a new Terminal window and run these seven commands, one after the other:
cat /etc/fstab
cat /etc/modules
mount
touch /media/
sudo touch /media/
ls -ld /media/floppy
ls -l /media/floppy
On the fifth command (which begins with "sudo") you may be prompted for your password in the Terminal. As you enter it, you won't see any placeholder characters (like *) like you do when entering your password in a graphical window. That's OK--just type it in and press enter.
I'll post again shortly to answer your request for clarification regarding the messages you see when you run "gksudo gedit".
|
Revision history for this message
|
#10 |
> What I can't seem to wrap my head around is if I issue a
> specific command(sudo mkdir/media/
> task,why would(root/
> enter the process,especially since it does not have anything
> to do with writing to the floppy.That confuses me.
The command "sudo mkdir /media/floppy; gksudo gedit /etc/fstab" is really two commands. The first command creates the directory /media/floppy if it doesn't already exist; the second command runs gedit as root to edit the file /etc/fstab. It's the second command that produces the warning messages. And they are not error messages--they are warning messages. They are not actually indicating that anything is *wrong*. (Sometimes a warning does reveal a real problem, but this is not one of those cases.)
I recently posted a differently worded and differently structured explanation of what's going on with the warning messages about recently-used.xbel in another question. I think that explanation is better and clearer than the one I provided you. You can read it at https:/
|
Revision history for this message
|
#11 |
I apologize for any typographic or other errors in my most recent message (and also for accidentally submitting it as a request for information--the post preceding it was such a request, but the most recent post before this one was more properly a comment). This is because Launchpad is going down for maintenance for a short time soon, and I wanted to get the information out to you before then.
|
Revision history for this message
|
#12 |
Before I punch-out PROBLEM SOLVED I would like you to know I really appreciate your help.
