LinuxSir.cn,穿越时空的Linuxsir!

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

LFS能在GRUB引导下能进入了

[复制链接]
发表于 2002-11-23 01:40:27 | 显示全部楼层 |阅读模式
启动过程有多处是失败的:
eth0  unknewn interface:No such device
setting up default gateway
SLOCAPPRT:No such device
另外,进入到登录界面是(none)login:
进入后是bash-2.5a#
从8点搞到现在。。。我晕
发表于 2002-11-23 03:33:37 | 显示全部楼层
前面那个NONE 是因为没有设置主机名
在文LFS文档的第7章有说,具体是改/etc/hosts

cat >> /etc/hosts << "EOF"
# Begin /etc/hosts (no network card version)
127.0.0.1 www.mydomain.com <你想设置的主机名>
# End /etc/hosts (no network card version)
EOF

那个提示付:打PS1="\u@\w#"可以改,当然还有别的定义方式。
也可以把这个东西加到.bashrc里面
发表于 2002-11-23 07:44:02 | 显示全部楼层
怎么就能进了?上次是什么地方有问题?
还有,引导过程里有错误,一般是网卡没设好,没关系的。
(none)login:
这个地方要改一下/etc/issue文件,你可以把redhat 的拷过去。
 楼主| 发表于 2002-11-23 09:21:48 | 显示全部楼层
我昨晚重新安装了LFS,一口气完成(不敢停下,上次我装了两人,自己又不熟,怕是有些地方忽略了),今天上WIN查了查,我的网卡在编译内核时选错了(能否在LFS下直接重编),另外还有一个错误,是关于USB的,它说无法MOUNT。
发表于 2002-11-23 09:30:29 | 显示全部楼层
内核想什么时候编就什么时候编, 到后来发现编内核还是很快的.
另外加快内核编译速度. 编完内和的源码目录不要山, 下次编译的时候不要执行LFS里面的第一个明令 直接MAKE MENUCONFIG这样只编译你选择有变化的地方.
发表于 2002-11-23 11:04:35 | 显示全部楼层
USB的问题,doooom有一篇很详细的文章,就在版上,你找找?
 楼主| 发表于 2002-11-23 15:56:36 | 显示全部楼层

难过

两位,我重新编译了内核,没有找到Accton EN1207D-Tx Fast Ethernet Adapter的网卡,它默认的是ETH*的网卡,我试了编译,完成后重新启动,但问题依旧(包括登录的名字等旧情况),我改了/etc/hosts ,加了/etc/issue,但好像没有作用.
 楼主| 发表于 2002-11-23 21:41:17 | 显示全部楼层
问题出现的提示是下面的两个文件有问题
一、/etc/rc.d/rcsysinit.d/S40mountfs
which exited with a return value of 96
二   /etc/rc.d/rc3.d/S20network
S40mountfs内容:(这个问题说我mount /proc/bus/usb失败)
which exited with a return value of 7
#!/bin/bash
# Begin $rc_base/init.d/mountfs - File System Mount Script

# Based on mountfs script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org

source /etc/sysconfig/rc
source $rc_functions

case "$1" in
        start)
                echo "Remounting root file system in read-write mode..."
                mount -n -o remount,rw /
                evaluate_retval

                # The follow mount command will mount all file systems. If you
                # have other (network based) file system that should not be or
                # cannot be mounted at this time, add them to the NO_FS variable
                # below. All file systems that are added to the variable in the
                # form of no<filesystem> will be skipped.

                NO_FS="nonfs,nosmbfs,noproc"
                echo "Mounting remaining file systems..."
                mount -a -t $NO_FS
                evaluate_retval
                ;;

        stop)
                echo "Unmounting all other currently mounted file systems..."
                umount -a -r
                evaluate_retval
                ;;

        *)
                echo "Usage: $0 {start|stop}"
                exit 1
                ;;
esac

# End $rc_base/init.d/mountfs

S20network内容(这个说我的th0失败)
#!/bin/bash
# Begin $rc_base/init.d/network - Network Control Script

# Based on ethnet script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org

source /etc/sysconfig/rc
source $rc_functions
source /etc/sysconfig/network

case "$1" in
        start)
                for file in $(grep -il "ONBOOT=yes" $network_devices/ifconfig.*)
                do
                        interface=$(basename $file | sed s/ifconfig.//)
                        case "$interface" in
                                *~) ;;
                                *)
                                        $network_devices/ifup $interface
                                        ;;
                        esac
                done

                if [ "$GATEWAY" != "" ]
                then
                        echo "Setting up default gateway..."
                        route add default gateway $GATEWAY metric 1 \
                                dev $GATEWAY_IF
                        evaluate_retval
                fi
                ;;

        stop)
                if [ "$GATEWAY" != "" ]
                then
                        echo "Removing default gateway..."
                        route del -net default
                        evaluate_retval
                fi

                for file in $(grep -il "ONBOOT=yes" $network_devices/ifconfig.*)
                do
                        interface=$(basename $file | sed s/ifconfig.//)
                        case "$interface" in
                                *~) ;;
                                *)
                                        $network_devices/ifdown $interface
                                        ;;
                        esac
                done
                ;;

        restart)
                $0 stop
                sleep 1
                $0 start
                ;;

        *)
                echo "Usage: $0 {start|stop|restart}"
                exit 1
                ;;
esac

# End /etc/rc.d/init.d/network

如何解决
发表于 2002-11-23 23:54:30 | 显示全部楼层
你的网卡在redhat上能用的是么?你在内核编译的时候好好找一下,network devices里面有没有这个驱动?
 楼主| 发表于 2002-11-24 09:48:03 | 显示全部楼层

能用(我用的是ADSL)

要RH中,硬件管理的NETWORK是SMC2-1211TX,而在WIN中网卡识别为Accton EN1207D-Tx Fast Ethernet Adapter,我在内核编译中没有找到这两种,在10~100的网卡选项中我将带有SMC的都选上了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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