LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 609|回复: 3

一个关于grub的问题,请版主帮忙

[复制链接]
发表于 2005-2-26 10:21:08 | 显示全部楼层 |阅读模式
grub不能识别ext3fs分区。

[root@localhost ~]# mkfs.ext3 /dev/hda7
mke2fs 1.35 (28-Feb-2004)

max_blocks 1612146688, rsv_groups = 49199, rsv_gdb = 384
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
788704 inodes, 1574362 blocks
78718 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1614807040
49 block groups
32768 blocks per group, 32768 fragments per group
16096 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: done
inode.i_blocks = 24584, i_size = 4243456
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 24 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@localhost ~]#

GNU GRUB version 0.95 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename.]
grub> root (hd0,
Possible partitions are:
Partition num: 0, Filesystem type is fat, partition type 0xb
Partition num: 4, Filesystem type is fat, partition type 0xb
Partition num: 5, Filesystem type unknown, partition type 0x7
Partition num: 6, Filesystem type unknown, partition type 0x6
Partition num: 7, Filesystem type unknown, partition type 0x82
Partition num: 8, Filesystem type is ext2fs, partition type 0x83
grub> root (hd0,

却能识别reiserfs,奇怪吗?

[root@localhost ~]# mkreiserfs /dev/hda7
mkreiserfs 3.6.11 (2003 www.namesys.com)

A pair of credits:
Elena Gryaznova performed testing and benchmarking.
The Defense Advanced Research Projects Agency (DARPA, www.darpa.mil) is the
primary sponsor of Reiser4. DARPA does not endorse this project; it merely
sponsors it.
Guessing about desired format.. Kernel 2.6.9-5.EL is running.
Format 3.6 with standard journal
Count of blocks on the device: 1574362
Number of blocks consumed by mkreiserfs formatting process: 8260
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 0149c82e-c9db-419b-9d82-f1cb7e67dc67
ATTENTION: YOU SHOULD REBOOT AFTER FDISK!
ALL DATA WILL BE LOST ON '/dev/hda7'!
Continue (y/n):y
Initializing journal - 0%....20%....40%....60%....80%....100%
Syncing..ok
Tell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.
ReiserFS is successfully created on /dev/hda7.
[root@localhost ~]#

GNU GRUB version 0.95 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename.]
grub> root (hd0,
Possible partitions are:
Partition num: 0, Filesystem type is fat, partition type 0xb
Partition num: 4, Filesystem type is fat, partition type 0xb
Partition num: 5, Filesystem type unknown, partition type 0x7
Partition num: 6, Filesystem type is reiserfs, partition type 0x6
Partition num: 7, Filesystem type unknown, partition type 0x82
Partition num: 8, Filesystem type is ext2fs, partition type 0x83

grub> root (hd0,

我的主系统是redhat-AS4,不支持reiserfs,想在hda7装lfs系统。用ext3fs,grub却不能识别引导该分区 ,该啥办?
发表于 2005-2-26 11:55:24 | 显示全部楼层
partition type 0x6
这是fat32格式吧。

试试用fdisk或者cfdisk更改分区类型。
fdisk中的t :
t   change a partition's system id
cfdisk中的 [TYPE]
改成83
回复 支持 反对

使用道具 举报

发表于 2005-2-27 20:03:20 | 显示全部楼层
唉,要知道,你把一个分区格式化成什么格式和分区的时候把它分成什么格式是两会儿事儿。grub在这个地方认的是分区格式,而系统工作时用的却是什么格式的文件分配表呀。好好理解一下这里吧!
回复 支持 反对

使用道具 举报

发表于 2005-2-27 20:17:07 | 显示全部楼层
多谢6692975大哥,你真的好棒,问题解决了,以后请多多指教。
回复 支持 反对

使用道具 举报

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

本版积分规则

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