Can't exit emergency mode (I do know my root password however)












1















it all started with my HP Pavilion laptop not being able to connect to the WiFi, since it couldn't find the adapter. So when downloading the following (third party) drivers:



sudo apt remove bcmwl-kernel-source && sudo apt install git dkms
git clone -b extended https://github.com/lwfinger/rtlwifi_new.git
sudo dkms add ./rtlwifi_new
sudo dkms install rtlwifi-new/0.6


In the terminal I had to set a root password (Which I remember), which I should enter after restarting. But now I am stuck in the emergency mode, with no place to log in.. CRTL+D doesn't work and I don't know where to log in using my root password.



In the pictures you'll see the output of cat /etc/fstab and sudo blkid.



Hope one of you will be able to help me out,



Thanks for your time!



/boot
ls -al



ls -al /lib



network



remove dkms
network



modinfo



ls -al /lib/modules/4.15.0-45 generic/updates/dkms










share|improve this question

























  • Comments are not for extended discussion; this conversation has been moved to chat.

    – Mitch
    Feb 22 at 19:30
















1















it all started with my HP Pavilion laptop not being able to connect to the WiFi, since it couldn't find the adapter. So when downloading the following (third party) drivers:



sudo apt remove bcmwl-kernel-source && sudo apt install git dkms
git clone -b extended https://github.com/lwfinger/rtlwifi_new.git
sudo dkms add ./rtlwifi_new
sudo dkms install rtlwifi-new/0.6


In the terminal I had to set a root password (Which I remember), which I should enter after restarting. But now I am stuck in the emergency mode, with no place to log in.. CRTL+D doesn't work and I don't know where to log in using my root password.



In the pictures you'll see the output of cat /etc/fstab and sudo blkid.



Hope one of you will be able to help me out,



Thanks for your time!



/boot
ls -al



ls -al /lib



network



remove dkms
network



modinfo



ls -al /lib/modules/4.15.0-45 generic/updates/dkms










share|improve this question

























  • Comments are not for extended discussion; this conversation has been moved to chat.

    – Mitch
    Feb 22 at 19:30














1












1








1


1






it all started with my HP Pavilion laptop not being able to connect to the WiFi, since it couldn't find the adapter. So when downloading the following (third party) drivers:



sudo apt remove bcmwl-kernel-source && sudo apt install git dkms
git clone -b extended https://github.com/lwfinger/rtlwifi_new.git
sudo dkms add ./rtlwifi_new
sudo dkms install rtlwifi-new/0.6


In the terminal I had to set a root password (Which I remember), which I should enter after restarting. But now I am stuck in the emergency mode, with no place to log in.. CRTL+D doesn't work and I don't know where to log in using my root password.



In the pictures you'll see the output of cat /etc/fstab and sudo blkid.



Hope one of you will be able to help me out,



Thanks for your time!



/boot
ls -al



ls -al /lib



network



remove dkms
network



modinfo



ls -al /lib/modules/4.15.0-45 generic/updates/dkms










share|improve this question
















it all started with my HP Pavilion laptop not being able to connect to the WiFi, since it couldn't find the adapter. So when downloading the following (third party) drivers:



sudo apt remove bcmwl-kernel-source && sudo apt install git dkms
git clone -b extended https://github.com/lwfinger/rtlwifi_new.git
sudo dkms add ./rtlwifi_new
sudo dkms install rtlwifi-new/0.6


In the terminal I had to set a root password (Which I remember), which I should enter after restarting. But now I am stuck in the emergency mode, with no place to log in.. CRTL+D doesn't work and I don't know where to log in using my root password.



In the pictures you'll see the output of cat /etc/fstab and sudo blkid.



Hope one of you will be able to help me out,



Thanks for your time!



/boot
ls -al



ls -al /lib



network



remove dkms
network



modinfo



ls -al /lib/modules/4.15.0-45 generic/updates/dkms







boot password






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 22 at 19:19







Caughtme

















asked Feb 21 at 14:04









CaughtmeCaughtme

84




84













  • Comments are not for extended discussion; this conversation has been moved to chat.

    – Mitch
    Feb 22 at 19:30



















  • Comments are not for extended discussion; this conversation has been moved to chat.

    – Mitch
    Feb 22 at 19:30

















Comments are not for extended discussion; this conversation has been moved to chat.

– Mitch
Feb 22 at 19:30





Comments are not for extended discussion; this conversation has been moved to chat.

– Mitch
Feb 22 at 19:30










1 Answer
1






active

oldest

votes


















1














Your installation of a dkms driver whilst running kernel 4.15.0-45-generic failed, and caused the computer to no longer boot up. This can be seen by using the dkms status command. This may be because you git cloned the -b extended branch of the code.



