LinuxSir.cn,穿越时空的Linuxsir!

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

TS manually created /etc/fstab: error creating child process for terminal

[复制链接]
发表于 2005-10-4 10:10:49 | 显示全部楼层 |阅读模式
I have read many postings about the classic troubleshooting of missing /etc/fstab. I understand the basic steps:

1. Find your currently configured partitions with the fdisk -l command.
2. Run the e2label /dev/hda1 command to find out the partition.
3. Create the /mnt/sysimage and chroot to it.
4. Rebuild a simple /etc/fstab file with at least the settings for the root / directory.

All the postings steps stop here. However, I noticed there is more step to configure if you want to have a correct working terminal.

After rebooting, login, try to open a gnome terminal, got error:
There was an error creating the child process for this terminal

I googled and found out this is happening when udev is not initialized correctly, because the shm, pts or the console nodes don't exist.

To solve this problem, I switched to virtual terminal one (F1) and add those two lines to /etc/fstab:

none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm              tmpfs   defaults        0 0

Save and reboot. It works fine now.

Just want to share this with you guys. Maybe this is common sense and self-obvious, but I don't see it mentioned in any postings.

Please correct me if I am wrong.  Thanks!
发表于 2005-10-10 09:22:16 | 显示全部楼层
good experience!
I have collected
回复 支持 反对

使用道具 举报

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

本版积分规则

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