萍聚社区-德国热线-德国实用信息网

 找回密码
 注册

微信登录

微信扫一扫,快速登录

萍聚头条

查看: 2076|回复: 12

用LINUX的高人帮个忙!

[复制链接]
发表于 2007-12-4 10:30 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册 微信登录

x
最近开电脑时,老出现这个
/bin/sh: can't access tty; job control turned off
然后就必须重起电脑才开得了机。
大家有没有出现同样的问题啊?
先谢谢了!
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
发表于 2007-12-4 12:16 | 显示全部楼层
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
发表于 2007-12-5 00:20 | 显示全部楼层
i have no such problem since i use another linux - debian. no idea...

but i have googled for you. it sounds like a known problem with ubuntu.

have you updated your system?

It may be a problem with the bootloader since the bootloader search a root path to boot your system.

try to change the root path after the boot prompt appears.

"At the boot prompt, press `e` to edit and try changing the root= parameter"

see the link: http://www.linux.net.nz/pipermail/aucklug/2007-April/001527.html
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
 楼主| 发表于 2007-12-5 10:42 | 显示全部楼层
谢谢LSD。我也在网上搜索过,很多人都是新安装的时候出现这个问题,我的都已经安装很久,不过最近换了一个harddisk,不知道这是不是原因。$送花$ $送花$
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
发表于 2007-12-5 12:10 | 显示全部楼层
This is not a ubuntu specific problem. Your problem is most probably that your system cannot find the root partition. The reason why you only find ubuntu relevant topics while searching for the error message in the net is that ubuntu, unlikly most other distributions, put a rudimental rootfs in the initrd image, which is extracted before mounting the system partition. Hence what you see is the error message by the busybox sh shell.

Have you changed your harddisc with the linux partition on it? For Example you have switched your old and new harddisc in the IDE or SATA bus order. In this case the harddisc device name will be changed and ther kernel will fail to mount the root disc in. Have a look in the /boot/grub/menu.lst (you can boot your machine with a live CD and mount the partition) and take a look at lines looking like:
root            (hd0,0)
kernel          /boot/vmlinuz root=/dev/sda1.....
The first line is the position of your MBR, the second line is the kernel command line, "root=/dev/sda1" tells the kernel that linux is installed on  the first partition of the first SATA disc. If you have switched your discs, you have to change this and install your grub again with install-grub script. (if you use ubuntu, you might be abel to use the "fix installation" option booting with the install CD.) If you have trouble to understand what I've written, you might probably have to reinstall your system. ;)

cheers
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
 楼主| 发表于 2007-12-5 12:41 | 显示全部楼层
原帖由 adlb 于 2007-12-5 00:20 发表
i have no such problem since i use another linux - debian. no idea...

but i have googled for you. it sounds like a known problem with ubuntu.

have you updated your system?

It may be a p ...

The problem started after I installed a second harddisk. I want to use the hd as a complete backup of my running Ubuntu 7.04 and then updating to 7.10. Strange is, that this error doesn´t come up every time.
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
 楼主| 发表于 2007-12-5 12:47 | 显示全部楼层
原帖由 desert_penguin 于 2007-12-5 12:10 发表
This is not a ubuntu specific problem. Your problem is most probably that your system cannot find the root partition. The reason why you only find ubuntu relevant topics while searching for the e ...

Thank you for your answer.
The problem started after installing a second harddisk on my Ubuntu 7.04. I did an update from 6.10 to 7.04 two month ago and the system recognised the new hd. This error is not permanent, but it keeps me from an update to 7.10.
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
发表于 2007-12-5 13:10 | 显示全部楼层
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
发表于 2007-12-5 15:08 | 显示全部楼层
原帖由 心醉的心碎 于 2007-12-5 12:47 发表

Thank you for your answer.
The problem started after installing a second harddisk on my Ubuntu 7.04. I did an update from 6.10 to 7.04 two month ago and the system recognised the new hd. This  ...

hmm, strange enough. Have you mirrored the both discs with dd or any kind like tools, which duplicate images byte-by-byte? Seemed to me that that the bios of your machine jumping between the mbr of the discs and occassionally boots from different discs. What happens if you pull the spare disc out? A more risky way: You can clear the mbr on your sparedisc by doing:
dd of=[dev file of your spare disc, like /dev/sdb] if=/dev/zero bs=512 count=1
This one is, however, a little bit risky. You might destroy your system if you don't do it right.

Neverless this is no kernel bug issue, a distribution update should do neither good nor harm to your problem. I'd do the dist upgrade if I were you. ;-)

汗  这里是英语角啊

also wenn's Dir lieber ist, schreibe ich das alles noch mal auf Deutsch. ;-) Hab zwar hier auf meinem Buerorechner Eingabeprogramme fuers Chinesisch, bin aber schneckenlahm beim Schriftzeicheneingeben. :( . Schreib daher lieber auf Deutsch oder eben Engisch.... $汗$

cheers
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
 楼主| 发表于 2007-12-5 18:01 | 显示全部楼层
原帖由 desert_penguin 于 2007-12-5 15:08 发表

hmm, strange enough. Have you mirrored the both discs with dd or any kind like tools, which duplicate images byte-by-byte? Seemed to me that that the bios of your machine jumping between the mb ...

Yes, I did a disk dump on a new partition on the new hd. But why is the bios using one or the other hd? It looks first for a floppy and then for a hd. I can´t boot from a dvd. My bios is 6 years in without an update. I may try to copy and delete the mbr. Never done this before.
PS: Bist du kein Chinese?$frage$
Die von den Nutzern eingestellten Information und Meinungen sind nicht eigene Informationen und Meinungen der DOLC GmbH.
您需要登录后才可以回帖 登录 | 注册 微信登录

本版积分规则

手机版|Archiver|AGB|Impressum|Datenschutzerklärung|萍聚社区-德国热线-德国实用信息网

GMT+1, 2025-3-13 16:09 , Processed in 0.068219 second(s), 20 queries , MemCached On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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