安裝時 acpi 如何設定 [論壇 - 新手村]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊

(1) 2 »


安裝時 acpi 如何設定
會員四級
註冊日期:
2007/11/25 1:18
所屬群組:
已註冊使用者
等級: 16
HP : 0 / 385
MP : 103 / 17299
EXP: 43
離線
在舊筆電安裝Xbuntu:
先以光碟試run, 要先選 acpi=off 才能跑。跑起來也正常。

於是先按F6, 選 acpi=off, 然後按<ESc> 回主畫面, 再選安裝到安裝完畢。
但重開時, 出現Grub 選單, 選啟動 Xubuntu, 卻又跳回 Grub 選單, 就這樣一直循環, 無法進 Xubuntu。
請問這種設定法是否有誤? 該如何安裝才正確?

2011/11/28 19:25
應用擴展 工具箱
回覆: 安裝時 acpi 如何設定

註冊日期:
2009/12/6 10:32
所屬群組:
已註冊使用者
等級: 71
HP : 1053 / 1756
MP : 4456 / 68280
EXP: 24
離線
sudo cat /boot/grub/grub.cfg
sudo fdisk -l
把結果貼上來

2011/11/28 20:28
應用擴展 工具箱
回覆: 安裝時 acpi 如何設定
會員四級
註冊日期:
2007/11/25 1:18
所屬群組:
已註冊使用者
等級: 16
HP : 0 / 385
MP : 103 / 17299
EXP: 43
離線
The laptop can't boot into Xubuntu.

Boot frome CD with acpi=off is OK.
and in this condition, the result of the command you suggested is list below:
=============================================
sudo fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004dfc8

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 155271167 77634560 83 Linux
/dev/sda2 155273214 156301311 514049 5 Extended
/dev/sda5 155273216 156301311 514048 82 Linux swap / Solaris
------------------------------------------------------------------------------------------------------------
sudo cat /boot/grub/grub.cfg

cat: /boot/grub/grub.cfg: No such file or directory

2011/11/30 12:30
應用擴展 工具箱
回覆: 安裝時 acpi 如何設定

註冊日期:
2009/12/6 10:32
所屬群組:
已註冊使用者
等級: 71
HP : 1053 / 1756
MP : 4456 / 68280
EXP: 24
離線
sudo mount /dev/sda1 /mnt
sudo cat /mnt/boot/grub/grub.cfg

2011/11/30 13:27
應用擴展 工具箱
回覆: 安裝時 acpi 如何設定
會員三級
註冊日期:
2011/10/20 12:59
所屬群組:
已註冊使用者
等級: 14
HP : 0 / 340
MP : 81 / 11367
EXP: 60
離線
pnleo 寫到:

sudo cat /boot/grub/grub.cfg

cat: /boot/grub/grub.cfg: No such file or directory


因為你現在用 livecd 開機
而 livecd 裡面是沒有 /boot/grub/grub.cfg 這個檔案的
依照polo大的本意(我猜)
我建議如下操作:

1.開啟檔案管理員
2.在sda1那個分割區按一下,掛載它
3.切換到/boot/grub 這個目錄,找到 grub.cfg
4.用 gedit 打開它
5.把內容複製出來

2011/11/30 13:31
應用擴展 工具箱
回覆: 安裝時 acpi 如何設定
會員四級
註冊日期:
2007/11/25 1:18
所屬群組:
已註冊使用者
等級: 16
HP : 0 / 385
MP : 103 / 17299
EXP: 43
離線
Thanks!

grub.cfg
---------------------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7a1721e7-2182-427d-8e65-fdee5a7b42bc
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7a1721e7-2182-427d-8e65-fdee5a7b42bc
set locale_dir=($root)/boot/grub/locale
set lang=zh_TW
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu,Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7a1721e7-2182-427d-8e65-fdee5a7b42bc
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=7a1721e7-2182-427d-8e65-fdee5a7b42bc ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu,Linux 3.0.0-12-generic (修復模式)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7a1721e7-2182-427d-8e65-fdee5a7b42bc
echo '載入 Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=7a1721e7-2182-427d-8e65-fdee5a7b42bc ro recovery nomodeset
echo '載入初始化記憶體虛擬磁碟 (initial ramdisk) ...'
initrd /boot/initrd.img-3.0.0-12-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7a1721e7-2182-427d-8e65-fdee5a7b42bc
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7a1721e7-2182-427d-8e65-fdee5a7b42bc
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

2011/11/30 17:35
應用擴展 工具箱
回覆: 安裝時 acpi 如何設定
會員三級
註冊日期:
2011/10/20 12:59
所屬群組:
已註冊使用者
等級: 14
HP : 0 / 340
MP : 81 / 11367
EXP: 60
離線
我建議如下:

重開機(用硬碟開機)
在grub選項上按e編輯命令列
會出現如下內容:

menuentry 'Ubuntu,Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7a1721e7-2182-427d-8e65-fdee5a7b42bc
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=7a1721e7-2182-427d-8e65-fdee5a7b42bc ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}


把 set gfxpayload=$linux_gfx_mode 刪掉
把 quiet splash vt.handoff=7 刪掉,另外加入 acpi=off
按 Ctrl + X 鍵開機

試看看能不能開機

2011/11/30 18:15
應用擴展 工具箱
回覆: 安裝時 acpi 如何設定

註冊日期:
2009/12/6 10:32
所屬群組:
已註冊使用者
等級: 71
HP : 1053 / 1756
MP : 4456 / 68280
EXP: 24
離線
請先依 #7 方法試試
結果如何 再貼文分享

2011/11/30 19:01
應用擴展 工具箱
回覆: 安裝時 acpi 如何設定
會員四級
註冊日期:
2007/11/25 1:18
所屬群組:
已註冊使用者
等級: 16
HP : 0 / 385
MP : 103 / 17299
EXP: 43
離線
嗯!這樣修改後,可以開機了。
請問,開機後要去改grub.cfg 嗎?
它第一列寫著:# DO NOT EDIT THIS FILE
所以不知可否改。
看起來,好像該去改 /etc/default/grub
但還看不出語法。

2011/12/1 10:01
應用擴展 工具箱
回覆: 安裝時 acpi 如何設定
會員三級
註冊日期:
2011/10/20 12:59
所屬群組:
已註冊使用者
等級: 14
HP : 0 / 340
MP : 81 / 11367
EXP: 60
離線
pnleo 寫到:
嗯!這樣修改後,可以開機了。
請問,開機後要去改grub.cfg 嗎?
它第一列寫著:# DO NOT EDIT THIS FILE
所以不知可否改。
看起來,好像該去改 /etc/default/grub
但還看不出語法。


以前 grub1的年代,可以直接更改 menu.lst 這個檔案
現在用的 grbu2 換了一個機制
你必須先去改 /etc/default/grub
然後執行 sudo update-grub
它就會把 grub.cfg 的內容改好

建議的操作如下:
1.sudo gedit /etc/default/grub
2.找到 GRUB_CMDLINE_LINUX="" 這一行
3.改成 GRUB_CMDLINE_LINUX="acpi=off"
4.sudo update-grub
5.sudo update-initramfs -u -k all
6.sudo reboot

PS.國外英文的論壇上有人說,用acpi=off這個參數,有的會把cpu的fan關掉,要注意一下!

2011/12/1 11:10
應用擴展 工具箱

(1) 2 »

 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.