/Bin/sh:can't access tty;job control turned off

编译打包和其他
头像
wyg1258
帖子: 654
注册时间: 2006-09-12 19:44
来自: whu

#16

帖子 wyg1258 » 2007-09-10 20:45

把硬盘 移到 IDE0 的位置
linux 学习记录 你的 我的 大家的

http://wyg1258.cublog.cn
alexzhou
帖子: 8
注册时间: 2007-09-09 20:05

#17

帖子 alexzhou » 2007-09-11 0:29

wyg1258 写了:把硬盘 移到 IDE0 的位置
我是raid0,请问怎么设置IDE0的位置,能详细点吗?谢谢
fengmuyidao
帖子: 1
注册时间: 2007-09-11 17:09

LINUX DELL 1420

#18

帖子 fengmuyidao » 2007-09-11 17:13

我也是这问题啊,有人解决吗?
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#19

帖子 skyx » 2007-09-11 17:28

no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#20

帖子 skyx » 2007-09-11 17:35

http://sudan.ubuntuforums.com/showthread.php?p=3062852




You can try some of this:

/bin/sh:can't access tty;job control turnedoff

Describe your new note here.

when I boot, the screen shows

Starting up

then boots to the following:

/bin/sh: cant access tty; job control turned off.
(initramfs)

so, i try the following command as suggested:


/bin/sh: cant access tty; job control turned off.
(initramfs)modprobe piix
(initramfs)exit


This does the trick, Ubuntu starts up fine, and smoothly.

> Just to simplify a little, however, after the command (in the chroot env):
> sudo echo piix >> /etc/initramfs-tools/modules
> all I needed to do is issue the command
> sudo update-initramfs -u
> to update the initramfs (thus correcting the system) and then
> exit
>

UPDATED FIX!!! I removed the old suggestion that I had written and pasted the new fix from the main thread of this problem...... Credit to this goes to
hbjason as these are his exact words. It appears as though it's a combination of some of my suggestions that I found on the internet etc etc.


f you are getting this error (and you have a SATA harddrive); this is the fix:

At the LiveCD initial boot screen:
o Select F6 for more options
o Add the following option to the beginning of the options list:
break=top
o Press enter to start booting
Ubuntu will start booting, but kick you out to a command prompt; at the prompt type these two commands:
modprobe piix
exit

You will now boot into the LiveCD normally.

If you choose to install from the LiveCD, you must make the following modifications (or else your installed system will not be able to boot, just like the LiveCD):
o Make note of the device id of the partitions that were used to install (such as /dev/hda1)
-- if you choose to install the '/boot' mount from a different partition make note of it as well (this would be done from the manual partition selection); just a side note -- if you do this, make sure the boot partition is at least 50MB or the install will error at grub setup
o When the install is complete do not reboot -- stay in the LiveCD
o Open a terminal (Applications->Accessories->Terminal)
o You must now mount the installed partitions by typing the following (assuming the install was to /dev/hda1; otherwise replace '/dev/hda1' with the install partition) commands:

mkdir target
sudo mount /dev/hda1 target

*if you also created a boot partition issue (replace /dev/hda2 with the boot partition) the command:
sudo mount /dev/hda2 target/boot

sudo chroot target

o You will now be in a 'chroot' command prompt for your new ubuntu system (be careful here, you are editing with root access!)
o You must edit the /etc/initramfs-tools/modules file; adding a line with the word: piix
-- you should do this with your favorite unix editor; or simply type the command:
echo piix >> /etc/initramfs-tools/modules
o After modifying the file you must update the system with the command
update-initramfs -u
o When complete, type 'exit' to exit the chroot env; you can now close the Terminal and reset your system.

Now when you boot you will be in your new shinny Ubuntu system!
no security measure is worth anything if an attacker has physical access to the machine
alexzhou
帖子: 8
注册时间: 2007-09-09 20:05

#21

帖子 alexzhou » 2007-09-11 23:01

实在抱歉,没看懂 :shock:
alexzhou
帖子: 8
注册时间: 2007-09-09 20:05

#22

帖子 alexzhou » 2007-09-11 23:02

是输入下面的就解决了吗?
(initramfs)modprobe piix
(initramfs)exit
头像
ubuntusky
帖子: 185
注册时间: 2007-02-25 22:55

#23

帖子 ubuntusky » 2007-09-11 23:15

对一部分电脑可能有用,比如dell的部分本本。

