/sbin/init: Can't access tty; Job control turned off

Asked by wgw

(I'm a total beginner, so everything is say here should be taken with a grain of salt.)

I think I need to rebuild/ reinstall the boot sequence. What docs are there about Edgy's boot sequence, and the best way to capture it (can I find that in the /var/log directory ?)? I also heard there might be a rescue system for boot problems. Does that exist?

My Edgy boot fails with the /sbin/init error message. That symptom is discussed here: http://ubuntuforums.org/showthread.php?t=292533&page=5 and on many, many other pages.

As another user says:
[QUOTE]I think I had ran apt-get autoremove, which someone mentioned could have removed some important package. Also, my system didn't shutdown correctly from X, and since I forgot how to use 'reboot' to reboot from a ctrl-alt-f# terminal, I had just powered down. [/QUOTE]

In my case I can boot all the way to init_bottom, but it hangs after that.

Below, I give some of my setup's specs (fdisk, menu.lst, fstabs).

I notice that there is no /sbin/init ; in fact, init doesn't exist anywhere as far as I can tell.

There are no uuid device names in /dev (should there be?)

I can boot from the cd and see my files on the hard drive;
I have done a get-apt install ubuntu-minimal, standard, Desktop, with no change.
I have done a fsck check. The disk is clean.

On my list of things to try, in all the various combinations, is:
A. In grub:
1) increase the ramdisk size: ramdisk=8192
2) add a label : real_root=/dev/hda2
3) synchronize fstabs and menu.lst: fstabs uses uuid and menu.lst uses /dev/hda2 (tried that too -- no luck)
B. From the CD
4) copy sbin/init to my sbin/init (tried that: the boot continues, but hangs when it does not find /sbin/logd )

My menu.lst file seems normal otherwise (I have one configuration with uuid, the other without):

title Ubuntu, kernel 2.6.17-11-generic
root (hd0,1)
kernel /boot/vmlinuz- 2.6.17-11-generic root=UUID=e77a8fce-f839-49bd-8dde-06acb9ca1c2b ro splash
initrd /boot/initrd.img-2.6.17-11-generic
# quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-11-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hda2 ro single
initrd /boot/initrd.img- 2.6.17-11-generic
boot

title Ubuntu, kernel 2.6.17-10-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda2 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda2 ro single
initrd /boot/initrd.img- 2.6.17-10-generic
boot

title Ubuntu, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
quiet
boot

FSTABS:

proc /proc proc defaults 0 0
# Entry for /dev/hda2 :
UUID=e77a8fce-f839-49bd-8dde-06acb9ca1c2b / ext3 defaults,errors=remount-ro 0 1
# Entry for /dev/hda5 :
UUID=7cdf83ef-3425-499d-893b-920ba36cb91f none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hda1 /media/Windows ntfs umask=222,utf8 0 0

FDISK:

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start End Blocks Id System
/dev/hda1 * 1 5287 42467796 7 HPFS/NTFS
/dev/hda2 5288 9544 34194352+ 83 Linux
/dev/hda3 9545 9729 1486012+ 5 Extended
/dev/hda5 9545 9729 1485981 82 Linux swap / Solaris

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
wgw
Solved:
Last query:
Last reply:
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#1

What was it that originally led up to this issue, the original root cause?

Revision history for this message
wgw (winder-interchange) said :
#2

The history of the issue is the following:

1) I uninstalled NetworkManager when I was trying to setup my wireless connection (silly me...).

2) I tried to reinstall NetworkManager with synaptic, but got dependency errors and could not reinstall. That problem is described here: http://www.ubuntuforums.org/showthread.php?t=391653

3) While I trying to resolve the dependency issues I updated and upgraded the package manager (apt-get update, upgrade), then tried to tidy up my packages with apt-get autoremove. And remove it did.

4)As the other user describes in the thread cited, when I tried to shut down, it didn't, and I did a hard shut down.

5) On reboot .. the boot problem.

So I suspect that I erased crucial packages apt-get with autoremove.

----------------

This was recently posted on the tty problem thread; I will give it a try...

hi all, i had same problem.

the cause was probably an apt-get autoremove.

try to install the sysvinit package, entering on root disk system from a live cd.
then mount /dev/sda1 (or where you have root filesystem) on /somedir

#sudo mount -rw /dev/sda1 /somedir
#sudo chroot /somedir

#sudo apt-get install sysvinit

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#3

That sounds like a sensible plan. Let us know how it goes.

Revision history for this message
Best wgw (winder-interchange) said :
#4

Well, that has solved the problem (whew!). A simple: sudo apt-get install sysvinit. I had obviously removed my boot setup... automatically.

My guess this will be a typical newbie problem -- apt-get autoremove looks so innocent! I will look for a newbie FAQ (or frequent blunder file?) that might prevent such mistakes in the future.

Thanks for the encouragement (and this service -- great idea!).

Revision history for this message
Matt (matt-lennig) said :
#5

I am getting the error
   /bin/sh: can't access tty; job control turned off
when I try to install Ubuntu 6.10 on a new system. Hardware details:
  Motherboard: Abit AB9Pro
  CPU: Intel E6700 Core Duo
  SATA CDROM
  6 SATA hard drives of 500GB each
  Memory: 4GB

I configured the hard drives as ACHI in the BIOS. My intention is to use software RAID.

I also tried installing Ubuntu 6.06 but got a different form of the same error.

Any suggestions of what to try next?

Revision history for this message
Mechung20 (stdismas26) said :
#6

I AM A COMPLETE BEGINNER so please speak some english to me.....i have an NEC ready system with windows 98 on it i tried the ubuntu 7.04 and the alternative cd both with the same problem...."bin/sh tty jobs control turned off" WHAT the hell am i doing wrong could someone please tell me!!! also it says memory is very low should i be using a different linux os being that my comp is so old??? IF anyone would like to help me i would be glad to send you some money if you could get me up and running can call me at 662 251 1635 Thanks - Josh

Revision history for this message
Rojas (robjos1) said :
#7

I have the same problem with this message... /sbin/init: Can't access tty; Job control turned off

Revision history for this message
Carlos Eton (ceton) said :
#8

Regarding /bin/sh: Can’t access tty; job control turned off

Apparently, there are a bizillion reasons that this error occurs, but in my case, it was because the Ubuntu Live CD couldn't recognize some of the hardware on the machine I was installing to. (I was able to install it successfully on other machines--it was just one troublesome machine).

Here is what worked for me:

   1. When the bootup screen appears, press F6
   2. Type the following: acpi=off irqpoll
   3. Press the Enter key.
   4. View the Live CD and install Ubuntu.

You have to make sure that this problem is resolved when Ubuntu boots, too. To do that:

   1. Boot your computer so that GRUB is displayed.
   2. Press the "e" key to go into edit mode.
   3. Press "o" to add a new line to the script.
   4. Type the following: acpi=off irqpoll
   5. Press the Escape key.

In the event that acpi=off doesn't work try replacing the entry above with one of the following:

    * acpi=force irqpoll
    * nacpitimer irqpoll

You may have to revisit the second set of steps when you upgrade ubuntu.

I hope this helps.