Stuck in emergency mode and nothing works?
Whenever I try to boot my Linux, it goes into emergency mode, saying
You are in emergency mode.
After logging in, type "journalctl -xb" to view system logs,
"systemctl reboot" to reboot, "systemctl default"
or ^D to try again to boot into default mode".
I have tried it all: checking the logs using the journalctl -xb command, ^d to try again to boot into default mode. I have tried to fsck /dev/sda6 (which is my file system for Linux, /dev/sda7 is the swap). When doing some research about this, I saw some talking about /etc/fstab, but I have not changed anything in it, so I got no idea what I can do...
Can anybody please help? I am new to Linux, and I do not know what information you need to be able to help - Just ask if I need to provide some extra info, please.
Here is what my screen looks like:

The output of sudo blkid and cat ../etc/fstab:
ubuntu@ubuntu:~$ sudo blkid
/dev/sda1: LABEL="ESP" UUID="4EA6-03B9" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="0b902964-aa52-4b36-afda-348bb30a3d82"
/dev/sda3: LABEL="Acer" UUID="C85AA81A5AA806F2" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="45c8bf5c-7fd1-4102-af78-08c7a5c6d5cb"
/dev/sda4: UUID="003CAE413CAE3218" TYPE="ntfs" PARTUUID="45c8223e-e999-43c9-a0fc-7b856a32b5b9"
/dev/sda6: UUID="185abbc0-48d9-4b81-833b-bda921c6e30b" TYPE="ext4" PARTUUID="2cef3951-f4cb-4b3e-b41f-de04db748b60"
/dev/sdb1: LABEL="DATA" UUID="0C08B30A08B2F1B6" TYPE="ntfs" PARTUUID="6c7839ee-01"
/dev/sdc1: LABEL="UBUNTU 16_0" UUID="70BF-D6DB" TYPE="vfat" PARTUUID="3d368215-01"
/dev/loop0: TYPE="squashfs"
/dev/sda2: PARTLABEL="Microsoft reserved partition" PARTUUID="da79d518-04ea-46bb-a01f-58ff38403263"
/dev/sda5: PARTUUID="59dc9a87-37cd-4672-932a-65b7cc7e2f81"
/dev/sda7: UUID="cb5acedb-a691-408f-a35a-2dc6da30e6d1" TYPE="swap" PARTUUID="aa3455c2-5485-4799-be33-6df21430da47"
ubuntu@ubuntu:~$ cat /media/ubuntu/185abbc0-48d9-4b81-833b-bda921c6e30b/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
#Entry for /dev/sda6 :
UUID=185abbc0-48d9-4b81-833b-bda921c6e30b / ext4 errors=remount-ro 0 1
#Entry for /dev/sda3 :
UUID=C85AA81A5AA806F2 /media/Acer ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sdb1 :
UUID=0C08B30A08B2F1B6 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sda4 :
UUID=4ECAA8ECCAA8D18F /media/Recovery ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sda7 :
UUID=cb5acedb-a691-408f-a35a-2dc6da30e6d1 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
ubuntu@ubuntu:~$
Note that I can access all files and browse through the drive as you can see in this picture(I can even read/write): https://pictr.com/images/2017/09/30/72858a065b0740ab6a2c4b49f87f85f6.jpg
boot
add a comment |
Whenever I try to boot my Linux, it goes into emergency mode, saying
You are in emergency mode.
After logging in, type "journalctl -xb" to view system logs,
"systemctl reboot" to reboot, "systemctl default"
or ^D to try again to boot into default mode".
I have tried it all: checking the logs using the journalctl -xb command, ^d to try again to boot into default mode. I have tried to fsck /dev/sda6 (which is my file system for Linux, /dev/sda7 is the swap). When doing some research about this, I saw some talking about /etc/fstab, but I have not changed anything in it, so I got no idea what I can do...
Can anybody please help? I am new to Linux, and I do not know what information you need to be able to help - Just ask if I need to provide some extra info, please.
Here is what my screen looks like:

