I am writing a script that I want to work on as many distributions as possible. I have it working OK on SuSE 8.0, SuSE 8.1, and Yoper 3.2.1.rc3.
Then I installed Red Hat 8.0 and ran into some puzzling problems. I am building a ram disk on a loopback device and beginning with the second run of the script I start getting "disk full" messages on the loopback device even though I have umounted the ram disk, unattached the loop device, and deleted the ram disk file and the end of every run (and which works fine on the other systems).
My Red Hat 8.0 system has automount. This is the first time I have ever used automount. I strongly suspect that my problems are caused by automount and me contending for control of the mount status of the loopback device. I want to run tests to see if this is my problem.
So my question is: How do I turn automount off and then later turn it back on?