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 Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
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 |
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. |
All times are GMT -5. The time now is 11:02 PM. |