LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: Debentoo Gao

Gentoo Linux 1.4 GRP安装参考指南(2003.11.20更新)

[复制链接]
发表于 2004-4-24 21:48:11 | 显示全部楼层
最初由 vvlaw 发表
不行!~~~不是书写的问题

依然是
Error 27 :Unrecognized command...

这说未配置的命令?

你是不是用universal的liveCD启动,挂好了gentoo的根分区并chroot后,敲grub出现:
grub>
这个提示符的?
发表于 2004-4-24 22:36:45 | 显示全部楼层

是我书写错了,两边都有空格。

关于这个
default 0
timeout 15
splashimage=(hd0,6)/boot/grub/splash.xpm.gz

title=Gentoo Linux 1.4 Release (kernel-2.4.23-pre8-gss)
root (hd0,6)
kernel /boot/linux-2.4.23_pre8-gss root=/dev/hda7 hdc=ide-scsi vga=791

title=Windows 98 SE
root (hd0,0)
chainloader +1

-------------------------------------------

kernel /boot/linux-2.4.23_pre8-gss root=/dev/hda7
该写的kernel文件是什么?
----------------------------------------
还有grub写的内核文件在哪里?
我写
grub> kernel /boot/linux-2.4.20-gentoo-r5 ro root=/dev/hdb5 hdc=ide-scsi

会提示文件没有找到

Error : Files not Found.

grub> setup (hd0)
会出现失败
checking if "/boot/grub/stage1" exists...yes
checking if "/boot/grub/stage2" exists...yes
checking if "/boot/grub/reiserfs-tage1-5(hd0,0)"...failed(this is not fatal)
checking if "/boot/grub/reiserfs-tage1-5(hd0,4"...failed(this is not fatal)

Running"install /boot/grub/stage1(hd0,0) /boot/grub/stage2 p /boot/grub/grub.conf"...succeeded
Done.
发表于 2004-4-24 22:46:54 | 显示全部楼层
我记得好象是grub> setup (hd0)
发表于 2004-4-24 22:51:12 | 显示全部楼层
真粗心,又打算两。该一下:)
但就是出现那错误提示
发表于 2004-4-24 23:14:07 | 显示全部楼层
最初由 vvlaw 发表

是我书写错了,两边都有空格。

关于这个
default 0
timeout 15
splashimage=(hd0,6)/boot/grub/splash.xpm.gz

title=Gentoo Linux 1.4 Release (kernel-2.4.23-pre8-gss)
root (hd0,6)
kernel /boot/linux-2.4.23_pre8-gss root=/dev/hda7 hdc=ide-scsi vga=791

title=Windows 98 SE
root (hd0,0)
chainloader +1

-------------------------------------------

kernel /boot/linux-2.4.23_pre8-gss root=/dev/hda7
该写的kernel文件是什么?
----------------------------------------
还有grub写的内核文件在哪里?
我写
grub> kernel /boot/linux-2.4.20-gentoo-r5 ro root=/dev/hdb5 hdc=ide-scsi

会提示文件没有找到

Error : Files not Found.

grub> setup (hd0)
会出现失败
checking if "/boot/grub/stage1" exists...yes
checking if "/boot/grub/stage2" exists...yes
checking if "/boot/grub/reiserfs-tage1-5(hd0,0)"...failed(this is not fatal)
checking if "/boot/grub/reiserfs-tage1-5(hd0,4"...failed(this is not fatal)

Running"install /boot/grub/stage1(hd0,0) /boot/grub/stage2 p /boot/grub/grub.conf"...succeeded
Done.

hda5和hda7,到底哪个是gentoo的根分区?你是不是还有个/boot的分区?请贴出/etc/fstab看看。
发表于 2004-4-25 11:53:02 | 显示全部楼层
# <fs>                  <mountpoint>    <type>          <opts>                      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT                /boot                ext2                noauto,noatime                1 1
/dev/ROOT                /                reiserfs                noatime                        0 0
/dev/SWAP                none                swap                sw                        0 0
#/dev/cdroms/cdrom0        /mnt/cdrw        iso9660                noauto,ro                0 0

# NOTE: The next line is critical for boot!
none                        /proc                proc                defaults                0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                        /dev/shm        tmpfs                defaults                0 0
发表于 2004-4-25 11:53:24 | 显示全部楼层
# <fs>                  <mountpoint>    <type>          <opts>                      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT                /boot                ext2                noauto,noatime                1 1
/dev/ROOT                /                reiserfs                noatime                        0 0
/dev/SWAP                none                swap                sw                        0 0
#/dev/cdroms/cdrom0        /mnt/cdrw        iso9660                noauto,ro                0 0

# NOTE: The next line is critical for boot!
none                        /proc                proc                defaults                0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                        /dev/shm        tmpfs                defaults                0 0
发表于 2004-4-25 11:56:12 | 显示全部楼层
Debentoo Gao
是划分两个区 hda7 hda8

我把原来的hdb5和hdb6来弄。
所以~~~nano -w /etc/fstab的时候


/dev/ROOT / reiserfs noatime 0 0
/dev/SWAP none swap sw 0 0
改成了
/dev/hdb5 / reiserfs noatime 0 0
/dev/hdb6 none swap sw 0 0
发表于 2004-4-25 12:27:13 | 显示全部楼层
如果/hdb5是根分区而且没有boot分区的话,那grub设置的时候,应该是root (hd1,4)啊
发表于 2004-4-25 12:37:44 | 显示全部楼层
最初由 equuleus 发表
如果/hdb5是根分区而且没有boot分区的话,那grub设置的时候,应该是root (hd1,4)啊


grub> root (hd1,4)

selected dirver does not exist.

所选择的分区不存在。

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表