Archlinux failed to boot: can't access tty: job control turned off

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I came across the problem after upgrading my system through pacman -Syu.



During the upgrade, I encountered a python package conflict which caused the upgrade transaction aborted. So I resolved the conflict: removing the python package by pip uninstall pkg_name, then retried pacman -Syu. This time no more errors.



Then I rebooted my system and the problem occurred:



Warning: /lib/modules/4.19.1-arch1-1-ARCH/modules.devname not found - ignoring
starting version 239
/dev/nvme0n1p2: clean, 968023/31227904 files, 27066236/124895569 blocks
mount: /new_root: unknown filesystem type 'ext4'
You are now being dropped into an emergency shell,
sh: can't access tty: job control turned off
[rootfs] #


BTW: As the warning indicating, I was upgrading kernel 4.18 to 4.19










share|improve this question









New contributor




streethacker is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Edit your question with the output of pacman -Q linux && uname -r.
    – jasonwryan
    yesterday










  • @jasonwryan Sorry I can't make it. Since the last reboot, I can no longer login in my system, blocked by the Warning posted above. However I do remember that before the last reboot I executed uname -r and the ouput kernel version was still 4.18.xxx
    – streethacker
    yesterday










  • You need to chroot in, make sure / and /boot are mounted and then reinstall linux.
    – jasonwryan
    yesterday














up vote
1
down vote

favorite












I came across the problem after upgrading my system through pacman -Syu.



During the upgrade, I encountered a python package conflict which caused the upgrade transaction aborted. So I resolved the conflict: removing the python package by pip uninstall pkg_name, then retried pacman -Syu. This time no more errors.



Then I rebooted my system and the problem occurred:



Warning: /lib/modules/4.19.1-arch1-1-ARCH/modules.devname not found - ignoring
starting version 239
/dev/nvme0n1p2: clean, 968023/31227904 files, 27066236/124895569 blocks
mount: /new_root: unknown filesystem type 'ext4'
You are now being dropped into an emergency shell,
sh: can't access tty: job control turned off
[rootfs] #


BTW: As the warning indicating, I was upgrading kernel 4.18 to 4.19










share|improve this question









New contributor




streethacker is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Edit your question with the output of pacman -Q linux && uname -r.
    – jasonwryan
    yesterday










  • @jasonwryan Sorry I can't make it. Since the last reboot, I can no longer login in my system, blocked by the Warning posted above. However I do remember that before the last reboot I executed uname -r and the ouput kernel version was still 4.18.xxx
    – streethacker
    yesterday










  • You need to chroot in, make sure / and /boot are mounted and then reinstall linux.
    – jasonwryan
    yesterday












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I came across the problem after upgrading my system through pacman -Syu.



During the upgrade, I encountered a python package conflict which caused the upgrade transaction aborted. So I resolved the conflict: removing the python package by pip uninstall pkg_name, then retried pacman -Syu. This time no more errors.



Then I rebooted my system and the problem occurred:



Warning: /lib/modules/4.19.1-arch1-1-ARCH/modules.devname not found - ignoring
starting version 239
/dev/nvme0n1p2: clean, 968023/31227904 files, 27066236/124895569 blocks
mount: /new_root: unknown filesystem type 'ext4'
You are now being dropped into an emergency shell,
sh: can't access tty: job control turned off
[rootfs] #


BTW: As the warning indicating, I was upgrading kernel 4.18 to 4.19










share|improve this question









New contributor




streethacker is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I came across the problem after upgrading my system through pacman -Syu.



During the upgrade, I encountered a python package conflict which caused the upgrade transaction aborted. So I resolved the conflict: removing the python package by pip uninstall pkg_name, then retried pacman -Syu. This time no more errors.



Then I rebooted my system and the problem occurred:



Warning: /lib/modules/4.19.1-arch1-1-ARCH/modules.devname not found - ignoring
starting version 239
/dev/nvme0n1p2: clean, 968023/31227904 files, 27066236/124895569 blocks
mount: /new_root: unknown filesystem type 'ext4'
You are now being dropped into an emergency shell,
sh: can't access tty: job control turned off
[rootfs] #


