Getting "/bin/sh can't access tty job control turned off" after adding a new HDD
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Getting "/bin/sh can't access tty job control turned off" after adding a new HDD
I am setting up a small fileserver at home.
It worked just fine until I added a second HDD to it. Then I keep receiving this message:
Code:
/bin/sh can't access tty job control turned off (initramfs)
When I plug out the hdd, then I'm able to fully boot up.
I have googled this problem but the only thing I found out were posts about this error in ubuntu livecd, tried the solutions given there but they didn't help.
Any ideas what I can do?
Oh and btw, the hdd that's running debian is a sata disk but the one I'm adding is IDE, if that changes anything.
Most boxes boot from ide first, so I'm surprised you saw any boot progress.
Do you have the sata as ide in the bios?
How far does the boot go? At what point do you see the message?
What is the disk layout seen from the livecd? Linux / on sda1? Ide disk as hda1,2,...?
You could use the livecd to set the /boot/grub/device.map to:
(hd0) /dev/hda
(hd1) /dev/sda
if that is what you have.
Then correct /boot/grub/menu.lst hd0,0 et.al. entries and reinstall grub still from the livecd to hda as in:
grub-install --recheck --no-floppy --root-directory=/media/sda1 /dev/hda
Make sure to correct all above entries to what you actually have.
If not sure, post "fdisk -l" with both disks plugged in, device.map and menu.lst.
I just reinstalled debian yesterday, with one sata and one ide disk plugged in, installed on the sata disk again.
It worked fine for a few boots but then gave the same message again.
Surprisingly I had this problem just from time to time, if it happened then I just rebooted and the problem was gone. Seems to have been pretty random.
Until few days ago I added another hdd and now I can't get past this error.
I even had a fresh install of debian with just bare system and nfs+ssh.
It installed fine but then I went and mounted all the disks, they mounted ok and I thought the problem was fixed, but then I rebooted and now I can't get past this error!
Code:
Decompressing Linux... Parsing ELF... done.
Booting the kernel
Loading, please wait...
mount: mounting /dev on /root/dev failed: No Such file or directory
mount: mounting /sys on /root/sys failed: No Such file or directory
mount: mounting /proc on /root/proc failed: No Such file or directory
Target filesystem doesn't have /sbin/init.
No init found. Try passing init= bootarg
Busybox v1.10.2 (Debian 1:1.10.2-2) Built-in shell (ash)
Enter 'help' for a list of built in commands.
/bin/sh: can't access tty; job control turned off
(initramfs)
I have debian on a sata disk. I have 2 IDE disks and 3 sata disks.
Both of the ide's plug straight into the motherboard and one of the satas, the sata that has debian on it also plugs straight into the motherboard and the other satas plug into a pci sata card.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.