SUMMARY: MFS options in fstab

From: Jonathan Nicholson <jjn_at_sanger.ac.uk>
Date: Wed, 17 Oct 2001 11:37:09 +0100 (BST)

Thanks to all that replied!

On v5.1 you can pass several arguments to mfs by separating them with
commas eg:-

-i256,-s65536 /mnt mfs rw 0 0

This doesn't work on v4.0 (the system I need this on is 4.0g)

An intriguing suggestion from James Sainsbury:-

> If you set the filesystem type to some unkown type the mount
> command attempts to exec /sbin/mount_ufs (which doesn't exist.)
> So for example a fstab entry:
>
> -Tmfs,s10000,i345,perm=700 /mnt memfs rw,noexec,nodev,nosuid,nogrpid 1 0
> *****
> Will be passed to /sbin/mount_ufs as
> /sbin/mount_ufs -F 28 -Tmfs,s10000,i345,perm=700 /mnt
>
> If you create a script (or binary) /sbin/mount_ufs to parse this and run
> mfs with the passed -F flags (noexec=0x4,nosuid=0x8,nodev=0x10,grpid=0x4000)
> and -i flags you can Also chmod/chown the mounted filesystems.

Sounds like a good idea, I've just written it into the sendmail rc script!

Regards,

Jonathan

!---------------------------------------------------------------------------
= Jonathan Nicholson - Team Leader : System Support "Special Projects" =
= The Sanger Centre, Wellcome Trust Genome Campus, Hinxton, Cambs, CB10 1SA =
= Email: jjn_at_sanger.ac.uk -=- Tel: 01223 834244 x4987 -=- Fax: 01223 494919 =
 ----------------------------------------------------------------------------

---------- Forwarded message ----------
Date: Wed, 17 Oct 2001 13:08:00 +1000 (EST)
From: James Sainsbury <J.Sainsbury_at_chem.usyd.edu.au>
To: Jonathan Nicholson <jjn_at_sanger.ac.uk>
Subject: Re: MFS options in fstab


I am not sure whether this is of any use to you.


I would go for the startup script myself :)

RGDS

On Tue, 16 Oct 2001, Jonathan Nicholson wrote:

>
> I want to create a mfs filesystem with a large number of Inodes (this is
> for the hoststatus information maintained by sendmail).
>
> I can do this on the command line with something like:-
>
> mfs -i256 -s65536 /hoststatus
>
> which will create 1 inode for every 256 bytes (host status information is
> just a directory entry) and 32Mb of space.
>
> I cannot work out how to get this into an FSTab entry so it is mounted on
> boot.
>
> Also mfs will create the FS with the default permissions of 1777, which
> are too permissive for sendmail, it needs 700.
>
> I could do this in a startup script, but that just seems messy...
>
> Any ideas?
>
> !---------------------------------------------------------------------------
> = Jonathan Nicholson - Team Leader : System Support "Special Projects" =
> = The Sanger Centre, Wellcome Trust Genome Campus, Hinxton, Cambs, CB10 1SA =
> = Email: jjn_at_sanger.ac.uk -=- Tel: 01223 834244 x4987 -=- Fax: 01223 494919 =
> ----------------------------------------------------------------------------
>
>
Received on Wed Oct 17 2001 - 10:38:27 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT