Am Fre, 30 Jun 2000 schrieben Sie:
> Thanks Olaf I think that is a good way to do it. My program only opens
> files once in a while
> (in computer time that is) so by leaving the directory it works with rw and
> the others ro would
> probably be a good idea (leaving /tmp /var as rw as well). Not being a
> linux guru I would set
> a partition as rw or ro by screwing with the /etc/fstab file???????
Yes, here is my fstab (you have to change it to your environment)
# more /etc/fstab
/dev/hda11 / ext2 defaults,ro 1 1
/dev/hda14 /backup vfat defaults 0 0
/dev/hda2 /boot ext2 defaults,ro 1 2
/dev/hda10 /home ext2 defaults 1 2
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/hda7 /opt ext2 defaults,ro 1 2
/dev/hda13 /tmp ext2 defaults 1 2
/dev/hda5 /usr ext2 defaults,ro 1 2
/dev/hda6 /usr/src ext2 defaults,ro 1 2
/dev/hda12 /usr/src/projects ext2 defaults 1 2
/dev/hda8 /var ext2 defaults 1 2
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/hda9 swap swap defaults 0 0
If you want to install some programs e.g. on /usr you can use the options
mount -o remount,rw /dev/hda5 /usr
than the /usr is remounted as rw - after this don't forget to remount ro again
8). If you inside a network you could mount /backup to a nfs drive - at crash
time no data will be corrupted on the network drive.
CU Olaf
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/