Show Table of Contents
10.4.6. 系統找不到您的記憶體嗎?
有時候,系統的核心無法辨識您所有的記憶體。您可以使用
cat /proc/meminfo 指令來檢查。
找出顯示出來的容量是否與您系統中的記憶體容量相同。如果不一樣,請在
/boot/grub/grub.conf 檔案中加入下列這一行:
mem=xxM
將系統有的記憶體容量(以百萬位元組表示)取代上一行中的 xx。
在
/boot/grub/grub.conf 檔案中,上述的例子看起來會類似以下所示:
# NOTICE: You have a /boot partition. This means that # all kernel paths are relative to /boot/ default=0 timeout=30 splashimage=(hd0,0)/grub/splash.xpm.gz title Red Hat Enterprise Linux Client (2.6.32.130.el6.i686) root (hd0,1) kernel /vmlinuz-(2.6.32.130.el6.i686 ro root=UUID=04a07c13-e6bf-6d5a-b207-002689545705 mem=1024M initrd /initrd-(2.6.32.130.el6.i686.img
在您重新開機後,在
grub.conf 檔案中所做的變更將會立即生效。
當 GRUB 開機畫面載入時,鍵入
e 以進入編輯模式。您將會看到您所選取的開機識別標籤設定檔中一系列的項目。
選擇以
kernel 開頭的那一行並輸入 e 以編輯開機紀錄項。
在
kernel 那一行的最後,增加
mem=xxM
xx 就是您系統中的記憶體容量。
請按下 Enter 以離開編輯模式。
當您回到開機載入程式的畫面時,請輸入
b 來啟動系統。
記得要以實際的記憶體容量取代 xx。再按下 Enter 後開機。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.