System booting in read-only

General support questions
Post Reply
Hosalabad
Posts: 2
Joined: 2019/06/26 16:45:04

System booting in read-only

Post by Hosalabad » 2019/06/29 13:59:35

I have been chasing my tail on this for a few days and I could really use some help.

I have a Centos 7.6.1810 (core) system that has started booting to read-only.

I think this may stem from a fstab mistake, but I can't get back to the file to look at it or try to correct it.

On login I get a " -- myusername: /home/myusername: change directory failed: No such file or directory -- Logging in with home = "/"

/var/boot.log indicates "Failed to mount /"

If someone would point me in the right direction, I would really appreciate it.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: System booting in read-only

Post by TrevorH » 2019/06/29 15:09:53

Boot up, become root, run mount -o remount,rw / and then fix fstab and reboot.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: System booting in read-only

Post by lightman47 » 2019/06/29 18:34:13

And, as one 'user with a green username' often suggests: After you change fstab, and BEFORE you reboot, try a mount -a to catch the errors while you can still edit/fix them.

Heh - can't tell you how many times ... until that advice

Hosalabad
Posts: 2
Joined: 2019/06/26 16:45:04

Re: System booting in read-only

Post by Hosalabad » 2019/07/01 22:58:43

Thanks for the help.

According to the output from the mount command , fstab doesn't have an entry for / "can't find / in fstab"

cat /etc/fstab comes back with no output.

I salvaged a copy of the fstab from a known good copy of the server, but how can I replace fstab if I'm stuck in a readonly state? Boot from live CD, decrpyt the boot volume and then edit, I guess?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: System booting in read-only

Post by TrevorH » 2019/07/01 23:29:22

how can I replace fstab if I'm stuck in a readonly state?
See my previous post.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply