LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 12-27-2018, 10:30 PM   #1
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Rep: Reputation: Disabled
Read-only filesystem...?


I maintain a Gentoo system in a virtualbox guest. A couple of days ago I did something stupid that screwed up my Gentoo guest. I have tried tonight to get it back, but I keep running into this problem. It's very important to me not to lose the Gentoo way of thinking, hence Virtualbox.

I have attempted going through the handbook careful to execute each step as ordered. I'm at the end of chapter 1. I have rebooted the guest into a Gentoo system free of the Gentoo CD image I was using before to get me to this point. Gentoo boots up. I see a lot of red, but it goes by faster than I can read. Now, I'm at the login prompt. I login as root, since that's the only account on the system at this point. I go to /var/log hoping for a messages file that will tell me what all the red was about. No /var/log/messages. So I immediately begin to wonder what syslog is doing (since it's not doing its job), so I restart the sysklogd service. It reports all these files it's trying to write to, and to the right of each one, it says "Read-only filesystem". Why is this happening? I want my system back! Please help! And thank you in advance for your patience with me, as well as any advice you can offer to help me work toward a resolution of this issue.
 
Old 12-28-2018, 03:10 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,872
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Four main causes I know of for / getting mounted RO ("Read-only filesystem") at startup:

1-missing driver for the / filesystem, whether compiled into kernel or loadable module, making it inaccessible by the time it is required

2-uncorrectable inconsistent state (needs fsck that cannot be performed automatically)

3-mount options attempted are inconsistent with those allowed

4-/ filesystem inconsistently identified among initrd, bootloader cmdline, and/or fstab; maybe root= specification in boot stanza and/or fstab contains a typing error, or UUID on / filesystem has been changed without a necessary matching bootloader configuration file update and/or initrd rebuild; or the device name assigned by the kernel on the current boot doesn't match the expected device name (root=/dev/sdb2 but kernel has assigned that device /dev/sda2 after USB stick /dev/sda for installation is no longer present)
 
1 members found this post helpful.
Old 12-28-2018, 10:19 AM   #3
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
Hmmm. This is interesting. I just started up my vb guest and loaded using the iso file I downloaded. I mounted the gentoo drive and the three other systems I'm required to mount to ensure a sane environment, and then I tried to mount /boot. Gentoo tells me

Code:
#cd /usr/src/linux
#mount /boot
     mount /boot:  cannot find LABEL=boot
I was going into the kernel config to make sure that the ext4 type was compiled in. It should be. When I edited /etc/fstab, I simply uncommented the filesystems that I wanted. I didn't bother to check the UUIDs. I'll do that and try booting it again.
 
Old 12-28-2018, 11:15 AM   #4
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
I was able to successfully see what the problem was by holding down SHIFT and hitting PageUp until I got to the red parts. It said that my root partiton's UUID was not found. I corrected this issue and it booted fine without the iso image. Thank you for your help.

Last edited by maschelsea; 12-28-2018 at 11:24 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't read/write to USB sticks--"read-only filesystem" newbiesforever Linux - General 2 08-13-2013 04:47 PM
*How* read-only is a read-only filesystem? hippiejake Linux - General 3 02-14-2010 03:24 PM
How can I have: Root has Read-Write, user has read only for the boot filesystem? xmrkite Linux - Software 6 10-16-2008 04:31 AM
how do I change the filesystem from read-only to read-write? les_chow Linux - Newbie 5 05-26-2004 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration