[SLE] Fw: [SLE] Problems copying to /floppy
I forgot to send this to the list the first time, but here it comes:
Argentium G. Tiger
wrote: I have a 1.44 meg diskette. It has just been freshly formatted on a Windows system in a dos box with the following options: "FORMAT A: /U" (unconditional format).
The format was 100% successful and no bad sectors were detected or reported.
I take my freshly formatted FAT-16 (and obviously write enabled) floppy over to my SuSE 6.2 machine at work.
mount /floppy (no problem, it mounts.)
cd /usr/doc/packages/diald (where I'm going to copy some files from)
Here begins the copy attempts.
cp diald-faq.txt /floppy/dialdfaq.txt cp: /floppy/dialdfaq.txt: Operation not permitted
ls -al /floppy -rw-r--r-- 1 root root 37768 Nov 5 09:59 dialdfaq.txt
Ok, so the file copied in its entirety.
So I try to copy another file...
cp README /floppy cp: /floppy/README: Operation not permitted ls -al /floppy rw-r--r-- 1 root root 37768 Nov 5 09:59 dialdfaq.txt -rw-r--r-- 1 root root 7417 Nov 5 10:02 readme
Ok, so that copied too. Sometimes, however, the file simply refuses to copy, and won't show up in a listing of /floppy. When this happens, I'll get the same "Operation not permitted" error.
I'm thinking this must have something to do with an inherent assumption Linux is making about what file system a diskette will have, and that I may have to play with /etc/fstab to define a /dosfloppy mounting point for fat-16 file systems. Perhaps I should make it fat-32 to support long filenames...
Those permission errors you get when it actually succeeds in copying, are caused by the cp trying to change permissions on the file after it is written. Since the file is now owned by root it cannot be done.
I suggest you take a look at the mtools package for when you need to copy stuff on DOS-formatted floppies.
It includes several of the wellknown DOS command just with an m in front of the name. Like: mdir, mcopy, mdel and a few more.
Am I on the right track yet, or what?
While I'm here asking about /floppy... How *do* you lay down a fresh filesystem one one of those with Linux?
take a look at man mkfs
Regards
Ole
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
At 06:45 PM 11/05/1999 +0100, you wrote:
I forgot to send this to the list the first time, but here it comes:
[ Copying to dos filesystems: use mtools/mcopy Laying down a fresh file system: use mkfs ] Thanks Ole! That was just what I needed. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
agtiger@kc.net
-
k01164@ko.sdu.dk