BTW: As the warning indicating, I was upgrading kernel 4.18 to 4.19







linux arch-linux linux-kernel grub pacman






share|improve this question









New contributor




streethacker is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




streethacker is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday









Rui F Ribeiro

38.2k1475123




38.2k1475123






New contributor




streethacker is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









streethacker

61




61




New contributor




streethacker is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





streethacker is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






streethacker is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • Edit your question with the output of pacman -Q linux && uname -r.
    – jasonwryan
    yesterday










  • @jasonwryan Sorry I can't make it. Since the last reboot, I can no longer login in my system, blocked by the Warning posted above. However I do remember that before the last reboot I executed uname -r and the ouput kernel version was still 4.18.xxx
    – streethacker
    yesterday










  • You need to chroot in, make sure / and /boot are mounted and then reinstall linux.
    – jasonwryan
    yesterday
















  • Edit your question with the output of pacman -Q linux && uname -r.
    – jasonwryan
    yesterday










  • @jasonwryan Sorry I can't make it. Since the last reboot, I can no longer login in my system, blocked by the Warning posted above. However I do remember that before the last reboot I executed uname -r and the ouput kernel version was still 4.18.xxx
    – streethacker
    yesterday










  • You need to chroot in, make sure / and /boot are mounted and then reinstall linux.
    – jasonwryan
    yesterday















Edit your question with the output of pacman -Q linux && uname -r.
– jasonwryan
yesterday




Edit your question with the output of pacman -Q linux && uname -r.
– jasonwryan
yesterday












@jasonwryan Sorry I can't make it. Since the last reboot, I can no longer login in my system, blocked by the Warning posted above. However I do remember that before the last reboot I executed uname -r and the ouput kernel version was still 4.18.xxx
– streethacker
yesterday




@jasonwryan Sorry I can't make it. Since the last reboot, I can no longer login in my system, blocked by the Warning posted above. However I do remember that before the last reboot I executed uname -r and the ouput kernel version was still 4.18.xxx
– streethacker
yesterday












You need to chroot in, make sure / and /boot are mounted and then reinstall linux.
– jasonwryan
yesterday




You need to chroot in, make sure / and /boot are mounted and then reinstall linux.
– jasonwryan
yesterday










2 Answers
2






active

oldest

votes

















up vote
1
down vote













If the update was aborted and the kernel was in the process of being updated, you probably still have the initramfs of the the old kernel in your /boot whilst having the new kernel installed which can prevent booting.



The easiest way to fix this would be to boot with an archlinux installation media, perform a chroot and reinstall the kernel using pacman



# mount /dev/yourroodisk /mnt
# mount /dev/yourbootdisk /mnt/boot # if needed
# mount /dev/yourefipartition /mnt/boot/EFI # if you use EFI (optionnal)
# arch-chroot /mnt
# pacman -Sy linux


The files that should be modified are /boot/initramfs-linux.img and /boot/initramfs-linux-fallback.img so you probably don't need to mount the EFI partition



If for some reason you can't use pacman, you can also launch mkinitcpio by hand to regenerate the initramfs to use the new kernel






share|improve this answer








New contributor




Fredszaq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















  • Your answer is correct, but please do not advise people to -Sy $package, it is terrible advice and just leads to breakage.
    – jasonwryan
    yesterday

















up vote
0
down vote













The text can't access tty: job control turned off is just a notification by the shell that job control doesn't work, that means that you can't stop a program with Ctrl+C or Ctrl+Z.



The problem is visible in the lines above, and maybe what is above that lines:



Warning: /lib/modules/4.19.1-arch1-1-ARCH/modules.devname not found - ignoring
mount: /new_root: unknown filesystem type 'ext4'


It seems the kernel modules are not found, and therefor no module ext4, and therefor no mounting the ext4 root file system.



Most distributions don't delete the old kernel in case there is something wrong with the new one, so try to boot the previous kernel.



If that doesn't work, boot a live system and either install the previous kernel with matching modules, or the new one, or any kernel that works.



