From owner-freebsd-questions@FreeBSD.ORG Thu Mar 29 19:17:24 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5809816A407 for ; Thu, 29 Mar 2007 19:17:24 +0000 (UTC) (envelope-from yurtesen-dated-1176058240.d94748@ispro.net) Received: from smtp.ispro.net.tr (smtp.ispro.net.tr [62.244.220.178]) by mx1.freebsd.org (Postfix) with SMTP id 92AB113C4C9 for ; Thu, 29 Mar 2007 19:17:23 +0000 (UTC) (envelope-from yurtesen-dated-1176058240.d94748@ispro.net) Received: (qmail 12296 invoked by uid 89); 29 Mar 2007 18:50:40 -0000 Received: from [84.250.2.137] (dsl-tkubrasgw1-fe02fa00-137.dhcp.inet.fi [84.250.2.137]) by localhost.my.domain (tmda-ofmipd) with ESMTP; Thu, 29 Mar 2007 21:50:36 +0300 (EEST) Message-ID: <460C187B.5080703@ispro.net> Date: Thu, 29 Mar 2007 22:50:19 +0300 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jerry McAllister References: <460BE15B.5090007@ispro.net> <20070329181259.GA55191@gizmo.acns.msu.edu> In-Reply-To: <20070329181259.GA55191@gizmo.acns.msu.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Evren Yurtesen X-Primary-Address: yurtesen@ispro.net.tr Cc: questions@freebsd.org Subject: Re: splitting a filesystem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Mar 2007 19:17:24 -0000 Jerry McAllister wrote: > On Thu, Mar 29, 2007 at 06:55:07PM +0300, Evren Yurtesen wrote: > > >>Hi, >> >>Is it possible to split an existing filesystem into smaller ones(1to2). > > > Well, sort of. > You can back everything up with dump(8) > Then delete the partition and make two in its place. > Then newfs the two new partitions to create filesystems of them. > Then restore(8) the parts of the old one you want on to the two > new ones. > > I wonder if it is worthwhile though. > Just make two main directories and divide the stuff and don't > worry if they are both in the same partition. > I am not worried about the data, I want to split /tmp filesystem so I can mount it as /tmp and /var/tmp seperately. Because I want to enable noexec on these and unreachable from each other, it is necessary. The problem was that I use open_basedir with php and session files are in /var/tmp while open_basedir allows /tmp only and programs(like joomla) get confused and say that they cant write to the session directory. But they actually can because session files are created automatically by php, they are just not able to set directory manually. (which is weird thing of php) Programs like joomla and oscommerce etc. work just fine but for example joomla installer complains and my customers tell me that 'joomla says your server is bad' :p But now I think about it again if I put the open_basedir to /var/tmp which gets preset in programs most used by my customers then I should set session save path to /tmp and same problem would occur. Anyhow :) it was a stupid idea... sorry to bother you all with it :) Thanks, Evren