From mboxrd@z Thu Jan 1 00:00:00 1970 From: "hackmiester (Hunter Fuller)" Subject: Re: Quota for root ? Date: Wed, 08 Mar 2006 06:36:04 -0600 Message-ID: <440ECFB4.9020304@hackmiester.com> References: <83CA05F64804AF43B8F733C4ABDFAA51010DEB40@mail1.bitband.com> Reply-To: hackmiester@hackmiester.com Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <83CA05F64804AF43B8F733C4ABDFAA51010DEB40@mail1.bitband.com> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Sion Khalaf , linux-admin@vger.kernel.org Sion Khalaf wrote: > Thanks, I will try that first. man mount will fill you in > > -----Original Message----- > From: Glynn Clements [mailto:glynn@gclements.plus.com] > Sent: Wednesday, March 08, 2006 3:53 AM > To: Sion Khalaf > Cc: linux-admin@vger.kernel.org > 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 > > 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 > - > To unsubscribe from this list: send the line "unsubscribe linux-admin" in > the body of a message to majordomo@vger.kernel.org > 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@stpaulsmobile.net Personal: hackmiester@hackmiester.com Large files/spam: hackmiester@gmail.com GTalk:hackmiester/AIM:hackmiester1337/Y!:hackm1ester/IRC:irc.7sinz.net/7sinz