mint17在Grub引导界面无法使用方向键

Ubuntu各种衍生版本
回复
jianqiao000
帖子: 13
注册时间: 2011-08-07 23:30

mint17在Grub引导界面无法使用方向键

#1

帖子 jianqiao000 » 2014-11-22 9:42

开机启动进到grub引导选择界面后无法使用方向键切换linux和Xp,不知道到底是何原因。知道原因的高手帮忙解决一下好了,以前安装其他版本的linux从未发生过类似情况。帮个忙谢谢。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: mint17在Grub引导界面无法使用方向键

#2

帖子 poloshiao » 2014-11-22 10:19

把下面指令 複製 貼進終端機 執行
1. sudo apt-get install pastebinit
2. sudo cat /boot/grub/grub.cfg | pastebinit
會回應 http://paste.ubuntu.com/xxxxxxx # xxxxxxx 是一組數字
3. 把 http://paste.ubuntu.com/xxxxxxx 貼上來
jianqiao000
帖子: 13
注册时间: 2011-08-07 23:30

Re: mint17在Grub引导界面无法使用方向键

#3

帖子 jianqiao000 » 2014-11-22 15:28

按照楼上好人的方法我输入了两行命令
~ $ sudo apt-get install pastebinit
[sudo] password for wiziw:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列【新】软件包将被安装:
pastebinit
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 14.9 kB 的软件包。
解压缩后会消耗掉 168 kB 的额外空间。
获取:1 http://archive.ubuntu.com/ubuntu/ trusty/main pastebinit all 1.4-3 [14.9 kB]
下载 14.9 kB,耗时 1秒 (8,961 B/s)
Selecting previously unselected package pastebinit.
(正在读取数据库 ... 系统当前共安装有 163399 个文件和目录。)
Preparing to unpack .../pastebinit_1.4-3_all.deb ...
Unpacking pastebinit (1.4-3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
正在设置 pastebinit (1.4-3) ...
~ $ sudo cat /boot/grub/grub.cfg | pastebinit
Failed to contact the server: [Errno socket error] [Errno 104] Connection reset by peer
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: mint17在Grub引导界面无法使用方向键

#4

帖子 poloshiao » 2014-11-22 17:21

Failed to contact the server: [Errno socket error] [Errno 104] Connection reset by peer
可能是 你的網路 暫時不方便

sudo cat /boot/grub/grub.cfg
全部選取 / 複製
貼上
http://paste.ubuntu.com
會回應 http://paste.ubuntu.com/xxxxxxx # xxxxxxx 是一組數字
http://paste.ubuntu.com/xxxxxxx 貼上來
walker.ma
帖子: 26
注册时间: 2014-11-05 7:10
系统: LinuxMint 17

Re: mint17在Grub引导界面无法使用方向键

#5

帖子 walker.ma » 2014-11-23 10:37

键盘拔了,重插下

来自 HM 1SW 上的 Tapatalk now Free
Linux Mint 17 Mate Edition
人啊,总得活出点信仰来
jianqiao000
帖子: 13
注册时间: 2011-08-07 23:30

Re: mint17在Grub引导界面无法使用方向键

#6

帖子 jianqiao000 » 2014-11-23 18:11

有点事所以回复的完了些。
按照提供的终端命令得出了以下信息。


# 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
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

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 {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 f337ab60-f3c4-4073-915c-11b0ed86caf5
else
search --no-floppy --fs-uuid --set=root f337ab60-f3c4-4073-915c-11b0ed86caf5
fi
font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=zh_CN
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=-1
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
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/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="$1"
if [ "$1" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
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 'Linux Mint 17 MATE 32-bit, 3.13.0-24-generic (/dev/sda8)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 f337ab60-f3c4-4073-915c-11b0ed86caf5
else
search --no-floppy --fs-uuid --set=root f337ab60-f3c4-4073-915c-11b0ed86caf5
fi
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=f337ab60-f3c4-4073-915c-11b0ed86caf5 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.13.0-24-generic
}
menuentry 'Linux Mint 17 MATE 32-bit, 3.13.0-24-generic (/dev/sda8) -- recovery mode' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 f337ab60-f3c4-4073-915c-11b0ed86caf5
else
search --no-floppy --fs-uuid --set=root f337ab60-f3c4-4073-915c-11b0ed86caf5
fi
echo '载入 Linux 3.13.0-24-generic ...'
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=f337ab60-f3c4-4073-915c-11b0ed86caf5 ro recovery nomodeset
echo '载入初始化内存盘...'
initrd /boot/initrd.img-3.13.0-24-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###

### 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,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 f337ab60-f3c4-4073-915c-11b0ed86caf5
else
search --no-floppy --fs-uuid --set=root f337ab60-f3c4-4073-915c-11b0ed86caf5
fi
knetbsd /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 f337ab60-f3c4-4073-915c-11b0ed86caf5
else
search --no-floppy --fs-uuid --set=root f337ab60-f3c4-4073-915c-11b0ed86caf5
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Microsoft Windows XP Professional (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-B6FC23AAFC2363B9' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 B6FC23AAFC2363B9
else
search --no-floppy --fs-uuid --set=root B6FC23AAFC2363B9
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

redhat9以来好长一段时间没有使用过里linux,所以不知道都写的是什么,总之把得到的信息全不附上。
至于键盘因为原来的键盘拿给朋友使用,我就把苹果电脑的键盘插在Pc上暂时使用,弄不好兼容也可能是原因,但没有多余的键盘做测验真是有点糟糕。我只是知道一些简单的linux语言,便于我解压和安装一些常用的软件,看到上面的一连串字符真是头晕,我发誓我一个也看不懂。
上次由 jianqiao000 在 2014-11-23 18:23,总共编辑 1 次。
jianqiao000
帖子: 13
注册时间: 2011-08-07 23:30

Re: mint17在Grub引导界面无法使用方向键

#7

帖子 jianqiao000 » 2014-11-23 18:22

poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: mint17在Grub引导界面无法使用方向键

#8

帖子 poloshiao » 2014-11-23 19:54

1. 比對文章所佔的篇幅
你就會明白 未何要貼到
http://paste.ubuntu.com

2. 假設 你的鍵盤硬件 沒有問題情況

3. gksudo gedit /boot/grub/grub.cfg
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=f337ab60-f3c4-4073-915c-11b0ed86caf5 ro quiet splash $vt_handoff
改為
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=f337ab60-f3c4-4073-915c-11b0ed86caf5 ro quiet splash acpi_osi=linux $vt_handoff
儲存
重新開機
3-1. 第一次 使用 gksudo 需要先安裝 gksu 套件
3-2. 如果還無效 請再貼文
jianqiao000
帖子: 13
注册时间: 2011-08-07 23:30

Re: mint17在Grub引导界面无法使用方向键

#9

帖子 jianqiao000 » 2014-11-23 20:18

其实一直想问你为什么你的字体总是繁体字,别介意只是有点好奇 :em05

关于引导界面无法使用键盘的问题我突然想到是不是因为我的键盘是USB的关系呢
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: mint17在Grub引导界面无法使用方向键

#10

帖子 poloshiao » 2014-11-23 20:28

我的键盘是USB的关系呢
開機進 Bios
檢查你的 USB 1.0 或 USB Legacy 有沒有開啟
鍵盤 一般是 USB 1.0 或 USB Legacy
你为什么你的字体总是繁体字
我目前使用的中文輸入法 只顯示繁體字
jianqiao000
帖子: 13
注册时间: 2011-08-07 23:30

Re: mint17在Grub引导界面无法使用方向键

#11

帖子 jianqiao000 » 2014-11-24 7:57

早晨起来看了一下grub文件,因为我没有找到gksudo只能在终端gedit代替,得出了一个grub只读文件,但我在里面没有看到/boot/vmlinuz,但我想可能是我的mint是直接安装在pc上的原因。如果引导无法使用键盘的话最怀疑我的usb键盘,也许我真得买来一个便宜的普通插口的键盘试一试,不然按我现在对linux的理解很难用自己的手解决这些问题。
其实我还有一个问题想请教一下,因为QQ不支持的缘故我昨天尝试了一下vmbox,vmware在之前的mac机虚拟过winxp和win7,vmbox还是第一次使用。安装ghostxp时进不去安装界面,又下载了原版xpsp3,下载原版很难在网上找到。。。好不容易进入安装界面结果卡在了选同意的F8键上,怎么按也按不上F8,Esc键倒是可以使用。刚才偶然按到F10F11F12的三个键时发现他们竟然是调节声音的功能键,而且在屏幕中间也出现调节声音时的大大的显示画面,有点类似mac。所以我想是不是F8键成了某个我不知道的功能键,但我实验了一下没任何反应。然后又进到控制中心寻找,结果没有收获。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: mint17在Grub引导界面无法使用方向键

#12

帖子 poloshiao » 2014-11-24 11:10

因为我没有找到gksudo只能在终端gedit代替
1. viewtopic.php?p=3116050#p3116050
第一次 使用 gksudo 需要先安裝 gksu 套件
我在里面没有看到/boot/vmlinuz
2. 善用 gedit 搜尋功能
複製
/boot/vmlinuz-3.13.0-24-generic
貼上
搜尋框
可能是我的mint是直接安装在pc上的原因。如果引导无法使用键盘的话最怀疑我的usb键盘,也许我真得买来一个便宜的普通插口的键盘试一试,不然按我现在对linux的理解很难用自己的手解决这些问题。
安裝在 PC 不會是問題
交叉試驗 對於找出問題 會有幫助
拔出 USB 鍵盤 插進另一台已經正常使用 USB 鍵盤的 PC 看看
隨便拿一個已經正常使用的 USB 鍵盤插進這一台 PC 看看
好不容易进入安装界面结果卡在了选同意的F8键上,怎么按也按不上F8,Esc键倒是可以使用。刚才偶然按到F10F11F12的三个键时发现他们竟然是调节声音的功能键,而且在屏幕中间也出现调节声音时的大大的显示画面,有点类似mac。所以我想是不是F8键成了某个我不知道的功能键,但我实验了一下没任何反应。然后又进到控制中心寻找,结果没有收获。
以下
Host 表示 原來安裝在 PC 的 Ubuntu 作業系統
Guest 表示 新安裝的虛擬機 作業系統

虛擬機 新手 建議先從 virtualbox 學習 對於 新手比較友善

在 Host 安裝好 virtualbox 後 要立刻下載/安裝 同一版本的 VirtualBox Extension Pack
https://www.virtualbox.org/wiki/Downloads
才能在 guest 使用 usb 裝置

聚焦 focus 是很重要的觀念
把握 聚焦 focus 在哪個螢幕視窗
才能確保你的 鍵盤指令 被那個 作業系統接收了

如果要聚焦在 guest
先使用 滑鼠 在 guest 的視窗範圍以內 輕點一下 左鍵

如果要聚焦在 Host
先使用 滑鼠 在 guest 的視窗範圍以外 輕點一下 左鍵
如果找不到 cursor 按一下 右邊的 ctrl 鍵

安裝完 Guest 作業系統 接著安裝 Guest Additions 在 Guest
會讓 guest 比較好操作

參閱
https://help.ubuntu.com/community/VirtualBox
https://help.ubuntu.com/community/VMware
jianqiao000
帖子: 13
注册时间: 2011-08-07 23:30

Re: mint17在Grub引导界面无法使用方向键

#13

帖子 jianqiao000 » 2014-11-25 9:09

根据以上的连接我重新安装了windows,而且安装很顺利。想到这是我第一次成功在自己的计算机上安装虚拟windows别提多激动。
感谢你能腾出时间来解答我的难题,有关引导无法使用键盘,过几天我会逛一逛电器商城。但是现在有了虚拟windows其实也挺好。 :em11
回复