On Sun, 27 Sep 1998, George Woltman wrote:
>Hi,
>
> I was asked this question today. Since I'm not a Linux user, any help
> in answering this question is appreciated.
>
>My computer is now dual boot Linux/Windows 95. I have downloaded mprime and
>put it in the same folder as prime95 and verified that it runs. How can I
>set it up so that it runs automatically when I boot Linux? It is on the
>Windows 95 disk and all files on that disk, as far as Linux is concerned,
>are owned by root and cannot be written by anyone else.
>
first of all, are mprime and prime95 100% compatible reading the same
config and data files? assuming they are (I've not checked) here is how I
would do it.
1) linux has to mount the wind95 partition at boot time.
look in /etc/fstab and if needs be add a line something like this:
/dev/hda1 /msdos vfat defaults 1,2
where:
/dev/hda1 is the partition you're mounting (the wind95 one)
/msdos is an existing directory for the mount point. you might want to
create and use /mnt/msdos instead to keep the root directory clean.
vfat is the file system type. you must have vfat support either compiled
into the kernel, as a module auto loaded, or as a module with kerneld
running. if wind95 is using fat32 you might need to tweak things a bit
(linux does support fat32 but it's a recent enhancement which I don't know
much about)
now, depending on your linux distribution the scripts to mount partitions
are found in different places. having made the above change I might go
through a boot cycle to see if it gets auto mounted.
On my RedHat system, the following file shows this:
--- /etc/rc.d/rc.sysinit
# Mount all other filesystems (except for NFS). Contrary to standard
usage,
# filesystems are NOT unmounted in single user mode.
echo "Mounting local filesystems."
mount -a -t nonfs
---
this should mount all partitions named in /etc/fstab that do not have
'noauto' declared and are not of NFS type.
IF this does NOT mount the wind95 partition then edit /etc/rc.d/rc.local
(or equivalent) to add the mount statement.
next, we'll be editing /etc/rc.d/rc.local (or equiv) to start mprime
running. Mine contains something that looks remarkably like this:
---
# start mprime if we want to
if [ -f /home/myuser/mprime/start.on.boot ]; then
/home/myuser/mprime/mprime &
echo "Start mprime"
fi
---
since I don't much fancy letting mprime run as root when it doesn't have
to, I do the following:
1) check that the file start.on.boot exists. If it does we continue, if
not we don't. (this lets me turn off the auto-start without having to
monkey with the rc.d files)
2) run the program in the background.
3) report to the console what happened.
this is kind of messy since it doesn't detach the proecss properly, but
for now it works. (I'm looking at some improvements to fix this)
in my script, I actually 'su' to a different user to run the program under
since I dislike programs running around as root when they don't need to.
I forget off hand what you need to do to make a msdos partition
read/writable by a non-root user. Perhaps just setting 'user' in the
/etc/fstab file and then having the non-root user mount it would be all
you need.
hope that helps,
- dave
--
| oOOooO /
--| oOobodoO / [EMAIL PROTECTED]
--| ooOoOo /
| II / "Rocky Road," croaked the toad.
| II /