LinuxSir.cn,穿越时空的Linuxsir!

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

LFS 6.1 can't login

[复制链接]
发表于 2005-8-6 00:14:48 | 显示全部楼层 |阅读模式
Hi folks,

Finally I finished the building of LFS 6.1.  Having edited FC3 Host /etc/grub.con manually and with command "shutdown -r now" to reboot the PC.

LFS 6.1 booted but can't login.

local.localdomain login:
(I suppose it is LFS login)

Tried
Login = root/LFS/lls
Password = lfs_password/host_password

Always mentioning "Login incorrect"

On Host's console I can login LFS with
$ su - lfs
password = lfs_password
lfs~:#

Repeated following steps and met with failure;

1)
8.3. Linux-2.6.11.12
http://www.linuxfromscratch.org/ ... apter08/kernel.html
and
8.4. Making the LFS System Bootable
http://www.linuxfromscratch.org/ ... chapter08/grub.html

Recompiled kernel and then ran
root:/sources/linux-2.6.11.12# dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1

  1. 1+0 records in
  2. 1+0 records out
复制代码

root:/sources/linux-2.6.11.12# dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1

  1. 198+1 records in
  2. 198+1 records out
复制代码


Rescue floppy can't be created.  Tested on PCs to boot, not working

2)
root:/sources/linux-2.6.11.12# grub

grub> root (hd0,5) [Enter]

Error 21: Selected disk does not exist

grub> setup (hd0) [Enter]

Error 12: Invalid device requested

grub> root

Pressing Tab no function

3)
root:/sources/linux-2.6.11.12# shutdown -r now

LFS kernel was not found on the boot loader.  I have to start FC3 Host to edit /etc/grub.conf manually.

Kindly advise.  TIA

B.R.
satimis
 楼主| 发表于 2005-8-6 02:28:51 | 显示全部楼层

LFS 6.1 is up

Hi folks,

Finally LFS 6.1 is up running:

After booting it prompted
localhost.localdomain login: root
password:
-bash-3.0# ls /boot/

  1. Config-2.6.11.12.grub lfskernel-2.6.11.12 system.map-2.6.11.12
复制代码


Only a black screen displayed because no desktop package installed.  Editor -vim

SOLUTION
=========

Copied Root password of FC3 Host on /etc/shadow to /mnt/lfs/etc/shadow

B.R.
satimis
回复 支持 反对

使用道具 举报

发表于 2005-8-7 20:59:34 | 显示全部楼层
是你在chroot环境中安装shadow后,没运行 passwd 命令。所以没生成口令。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-8 21:35:17 | 显示全部楼层
Hi 黯然销魂,

是你在chroot环境中安装shadow后,没运行 passwd 命令。所以没生成口令。
I did and /etc/shadow also has entry there.

B.R.
satimis
回复 支持 反对

使用道具 举报

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

本版积分规则

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