[SOLVED] /home as read-only FS? How to turn it back?

Questions about applications and software
Forum rules
Before you post please read this

[SOLVED] /home as read-only FS? How to turn it back?

Postby argosovo on Sat Apr 28, 2012 5:20 am

Hello,
I have a little bit problem after simple reboot yesterday(no changes before I think) - I have /dev/sda5 newly mounted as read-only fs - almost unusable system after login
Facts:
1)I can't run fsck or another commands(re-moount that) because it needs umount affected FS
2)I can't umount that because the root access is only "sudo" after simple login as normal user and in that time is home in using
3)My mint version is 11
4)I don't know why was it happened :-(

HAve you any idea what to try? I tried to search around the inet but everything what should I try is under root account but without home mounted. I can't find how to log in as root without sudo on Mint?

Thank you very much for tips
Last edited by argosovo on Sun Apr 29, 2012 3:04 pm, edited 1 time in total.
argosovo
Level 1
Level 1
 
Posts: 2
Joined: Sat Apr 28, 2012 5:06 am

Linux Mint is funded by ads and donations.
 

Re: /home as read-only FS? How to turn it back?

Postby xenopeek on Sun Apr 29, 2012 6:36 am

Please share the output of the following command run on the terminal:
Code: Select all
cat /etc/fstab

I suggest you wait for feedback from users here as to what is wrong, but to login as root, you can so do from the recovery mode. Boot your computer, and hold the shift key to make the GRUB boot menu show. Use the arrow keys to highlight the second entry in the menu (recovery mode) and press the 'e' key to edit the boot parameters. Scroll down to the line starting with 'linux' and at the end of that line add " init=/bin/bash" (without the quotes). Then continue the boot and you should drop to a text screen and are now root. Start with mounting the filesystem so that you can write changes to it. Execute the following command:
Code: Select all
mount -o remount,rw  /

Now do the things you need to do. When you are done, reboot:
Code: Select all
reboot
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10484
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: /home as read-only FS? How to turn it back?

Postby argosovo on Sun Apr 29, 2012 3:03 pm

SOLVED!
Thank you very much - I started my laptop and went trought grub screen so many times that I forgot to read it - that there is some "recovery mode" which can help me. So thank you very much.
For others with same problem:
1)I started to recovery mode by different option in grub screen - follow previous post
2)When you have root access without bad filesystem mounted you can run command "fsck /dev/sda5" (sda5 with ext3 format in my case)
3)this checked the disc for me and asked me to repair about 30 errors
4) run "reboot" command
5)Everything works after reboot - and seems like no important files were lost.

Thank you again and have a nice day,
Martin
argosovo
Level 1
Level 1
 
Posts: 2
Joined: Sat Apr 28, 2012 5:06 am

Re: [SOLVED] /home as read-only FS? How to turn it back?

Postby xenopeek on Mon Apr 30, 2012 3:13 am

Thanks for sharing the solution :D
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10484
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 12 guests