won't boot because of fstab changes [SOLVED]

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
aldrigmer

won't boot because of fstab changes [SOLVED]

Post by aldrigmer »

Hi!

im new on linux mint and sofar everythings been fine - but i wanted my harddrives and partitions to automount and changed them with mountmanager and after that i couldnt boot anymore. i get to the linux mint logo and then it stops. through repair mode or what its called i could see it stops becouse it cant mount all devices. how can i change that? i have a live cd and would like an answer i can understand :) can i somehow reset fstab? without too much knowledge of linux?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
nomko

Re: won't boot because of fstab changes

Post by nomko »

aldrigmer wrote:Hi!

im new on linux mint and sofar everythings been fine - but i wanted my harddrives and partitions to automount and changed them with mountmanager and after that i couldnt boot anymore. i get to the linux mint logo and then it stops. through repair mode or what its called i could see it stops becouse it cant mount all devices. how can i change that? i have a live cd and would like an answer i can understand :) can i somehow reset fstab? without too much knowledge of linux?
If everything went okay, you should have a backup file of your original fstab file. Start the live-cd and mount your internal disc and open it with the filemanager. Go to this directory: /etc/ and delete the fstab file. Then rename your backed up fstab file.

Your original fstab file is simply called: fstab
The backed up file is called fstab.backup. Just by removing the extension .backup and you have your original fstab file back. Reboot and see what happens then.

If you can log into linux, open a terminal and type the following command:

Code: Select all

cat /etc/fstab
and place the output here. Also tell us then which drives you want to automount.
aldrigmer

Re: won't boot because of fstab changes

Post by aldrigmer »

Thank you for your answer!

i have no backup!
this is what fstab looks like:
UUID=8E2C05EC2C05D05F /media/user/Musik ntfs-3g users 0 0
UUID=001CE7BD1CE7AC3A /media/user/001CE7BD1CE7AC3A ntfs-3g defaults 0 0
UUID=6614a18c-b008-4daa-8fe1-006887d9df7e swap swap sw 0 0
UUID=8CB0AA73B0AA6404 /media/user/8CB0AA73B0AA6404 ntfs-3g users 0 0
UUID=bdee0c71-50bf-4d72-9c86-1e678c175dc7 / ext4 users 0 1

cat /etc/fstab gives me:
overlayfs / overlayfs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/sdb6 swap swap defaults 0 0
aldrigmer

Re: won't boot because of fstab changes

Post by aldrigmer »

all i get after trying recovery mode is:
mountall : mount/ permission denied
and then it stops
altair4
Level 20
Level 20
Posts: 11453
Joined: Tue Feb 03, 2009 10:27 am

Re: won't boot because of fstab changes

Post by altair4 »

UUID=bdee0c71-50bf-4d72-9c86-1e678c175dc7 / ext4 users 0 1
The "users" option disables the ability to execute any binaries - even to root. Root is trying to execute a whole mess of stuff when it boots so this is not a good thing.

Change the line to look like this:

Code: Select all

UUID=bdee0c71-50bf-4d72-9c86-1e678c175dc7 / ext4 errors=remount-ro 0       1
That will get you back to the default setting for that partition.

From the looks of it you may get other errors but you should be given a chance to bypass them and boot anyway. If this works we can fix the ntfs partitions to have a better set of options than what mountmanger offered.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
aldrigmer

Re: won't boot because of fstab changes

Post by aldrigmer »

thank you altair4!
worked just fine. so now my fstab looks like this:

UUID=8E2C05EC2C05D05F /media/user/Musik ntfs-3g users 0 0
UUID=001CE7BD1CE7AC3A /media/user/001CE7BD1CE7AC3A ntfs-3g defaults 0 0
UUID=6614a18c-b008-4daa-8fe1-006887d9df7e swap swap sw 0 0
UUID=8CB0AA73B0AA6404 /media/user/8CB0AA73B0AA6404 ntfs-3g users 0 0
UUID=bdee0c71-50bf-4d72-9c86-1e678c175dc7 / ext4 errors=remount-ro 0 1

and everything is working just fine. every disk/partition mounted succesfully on startup, just like i wanted. should i keep it that way or was this a temporary solution?
altair4
Level 20
Level 20
Posts: 11453
Joined: Tue Feb 03, 2009 10:27 am

Re: won't boot because of fstab changes

Post by altair4 »

aldrigmer wrote:thank you altair4!
worked just fine. so now my fstab looks like this:

UUID=8E2C05EC2C05D05F /media/user/Musik ntfs-3g users 0 0
UUID=001CE7BD1CE7AC3A /media/user/001CE7BD1CE7AC3A ntfs-3g defaults 0 0
UUID=6614a18c-b008-4daa-8fe1-006887d9df7e swap swap sw 0 0
UUID=8CB0AA73B0AA6404 /media/user/8CB0AA73B0AA6404 ntfs-3g users 0 0
UUID=bdee0c71-50bf-4d72-9c86-1e678c175dc7 / ext4 errors=remount-ro 0 1

and everything is working just fine. every disk/partition mounted succesfully on startup, just like i wanted. should i keep it that way or was this a temporary solution?
As an ordained minister in the "Church of If It Ain't Broke Don't Fix It", I would leave it alone. And this was permanent.

I personally don't care much for how those NTFS partitions are configured but as you found out they will work. Besides, if you are the only user of the PC I suppose it doesn't matter.

I would like to make one recommendation though: Do not use mountmanager, PySDM, ntfs-config, especially Disks, or any of the other fstab editors - each one of them has issues and produce unpredictable results.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
aldrigmer

Re: won't boot because of fstab changes [SOLVED]

Post by aldrigmer »

thank you very much :)
LilAntny

Re: won't boot because of fstab changes [SOLVED]

Post by LilAntny »

I am having a similar problem (Mint 17.2). After setting up my ntfs drives to auto mount, my system won't boot. However my fstab appears to be correct (At least according to previous posts). I also do not have a backup fstab file.

UUID=86810c4a-912f-4ea8-9a1d-347a25c0df7e / ext4 errors=remount-ro 0 1
LABEL=Series\0406T-1000 /mnt/Series\0406T-1000 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=Series\0404T-1000 /mnt/Series\0404T-1000 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=Series\0408T-1000 /mnt/Series\0408T-1000 auto nosuid,nodev,nofail,x-gvfs-show 0 0
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: won't boot because of fstab changes [SOLVED]

Post by austin.texas »

LilAntny wrote:I am having a similar problem (Mint 17.2). After setting up my ntfs drives to auto mount, my system won't boot. However my fstab appears to be correct (At least according to previous posts). I also do not have a backup fstab file.

UUID=86810c4a-912f-4ea8-9a1d-347a25c0df7e / ext4 errors=remount-ro 0 1
LABEL=Series\0406T-1000 /mnt/Series\0406T-1000 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=Series\0404T-1000 /mnt/Series\0404T-1000 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=Series\0408T-1000 /mnt/Series\0408T-1000 auto nosuid,nodev,nofail,x-gvfs-show 0 0
Edit your /etc/fstab and get rid of the "x-gvfs-show" garbage.
Make it:
UUID=86810c4a-912f-4ea8-9a1d-347a25c0df7e / ext4 errors=remount-ro 0 1
LABEL=Series\0406T-1000 /mnt/Series\0406T-1000 auto nosuid,nodev,nofail 0 0
LABEL=Series\0404T-1000 /mnt/Series\0404T-1000 auto nosuid,nodev,nofail 0 0
LABEL=Series\0408T-1000 /mnt/Series\0408T-1000 auto nosuid,nodev,nofail 0 0
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
Locked

Return to “Installation & Boot”