linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "hackmiester (Hunter Fuller)" <hackmiester@hackmiester.com>
To: Sion Khalaf <Sion@bitband.com>, linux-admin@vger.kernel.org
Subject: Re: Quota for root ?
Date: Wed, 08 Mar 2006 06:36:04 -0600	[thread overview]
Message-ID: <440ECFB4.9020304@hackmiester.com> (raw)
In-Reply-To: <83CA05F64804AF43B8F733C4ABDFAA51010DEB40@mail1.bitband.com>

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 <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@gclements.plus.com>
> -
> 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

  reply	other threads:[~2006-03-08 12:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-08  6:12 Quota for root ? Sion Khalaf
2006-03-08 12:36 ` hackmiester (Hunter Fuller) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-03-08  0:03 Sion Khalaf
2006-03-08  1:53 ` Glynn Clements
2006-03-07 19:00 Sion Khalaf
2006-03-07 19:16 ` David Fierbaugh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=440ECFB4.9020304@hackmiester.com \
    --to=hackmiester@hackmiester.com \
    --cc=Sion@bitband.com \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).