|
楼主 |
发表于 2005-1-14 22:50:26
|
显示全部楼层
To solve error 21 problems you need to:
1. disable prelink
2. turn off exec-shield
3. enable legacy VA_LAYOUT (2.6.9 kernel)
4. enable exec mount option
(1).
To disable automatic prelinking in the future, edit /etc/sysconfig/prelink
and set PRELINKING to no by making sure the following line is present:
PRELINKING=no
Then execute the cron job, most likely /etc/cron.daily/prelink, to
reverse the Prelink for all of your libraries or manually run:
$ prelink -ua
(2).
To disable exec-shield you can either use the boot time option
"exec-shield=0" or it may be changed, before running Cedega, by typing
either:
$ echo 0 > /proc/sys/kernel/exec-shield
or
$ sysctl -w kernel.exec-shield=0
(3).
In addition, newer Fedora Core 2, Fedora Core 3, and other 2.6.9 kernels also
require support for legacy VA layout to be enabled. This can be done
via the command:
$ echo 1 > /proc/sys/vm/legacy_va_layout
before running Cedega (this is required after every boot).
To enable legacy VA Layout at boot time, edit /etc/sysctl.conf
and add the following:
vm.legacy_va_layout = 1
(4).
Some distributions version of mount now run with the noexec option unless otherwise specified. Running games from a partition mounted with noexec can cause an error = 21
To fix this issue edit the /etc/fstab and modify the partition line by removing the noexec option and adding the exec switch to the mount options. For example:
change
/dev/hda1 / ext3 errors=remount-ro,no-exec,defaults 0 1
to
/dev/hda1 / ext3 errors=remount-ro,exec,defaults 0 1
If neither exec nor noexec appears in the line it is recommended that you add it.
To remount the partition run (as root):
mount -o remount / |
|