The output of sudo blkid and cat ../etc/fstab:
ubuntu@ubuntu:~$ sudo blkid
/dev/sda1: LABEL="ESP" UUID="4EA6-03B9" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="0b902964-aa52-4b36-afda-348bb30a3d82"
/dev/sda3: LABEL="Acer" UUID="C85AA81A5AA806F2" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="45c8bf5c-7fd1-4102-af78-08c7a5c6d5cb"
/dev/sda4: UUID="003CAE413CAE3218" TYPE="ntfs" PARTUUID="45c8223e-e999-43c9-a0fc-7b856a32b5b9"
/dev/sda6: UUID="185abbc0-48d9-4b81-833b-bda921c6e30b" TYPE="ext4" PARTUUID="2cef3951-f4cb-4b3e-b41f-de04db748b60"
/dev/sdb1: LABEL="DATA" UUID="0C08B30A08B2F1B6" TYPE="ntfs" PARTUUID="6c7839ee-01"
/dev/sdc1: LABEL="UBUNTU 16_0" UUID="70BF-D6DB" TYPE="vfat" PARTUUID="3d368215-01"
/dev/loop0: TYPE="squashfs"
/dev/sda2: PARTLABEL="Microsoft reserved partition" PARTUUID="da79d518-04ea-46bb-a01f-58ff38403263"
/dev/sda5: PARTUUID="59dc9a87-37cd-4672-932a-65b7cc7e2f81"
/dev/sda7: UUID="cb5acedb-a691-408f-a35a-2dc6da30e6d1" TYPE="swap" PARTUUID="aa3455c2-5485-4799-be33-6df21430da47"
ubuntu@ubuntu:~$ cat /media/ubuntu/185abbc0-48d9-4b81-833b-bda921c6e30b/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
#Entry for /dev/sda6 :
UUID=185abbc0-48d9-4b81-833b-bda921c6e30b / ext4 errors=remount-ro 0 1
#Entry for /dev/sda3 :
UUID=C85AA81A5AA806F2 /media/Acer ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sdb1 :
UUID=0C08B30A08B2F1B6 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sda4 :
UUID=4ECAA8ECCAA8D18F /media/Recovery ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sda7 :
UUID=cb5acedb-a691-408f-a35a-2dc6da30e6d1 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
ubuntu@ubuntu:~$
Note that I can access all files and browse through the drive as you can see in this picture(I can even read/write): https://pictr.com/images/2017/09/30/72858a065b0740ab6a2c4b49f87f85f6.jpg
boot
You can ask about Kali at Unix & Linux. AskUbuntu is for Ubuntu and official flavors only.
– user692175
Sep 30 '17 at 13:41
Kali Linux is NOT a supported Ubuntu version. This is AskUbuntu.
– waltinator
Sep 30 '17 at 13:41
Uh my bad.. I do not even have Kali. I just screwed up, please forget that fact
– sdsad asdasd
Sep 30 '17 at 13:43
Edit your question to include the output ofsudo blkidandcat /etc/fstaband I'll take a look. Ping me at@heynnemawhen you have this info.
– heynnema
Sep 30 '17 at 16:48
@heynnema neat! I have updated my question with the output from those two commands :)
– sdsad asdasd
Sep 30 '17 at 17:04
add a comment |
Whenever I try to boot my Linux, it goes into emergency mode, saying
You are in emergency mode.
After logging in, type "journalctl -xb" to view system logs,
"systemctl reboot" to reboot, "systemctl default"
or ^D to try again to boot into default mode".
I have tried it all: checking the logs using the journalctl -xb command, ^d to try again to boot into default mode. I have tried to fsck /dev/sda6 (which is my file system for Linux, /dev/sda7 is the swap). When doing some research about this, I saw some talking about /etc/fstab, but I have not changed anything in it, so I got no idea what I can do...
Can anybody please help? I am new to Linux, and I do not know what information you need to be able to help - Just ask if I need to provide some extra info, please.
Here is what my screen looks like:

