LinuxSir.cn,穿越时空的Linuxsir!

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

早上好!!!进入第七章。。。

[复制链接]
发表于 2002-12-26 09:00:41 | 显示全部楼层 |阅读模式
刚才打开系统,发现没有加载$LFS,就mount了,可是这样得到的是这样的。。。
[root@pp hgkrt]# mount /dev/hda10 $LFS
[root@pp hgkrt]# mount
/dev/hda9 on / type ext3 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
none on /dev type devfs (rw)
none on /dev/pts type devpts (rw,mode=0620)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=gb2312,codepage=936,umask=0)
none on /mnt/cdrom2 type supermount (ro,dev=/dev/hdd,fs=auto,--,iocharset=gb2312,codepage=936,umask=0)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=auto,--,iocharset=gb2312,codepage=936,umask=0)
/dev/hda1 on /mnt/nt type ntfs (ro,iocharset=gb2312,umask=0)
/dev/hda5 on /mnt/nt2 type ntfs (rw)
/dev/hda8 on /mnt/nt3 type ntfs (ro,iocharset=gb2312,umask=0)
/dev/hda7 on /mnt/win_c type vfat (rw,iocharset=gb2312,codepage=936,umask=0)
/dev/hda10 on /mnt/lfs type vfat (rw)
[root@pp hgkrt]# ls $LFS
!0.#0*  ?.?*  0.?*


然后我又在MDK9控制中心对它加载(先umount)了,得到了正确的。

[root@pp hgkrt]# ls $LFS
bin/   dev/  home/  mnt/  proc/  sbin/    tmp/  var/
boot/  etc/  lib/   opt/  root/  static/  usr/
[root@pp hgkrt]# chroot $LFS /static/bin/env -i \
>     HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
>     PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \
>     /static/bin/bash --login
root:/# ls
bin   dev  home  mnt  proc  sbin    tmp  var
boot  etc  lib   opt  root  static  usr
root:/#

请问用mount的话,怎么使它自动加载为ext3的文件格式,而不是vfat的呢???
发表于 2002-12-26 09:05:01 | 显示全部楼层
自己会认出格式的,不行你可以用-t ext3指定
 楼主| 发表于 2002-12-26 09:09:58 | 显示全部楼层
在创建fstab文件的时候,我想加入自己的分区,可以吗??

是不是linux下不能加载linux呢??

下面是我的MDK9的fstab
/dev/hda9 / ext3 defaults 1 1                 #----mdk9.0 is here
none /dev/pts devpts mode=0620 0 0
none /mnt/cdrom supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=gb2312,codepage=936,umask=0 0 0
none /mnt/cdrom2 supermount dev=/dev/hdd,fs=auto,ro,--,iocharset=gb2312,codepage=936,umask=0 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=gb2312,sync,codepage=936,umask=0 0 0
/dev/hda10 /mnt/lfs ext3 iocharset=gb2312,codepage=936,umask=0 0 0
/dev/hda1 /mnt/nt ntfs iocharset=gb2312,ro,umask=0 0 0
/dev/hda5 /mnt/nt2 ntfs defaults 0 0
/dev/hda8 /mnt/nt3 ntfs iocharset=gb2312,ro,umask=0 0 0
/dev/hda7 /mnt/win_c vfat iocharset=gb2312,codepage=936,umask=0 0 0
none /proc proc defaults 0 0
/dev/hda6 swap swap defaults 0 0

我打算为lfs建的fstab
/dev/hda10 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
#none /mnt/cdrom supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=gb2312,codepage=936,umask=0 0 0
#none /mnt/cdrom2 supermount dev=/dev/hdd,fs=auto,ro,--,iocharset=gb2312,codepage=936,umask=0 0 0
#none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=gb2312,sync,codepage=936,umask=0 0 0
/dev/hda9 /mnt/mdk ext3 iocharset=gb2312,codepage=936,umask=0 0 0    #----------mdk9.0 mounted here
/dev/hda1 /mnt/nt ntfs iocharset=gb2312,ro,umask=0 0 0
/dev/hda5 /mnt/nt2 ntfs defaults 0 0
/dev/hda8 /mnt/nt3 ntfs iocharset=gb2312,ro,umask=0 0 0
/dev/hda7 /mnt/win_c vfat iocharset=gb2312,codepage=936,umask=0 0 0
none /proc proc defaults 0 0
/dev/hda6 swap swap defaults 0 0
发表于 2002-12-26 09:13:14 | 显示全部楼层
可以自己加
 楼主| 发表于 2002-12-26 09:22:54 | 显示全部楼层
请问,配置内核要在哪个目录下呢???/下可以吗???

还是在别的哪个下面进行呢???
 楼主| 发表于 2002-12-26 09:29:35 | 显示全部楼层
我的fstab文件,对于不用的加#号可以屏蔽吧。。。

root:/# cat etc/fstab
# Begin /etc/fstab

# filesystem   mount-point fs-type    options     dump    fsck-order
/dev/hda10 / ext3 defaults 1 1
devpts /dev/pts devpts mode=0620 0 0
#none /mnt/cdrom supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=gb2312,codepage=936,umask=0 0 0
#none /mnt/cdrom2 supermount dev=/dev/hdd,fs=auto,ro,--,iocharset=gb2312,codepage=936,umask=0 0 0
#none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=gb2312,sync,codepage=936,umask=0 0 0
/dev/hda9 /mnt/mdk ext3 iocharset=gb2312,codepage=936,umask=0 0 0    #mdk9.0 mounted here
/dev/hda1 /mnt/nt ntfs iocharset=gb2312,ro,umask=0 0 0
/dev/hda5 /mnt/nt2 ntfs defaults 0 0
/dev/hda8 /mnt/nt3 ntfs iocharset=gb2312,ro,umask=0 0 0
/dev/hda7 /mnt/win_c vfat iocharset=gb2312,codepage=936,umask=0 0 0
proc /proc proc defaults 0 0
/dev/hda6 swap swap pri=1 0 0
# End /etc/fstab
root:/#
 楼主| 发表于 2002-12-26 09:34:53 | 显示全部楼层
编译内核是不是要在/usr/src/linux目录下进行!!!

对不???
 楼主| 发表于 2002-12-26 09:46:08 | 显示全部楼层
还有这样的错误吗!!
Your display is too small to run Menuconfig!
It must be at least 19 lines by 80 columns.
make: *** [menuconfig] Error 1
root:/usr/src/linux-2.4.19#
发表于 2002-12-26 10:17:31 | 显示全部楼层
别忘了mount proc
 楼主| 发表于 2002-12-26 11:09:36 | 显示全部楼层
如何选择系统默认语言???

NLS选项中选iso8859-15????

怎么选中文???
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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