Kernel 4.15.0-39-generic still boots, and shows that the wi-fi card IS found, and is using the iwlwifi driver.




  1. So, whilst booted to -39, lets remove the dkms driver from -45...


In terminal...



sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic # remove the dkms driver



dkms status # should show nothing, for any kernel



ls /usr/src # should not show any rtlwifi* directory




  1. At this point, reboot to kernel -45. If it doesn't boot, we'll have to rebuild the /boot/initrd.img-4.15.0-45-generic. I'll wait with this command for now... didn't need to worry about this.


  2. To install the iwlwifi_new driver, do it this way...



In terminal... in the -45 kernel...



remove the original git cloned folder

git clone https://github.com/lwfinger/rtlwifi_new.git

sudo dkms add ./rtlwifi_new
sudo dkms build rtlwifi-new/0.6
sudo dkms install rtlwifi-new/0.6

dkms status # should show installed for kernel -45

reboot


check wi-fi...



Update #1:



delete the git cloned folder



sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic



sudo rm -r /usr/src/rtlwifi-new-0.6



Start a new question with title something like "Wi-Fi card not seen on my HP Pavilion laptop". Articulate that you've tried the iwlwifi_new dkms driver and that it didn't work.






share|improve this answer


























  • @hernnema worked until ls /usr/src, here I do see the rtlwifi-new-0.6 folder When I ran sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic it did give me at the end: DKMS: uninstall completed. edit: I am not sure whether the uninstall ran correctly, I edited the question - see last picture ------------------------------ Deleting module version: 0.6 completely from the DKMS tree. ------------------------------ Done. Furthermore, dkms status shows nothing indeed

    – Caughtme
    Feb 22 at 18:13













  • @Caughtme if it's still there, delete the /usr/src/rtlwifi-new-0.6 folder. Then try and boot -45.

    – heynnema
    Feb 22 at 18:17











  • this command? rm -R /usr/src/rtlwifi-new-0.6

    – Caughtme
    Feb 22 at 18:19











  • @Caughtme sudo rm...

    – heynnema
    Feb 22 at 18:21











  • @hernnema alright done, trying to boot into -45 right now.

    – Caughtme
    Feb 22 at 18:21











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1120133%2fcant-exit-emergency-mode-i-do-know-my-root-password-however%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Your installation of a dkms driver whilst running kernel 4.15.0-45-generic failed, and caused the computer to no longer boot up. This can be seen by using the dkms status command. This may be because you git cloned the -b extended branch of the code.



Kernel 4.15.0-39-generic still boots, and shows that the wi-fi card IS found, and is using the iwlwifi driver.




  1. So, whilst booted to -39, lets remove the dkms driver from -45...


In terminal...



sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic # remove the dkms driver



dkms status # should show nothing, for any kernel



ls /usr/src # should not show any rtlwifi* directory




  1. At this point, reboot to kernel -45. If it doesn't boot, we'll have to rebuild the /boot/initrd.img-4.15.0-45-generic. I'll wait with this command for now... didn't need to worry about this.


  2. To install the iwlwifi_new driver, do it this way...



In terminal... in the -45 kernel...



remove the original git cloned folder

git clone https://github.com/lwfinger/rtlwifi_new.git

sudo dkms add ./rtlwifi_new
sudo dkms build rtlwifi-new/0.6
sudo dkms install rtlwifi-new/0.6

dkms status # should show installed for kernel -45

reboot


check wi-fi...



Update #1:



delete the git cloned folder



sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic



sudo rm -r /usr/src/rtlwifi-new-0.6



Start a new question with title something like "Wi-Fi card not seen on my HP Pavilion laptop". Articulate that you've tried the iwlwifi_new dkms driver and that it didn't work.






share|improve this answer


























  • @hernnema worked until ls /usr/src, here I do see the rtlwifi-new-0.6 folder When I ran sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic it did give me at the end: DKMS: uninstall completed. edit: I am not sure whether the uninstall ran correctly, I edited the question - see last picture ------------------------------ Deleting module version: 0.6 completely from the DKMS tree. ------------------------------ Done. Furthermore, dkms status shows nothing indeed

    – Caughtme
    Feb 22 at 18:13













  • @Caughtme if it's still there, delete the /usr/src/rtlwifi-new-0.6 folder. Then try and boot -45.

    – heynnema
    Feb 22 at 18:17











  • this command? rm -R /usr/src/rtlwifi-new-0.6

    – Caughtme
    Feb 22 at 18:19











  • @Caughtme sudo rm...

    – heynnema
    Feb 22 at 18:21











  • @hernnema alright done, trying to boot into -45 right now.

    – Caughtme
    Feb 22 at 18:21
















