won't boot because of fstab changes [SOLVED]

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

won't boot because of fstab changes [SOLVED]

Postby aldrigmer on Sun Jan 06, 2013 6:24 pm

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 aldrigmer on Thu Jan 10, 2013 7:35 am, edited 1 time in total.
aldrigmer
Level 1
Level 1
 
Posts: 5
Joined: Sun Jan 06, 2013 6:12 pm

Linux Mint is funded by ads and donations.
 

Re: won't boot because of fstab changes

Postby nomko on Mon Jan 07, 2013 7:09 am

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.
ASUS P5KPL-AM SE*Intel Core2 Quad CPU Q8200*4 GiB ram*nVidia GeForce 9500GT*Realtek RTL8101/8102E*Optiarc DVD-RW AD-7200A*HDD:Samsung HD501LJ/HD103SI*Sitecom X5-N600 Router (WLR-5100)

My personal website
User avatar
nomko
Level 9
Level 9
 
Posts: 2544
Joined: Sat Feb 25, 2012 7:28 pm
Location: The Hague, The Netherlands

Re: won't boot because of fstab changes

Postby aldrigmer on Tue Jan 08, 2013 4:01 pm

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
Level 1
Level 1
 
Posts: 5
Joined: Sun Jan 06, 2013 6:12 pm

Re: won't boot because of fstab changes

Postby aldrigmer on Tue Jan 08, 2013 4:49 pm

all i get after trying recovery mode is:
mountall : mount/ permission denied

and then it stops
aldrigmer
Level 1
Level 1
 
Posts: 5
Joined: Sun Jan 06, 2013 6:12 pm

Re: won't boot because of fstab changes

Postby altair4 on Wed Jan 09, 2013 8:36 am

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.
altair4
Level 15
Level 15
 
Posts: 5986
Joined: Tue Feb 03, 2009 10:27 am

Re: won't boot because of fstab changes

Postby aldrigmer on Thu Jan 10, 2013 7:34 am

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?
aldrigmer
Level 1
Level 1
 
Posts: 5
Joined: Sun Jan 06, 2013 6:12 pm

Re: won't boot because of fstab changes

Postby altair4 on Thu Jan 10, 2013 7:46 am

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.
altair4
Level 15
Level 15
 
Posts: 5986
Joined: Tue Feb 03, 2009 10:27 am

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

Postby aldrigmer on Thu Jan 10, 2013 7:58 am

thank you very much :)
aldrigmer
Level 1
Level 1
 
Posts: 5
Joined: Sun Jan 06, 2013 6:12 pm

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: rosswmcgee and 21 guests