LinuxSir.cn,穿越时空的Linuxsir!

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

想用宿主系统引导LFS。但我不知道我哪里出错了!

[复制链接]
发表于 2005-10-18 18:54:16 | 显示全部楼层 |阅读模式
1. 在作LFS6.1的时候,我作到8.3. Linux-2.6.11.12之前都很顺利,就差引导了。我想用自己的宿主系统去引导LFS,所以我没有按照8.4的作。

2.我自己修改了宿主系统的/boot/grub/grub.conf
    增加了:
    title LFS 6.1
root (hd0,7)
kernel(hd0,7) /boot/lfskernel-2.6.11.12 root=/dev/hdc8
boot
3.我就一块硬盘,GRUB在MBR里。
  grub.conf如下:

# grub.conf generated by MagicInstaller.

# Note that you do not have to rerun grub after making changes to this file.
default=0
timeout=10
splashimage=(hd0,8)/boot/grub/splash.xpm.gz
title dos
rootnoverify (hd0,0)
chainloader +1
title MagicLinux
root (hd0,8)
kernel /boot/vmlinuz-2.6.9  ro root=/dev/hdc9 vga=791 splash=silent
initrd /boot/initrd-2.6.9.img
title MagicLinux (Graphics Mode)
root (hd0,8)
kernel /boot/vmlinuz-2.6.9 init 5 ro root=/dev/hdc9 vga=791 splash=silent
initrd /boot/initrd-2.6.9.img
title MagicLinux (Console Mode)
root (hd0,8)
kernel /boot/vmlinuz-2.6.9 init 3 ro root=/dev/hdc9 vga=791 splash=silent
initrd /boot/initrd-2.6.9.img
title MagicLinux (Single Mode)
root (hd0,8)
kernel /boot/vmlinuz-2.6.9 init 1 ro root=/dev/hdc9 vga=791 splash=silent
initrd /boot/initrd-2.6.9.img
title LFS 6.1
root (hd0,7)
kernel(hd0,7) /boot/lfskernel-2.6.11.12 root=/dev/hdc8
boot

4.然后开机起动进入LFS 6.1
  提示 不识别的 文件系统

5.我在fdisk -l中查看/dev/hdc8是
  Disk /dev/hdc: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1        1216     9767488+   c  W95 FAT32 (LBA)
/dev/hdc2            1217        9964    70268310    f  W95 Ext'd (LBA)
/dev/hdc5            1217        3648    19535008+   b  W95 FAT32
/dev/hdc6            3649        6080    19535008+   b  W95 FAT32
/dev/hdc7            6081        7993    15366141    b  W95 FAT32
/dev/hdc8            7994        8460     3751146    b  W95 FAT32
/dev/hdc9            8461        9821    10932201   83  Linux
/dev/hdc10           9822        9964     1148616   82  Linux swap

6 但是mount的时候却显示
  /dev/hdc9 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
usbdevfs on /sys/bus/usb type usbdevfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hdc1 on /mnt/hdc1 type vfat (rw,iocharset=cp936,umask=0)
/dev/hdc5 on /mnt/hdc5 type vfat (rw,iocharset=cp936,umask=0)
/dev/hdc6 on /mnt/hdc6 type vfat (rw,iocharset=cp936,umask=0)
/dev/hdc7 on /mnt/hdc7 type vfat (rw,iocharset=cp936,umask=0)
/dev/hdc8 on /mnt/hdc8 type ext2 (rw)
/dev/hdc8 on /mnt/lfs type ext2 (rw)

我不知道 是不是文件系统出了问题。到底是不是ext2的呢?
请大侠们帮我找个解决方案
谢谢!
 楼主| 发表于 2005-10-19 10:33:24 | 显示全部楼层
搞定了 ,还是分区的关系。估计是在WIN下分的区,用fdisk -l看
是这样 :/dev/hdc8 7994 8460 3751146 b W95 FAT32

没有 办法,自己在hdc8上又装了个LINUX发行版,然后fdisk -l
/dev/hdc8            7994        8460     3751146   83  Linux

这样分区变成LINUX的了 ,然后把备份的LFS恢复就OK了

grub.conf修改成:
title LFS 6.1
root (hd0,7)
kerne /boot/lfskernel-2.6.11.12 root=/dev/hdc8
boot

问题解决了,但是想问高手,有没有什么命令能直接把WIN的分区变成LINXU的分区?
回复 支持 反对

使用道具 举报

发表于 2005-10-19 10:55:23 | 显示全部楼层
我知道linux有两个方法fdisk和磁盘工具parted,楼主可以试试
回复 支持 反对

使用道具 举报

发表于 2005-10-19 14:43:05 | 显示全部楼层
linux下有mkreiserfs、mkfs.ext2、mkfs.ext3
windows下用acronis patition
回复 支持 反对

使用道具 举报

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

本版积分规则

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