1














Your installation of a dkms driver whilst running kernel 4.15.0-45-generic failed, and caused the computer to no longer boot up. This can be seen by using the dkms status command. This may be because you git cloned the -b extended branch of the code.



Kernel 4.15.0-39-generic still boots, and shows that the wi-fi card IS found, and is using the iwlwifi driver.




  1. So, whilst booted to -39, lets remove the dkms driver from -45...


In terminal...



sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic # remove the dkms driver



dkms status # should show nothing, for any kernel



ls /usr/src # should not show any rtlwifi* directory




  1. At this point, reboot to kernel -45. If it doesn't boot, we'll have to rebuild the /boot/initrd.img-4.15.0-45-generic. I'll wait with this command for now... didn't need to worry about this.


  2. To install the iwlwifi_new driver, do it this way...



In terminal... in the -45 kernel...



remove the original git cloned folder

git clone https://github.com/lwfinger/rtlwifi_new.git

sudo dkms add ./rtlwifi_new
sudo dkms build rtlwifi-new/0.6
sudo dkms install rtlwifi-new/0.6

dkms status # should show installed for kernel -45

reboot


check wi-fi...



Update #1:



delete the git cloned folder



sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic



sudo rm -r /usr/src/rtlwifi-new-0.6



Start a new question with title something like "Wi-Fi card not seen on my HP Pavilion laptop". Articulate that you've tried the iwlwifi_new dkms driver and that it didn't work.






share|improve this answer


























  • @hernnema worked until ls /usr/src, here I do see the rtlwifi-new-0.6 folder When I ran sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic it did give me at the end: DKMS: uninstall completed. edit: I am not sure whether the uninstall ran correctly, I edited the question - see last picture ------------------------------ Deleting module version: 0.6 completely from the DKMS tree. ------------------------------ Done. Furthermore, dkms status shows nothing indeed

    – Caughtme
    Feb 22 at 18:13













  • @Caughtme if it's still there, delete the /usr/src/rtlwifi-new-0.6 folder. Then try and boot -45.

    – heynnema
    Feb 22 at 18:17











  • this command? rm -R /usr/src/rtlwifi-new-0.6

    – Caughtme
    Feb 22 at 18:19











  • @Caughtme sudo rm...

    – heynnema
    Feb 22 at 18:21











  • @hernnema alright done, trying to boot into -45 right now.

    – Caughtme
    Feb 22 at 18:21














1












1








1







Your installation of a dkms driver whilst running kernel 4.15.0-45-generic failed, and caused the computer to no longer boot up. This can be seen by using the dkms status command. This may be because you git cloned the -b extended branch of the code.



Kernel 4.15.0-39-generic still boots, and shows that the wi-fi card IS found, and is using the iwlwifi driver.




  1. So, whilst booted to -39, lets remove the dkms driver from -45...


In terminal...



sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic # remove the dkms driver



dkms status # should show nothing, for any kernel



ls /usr/src # should not show any rtlwifi* directory




  1. At this point, reboot to kernel -45. If it doesn't boot, we'll have to rebuild the /boot/initrd.img-4.15.0-45-generic. I'll wait with this command for now... didn't need to worry about this.


  2. To install the iwlwifi_new driver, do it this way...



In terminal... in the -45 kernel...



remove the original git cloned folder

git clone https://github.com/lwfinger/rtlwifi_new.git

sudo dkms add ./rtlwifi_new
sudo dkms build rtlwifi-new/0.6
sudo dkms install rtlwifi-new/0.6

dkms status # should show installed for kernel -45

reboot


check wi-fi...



Update #1:



delete the git cloned folder



sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic



sudo rm -r /usr/src/rtlwifi-new-0.6



Start a new question with title something like "Wi-Fi card not seen on my HP Pavilion laptop". Articulate that you've tried the iwlwifi_new dkms driver and that it didn't work.






share|improve this answer















Your installation of a dkms driver whilst running kernel 4.15.0-45-generic failed, and caused the computer to no longer boot up. This can be seen by using the dkms status command. This may be because you git cloned the -b extended branch of the code.



Kernel 4.15.0-39-generic still boots, and shows that the wi-fi card IS found, and is using the iwlwifi driver.




  1. So, whilst booted to -39, lets remove the dkms driver from -45...


In terminal...



sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic # remove the dkms driver



dkms status # should show nothing, for any kernel



ls /usr/src # should not show any rtlwifi* directory




  1. At this point, reboot to kernel -45. If it doesn't boot, we'll have to rebuild the /boot/initrd.img-4.15.0-45-generic. I'll wait with this command for now... didn't need to worry about this.


  2. To install the iwlwifi_new driver, do it this way...



