Can't boot: An error occurred while mounting /

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
free.dom

Can't boot: An error occurred while mounting /

Post by free.dom »

Hello to everyone!

I installed my first Linux distribution about one month ago and figured out one or another thing. Unfortunately I tried to automount my external harddisk and some other partitions (with the GUI, which also seems a bit buggy) and I think since then I can't boot my Linux Mint anymore. I also edited the names of the partitions e.g. Linux, Data and Win. Could it be that this caused the problem?

I get the message: An error occurred while mounting /

I think there has to be something with my /etc/fstab wrong now, but I cant figure out what... I hope you can help me fixing it (I am atm using Linux Mint Live and from here I am also able to edit my /etc/fstab).

Heres the /etc/fstab-entry:

Code: Select all

# /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>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda3 during installation
/var/cache/swap/swap0	none	swap	sw	0 0
/dev/disk/by-uuid/F4D8C11ED8C0DFCA /mnt/F4D8C11ED8C0DFCA auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=Daten 0 0
/dev/disk/by-id/scsi-SMaxtor_Basics_Desktop_2HBE0CR7-part1 /mnt/scsi-SMaxtor_Basics_Desktop_2HBE0CR7-part1 auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=Externe 0 0
/dev/disk/by-uuid/5EE8B065E8B03D59 /mnt/5EE8B065E8B03D59 auto nosuid,nodev,nofail,noauto,x-gvfs-show,x-gvfs-name=WIN 0 0
UUID=55ad1ca7-818b-4da8-a416-8bb89049ccd0 / ext4 errors=remount-ro,x-gvfs-show,x-gvfs-name=Linux 0 1
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
viking777

Re: Can't boot: An error occurred while mounting /

Post by viking777 »

Try editing fstab like this:

Code: Select all

# /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>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sda3 during installation
    /var/cache/swap/swap0   none   swap   sw   0 0
    /dev/disk/by-uuid/F4D8C11ED8C0DFCA /mnt/F4D8C11ED8C0DFCA auto nosuid,nodev,nofail 0 0
    /dev/disk/by-id/scsi-SMaxtor_Basics_Desktop_2HBE0CR7-part1 /mnt/scsi-SMaxtor_Basics_Desktop_2HBE0CR7-part1 auto nosuid,nodev,nofail 0 0
    /dev/disk/by-uuid/5EE8B065E8B03D59 /mnt/5EE8B065E8B03D59 auto nosuid,nodev,nofail,noauto 0 0
    UUID=55ad1ca7-818b-4da8-a416-8bb89049ccd0 / ext4 errors=remount-ro 0 1
gvfs-* mount options either don't exist (they aren't in man mount or man fstab) or aren't supported yet.

Bug here:

https://bugs.launchpad.net/ubuntu/+sour ... ug/1011257
free.dom

Re: Can't boot: An error occurred while mounting /

Post by free.dom »

Wow, thanks a lot! That worked so far.. My Mint is back running =).

But how am I able to rename the Partitions then? Can I use "label=" instead? And how do I make them show on the desktop/in the filebrowser?
viking777

Re: Can't boot: An error occurred while mounting /

Post by viking777 »

Examples (so don't just copy them)

Code: Select all

sudo e2label /dev/sda3 mint
or

Code: Select all

sudo ntfslabel /dev/sda1 windows
All partitions need to be unmounted before you can label them, so you may need to use the live usb to do this - certainly with the / partition anyway.
free.dom

Re: Can't boot: An error occurred while mounting /

Post by free.dom »

Thanks again! Am I right that I have to take e4label for ext4 partitions?
I think I have to find a good tut for the fstab-file and the arguments to use..
viking777

Re: Can't boot: An error occurred while mounting /

Post by viking777 »

free.dom wrote:Thanks again! Am I right that I have to take e4label for ext4 partitions?
No, you are not right.

http://www.tuxfiles.org/linuxhelp/fstab.html
Locked

Return to “Beginner Questions”