You are not logged in.

#1 2012-08-12 23:57:06

sfabius
Member
Registered: 2007-07-07
Posts: 153

Mounting root rw on VPS

I'm not sure this is strictly Installation, but I wasn't sure exactlt where else to post.
I have a new OpenVZ vps system which I have just managed to successfully upgrade, including to the new glibc with lib moved to usr. Now it is booting with root read-only. I imagine I need to do something with fstab but I'm not sure how to write the fstab with a VPS. Here's the current fstab:

 # 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
tmpfs		/tmp	tmpfs	nodev,nosuid	0	0

Yep, that's it. None of the suggestions I have found relate to non VPS sytems. Thanks for suggestions.

Offline

#2 2012-08-13 00:12:42

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Mounting root rw on VPS

You could... add root to /etc/fstab.

Offline

#3 2012-08-13 00:34:44

sfabius
Member
Registered: 2007-07-07
Posts: 153

Re: Mounting root rw on VPS

Yeah but I'm used to mounting it on a device, but I'm not sure how that works on a VPS. Here's what I get from mount (I've remounted root rw):

/vz/private/1605 on / type simfs (rw,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
dev on /dev type devtmpfs (rw,nosuid,relatime,gid=501)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
binfmt on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)

So my fstab line should be this?

/vz/private/1605    /   simfs   rw,relatime  0  1 

Last edited by sfabius (2012-08-13 00:35:15)

Offline

#4 2012-08-13 00:46:51

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Mounting root rw on VPS

Sure, that would make sense.

Offline

Board footer

Powered by FluxBB