出现/bin/sh: cant access tty; job control turned off. 后执行下面的代码

代码: 全选

modprobe piix

代码: 全选

exit 
执行完后就可以进live cd 桌面了


进到桌面后开始安装ubuntu,装完后不要重启,把刚才装有ubuntu的分区mount 后,chroot 这个mount的分区,接着

代码: 全选

echo piix >> /etc/initramfs-tools/modules 
update-initramfs -u 
exit
完成后重启即可。
alexzhou
帖子: 8
注册时间: 2007-09-09 20:05

#24

帖子 alexzhou » 2007-09-12 10:10

我的不是本,是台式机,不过我晚上去试试,谢谢
头像
ubuntusky
帖子: 185
注册时间: 2007-02-25 22:55

#25

帖子 ubuntusky » 2007-09-12 10:25

这种方法适用于ubuntu 7.04 desktop cd 光盘启动后出现/bin/sh:can't access tty;job control turnedoff

的情况,特别是使用sata 硬盘的电脑





图片
Michaelgu
帖子: 39
注册时间: 2006-12-19 15:55

#26

帖子 Michaelgu » 2007-09-12 11:58

IBM T42 硬盘安装按照置顶方法,报错如下,
/bin/sh:can't access tty;job control turnedoff

手动输入以下命令,

(initramfs)modprobe piix
(initramfs)exit

结果如下,
Kernel panic - kill the initial (大概)
然后机器死机,大写键闪烁,准备先装EDGY,然后生级到FEISTY
Michaelgu
帖子: 39
注册时间: 2006-12-19 15:55

#27

帖子 Michaelgu » 2007-09-12 16:39

今天用6.10重新硬盘安装,同样出了下面问题
/bin/sh:can't access tty;job control turnedoff

手动输入以下命令,

(initramfs)modprobe piix
(initramfs)exit

没死机,还是出同样错,
/bin/sh:can't access tty;job control turnedoff

现在看应该是NTFS的格式问题,晚上找个FAT32试验看
alexzhou
帖子: 8
注册时间: 2007-09-09 20:05

#28

帖子 alexzhou » 2007-09-12 21:41

ubuntusky 写了:对一部分电脑可能有用,比如dell的部分本本。

出现/bin/sh: cant access tty; job control turned off. 后执行下面的代码

代码: 全选

modprobe piix

代码: 全选

exit 
执行完后就可以进live cd 桌面了


进到桌面后开始安装ubuntu,装完后不要重启,把刚才装有ubuntu的分区mount 后,chroot 这个mount的分区,接着

代码: 全选

echo piix >> /etc/initramfs-tools/modules 
update-initramfs -u 
exit
完成后重启即可。
尝试过了,还是不行,执行完后依旧显示/bin/sh: cant access tty; job control turned off
无法进入桌面
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#29

帖子 skyx » 2007-09-12 21:48

Michaelgu 写了:IBM T42 硬盘安装按照置顶方法,报错如下,
/bin/sh:can't access tty;job control turnedoff

手动输入以下命令,

(initramfs)modprobe piix
(initramfs)exit

结果如下,
Kernel panic - kill the initial (大概)
然后机器死机,大写键闪烁,准备先装EDGY,然后生级到FEISTY
samzons 写了:BusyBox v1.1.3 (Debian 1:1.1.3-3ubuntu3) built-in shell (ash)
Enter "help" for a list of built-in commands...
/Bin/sh:can't access tty;job control turned off

光盘启动的时候,出现的问题。
光盘MD5正确,在windows使用VM可以用光盘安装,但是用光盘引导开机,选择install,出现了滚动条之后就出现了这个问题,help


楼主明确指出是用光盘出现这种问题,指明版本是ubuntu 7.04 .

这个方法只针对ubuntu 7.04 cd 光盘启动出现这种错误的情况。也只对部分电脑有效。



硬盘安装不能这样,硬盘安装的一种原因是没找到iso文件,方法可以从论坛找。
no security measure is worth anything if an attacker has physical access to the machine
Michaelgu
帖子: 39
注册时间: 2006-12-19 15:55

#30

帖子 Michaelgu » 2007-09-12 22:45

Fat32 系统里也出现下面报错,
/bin/sh:can't access tty;job control turnedoff

手动输入以下命令,

(initramfs)modprobe piix
(initramfs)exit

结果如下,
Kernel panic - kill the initial (大概)
回复