I have created a bootable thumbdrive containing Ubuntu 10.04. It works fine, but has one minor issue. When I boot a system, it writes a new fstab relevant to that system. That fstab persists, so that if I boot another system the "old" fstab is read and the O/S tries to mount filesystems that don't exist on the current system. Obviously I can just hit the "S" key at boot to skip that mounting, but I would like a more elegant solution. I think that executing a script to re-write my fstab with just a single line for to mount /proc will be fine. Currently, I do this manually just before shutting down. I have read about startup and shutdown scripts, but the literature that I have read indicates that those scripts are used for starting and stopping services. My questions are therefore:
Is is appropriate to use the shutdown scripts to execute a script for re-writing my fstab?
At what run-level shoud I run that script (runlevel 0?)
Should it be a K script or a S script?
Thanks in advance
Stumpy