It's also possible that there was just something wrong with the creation of the initrd file system, that ext4 was not included for some reasons. In this case, you can boot a live system, recreate initrd with ext4 and reboot.






share|improve this answer




















  • Arch does remove the old kernel. OP's issue is that /boot wasn't mounted during that upgrade so the installed modules do not match the kernel.
    – jasonwryan
    yesterday










  • @jasonwryan If /boot was not mounted, then the matching kernel and initrd should be in the root file system, so it should be possible to load them from there.
    – RalfFriedl
    20 hours ago










  • Not necessarily; actual /boot may get mounted over the top or the initrd could be corrupted. The only safe approach is to chroot and fix it.
    – jasonwryan
    20 hours ago










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






streethacker is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481857%2farchlinux-failed-to-boot-cant-access-tty-job-control-turned-off%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













If the update was aborted and the kernel was in the process of being updated, you probably still have the initramfs of the the old kernel in your /boot whilst having the new kernel installed which can prevent booting.



The easiest way to fix this would be to boot with an archlinux installation media, perform a chroot and reinstall the kernel using pacman



# mount /dev/yourroodisk /mnt
# mount /dev/yourbootdisk /mnt/boot # if needed
# mount /dev/yourefipartition /mnt/boot/EFI # if you use EFI (optionnal)
# arch-chroot /mnt
# pacman -Sy linux


The files that should be modified are /boot/initramfs-linux.img and /boot/initramfs-linux-fallback.img so you probably don't need to mount the EFI partition



If for some reason you can't use pacman, you can also launch mkinitcpio by hand to regenerate the initramfs to use the new kernel






share|improve this answer








New contributor




Fredszaq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















  • Your answer is correct, but please do not advise people to -Sy $package, it is terrible advice and just leads to breakage.
    – jasonwryan
    yesterday














up vote
1
down vote













If the update was aborted and the kernel was in the process of being updated, you probably still have the initramfs of the the old kernel in your /boot whilst having the new kernel installed which can prevent booting.



The easiest way to fix this would be to boot with an archlinux installation media, perform a chroot and reinstall the kernel using pacman



# mount /dev/yourroodisk /mnt
# mount /dev/yourbootdisk /mnt/boot # if needed
# mount /dev/yourefipartition /mnt/boot/EFI # if you use EFI (optionnal)
# arch-chroot /mnt
# pacman -Sy linux


The files that should be modified are /boot/initramfs-linux.img and /boot/initramfs-linux-fallback.img so you probably don't need to mount the EFI partition



If for some reason you can't use pacman, you can also launch mkinitcpio by hand to regenerate the initramfs to use the new kernel






share|improve this answer








New contributor




Fredszaq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















  • Your answer is correct, but please do not advise people to -Sy $package, it is terrible advice and just leads to breakage.
    – jasonwryan
    yesterday












up vote
1
down vote










up vote
1
down vote









If the update was aborted and the kernel was in the process of being updated, you probably still have the initramfs of the the old kernel in your /boot whilst having the new kernel installed which can prevent booting.



The easiest way to fix this would be to boot with an archlinux installation media, perform a chroot and reinstall the kernel using pacman



# mount /dev/yourroodisk /mnt
# mount /dev/yourbootdisk /mnt/boot # if needed
# mount /dev/yourefipartition /mnt/boot/EFI # if you use EFI (optionnal)
# arch-chroot /mnt
# pacman -Sy linux


The files that should be modified are /boot/initramfs-linux.img and /boot/initramfs-linux-fallback.img so you probably don't need to mount the EFI partition



If for some reason you can't use pacman, you can also launch mkinitcpio by hand to regenerate the initramfs to use the new kernel






share|improve this answer








New contributor




Fredszaq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









If the update was aborted and the kernel was in the process of being updated, you probably still have the initramfs of the the old kernel in your /boot whilst having the new kernel installed which can prevent booting.



The easiest way to fix this would be to boot with an archlinux installation media, perform a chroot and reinstall the kernel using pacman



# mount /dev/yourroodisk /mnt
# mount /dev/yourbootdisk /mnt/boot # if needed
# mount /dev/yourefipartition /mnt/boot/EFI # if you use EFI (optionnal)
# arch-chroot /mnt
# pacman -Sy linux


