The FreeBSD Diary |
(TM) | Providing practical examples since 1998If you buy from Amazon USA, please support us by using this link. |
Write protected floppies should be mounted read-only
4 January 2002
|
Backup backup backup. Words to live by. Nobody every regretted making a backup. In preparation for my talk, I formated, labeled, and newfs'd a floppy and copied the StarOffice talk to it. I also flicked over the write-protect tab for a bit of added protection.
To test the floppy, I did this on another box:
Hmmmm, we tried many things.
That indicates the system was trying to write to the floppy and was failing because the floppy was write-protected. Ummm, but why was it trying to write? I hadn't written anything. I only copied something off the disk. What's going on? |
Access time
|
If a file is accessed, the access time on the file is updated. That's what was being updated. That's why the system was trying to write to the floppy. Access time is useful if you are trying to find out how "used" a file is. If it's not been access in a while, why keep it around? Consider this example:
First I create a file, |
Work around
|
I was able to unmount the floppy by doing this:
|
The right thing
|
The right thing to do is to mount the floppy read-only:
Then I went back and tried again. No problems. The unmount worked fine.
I talked to some FreeBSD developers about this problem. They helped me to find out
the cause of the problem and come to the work around. Then they started talked about rewriting
the FreeBSD continues to grow. |