Unmount drive from emergency mode The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)My new hard drive won't automount on bootThe disk drive for /media/SDbackup is not ready yet or not presentHard drive mounted at / , duplicate mounted hard drive after using MountManagermessed up with mount and naming a partition - delete a folder in file systemHow do I auto mount my partition?Need help fixing hard drive mountingautomount thumb drive own by rootExternal disk doesn't mount during bootError mounting system-managed device /dev/sdd1Automount a logical volume on an external disk drive LVM partitioned
When did F become S in typeography, and why?
How is simplicity better than precision and clarity in prose?
Python - Fishing Simulator
How do you keep chess fun when your opponent constantly beats you?
does high air pressure throw off wheel balance?
How long does the line of fire that you can create as an action using the Investiture of Flame spell last?
Relations between two reciprocal partial derivatives?
Who or what is the being for whom Being is a question for Heidegger?
Why is the object placed in the middle of the sentence here?
How does ice melt when immersed in water?
Wall plug outlet change
Single author papers against my advisor's will?
Why did all the guest students take carriages to the Yule Ball?
Why does the Event Horizon Telescope (EHT) not include telescopes from Africa, Asia or Australia?
Didn't get enough time to take a Coding Test - what to do now?
Are my PIs rude or am I just being too sensitive?
How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?
First use of “packing” as in carrying a gun
Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?
Finding the path in a graph from A to B then back to A with a minimum of shared edges
Cooking pasta in a water boiler
Would an alien lifeform be able to achieve space travel if lacking in vision?
What was the last x86 CPU that did not have the x87 floating-point unit built in?
Semisimplicity of the category of coherent sheaves?
Unmount drive from emergency mode
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)My new hard drive won't automount on bootThe disk drive for /media/SDbackup is not ready yet or not presentHard drive mounted at / , duplicate mounted hard drive after using MountManagermessed up with mount and naming a partition - delete a folder in file systemHow do I auto mount my partition?Need help fixing hard drive mountingautomount thumb drive own by rootExternal disk doesn't mount during bootError mounting system-managed device /dev/sdd1Automount a logical volume on an external disk drive LVM partitioned
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am running Ubuntu 18.10. I tried reformatting my secondary HDD (Ubuntu is on an SSD) to ext4 and changed the /etc/fstab file to automount the drive on startup.
I must have done something wrong because now I can only boot into emergency mode.
By my logic the problem would be solved If I just unmounted the HDD and edited the fstab file of which I made a backup a while ago.
The problem is that I have no idea how to do that from emergency mode. None of the usual commands work.
EDIT2:
I just booted via USB-Stick and this is the (i guess faulty) fstab file:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=5ece23e7-beea-431d-9960-4ef8f83df532 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=0D53-953B /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
# 1TB DATA HDD:
7264c768-09ca-4e0e-aeb7-018a3a25badb /media/DATA ext4 defaults 0 0
automount
add a comment |
I am running Ubuntu 18.10. I tried reformatting my secondary HDD (Ubuntu is on an SSD) to ext4 and changed the /etc/fstab file to automount the drive on startup.
I must have done something wrong because now I can only boot into emergency mode.
By my logic the problem would be solved If I just unmounted the HDD and edited the fstab file of which I made a backup a while ago.
The problem is that I have no idea how to do that from emergency mode. None of the usual commands work.
EDIT2:
I just booted via USB-Stick and this is the (i guess faulty) fstab file:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=5ece23e7-beea-431d-9960-4ef8f83df532 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=0D53-953B /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
# 1TB DATA HDD:
7264c768-09ca-4e0e-aeb7-018a3a25badb /media/DATA ext4 defaults 0 0
automount
Could you post your fstab config, hard to say what you have done wrong if not know what you have done.
– Pasi Suominen
Apr 10 at 20:47
I don't understand why you would need to unmount a drive in order to change its fstab entry?
– steeldriver
Apr 10 at 21:03
Well my logic isn't flawless. Anyways, I booted from a USB stick an can access the fstab file. Is it safe to just remove the line? I will update my post in a second.
– EVARATE
Apr 10 at 21:12
... what you will need to do however is remount the drive on which the fstab file is located with rw enabled e.g.mount -o remount,rw /
– steeldriver
Apr 10 at 21:13
@steeldriver that won't work if they're booted to a Ubuntu Live USB :-)
– heynnema
Apr 10 at 21:19
add a comment |
I am running Ubuntu 18.10. I tried reformatting my secondary HDD (Ubuntu is on an SSD) to ext4 and changed the /etc/fstab file to automount the drive on startup.
I must have done something wrong because now I can only boot into emergency mode.
By my logic the problem would be solved If I just unmounted the HDD and edited the fstab file of which I made a backup a while ago.
The problem is that I have no idea how to do that from emergency mode. None of the usual commands work.
EDIT2:
I just booted via USB-Stick and this is the (i guess faulty) fstab file:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=5ece23e7-beea-431d-9960-4ef8f83df532 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=0D53-953B /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
# 1TB DATA HDD:
7264c768-09ca-4e0e-aeb7-018a3a25badb /media/DATA ext4 defaults 0 0
automount
I am running Ubuntu 18.10. I tried reformatting my secondary HDD (Ubuntu is on an SSD) to ext4 and changed the /etc/fstab file to automount the drive on startup.
I must have done something wrong because now I can only boot into emergency mode.
By my logic the problem would be solved If I just unmounted the HDD and edited the fstab file of which I made a backup a while ago.
The problem is that I have no idea how to do that from emergency mode. None of the usual commands work.
EDIT2:
I just booted via USB-Stick and this is the (i guess faulty) fstab file:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=5ece23e7-beea-431d-9960-4ef8f83df532 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=0D53-953B /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
# 1TB DATA HDD:
7264c768-09ca-4e0e-aeb7-018a3a25badb /media/DATA ext4 defaults 0 0
automount
automount
edited Apr 10 at 21:19
EVARATE
asked Apr 10 at 20:42
EVARATEEVARATE
83
83
Could you post your fstab config, hard to say what you have done wrong if not know what you have done.
– Pasi Suominen
Apr 10 at 20:47
I don't understand why you would need to unmount a drive in order to change its fstab entry?
– steeldriver
Apr 10 at 21:03
Well my logic isn't flawless. Anyways, I booted from a USB stick an can access the fstab file. Is it safe to just remove the line? I will update my post in a second.
– EVARATE
Apr 10 at 21:12
... what you will need to do however is remount the drive on which the fstab file is located with rw enabled e.g.mount -o remount,rw /
– steeldriver
Apr 10 at 21:13
@steeldriver that won't work if they're booted to a Ubuntu Live USB :-)
– heynnema
Apr 10 at 21:19
add a comment |
Could you post your fstab config, hard to say what you have done wrong if not know what you have done.
– Pasi Suominen
Apr 10 at 20:47
I don't understand why you would need to unmount a drive in order to change its fstab entry?
– steeldriver
Apr 10 at 21:03
Well my logic isn't flawless. Anyways, I booted from a USB stick an can access the fstab file. Is it safe to just remove the line? I will update my post in a second.
– EVARATE
Apr 10 at 21:12
... what you will need to do however is remount the drive on which the fstab file is located with rw enabled e.g.mount -o remount,rw /
– steeldriver
Apr 10 at 21:13
@steeldriver that won't work if they're booted to a Ubuntu Live USB :-)
– heynnema
Apr 10 at 21:19
Could you post your fstab config, hard to say what you have done wrong if not know what you have done.
– Pasi Suominen
Apr 10 at 20:47
Could you post your fstab config, hard to say what you have done wrong if not know what you have done.
– Pasi Suominen
Apr 10 at 20:47
I don't understand why you would need to unmount a drive in order to change its fstab entry?
– steeldriver
Apr 10 at 21:03
I don't understand why you would need to unmount a drive in order to change its fstab entry?
– steeldriver
Apr 10 at 21:03
Well my logic isn't flawless. Anyways, I booted from a USB stick an can access the fstab file. Is it safe to just remove the line? I will update my post in a second.
– EVARATE
Apr 10 at 21:12
Well my logic isn't flawless. Anyways, I booted from a USB stick an can access the fstab file. Is it safe to just remove the line? I will update my post in a second.
– EVARATE
Apr 10 at 21:12
... what you will need to do however is remount the drive on which the fstab file is located with rw enabled e.g.
mount -o remount,rw /
– steeldriver
Apr 10 at 21:13
... what you will need to do however is remount the drive on which the fstab file is located with rw enabled e.g.
mount -o remount,rw /
– steeldriver
Apr 10 at 21:13
@steeldriver that won't work if they're booted to a Ubuntu Live USB :-)
– heynnema
Apr 10 at 21:19
@steeldriver that won't work if they're booted to a Ubuntu Live USB :-)
– heynnema
Apr 10 at 21:19
add a comment |
1 Answer
1
active
oldest
votes
If you mean Recovery Mode
, and you can get to the #
prompt, then type:
sudo mount -o rw,remount /
# remount the disk rw
cd /etc
# change directory
sudo pico fstab
# to edit existing fstab
or, if you wish to restore your backup fstab:
sudo mv fstab fstab.bad
# rename existing file, for safety
sudo cp fstab.backup fstab
# restore backup fstab, use your own name
If you can't do any of this, then you'll have to boot to a Ubuntu Live DVD/USB, mount the HDD by using the Files
(Nautilus) application, click on the HDD in the left pane, navigate to the /etc directory on the HDD, edit fstab, etc.
Update #1:
Make sure that /media/DATA
mount point exists.
Change this line in fstab:
7264c768-09ca-4e0e-aeb7-018a3a25badb /media/DATA ext4 defaults 0 0
to this:
UUID=7264c768-09ca-4e0e-aeb7-018a3a25badb /media/DATA ext4 defaults,nofail 0 2
And yes folks... I usedsudo
... as some commands still require it, even in recovery mode...
– heynnema
Apr 10 at 21:17
Wait, did I just accidentally remove the UUID= ? That's embarrassing. Holy crap.
– EVARATE
Apr 10 at 21:22
Thanks man, that fixed it. I feel stupid now. Have a good day.
– EVARATE
Apr 10 at 21:25
@EVARATE change the last0 0
to0 2
so the drive will get checked at boot time, and addnofail
, so the system will still boot if this drive is not available.
– heynnema
Apr 10 at 21:30
did that, thanks.
– EVARATE
Apr 10 at 21:36
add a comment |
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%2f1132828%2funmount-drive-from-emergency-mode%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
If you mean Recovery Mode
, and you can get to the #
prompt, then type:
sudo mount -o rw,remount /
# remount the disk rw
cd /etc
# change directory
sudo pico fstab
# to edit existing fstab
or, if you wish to restore your backup fstab:
sudo mv fstab fstab.bad
# rename existing file, for safety
sudo cp fstab.backup fstab
# restore backup fstab, use your own name
If you can't do any of this, then you'll have to boot to a Ubuntu Live DVD/USB, mount the HDD by using the Files
(Nautilus) application, click on the HDD in the left pane, navigate to the /etc directory on the HDD, edit fstab, etc.
Update #1:
Make sure that /media/DATA
mount point exists.
Change this line in fstab:
7264c768-09ca-4e0e-aeb7-018a3a25badb /media/DATA ext4 defaults 0 0
to this:
UUID=7264c768-09ca-4e0e-aeb7-018a3a25badb /media/DATA ext4 defaults,nofail 0 2
And yes folks... I usedsudo
... as some commands still require it, even in recovery mode...
– heynnema
Apr 10 at 21:17
Wait, did I just accidentally remove the UUID= ? That's embarrassing. Holy crap.
– EVARATE
Apr 10 at 21:22
Thanks man, that fixed it. I feel stupid now. Have a good day.
– EVARATE
Apr 10 at 21:25
@EVARATE change the last0 0
to0 2
so the drive will get checked at boot time, and addnofail
, so the system will still boot if this drive is not available.
– heynnema
Apr 10 at 21:30
did that, thanks.
– EVARATE
Apr 10 at 21:36
add a comment |
If you mean Recovery Mode
, and you can get to the #
prompt, then type:
sudo mount -o rw,remount /
# remount the disk rw
cd /etc
# change directory
sudo pico fstab
# to edit existing fstab
or, if you wish to restore your backup fstab:
sudo mv fstab fstab.bad
# rename existing file, for safety
sudo cp fstab.backup fstab
# restore backup fstab, use your own name
If you can't do any of this, then you'll have to boot to a Ubuntu Live DVD/USB, mount the HDD by using the Files
(Nautilus) application, click on the HDD in the left pane, navigate to the /etc directory on the HDD, edit fstab, etc.
Update #1:
Make sure that /media/DATA
mount point exists.
Change this line in fstab:
7264c768-09ca-4e0e-aeb7-018a3a25badb /media/DATA ext4 defaults 0 0
to this:
UUID=7264c768-09ca-4e0e-aeb7-018a3a25badb /media/DATA ext4 defaults,nofail 0 2
And yes folks... I usedsudo
... as some commands still require it, even in recovery mode...
– heynnema
Apr 10 at 21:17
Wait, did I just accidentally remove the UUID= ? That's embarrassing. Holy crap.
– EVARATE
Apr 10 at 21:22
Thanks man, that fixed it. I feel stupid now. Have a good day.
– EVARATE
Apr 10 at 21:25
@EVARATE change the last0 0
to0 2
so the drive will get checked at boot time, and addnofail
, so the system will still boot if this drive is not available.
– heynnema
Apr 10 at 21:30
did that, thanks.
– EVARATE
Apr 10 at 21:36
add a comment |
If you mean Recovery Mode
, and you can get to the #
prompt, then type:
sudo mount -o rw,remount /
# remount the disk rw
cd /etc
# change directory
sudo pico fstab
# to edit existing fstab
or, if you wish to restore your backup fstab:
sudo mv fstab fstab.bad
# rename existing file, for safety
sudo cp fstab.backup fstab
# restore backup fstab, use your own name
If you can't do any of this, then you'll have to boot to a Ubuntu Live DVD/USB, mount the HDD by using the Files
(Nautilus) application, click on the HDD in the left pane, navigate to the /etc directory on the HDD, edit fstab, etc.
Update #1:
Make sure that /media/DATA
mount point exists.
Change this line in fstab:
7264c768-09ca-4e0e-aeb7-018a3a25badb /media/DATA ext4 defaults 0 0
to this:
UUID=7264c768-09ca-4e0e-aeb7-018a3a25badb /media/DATA ext4 defaults,nofail 0 2
If you mean Recovery Mode
, and you can get to the #
prompt, then type:
sudo mount -o rw,remount /
# remount the disk rw
cd /etc
# change directory
sudo pico fstab
# to edit existing fstab
or, if you wish to restore your backup fstab:
sudo mv fstab fstab.bad
# rename existing file, for safety
sudo cp fstab.backup fstab
# restore backup fstab, use your own name
If you can't do any of this, then you'll have to boot to a Ubuntu Live DVD/USB, mount the HDD by using the Files
(Nautilus) application, click on the HDD in the left pane, navigate to the /etc directory on the HDD, edit fstab, etc.
Update #1:
Make sure that /media/DATA
mount point exists.
Change this line in fstab:
7264c768-09ca-4e0e-aeb7-018a3a25badb /media/DATA ext4 defaults 0 0
to this:
UUID=7264c768-09ca-4e0e-aeb7-018a3a25badb /media/DATA ext4 defaults,nofail 0 2
edited Apr 10 at 21:30
answered Apr 10 at 21:13
heynnemaheynnema
21.6k32361
21.6k32361
And yes folks... I usedsudo
... as some commands still require it, even in recovery mode...
– heynnema
Apr 10 at 21:17
Wait, did I just accidentally remove the UUID= ? That's embarrassing. Holy crap.
– EVARATE
Apr 10 at 21:22
Thanks man, that fixed it. I feel stupid now. Have a good day.
– EVARATE
Apr 10 at 21:25
@EVARATE change the last0 0
to0 2
so the drive will get checked at boot time, and addnofail
, so the system will still boot if this drive is not available.
– heynnema
Apr 10 at 21:30
did that, thanks.
– EVARATE
Apr 10 at 21:36
add a comment |
And yes folks... I usedsudo
... as some commands still require it, even in recovery mode...
– heynnema
Apr 10 at 21:17
Wait, did I just accidentally remove the UUID= ? That's embarrassing. Holy crap.
– EVARATE
Apr 10 at 21:22
Thanks man, that fixed it. I feel stupid now. Have a good day.
– EVARATE
Apr 10 at 21:25
@EVARATE change the last0 0
to0 2
so the drive will get checked at boot time, and addnofail
, so the system will still boot if this drive is not available.
– heynnema
Apr 10 at 21:30
did that, thanks.
– EVARATE
Apr 10 at 21:36
And yes folks... I used
sudo
... as some commands still require it, even in recovery mode...– heynnema
Apr 10 at 21:17
And yes folks... I used
sudo
... as some commands still require it, even in recovery mode...– heynnema
Apr 10 at 21:17
Wait, did I just accidentally remove the UUID= ? That's embarrassing. Holy crap.
– EVARATE
Apr 10 at 21:22
Wait, did I just accidentally remove the UUID= ? That's embarrassing. Holy crap.
– EVARATE
Apr 10 at 21:22
Thanks man, that fixed it. I feel stupid now. Have a good day.
– EVARATE
Apr 10 at 21:25
Thanks man, that fixed it. I feel stupid now. Have a good day.
– EVARATE
Apr 10 at 21:25
@EVARATE change the last
0 0
to 0 2
so the drive will get checked at boot time, and add nofail
, so the system will still boot if this drive is not available.– heynnema
Apr 10 at 21:30
@EVARATE change the last
0 0
to 0 2
so the drive will get checked at boot time, and add nofail
, so the system will still boot if this drive is not available.– heynnema
Apr 10 at 21:30
did that, thanks.
– EVARATE
Apr 10 at 21:36
did that, thanks.
– EVARATE
Apr 10 at 21:36
add a comment |
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%2f1132828%2funmount-drive-from-emergency-mode%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
Could you post your fstab config, hard to say what you have done wrong if not know what you have done.
– Pasi Suominen
Apr 10 at 20:47
I don't understand why you would need to unmount a drive in order to change its fstab entry?
– steeldriver
Apr 10 at 21:03
Well my logic isn't flawless. Anyways, I booted from a USB stick an can access the fstab file. Is it safe to just remove the line? I will update my post in a second.
– EVARATE
Apr 10 at 21:12
... what you will need to do however is remount the drive on which the fstab file is located with rw enabled e.g.
mount -o remount,rw /
– steeldriver
Apr 10 at 21:13
@steeldriver that won't work if they're booted to a Ubuntu Live USB :-)
– heynnema
Apr 10 at 21:19