The output of sudo blkid and cat ../etc/fstab:
ubuntu@ubuntu:~$ sudo blkid
/dev/sda1: LABEL="ESP" UUID="4EA6-03B9" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="0b902964-aa52-4b36-afda-348bb30a3d82"
/dev/sda3: LABEL="Acer" UUID="C85AA81A5AA806F2" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="45c8bf5c-7fd1-4102-af78-08c7a5c6d5cb"
/dev/sda4: UUID="003CAE413CAE3218" TYPE="ntfs" PARTUUID="45c8223e-e999-43c9-a0fc-7b856a32b5b9"
/dev/sda6: UUID="185abbc0-48d9-4b81-833b-bda921c6e30b" TYPE="ext4" PARTUUID="2cef3951-f4cb-4b3e-b41f-de04db748b60"
/dev/sdb1: LABEL="DATA" UUID="0C08B30A08B2F1B6" TYPE="ntfs" PARTUUID="6c7839ee-01"
/dev/sdc1: LABEL="UBUNTU 16_0" UUID="70BF-D6DB" TYPE="vfat" PARTUUID="3d368215-01"
/dev/loop0: TYPE="squashfs"
/dev/sda2: PARTLABEL="Microsoft reserved partition" PARTUUID="da79d518-04ea-46bb-a01f-58ff38403263"
/dev/sda5: PARTUUID="59dc9a87-37cd-4672-932a-65b7cc7e2f81"
/dev/sda7: UUID="cb5acedb-a691-408f-a35a-2dc6da30e6d1" TYPE="swap" PARTUUID="aa3455c2-5485-4799-be33-6df21430da47"
ubuntu@ubuntu:~$ cat /media/ubuntu/185abbc0-48d9-4b81-833b-bda921c6e30b/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
#Entry for /dev/sda6 :
UUID=185abbc0-48d9-4b81-833b-bda921c6e30b / ext4 errors=remount-ro 0 1
#Entry for /dev/sda3 :
UUID=C85AA81A5AA806F2 /media/Acer ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sdb1 :
UUID=0C08B30A08B2F1B6 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sda4 :
UUID=4ECAA8ECCAA8D18F /media/Recovery ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sda7 :
UUID=cb5acedb-a691-408f-a35a-2dc6da30e6d1 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
ubuntu@ubuntu:~$
Note that I can access all files and browse through the drive as you can see in this picture(I can even read/write): https://pictr.com/images/2017/09/30/72858a065b0740ab6a2c4b49f87f85f6.jpg
boot
Whenever I try to boot my Linux, it goes into emergency mode, saying
You are in emergency mode.
After logging in, type "journalctl -xb" to view system logs,
"systemctl reboot" to reboot, "systemctl default"
or ^D to try again to boot into default mode".
I have tried it all: checking the logs using the journalctl -xb command, ^d to try again to boot into default mode. I have tried to fsck /dev/sda6 (which is my file system for Linux, /dev/sda7 is the swap). When doing some research about this, I saw some talking about /etc/fstab, but I have not changed anything in it, so I got no idea what I can do...
Can anybody please help? I am new to Linux, and I do not know what information you need to be able to help - Just ask if I need to provide some extra info, please.
Here is what my screen looks like:

