You are not logged in.

#1 2009-02-15 02:21:48

xirtyllo
Member
Registered: 2009-02-15
Posts: 7

I want to mount / partition Read-Only !

I have Arch installed on my Acer Aspire One... and it works great on this little machine!

The Acer One has no hard disk, but uses SSD, so to reduce writes to disk i use EXT2, I have my /home on a separate SD card, and I mounted log and temp directories on tmpfs:
/var/log, /var/tmp, /tmp, /var/cache/pacman/pkg .

now i would like to mount the root partition (/) read only.
the reason is that i want that filesystem (EXT2) to be safe in case of improper power-off or any other disaster cool ...

this guide for Opensuse shows how to take care of resolv.conf and mtab files (which are, I suppose, the only files that need to be writable, after i moved the log and temp directoryes in tmpfs and the home on SD card)
http://en.opensuse.org/How-To_Make_the_ … _read-only
but then the guide advises to change some configuration files, so that the sistem doesn't remount the root partition read-write after fsck.
unfortunately the files named in the gyuide are related to Suse, and i didn't find them in Arch...:/
In fact i tried to add the "ro" option to the / partition in my /etc/fstab and i rebooted the system, but as root i can still write to the partitions..

  Ideas and Info ..?!

THX
xirtyllo

Offline

#2 2009-02-15 02:42:46

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: I want to mount / partition Read-Only !

Please, don't double post.

Offline

#3 2009-02-15 03:21:35

xirtyllo
Member
Registered: 2009-02-15
Posts: 7

Re: I want to mount / partition Read-Only !

got it...
sorry

Offline

#4 2009-02-15 05:14:55

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: I want to mount / partition Read-Only !

Offline

Board footer

Powered by FluxBB