The files that should be modified are /boot/initramfs-linux.img and /boot/initramfs-linux-fallback.img so you probably don't need to mount the EFI partition



If for some reason you can't use pacman, you can also launch mkinitcpio by hand to regenerate the initramfs to use the new kernel







share|improve this answer








New contributor




Fredszaq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer






New contributor




Fredszaq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered yesterday









Fredszaq

1113




1113




New contributor




Fredszaq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Fredszaq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Fredszaq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • Your answer is correct, but please do not advise people to -Sy $package, it is terrible advice and just leads to breakage.
    – jasonwryan
    yesterday
















  • Your answer is correct, but please do not advise people to -Sy $package, it is terrible advice and just leads to breakage.
    – jasonwryan
    yesterday















Your answer is correct, but please do not advise people to -Sy $package, it is terrible advice and just leads to breakage.
– jasonwryan
yesterday




Your answer is correct, but please do not advise people to -Sy $package, it is terrible advice and just leads to breakage.
– jasonwryan
yesterday












up vote
0
down vote













The text can't access tty: job control turned off is just a notification by the shell that job control doesn't work, that means that you can't stop a program with Ctrl+C or Ctrl+Z.



The problem is visible in the lines above, and maybe what is above that lines:



Warning: /lib/modules/4.19.1-arch1-1-ARCH/modules.devname not found - ignoring
mount: /new_root: unknown filesystem type 'ext4'


It seems the kernel modules are not found, and therefor no module ext4, and therefor no mounting the ext4 root file system.



Most distributions don't delete the old kernel in case there is something wrong with the new one, so try to boot the previous kernel.



If that doesn't work, boot a live system and either install the previous kernel with matching modules, or the new one, or any kernel that works.



It's also possible that there was just something wrong with the creation of the initrd file system, that ext4 was not included for some reasons. In this case, you can boot a live system, recreate initrd with ext4 and reboot.






share|improve this answer




















  • Arch does remove the old kernel. OP's issue is that /boot wasn't mounted during that upgrade so the installed modules do not match the kernel.
    – jasonwryan
    yesterday










  • @jasonwryan If /boot was not mounted, then the matching kernel and initrd should be in the root file system, so it should be possible to load them from there.
    – RalfFriedl
    20 hours ago










  • Not necessarily; actual /boot may get mounted over the top or the initrd could be corrupted. The only safe approach is to chroot and fix it.
    – jasonwryan
    20 hours ago














up vote
0
down vote













The text can't access tty: job control turned off is just a notification by the shell that job control doesn't work, that means that you can't stop a program with Ctrl+C or Ctrl+Z.



The problem is visible in the lines above, and maybe what is above that lines:



Warning: /lib/modules/4.19.1-arch1-1-ARCH/modules.devname not found - ignoring
mount: /new_root: unknown filesystem type 'ext4'


It seems the kernel modules are not found, and therefor no module ext4, and therefor no mounting the ext4 root file system.



Most distributions don't delete the old kernel in case there is something wrong with the new one, so try to boot the previous kernel.



If that doesn't work, boot a live system and either install the previous kernel with matching modules, or the new one, or any kernel that works.



It's also possible that there was just something wrong with the creation of the initrd file system, that ext4 was not included for some reasons. In this case, you can boot a live system, recreate initrd with ext4 and reboot.






share|improve this answer




















  • Arch does remove the old kernel. OP's issue is that /boot wasn't mounted during that upgrade so the installed modules do not match the kernel.
    – jasonwryan
    yesterday










  • @jasonwryan If /boot was not mounted, then the matching kernel and initrd should be in the root file system, so it should be possible to load them from there.
    – RalfFriedl
    20 hours ago










  • Not necessarily; actual /boot may get mounted over the top or the initrd could be corrupted. The only safe approach is to chroot and fix it.
    – jasonwryan
    20 hours ago












up vote
0
down vote










up vote
0
down vote









The text can't access tty: job control turned off is just a notification by the shell that job control doesn't work, that means that you can't stop a program with Ctrl+C or Ctrl+Z.