The output of sudo blkid and cat ../etc/fstab:
ubuntu@ubuntu:~$ sudo blkid
/dev/sda1: LABEL="ESP" UUID="4EA6-03B9" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="0b902964-aa52-4b36-afda-348bb30a3d82"
/dev/sda3: LABEL="Acer" UUID="C85AA81A5AA806F2" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="45c8bf5c-7fd1-4102-af78-08c7a5c6d5cb"
/dev/sda4: UUID="003CAE413CAE3218" TYPE="ntfs" PARTUUID="45c8223e-e999-43c9-a0fc-7b856a32b5b9"
/dev/sda6: UUID="185abbc0-48d9-4b81-833b-bda921c6e30b" TYPE="ext4" PARTUUID="2cef3951-f4cb-4b3e-b41f-de04db748b60"
/dev/sdb1: LABEL="DATA" UUID="0C08B30A08B2F1B6" TYPE="ntfs" PARTUUID="6c7839ee-01"
/dev/sdc1: LABEL="UBUNTU 16_0" UUID="70BF-D6DB" TYPE="vfat" PARTUUID="3d368215-01"
/dev/loop0: TYPE="squashfs"
/dev/sda2: PARTLABEL="Microsoft reserved partition" PARTUUID="da79d518-04ea-46bb-a01f-58ff38403263"
/dev/sda5: PARTUUID="59dc9a87-37cd-4672-932a-65b7cc7e2f81"
/dev/sda7: UUID="cb5acedb-a691-408f-a35a-2dc6da30e6d1" TYPE="swap" PARTUUID="aa3455c2-5485-4799-be33-6df21430da47"
ubuntu@ubuntu:~$ cat /media/ubuntu/185abbc0-48d9-4b81-833b-bda921c6e30b/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
#Entry for /dev/sda6 :
UUID=185abbc0-48d9-4b81-833b-bda921c6e30b / ext4 errors=remount-ro 0 1
#Entry for /dev/sda3 :
UUID=C85AA81A5AA806F2 /media/Acer ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sdb1 :
UUID=0C08B30A08B2F1B6 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sda4 :
UUID=4ECAA8ECCAA8D18F /media/Recovery ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sda7 :
UUID=cb5acedb-a691-408f-a35a-2dc6da30e6d1 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
ubuntu@ubuntu:~$
Note that I can access all files and browse through the drive as you can see in this picture(I can even read/write): https://pictr.com/images/2017/09/30/72858a065b0740ab6a2c4b49f87f85f6.jpg
boot
boot
edited Oct 2 '17 at 3:11
karel
60k13129153
60k13129153
asked Sep 30 '17 at 13:37
sdsad asdasdsdsad asdasd
28114
28114
You can ask about Kali at Unix & Linux. AskUbuntu is for Ubuntu and official flavors only.
– user692175
Sep 30 '17 at 13:41
Kali Linux is NOT a supported Ubuntu version. This is AskUbuntu.
– waltinator
Sep 30 '17 at 13:41
Uh my bad.. I do not even have Kali. I just screwed up, please forget that fact
– sdsad asdasd
Sep 30 '17 at 13:43
Edit your question to include the output ofsudo blkidandcat /etc/fstaband I'll take a look. Ping me at@heynnemawhen you have this info.
– heynnema
Sep 30 '17 at 16:48
@heynnema neat! I have updated my question with the output from those two commands :)
– sdsad asdasd
Sep 30 '17 at 17:04
add a comment |
You can ask about Kali at Unix & Linux. AskUbuntu is for Ubuntu and official flavors only.
– user692175
Sep 30 '17 at 13:41
Kali Linux is NOT a supported Ubuntu version. This is AskUbuntu.
– waltinator
Sep 30 '17 at 13:41
Uh my bad.. I do not even have Kali. I just screwed up, please forget that fact
– sdsad asdasd
Sep 30 '17 at 13:43
Edit your question to include the output ofsudo blkidandcat /etc/fstaband I'll take a look. Ping me at@heynnemawhen you have this info.
– heynnema
Sep 30 '17 at 16:48
@heynnema neat! I have updated my question with the output from those two commands :)
– sdsad asdasd
Sep 30 '17 at 17:04
You can ask about Kali at Unix & Linux. AskUbuntu is for Ubuntu and official flavors only.
– user692175
Sep 30 '17 at 13:41
You can ask about Kali at Unix & Linux. AskUbuntu is for Ubuntu and official flavors only.
– user692175
Sep 30 '17 at 13:41
Kali Linux is NOT a supported Ubuntu version. This is AskUbuntu.
– waltinator
Sep 30 '17 at 13:41
Kali Linux is NOT a supported Ubuntu version. This is AskUbuntu.
– waltinator
Sep 30 '17 at 13:41
Uh my bad.. I do not even have Kali. I just screwed up, please forget that fact
– sdsad asdasd
Sep 30 '17 at 13:43
Uh my bad.. I do not even have Kali. I just screwed up, please forget that fact
– sdsad asdasd
Sep 30 '17 at 13:43
Edit your question to include the output of
sudo blkid and cat /etc/fstab and I'll take a look. Ping me at @heynnema when you have this info.– heynnema
Sep 30 '17 at 16:48
Edit your question to include the output of
sudo blkid and cat /etc/fstab and I'll take a look. Ping me at @heynnema when you have this info.– heynnema
Sep 30 '17 at 16:48
@heynnema neat! I have updated my question with the output from those two commands :)
– sdsad asdasd
Sep 30 '17 at 17:04
@heynnema neat! I have updated my question with the output from those two commands :)
– sdsad asdasd
Sep 30 '17 at 17:04
add a comment |
1 Answer
1
active
oldest
votes
Your /etc/fstab is wrong.
First, you don't need to mount Acer-specific or recovery partitions, or the CD-ROM.
So, I'd comment out these lines...
sudo -H gedit /etc/fstab
#Entry for /dev/sda3 :
#UUID=C85AA81A5AA806F2 /media/Acer ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note that I commented this out and also changed the "00" to "0 0"
#Entry for /dev/sda4 :
#UUID=4ECAA8ECCAA8D18F /media/Recovery ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note that I commented this out and also changed the "00" to "0 0"
#/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
and change:
#Entry for /dev/sdb1 :
UUID=0C08B30A08B2F1B6 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 00
to this:
#Entry for /dev/sdb1 :
UUID=0C08B30A08B2F1B6 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note the change from "00" to "0 0"
that will fix your problem.
However, if you must keep sda4, then the correct line would be...
#Entry for /dev/sda4 :
UUID=003CAE413CAE3218 /media/Recovery ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note the new UUID, and the "0 0" at the end of the line.
OHHH!!! IT WORKED!! You just saved my life! Your time is appreciated!
– sdsad asdasd
Sep 30 '17 at 19:36
@heynnema In my case, I get stuck in emergency mode and I do realise that I mounted my recovery and windows drive as well when I shouldn't have. However, I am not able to edit the file using gksudo or vim or emacs. How am I supposed to do it? Please Help.
– Quark
Dec 23 '17 at 13:25
@heynnema I figured it out, nano works, but the problem still continues to exist even after commenting the lines and now on ntfsfix it says that the Linux Swap partition is corrupt. Please Help.
– Quark
Dec 23 '17 at 13:51
@Quark please start a new question.
– heynnema
Dec 23 '17 at 17:35
Awesome! It worked for me too! I was auto-mounting a USB thumb drive that had actually gone bad, causing my Raspberry Pi not to boot. Seeing your answer triggered me to start commenting stuff out in my/etc/fstabfile, and when I commented out the USB thumb drive mounting part, boom! It worked! I replaced the thumb drive, updated myfstabfile and now I'm good to go again. Thanks!
– Gabriel Staples
Sep 24 '18 at 15:38
|
show 2 more comments
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f960790%2fstuck-in-emergency-mode-and-nothing-works%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
Your /etc/fstab is wrong.
First, you don't need to mount Acer-specific or recovery partitions, or the CD-ROM.
So, I'd comment out these lines...
sudo -H gedit /etc/fstab
#Entry for /dev/sda3 :
#UUID=C85AA81A5AA806F2 /media/Acer ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note that I commented this out and also changed the "00" to "0 0"
#Entry for /dev/sda4 :
#UUID=4ECAA8ECCAA8D18F /media/Recovery ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note that I commented this out and also changed the "00" to "0 0"
#/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
and change:
#Entry for /dev/sdb1 :
UUID=0C08B30A08B2F1B6 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 00
to this:
#Entry for /dev/sdb1 :
UUID=0C08B30A08B2F1B6 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note the change from "00" to "0 0"
that will fix your problem.
However, if you must keep sda4, then the correct line would be...
#Entry for /dev/sda4 :
UUID=003CAE413CAE3218 /media/Recovery ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note the new UUID, and the "0 0" at the end of the line.
OHHH!!! IT WORKED!! You just saved my life! Your time is appreciated!
– sdsad asdasd
Sep 30 '17 at 19:36
@heynnema In my case, I get stuck in emergency mode and I do realise that I mounted my recovery and windows drive as well when I shouldn't have. However, I am not able to edit the file using gksudo or vim or emacs. How am I supposed to do it? Please Help.
– Quark
Dec 23 '17 at 13:25
@heynnema I figured it out, nano works, but the problem still continues to exist even after commenting the lines and now on ntfsfix it says that the Linux Swap partition is corrupt. Please Help.
– Quark
Dec 23 '17 at 13:51
@Quark please start a new question.
– heynnema
Dec 23 '17 at 17:35
Awesome! It worked for me too! I was auto-mounting a USB thumb drive that had actually gone bad, causing my Raspberry Pi not to boot. Seeing your answer triggered me to start commenting stuff out in my/etc/fstabfile, and when I commented out the USB thumb drive mounting part, boom! It worked! I replaced the thumb drive, updated myfstabfile and now I'm good to go again. Thanks!
– Gabriel Staples
Sep 24 '18 at 15:38
|
show 2 more comments
Your /etc/fstab is wrong.
First, you don't need to mount Acer-specific or recovery partitions, or the CD-ROM.
So, I'd comment out these lines...
sudo -H gedit /etc/fstab
#Entry for /dev/sda3 :
#UUID=C85AA81A5AA806F2 /media/Acer ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note that I commented this out and also changed the "00" to "0 0"
#Entry for /dev/sda4 :
#UUID=4ECAA8ECCAA8D18F /media/Recovery ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note that I commented this out and also changed the "00" to "0 0"
#/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
and change:
#Entry for /dev/sdb1 :
UUID=0C08B30A08B2F1B6 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 00
to this:
#Entry for /dev/sdb1 :
UUID=0C08B30A08B2F1B6 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note the change from "00" to "0 0"
that will fix your problem.
However, if you must keep sda4, then the correct line would be...
#Entry for /dev/sda4 :
UUID=003CAE413CAE3218 /media/Recovery ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note the new UUID, and the "0 0" at the end of the line.
OHHH!!! IT WORKED!! You just saved my life! Your time is appreciated!
– sdsad asdasd
Sep 30 '17 at 19:36
@heynnema In my case, I get stuck in emergency mode and I do realise that I mounted my recovery and windows drive as well when I shouldn't have. However, I am not able to edit the file using gksudo or vim or emacs. How am I supposed to do it? Please Help.
– Quark
Dec 23 '17 at 13:25
@heynnema I figured it out, nano works, but the problem still continues to exist even after commenting the lines and now on ntfsfix it says that the Linux Swap partition is corrupt. Please Help.
– Quark
Dec 23 '17 at 13:51
@Quark please start a new question.
– heynnema
Dec 23 '17 at 17:35
Awesome! It worked for me too! I was auto-mounting a USB thumb drive that had actually gone bad, causing my Raspberry Pi not to boot. Seeing your answer triggered me to start commenting stuff out in my/etc/fstabfile, and when I commented out the USB thumb drive mounting part, boom! It worked! I replaced the thumb drive, updated myfstabfile and now I'm good to go again. Thanks!
– Gabriel Staples
Sep 24 '18 at 15:38
|
show 2 more comments
Your /etc/fstab is wrong.
First, you don't need to mount Acer-specific or recovery partitions, or the CD-ROM.
So, I'd comment out these lines...
sudo -H gedit /etc/fstab
#Entry for /dev/sda3 :
#UUID=C85AA81A5AA806F2 /media/Acer ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note that I commented this out and also changed the "00" to "0 0"
#Entry for /dev/sda4 :
#UUID=4ECAA8ECCAA8D18F /media/Recovery ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note that I commented this out and also changed the "00" to "0 0"
#/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
and change:
#Entry for /dev/sdb1 :
UUID=0C08B30A08B2F1B6 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 00
to this:
#Entry for /dev/sdb1 :
UUID=0C08B30A08B2F1B6 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note the change from "00" to "0 0"
that will fix your problem.
However, if you must keep sda4, then the correct line would be...
#Entry for /dev/sda4 :
UUID=003CAE413CAE3218 /media/Recovery ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note the new UUID, and the "0 0" at the end of the line.
Your /etc/fstab is wrong.
First, you don't need to mount Acer-specific or recovery partitions, or the CD-ROM.
So, I'd comment out these lines...
sudo -H gedit /etc/fstab
#Entry for /dev/sda3 :
#UUID=C85AA81A5AA806F2 /media/Acer ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note that I commented this out and also changed the "00" to "0 0"
#Entry for /dev/sda4 :
#UUID=4ECAA8ECCAA8D18F /media/Recovery ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note that I commented this out and also changed the "00" to "0 0"
#/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
and change:
#Entry for /dev/sdb1 :
UUID=0C08B30A08B2F1B6 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 00
to this:
#Entry for /dev/sdb1 :
UUID=0C08B30A08B2F1B6 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note the change from "00" to "0 0"
that will fix your problem.
However, if you must keep sda4, then the correct line would be...
#Entry for /dev/sda4 :
UUID=003CAE413CAE3218 /media/Recovery ntfs-3g defaults,locale=en_US.UTF-8 0 0
# note the new UUID, and the "0 0" at the end of the line.
edited 2 days ago
answered Sep 30 '17 at 17:24
heynnemaheynnema
20.2k22258
20.2k22258
OHHH!!! IT WORKED!! You just saved my life! Your time is appreciated!
– sdsad asdasd
Sep 30 '17 at 19:36
@heynnema In my case, I get stuck in emergency mode and I do realise that I mounted my recovery and windows drive as well when I shouldn't have. However, I am not able to edit the file using gksudo or vim or emacs. How am I supposed to do it? Please Help.
– Quark
Dec 23 '17 at 13:25
@heynnema I figured it out, nano works, but the problem still continues to exist even after commenting the lines and now on ntfsfix it says that the Linux Swap partition is corrupt. Please Help.
– Quark
Dec 23 '17 at 13:51
@Quark please start a new question.
– heynnema
Dec 23 '17 at 17:35
Awesome! It worked for me too! I was auto-mounting a USB thumb drive that had actually gone bad, causing my Raspberry Pi not to boot. Seeing your answer triggered me to start commenting stuff out in my/etc/fstabfile, and when I commented out the USB thumb drive mounting part, boom! It worked! I replaced the thumb drive, updated myfstabfile and now I'm good to go again. Thanks!
– Gabriel Staples
Sep 24 '18 at 15:38
|
show 2 more comments
OHHH!!! IT WORKED!! You just saved my life! Your time is appreciated!
– sdsad asdasd
Sep 30 '17 at 19:36
@heynnema In my case, I get stuck in emergency mode and I do realise that I mounted my recovery and windows drive as well when I shouldn't have. However, I am not able to edit the file using gksudo or vim or emacs. How am I supposed to do it? Please Help.
– Quark
Dec 23 '17 at 13:25
@heynnema I figured it out, nano works, but the problem still continues to exist even after commenting the lines and now on ntfsfix it says that the Linux Swap partition is corrupt. Please Help.
– Quark
Dec 23 '17 at 13:51
@Quark please start a new question.
– heynnema
Dec 23 '17 at 17:35
Awesome! It worked for me too! I was auto-mounting a USB thumb drive that had actually gone bad, causing my Raspberry Pi not to boot. Seeing your answer triggered me to start commenting stuff out in my/etc/fstabfile, and when I commented out the USB thumb drive mounting part, boom! It worked! I replaced the thumb drive, updated myfstabfile and now I'm good to go again. Thanks!
– Gabriel Staples
Sep 24 '18 at 15:38
OHHH!!! IT WORKED!! You just saved my life! Your time is appreciated!
– sdsad asdasd
Sep 30 '17 at 19:36
OHHH!!! IT WORKED!! You just saved my life! Your time is appreciated!
– sdsad asdasd
Sep 30 '17 at 19:36
@heynnema In my case, I get stuck in emergency mode and I do realise that I mounted my recovery and windows drive as well when I shouldn't have. However, I am not able to edit the file using gksudo or vim or emacs. How am I supposed to do it? Please Help.
– Quark
Dec 23 '17 at 13:25
@heynnema In my case, I get stuck in emergency mode and I do realise that I mounted my recovery and windows drive as well when I shouldn't have. However, I am not able to edit the file using gksudo or vim or emacs. How am I supposed to do it? Please Help.
– Quark
Dec 23 '17 at 13:25
@heynnema I figured it out, nano works, but the problem still continues to exist even after commenting the lines and now on ntfsfix it says that the Linux Swap partition is corrupt. Please Help.
– Quark
Dec 23 '17 at 13:51
@heynnema I figured it out, nano works, but the problem still continues to exist even after commenting the lines and now on ntfsfix it says that the Linux Swap partition is corrupt. Please Help.
– Quark
Dec 23 '17 at 13:51
@Quark please start a new question.
– heynnema
Dec 23 '17 at 17:35
@Quark please start a new question.
– heynnema
Dec 23 '17 at 17:35
Awesome! It worked for me too! I was auto-mounting a USB thumb drive that had actually gone bad, causing my Raspberry Pi not to boot. Seeing your answer triggered me to start commenting stuff out in my
/etc/fstab file, and when I commented out the USB thumb drive mounting part, boom! It worked! I replaced the thumb drive, updated my fstab file and now I'm good to go again. Thanks!– Gabriel Staples
Sep 24 '18 at 15:38
Awesome! It worked for me too! I was auto-mounting a USB thumb drive that had actually gone bad, causing my Raspberry Pi not to boot. Seeing your answer triggered me to start commenting stuff out in my
/etc/fstab file, and when I commented out the USB thumb drive mounting part, boom! It worked! I replaced the thumb drive, updated my fstab file and now I'm good to go again. Thanks!– Gabriel Staples
Sep 24 '18 at 15:38
|
show 2 more comments
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f960790%2fstuck-in-emergency-mode-and-nothing-works%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
You can ask about Kali at Unix & Linux. AskUbuntu is for Ubuntu and official flavors only.
– user692175
Sep 30 '17 at 13:41
Kali Linux is NOT a supported Ubuntu version. This is AskUbuntu.
– waltinator
Sep 30 '17 at 13:41
Uh my bad.. I do not even have Kali. I just screwed up, please forget that fact
– sdsad asdasd
Sep 30 '17 at 13:43
Edit your question to include the output of
sudo blkidandcat /etc/fstaband I'll take a look. Ping me at@heynnemawhen you have this info.– heynnema
Sep 30 '17 at 16:48
@heynnema neat! I have updated my question with the output from those two commands :)
– sdsad asdasd
Sep 30 '17 at 17:04