Re: Partitioning on existing system

2006-04-10 Thread Giorgos Keramidas
On 2006-04-09 18:56, Wil Hatfield [EMAIL PROTECTED] wrote: tmpmfs=YES tmpsize=100m tmpmfs_flags=-S -M -o noexec,nosuid Is there something wrong with this because it isn't creating a /tmp at all. Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986,

RE: Partitioning on existing system

2006-04-09 Thread Wil Hatfield
Chad, this appears that you want a file backed image file mounted as your / tmp. This should be easy to do. Read the handbook for file-backed md (4) devices. I don't use them for /tmp but I run them with jails... I have about 60 such image files mounted now for example Thanks for the

RE: Partitioning on existing system

2006-04-09 Thread Wil Hatfield
Thanks for the great kick in the right direction. Is it really this easy? I guess so cause it is working. I dropped in a helloworld script, chmoded it and even as root I couldn't run it. Supreme! mdmfs -M -o noexec,nosuid -s 100m md0 /tmp chmod 1777 /tmp Ahhh crud! I guess it isn't that

Re: Partitioning on existing system

2006-04-09 Thread Lowell Gilbert
Wil Hatfield [EMAIL PROTECTED] writes: Thanks for the great kick in the right direction. Is it really this easy? I guess so cause it is working. I dropped in a helloworld script, chmoded it and even as root I couldn't run it. Supreme! mdmfs -M -o noexec,nosuid -s 100m md0 /tmp chmod

RE: Partitioning on existing system

2006-04-09 Thread Wil Hatfield
tmpmfs and related variables in rc.conf(5). By default it does a memory-backed disk instead of file-backed, but that can be adjusted. Personally, I find memory-backed /tmp to be more useful anyway. tmpmfs=YES tmpsize=100m tmpmfs_flags=-S -M -o noexec,nosuid Is there something wrong with

RE: Partitioning on existing system

2006-04-09 Thread Wil Hatfield
tmpmfs=YES tmpsize=100m tmpmfs_flags=-S -M -o noexec,nosuid Is there something wrong with this because it isn't creating a /tmp at all. Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the

Re: Partitioning on existing system

2006-04-09 Thread Chad Leigh -- Shire.Net LLC
On Apr 9, 2006, at 3:05 AM, Wil Hatfield wrote: Thanks for the great kick in the right direction. Is it really this easy? I guess so cause it is working. I dropped in a helloworld script, chmoded it and even as root I couldn't run it. Supreme! mdmfs -M -o noexec,nosuid -s 100m md0 /tmp

Re: Partitioning on existing system

2006-04-08 Thread Dhénin Jean-Jacques
I don't see what the trouble. If you want a /tmp directory on a disk, just do : $ cd /foo# the disk you want, may be / $ mkdir /tmp Thats all. 2006/4/9, Wil Hatfield [EMAIL PROTECTED]: Ok I screwed up on one of my machines and forgot to put the /tmp directory on its own slice. How can I

Re: Partitioning on existing system

2006-04-08 Thread Chad Leigh -- Shire.Net LLC
On Apr 8, 2006, at 9:57 PM, Wil Hatfield wrote: Ok I screwed up on one of my machines and forgot to put the /tmp directory on its own slice. How can I do this on an existing system? Linux has this procedure. Anything like it for FreeBSD? dd if=/dev/zero of=tmpMnt bs=1024 count=10