个人工具

UbuntuHelp:EnablingPAE2

来自Ubuntu中文

跳转至: 导航, 搜索
  1. Enabling_PAE

What is PAE?

Physical Address Extension is a technology which allows 32 bit operating systems to use up to 64 Gb of memory (RAM), something which is normally achieved by switching to a 64 bit system. PAE is supported on the majority of computers today and it is an easy procedure to enable it in Ubuntu. In general, a proper 64 bit system is recommended if you have 4 Gb or more memory and/or want to get the full benefit of the 64 bit architecture (see 32bit_and_64bit), but in some cases making a complete switch to 64 bit is not desirable, and using PAE can be a viable compromise.

How to Enable PAE

PAE is not enabled by default in the Desktop (or Netbook) edition of Ubuntu, to enable it, installation of a specific PAE enabled kernel is required.

Instructions for Ubuntu 9.10 (Karmic Koala)

The PAE enabled kernel can be installed using the Synaptic Package Manager (accessible from the System menu under Administration -> Synaptic Package Manager): The relevant packages are called "linux-generic-pae" and "linux-headers-generic-pae" and should be easily found with a search for "pae". Alternatively they can be installed using either apt-get or aptitude through the terminal:

sudo aptitude install linux-generic-pae linux-headers-generic-pae

After a reboot the PAE kernels should be set as the default option in the GRUB boot menu. To confirm that PAE was enabled correctly you can use the system monitor form the System menu under Administration -> System Monitor. The first tab shows usable memory.

Instructions for earlier versions (Ubuntu 9.04 and earlier)

First, turn off any restricted drivers. We'll turn them back on once we're done, but if you don't turn them off first, X won't start, and that's bad. Just go into System -> Administration -> Hardware Drivers and turn off your graphics drivers. Next we just install the server kernel:

sudo aptitude install linux-image-server

You might also want the restricted modules:

sudo aptitude install linux-restricted-modules-server

Now restart, and your first boot option should be ubuntu-something-server. Once you're at the desktop, re-enable your restricted drivers (System -> Administration -> Hardware Drivers). If everything worked right, you should have 4 Gb of memory enabled. You can use the system monitor to confirm this: System -> Administration -> System Monitor. The first tab shows usable memory.

Removing old kernels

If everything went ok, you probably don't want Ubuntu to keep installing updates for the generic kernel, so remove the generic kernel meta-package:

sudo aptitude remove linux-image-generic

If you want to remove all of the old kernels from your boot menu, it seems like you have to do it all manually:

sudo aptitude remove linux-image-<numbers go here>-generic

There should be some way of doing wildcards in aptitude, but I can't figure it out. You basically want to remove linux-image*generic, but I don't know how.

Something went wrong

If something went wrong, just remove the server kernel and use your old kernels. They should still be there. Make sure to turn off the restricted drivers when switching between them. You can remove the server kernel with:

sudo aptitude remove linux-image-server linux-image-<version number goes here>-server