In terminal... in the -45 kernel...



remove the original git cloned folder

git clone https://github.com/lwfinger/rtlwifi_new.git

sudo dkms add ./rtlwifi_new
sudo dkms build rtlwifi-new/0.6
sudo dkms install rtlwifi-new/0.6

dkms status # should show installed for kernel -45

reboot


check wi-fi...



Update #1:



delete the git cloned folder



sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic



sudo rm -r /usr/src/rtlwifi-new-0.6



Start a new question with title something like "Wi-Fi card not seen on my HP Pavilion laptop". Articulate that you've tried the iwlwifi_new dkms driver and that it didn't work.







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 22 at 19:41

























answered Feb 22 at 17:53









heynnemaheynnema

20.7k22258




20.7k22258













  • @hernnema worked until ls /usr/src, here I do see the rtlwifi-new-0.6 folder When I ran sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic it did give me at the end: DKMS: uninstall completed. edit: I am not sure whether the uninstall ran correctly, I edited the question - see last picture ------------------------------ Deleting module version: 0.6 completely from the DKMS tree. ------------------------------ Done. Furthermore, dkms status shows nothing indeed

    – Caughtme
    Feb 22 at 18:13













  • @Caughtme if it's still there, delete the /usr/src/rtlwifi-new-0.6 folder. Then try and boot -45.

    – heynnema
    Feb 22 at 18:17











  • this command? rm -R /usr/src/rtlwifi-new-0.6

    – Caughtme
    Feb 22 at 18:19











  • @Caughtme sudo rm...

    – heynnema
    Feb 22 at 18:21











  • @hernnema alright done, trying to boot into -45 right now.

    – Caughtme
    Feb 22 at 18:21



















  • @hernnema worked until ls /usr/src, here I do see the rtlwifi-new-0.6 folder When I ran sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic it did give me at the end: DKMS: uninstall completed. edit: I am not sure whether the uninstall ran correctly, I edited the question - see last picture ------------------------------ Deleting module version: 0.6 completely from the DKMS tree. ------------------------------ Done. Furthermore, dkms status shows nothing indeed

    – Caughtme
    Feb 22 at 18:13













  • @Caughtme if it's still there, delete the /usr/src/rtlwifi-new-0.6 folder. Then try and boot -45.

    – heynnema
    Feb 22 at 18:17











  • this command? rm -R /usr/src/rtlwifi-new-0.6

    – Caughtme
    Feb 22 at 18:19











  • @Caughtme sudo rm...

    – heynnema
    Feb 22 at 18:21











  • @hernnema alright done, trying to boot into -45 right now.

    – Caughtme
    Feb 22 at 18:21

















@hernnema worked until ls /usr/src, here I do see the rtlwifi-new-0.6 folder When I ran sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic it did give me at the end: DKMS: uninstall completed. edit: I am not sure whether the uninstall ran correctly, I edited the question - see last picture ------------------------------ Deleting module version: 0.6 completely from the DKMS tree. ------------------------------ Done. Furthermore, dkms status shows nothing indeed

– Caughtme
Feb 22 at 18:13







@hernnema worked until ls /usr/src, here I do see the rtlwifi-new-0.6 folder When I ran sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic it did give me at the end: DKMS: uninstall completed. edit: I am not sure whether the uninstall ran correctly, I edited the question - see last picture ------------------------------ Deleting module version: 0.6 completely from the DKMS tree. ------------------------------ Done. Furthermore, dkms status shows nothing indeed

– Caughtme
Feb 22 at 18:13















@Caughtme if it's still there, delete the /usr/src/rtlwifi-new-0.6 folder. Then try and boot -45.

– heynnema
Feb 22 at 18:17





@Caughtme if it's still there, delete the /usr/src/rtlwifi-new-0.6 folder. Then try and boot -45.

– heynnema
Feb 22 at 18:17













this command? rm -R /usr/src/rtlwifi-new-0.6

– Caughtme
Feb 22 at 18:19





this command? rm -R /usr/src/rtlwifi-new-0.6

– Caughtme
Feb 22 at 18:19













@Caughtme sudo rm...

– heynnema
Feb 22 at 18:21





@Caughtme sudo rm...

– heynnema
Feb 22 at 18:21













@hernnema alright done, trying to boot into -45 right now.

– Caughtme
Feb 22 at 18:21





@hernnema alright done, trying to boot into -45 right now.

– Caughtme
Feb 22 at 18:21


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1120133%2fcant-exit-emergency-mode-i-do-know-my-root-password-however%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

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

Eduardo VII do Reino Unido