Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 11-17-2006, 05:00 PM   #1
Registered: Sep 2006
Distribution: Fedora Core 5 (no internet)
Posts: 95

Rep: Reputation: 15
Angry Diskette Permissions & Saving

I realize that a diskette contains no permissions; however, I ran into a few problems in saving.
Alright, so I finally mounted my floppy to /mnt/floppy (I even created an alias for mounting it). However, in my own account I don't have permissions to change the floppy. When I changed to root, I tried
chmod a+r+w+x /mnt/floppy
but that didn't work. Then I tried
chmod 0666 /mnt/floppy
That didn't work either. I tried chmod once more, this time read and write separately:
chmod 0222 /mnt/floppy
chmod 0444 /mnt/floppy
Nothing still worked. So I decided to copy the directory I needed directly as root. I tried cp <whatever the directory was>, I couldn't copy it--the output was:
ommitting directory <dir>
//"dir" is the last directory in the path
So then I used the GUI. I supposedly copied the file (it showed it in the GUI, and showed it in the command line), and so I typed:
umount /mnt/floppy
and then
umount -a
just to make sure. The command line didn't complain both times except to to say the second time that /mnt/floppy was already unmounted. But when I was going to do the file trasnfer on a Windows machine, the file didn't exist.

The funny thing was, I copied files earlier, and unmounted the floppy in the same way, but when I remounted and checked the floppy, the files weren't there, so I did it again, and they stuck.
From what I see, I need to mount and remount the floppy twice in order for a file to stick and be saved. Is that true or am I doing anything wrong. I appologize for the length of this message
Old 11-18-2006, 11:25 AM   #2
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
chmodding doesn't work for FAT filesystems. You have to use the umask mount option to simulate them. "mount -t auto -o rw,umask=111 /dev/fd0 /mnt/floppy" should give you 666 permissions on the files. You can also use "uid=username" and "gid=groupname" to designate a user and group respectively.

As for files not showing up, under the default mount config data will sometimes stay in a write buffer for a while before actually getting written to the disk. Perhaps you aren't giving it enough time to complete the transaction before you're unmounting it. Try using the "sync" option to force the files to copy directly.

You may want to read up on mount options in "man mount", especially the fat filesystem options.

Regarding cp, it can only copy empty directories by default. You have to use "cp -R" to recursively copy a whole directory structure. Again I suggest you read the man page.


diskette, floppy, mount, permissions, umount, unmount

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
Desperately need help with diskette permissions. Tux-O-Matic Linux - Hardware 3 11-09-2006 12:36 AM
Saving & transfering Mozilla settings jlgreer1 Linux - Software 1 12-10-2005 11:41 PM
saving html from windows editor looses permissions aryehb Linux - Newbie 4 03-24-2005 03:20 PM
Saving my kernel & then using it for installation dhbiker Slackware 6 02-20-2004 12:02 PM
Saving users, groups and permissions in Red Hat 9 ferrantepunto Linux - Software 2 12-03-2003 02:26 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration