大虾救命

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
qchem
帖子: 106
注册时间: 2005-09-04 21:03

大虾救命

#1

帖子 qchem » 2006-01-24 11:11

原来装了XP和Ubuntu
昨天又装了个SuSE,mbr上的grub换成SuSE的了,Ubuntu就启动不了了
在SuSE的menu.lst里加了Ubuntu也是不行,启不来

我的分区是这样的
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1721 13823901 c W95 FAT32 (LBA)
/dev/hda2 1722 3230 12121042+ 83 Linux 数据盘1
/dev/hda3 3231 3254 192780 83 Linux ubuntu的/boot
/dev/hda4 3255 4865 12940357+ 83 Linux ubuntu的/

Disk /dev/hdd: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 3825 30724281 c W95 FAT32 (LBA)
/dev/hdd2 3826 10011 49689045 f W95 Ext'd (LBA)
/dev/hdd5 3826 8565 38074018+ 83 Linux 数据盘2
/dev/hdd6 * 8566 9840 10241406 83 Linux SuSE的/
/dev/hdd7 9841 10011 1373526 82 Linux swap / Solaris


我用安装盘来装Grub也不行
请问现在怎么办呀?

3x
头像
freeflying
帖子: 521
注册时间: 2005-03-26 9:38

#2

帖子 freeflying » 2006-01-24 11:33

把你的menu.lst贴出来看看
图片
qchem
帖子: 106
注册时间: 2005-09-04 21:03

#3

帖子 qchem » 2006-01-24 11:39

SuSE下的

# Modified by YaST2. Last modification on Mon Jan 23 03:06:20 UTC 2006

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd1,5)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.0
root (hd1,5)
kernel /boot/vmlinuz root=/dev/hdd6 vga=0x31a selinux=0 resume=/dev/hdd7 splash=silent showopts
initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: windows 1###
title windows 1
chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title windows 2
chainloader (hd1,0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 10.0
root (hd1,5)
kernel /boot/vmlinuz root=/dev/hdd6 vga=normal showopts ide=nodma apm=off acpi=off noresume selinux=0 nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd

title Ubuntu, kernel 2.6.12-10-k7
root (hd0,2)
kernel (hd0,2)/vmlinuz-2.6.12-10-k7 root=/dev/hda4 ro quiet splash
initrd (hd0,2)/initrd.img-2.6.12-10-k7
savedefault
boot



Ubuntu下的

# 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'.
default 11

## 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 specifiv 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=root=/dev/hda4 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## 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

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

## nonaltoption boot targets option
## This option controls options to pass to only the
## primary kernel menu item.
## You can have ONLY one nonaltoptions line
# nonaltoptions=quiet splash

## 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

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

## ## End Default Options ##

title Ubuntu, kernel 2.6.12-10-k7
root (hd0,2)
kernel /vmlinuz-2.6.12-10-k7 root=/dev/hda4 ro quiet splash
initrd /initrd.img-2.6.12-10-k7
savedefault
boot

title Ubuntu, kernel 2.6.12-10-k7 (recovery mode)
root (hd0,2)
kernel /vmlinuz-2.6.12-10-k7 root=/dev/hda4 ro single
initrd /initrd.img-2.6.12-10-k7
boot

title Ubuntu, kernel 2.6.12-10-686
root (hd0,2)
kernel /vmlinuz-2.6.12-10-686 root=/dev/hda4 ro quiet splash
initrd /initrd.img-2.6.12-10-686
savedefault
boot

title Ubuntu, kernel 2.6.12-10-686 (recovery mode)
root (hd0,2)
kernel /vmlinuz-2.6.12-10-686 root=/dev/hda4 ro single
initrd /initrd.img-2.6.12-10-686
boot


title Ubuntu, kernel 2.6.12-9-386
root (hd0,2)
kernel /vmlinuz-2.6.12-9-386 root=/dev/hda4 ro quiet splash
initrd /initrd.img-2.6.12-9-386
savedefault
boot

title Ubuntu, kernel 2.6.12-9-386 (recovery mode)
root (hd0,2)
kernel /vmlinuz-2.6.12-9-386 root=/dev/hda4 ro single
initrd /initrd.img-2.6.12-9-386
boot

title Ubuntu, memtest86+
root (hd0,2)
kernel /memtest86+.bin
boot

### 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 an existing
# linux installation on /dev/hdd6.
title Fedora Core (2.6.12-1.1376_FC3) (on /dev/hdd6)
root (hd1,5)
kernel /boot/vmlinuz-2.6.12-1.1376_FC3 ro root=/dev/hdd6 rhgb quiet
initrd /boot/initrd-2.6.12-1.1376_FC3.img
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hdd6.
title Fedora Core (2.6.11-1.14_FC3) (on /dev/hdd6)
root (hd1,5)
kernel /boot/vmlinuz-2.6.11-1.14_FC3 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.11-1.14_FC3.img
savedefault
boot


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hdd1
title Windows NT/2000/XP
root (hd1,0)
savedefault
makeactive
chainloader +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1


我是把原来的FC3删了,装SuSE的
liaojunmin
帖子: 45
注册时间: 2005-05-17 0:10

#4

帖子 liaojunmin » 2006-01-24 14:05

..
上次由 liaojunmin 在 2011-02-19 4:22,总共编辑 1 次。
qchem
帖子: 106
注册时间: 2005-09-04 21:03

#5

帖子 qchem » 2006-01-24 14:10

liaojunmin 写了:
SUSE下的
title Ubuntu, kernel 2.6.12-10-k7
root (hd0,2)
kernel (hd0,2)/vmlinuz-2.6.12-10-k7 root=/dev/hda4 ro quiet splash
initrd (hd0,2)/initrd.img-2.6.12-10-k7
savedefault
boot

Ubuntu下的
title Ubuntu, kernel 2.6.12-10-k7
root (hd0,2)
kernel /vmlinuz-2.6.12-10-k7 root=/dev/hda4 ro quiet splash
initrd /initrd.img-2.6.12-10-k7
savedefault
boot
直接使用ubuntu的应该没有问题,“root (hd0,2)”后kernel和initrd都不需要“(hd0,2)”了
不行的呀,试过之后才改成(hd0,2)的
回复