Sion Khalaf wrote:
Thanks, I will try that first.
man mount will fill you in
-----Original Message-----
From: Glynn Clements [mailto:glynn@xxxxxxxxxxxxxxxxxx]
Sent: Wednesday, March 08, 2006 3:53 AM
To: Sion Khalaf
Cc: linux-admin@xxxxxxxxxxxxxxx
Subject: RE: Quota for root ?
Sion Khalaf wrote:
There is no possibility to do the first solution.
The second, regarding drive mounting, is it ram drive?
No, loopback filesystem.
If so, How to mount it ?
mount -o loop <filename> <mount point>
To create the file, first create a suitably-sized file with e.g.:
dd if=/dev/zero out=loopfile.dat bs=1m count=100 #100Mb
then create a filesystem on it with:
mke2fs -F loopfile.dat
Anyway, I am looking for a way to make my file system read only.
That will surely, be the best solution.
My application is writing into certain folder, not on the physically /
File system, So I can make the / FS read only, Do you have an idea how
can I do that ?
Normally, directories which need to be writable, e.g. /var and /tmp,
would use separate partitions. Those partitions would be writable (but
probably using the noexec and nodev options), but the root filesystem
would be read-only.
The most common issue with making the root filesystem read-only is that
"mount" tries to write to /etc/mtab, which will fail. Either use the -n
option to mount or recompile mount to use e.g. /var/run/mtab instead.
--
Glynn Clements <glynn@xxxxxxxxxxxxxxxxxx>
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
--hackmiester
Walk a mile in my shoes and you will be a mile away in a new pair of shoes.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFD/yYl3ApzN91C7BcRAoVVAJ97uhjh30nQ4hd9bQ90gJqiwsLEfgCeKSrg
bVfqEeJ09WhO6Y51WHEHb6o=
=VTUd
-----END PGP SIGNATURE-----
-----BEGIN GEEK CODE BLOCK-----
Version: Geek Code v3.1 (PHP)
GCS/CM/E/IT d-@ s: a- C++$ UBLS*++++$ P+ L+++$ E- W++$ !N-- !o+ K-- !w-- !O-
M++$ V-- PS@ PE@ Y--? PGP++ !t--- 5--? !X-- !R-- tv-- b+ DI++ D++ G+ e++++
h---- r+++ z++++
------END GEEK CODE BLOCK------
Quick contact info:
Work: hfuller@xxxxxxxxxxxxxxxxx
Personal: hackmiester@xxxxxxxxxxxxxxx
Large files/spam: hackmiester@xxxxxxxxx
GTalk:hackmiester/AIM:hackmiester1337/Y!:hackm1ester/IRC:irc.7sinz.net/7sinz
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html