The problem is visible in the lines above, and maybe what is above that lines:



Warning: /lib/modules/4.19.1-arch1-1-ARCH/modules.devname not found - ignoring
mount: /new_root: unknown filesystem type 'ext4'


It seems the kernel modules are not found, and therefor no module ext4, and therefor no mounting the ext4 root file system.



Most distributions don't delete the old kernel in case there is something wrong with the new one, so try to boot the previous kernel.



If that doesn't work, boot a live system and either install the previous kernel with matching modules, or the new one, or any kernel that works.



It's also possible that there was just something wrong with the creation of the initrd file system, that ext4 was not included for some reasons. In this case, you can boot a live system, recreate initrd with ext4 and reboot.






share|improve this answer












The text can't access tty: job control turned off is just a notification by the shell that job control doesn't work, that means that you can't stop a program with Ctrl+C or Ctrl+Z.



The problem is visible in the lines above, and maybe what is above that lines:



Warning: /lib/modules/4.19.1-arch1-1-ARCH/modules.devname not found - ignoring
mount: /new_root: unknown filesystem type 'ext4'


It seems the kernel modules are not found, and therefor no module ext4, and therefor no mounting the ext4 root file system.



Most distributions don't delete the old kernel in case there is something wrong with the new one, so try to boot the previous kernel.



If that doesn't work, boot a live system and either install the previous kernel with matching modules, or the new one, or any kernel that works.



It's also possible that there was just something wrong with the creation of the initrd file system, that ext4 was not included for some reasons. In this case, you can boot a live system, recreate initrd with ext4 and reboot.







share|improve this answer












share|improve this answer



share|improve this answer










answered yesterday









RalfFriedl

4,8372725




4,8372725











  • Arch does remove the old kernel. OP's issue is that /boot wasn't mounted during that upgrade so the installed modules do not match the kernel.
    – jasonwryan
    yesterday










  • @jasonwryan If /boot was not mounted, then the matching kernel and initrd should be in the root file system, so it should be possible to load them from there.
    – RalfFriedl
    20 hours ago










  • Not necessarily; actual /boot may get mounted over the top or the initrd could be corrupted. The only safe approach is to chroot and fix it.
    – jasonwryan
    20 hours ago
















  • Arch does remove the old kernel. OP's issue is that /boot wasn't mounted during that upgrade so the installed modules do not match the kernel.
    – jasonwryan
    yesterday










  • @jasonwryan If /boot was not mounted, then the matching kernel and initrd should be in the root file system, so it should be possible to load them from there.
    – RalfFriedl
    20 hours ago










  • Not necessarily; actual /boot may get mounted over the top or the initrd could be corrupted. The only safe approach is to chroot and fix it.
    – jasonwryan
    20 hours ago















Arch does remove the old kernel. OP's issue is that /boot wasn't mounted during that upgrade so the installed modules do not match the kernel.
– jasonwryan
yesterday




Arch does remove the old kernel. OP's issue is that /boot wasn't mounted during that upgrade so the installed modules do not match the kernel.
– jasonwryan
yesterday












@jasonwryan If /boot was not mounted, then the matching kernel and initrd should be in the root file system, so it should be possible to load them from there.
– RalfFriedl
20 hours ago




@jasonwryan If /boot was not mounted, then the matching kernel and initrd should be in the root file system, so it should be possible to load them from there.
– RalfFriedl
20 hours ago












Not necessarily; actual /boot may get mounted over the top or the initrd could be corrupted. The only safe approach is to chroot and fix it.
– jasonwryan
20 hours ago




Not necessarily; actual /boot may get mounted over the top or the initrd could be corrupted. The only safe approach is to chroot and fix it.
– jasonwryan
20 hours ago










streethacker is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















streethacker is a new contributor. Be nice, and check out our Code of Conduct.












streethacker is a new contributor. Be nice, and check out our Code of Conduct.











streethacker is a new contributor. Be nice, and check out our Code of Conduct.













 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481857%2farchlinux-failed-to-boot-cant-access-tty-job-control-turned-off%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay