ubuntu安装在移动硬盘 使用GRUB4DOS无法引导

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
tonyup
帖子: 10
注册时间: 2009-08-13 0:07

ubuntu安装在移动硬盘 使用GRUB4DOS无法引导

#1

帖子 tonyup » 2009-08-13 1:25

从下午6点整到现在还没整出来=。=。。。。无语啦~
:em06 说说我现在的环境:
笔记本内置硬盘分区 c:安装winxp d:资料区
移动硬盘分区,3个: L:资料区 ext3 / swap linux就装在移动硬盘了,使用的是ubuntu9.04 desktop光盘安装
光驱: E:

上网下载grub4dos-0.4.4.zip 将grldr grub.exe 解压到才c:
将光盘目录下的vmlinuz initrd复制到c:
将ubuntu安装目录下的menu.lst复制到c:
修改c:\boot.ini文件 追加语句C:\grldr="Ubuntu"
就是这些了~
问题是:开机进入引导菜单选择ubuntu后打开无法进入。。。提示错误代码17 我查了下好像是无法挂载指定分区
我不明白怎样挂载 尝试root(hdx,x) x=1~3范围内一个一个都敲过了没用=。=
不知道应该怎样设置了

附上menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=905149ac-056a-483c-bbf4-93c1dfa9a1a2 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=905149ac-056a-483c-bbf4-93c1dfa9a1a2

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 905149ac-056a-483c-bbf4-93c1dfa9a1a2
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=905149ac-056a-483c-bbf4-93c1dfa9a1a2 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid 905149ac-056a-483c-bbf4-93c1dfa9a1a2
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=905149ac-056a-483c-bbf4-93c1dfa9a1a2 ro single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
uuid 905149ac-056a-483c-bbf4-93c1dfa9a1a2
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
rootnoverify (hd0,0)
savedefault
chainloader +1
tonyup
帖子: 10
注册时间: 2009-08-13 0:07

Re: ubuntu安装在移动硬盘 使用GRUB4DOS无法引导

#2

帖子 tonyup » 2009-08-13 2:31

附上fdisk -l
Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc001c001

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1216 9767488+ 7 HPFS/NTFS
/dev/sda2 1217 7296 48837600 f W95 Ext'd (LBA)
/dev/sda5 1217 7296 48837568+ 7 HPFS/NTFS

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf94eca04

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 34771 279298026 7 HPFS/NTFS
/dev/sdb2 34772 38913 33270615 5 Extended
/dev/sdb5 34772 38418 29294496 83 Linux
/dev/sdb6 38419 38913 3976056 82 Linux swap / Solaris

笔记本内置60G 移动硬盘320G
tonyup
帖子: 10
注册时间: 2009-08-13 0:07

Re: ubuntu安装在移动硬盘 使用GRUB4DOS无法引导

#3

帖子 tonyup » 2009-08-13 22:02

没有人知道么。。。 :em20
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: ubuntu安装在移动硬盘 使用GRUB4DOS无法引导

#4

帖子 smallapple » 2009-08-14 9:26

主板是否支持移动盘启动?
tonyup
帖子: 10
注册时间: 2009-08-13 0:07

Re: ubuntu安装在移动硬盘 使用GRUB4DOS无法引导

#5

帖子 tonyup » 2009-08-14 10:39

终于有人回复了。。。好激动~~~ :em11
是支持的 本本是2年前买的
我是设置首启动项为硬盘启动
然后在硬盘启动顺序中将移动硬盘调为1号 笔记本内置硬盘调为2
tonyup
帖子: 10
注册时间: 2009-08-13 0:07

Re: ubuntu安装在移动硬盘 使用GRUB4DOS无法引导

#6

帖子 tonyup » 2009-08-14 10:42

用UBUNTU自带的GRUB启动不能进行编辑启动命令吗?每次一启动到GRUB 界面就ERROR 17 摁什么都不管用。。。
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: ubuntu安装在移动硬盘 使用GRUB4DOS无法引导

#7

帖子 billbear » 2009-08-14 10:53

你这么做等于是从内置硬盘启动 grub4dos 再去寻找移动硬盘上的操作系统。
如果机器不支持移动硬盘启动的话,这时候 grub4dos 同样也看不到移动硬盘。
如果支持从移动硬盘启动,根本不需要在内置硬盘做任何改动。
所以你的方法是很奇怪的。
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: ubuntu安装在移动硬盘 使用GRUB4DOS无法引导

#8

帖子 smallapple » 2009-08-14 10:56

tonyup 写了:用UBUNTU自带的GRUB启动不能进行编辑启动命令吗?每次一启动到GRUB 界面就ERROR 17 摁什么都不管用。。。
按这样讲应该是不能识别移动盘分区的。
tonyup
帖子: 10
注册时间: 2009-08-13 0:07

Re: ubuntu安装在移动硬盘 使用GRUB4DOS无法引导

#9

帖子 tonyup » 2009-08-14 11:14

呃。。。我确实是被启动给搞晕了。。。。现在也不知道应该怎样弄了。。 :em06
那么我这样问下。。笔记本可以使用U盘启动 那么是不是应该也支持移动硬盘启动?
而且BIOS设置里 硬盘启动顺序中也有移动硬盘的ID啊
tonyup
帖子: 10
注册时间: 2009-08-13 0:07

Re: ubuntu安装在移动硬盘 使用GRUB4DOS无法引导

#10

帖子 tonyup » 2009-08-14 11:18

还有一个细节我不太明白。。用ubuntu9.04 desktop光盘安装的时候最后要选择GRUB安装位置
移动硬盘是一个位置 linux的/分区也是一个位置 应该是安装到移动硬盘呢 还是安装到“/”分区?
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: ubuntu安装在移动硬盘 使用GRUB4DOS无法引导

#11

帖子 smallapple » 2009-08-14 11:24

1. 支持U盘启动不一定支持移动盘启动,
2. 如果要从移动盘直接启动grub,应安装在移动盘,如果装在 / 分区,要用其他方式如grub4dos来启动
tonyup
帖子: 10
注册时间: 2009-08-13 0:07

Re: ubuntu安装在移动硬盘 使用GRUB4DOS无法引导

#12

帖子 tonyup » 2009-08-14 11:39

smallapple 写了:1. 支持U盘启动不一定支持移动盘启动,
2. 如果要从移动盘直接启动grub,应安装在移动盘,如果装在 / 分区,要用其他方式如grub4dos来启动
终于搞明白了,看来可以结贴了~真是非常感谢smallapple和 billbear !听君一席语,胜查三天网…… :em11
回复