Go Job Hunting at the LQ Job Marketplace
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, 04: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, 10:25 AM   #2
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954
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-08-2006 11:36 PM
Saving & transfering Mozilla settings jlgreer1 Linux - Software 1 12-10-2005 10:41 PM
saving html from windows editor looses permissions aryehb Linux - Newbie 4 03-24-2005 02:20 PM
Saving my kernel & then using it for installation dhbiker Slackware 6 02-20-2004 11:02 AM
Saving users, groups and permissions in Red Hat 9 ferrantepunto Linux - Software 2 12-03-2003 01:26 PM

All times are GMT -5. The time now is 03:49 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration