From owner-freebsd-questions@FreeBSD.ORG Sun Feb 8 19:16:56 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C660D16A4CE for ; Sun, 8 Feb 2004 19:16:56 -0800 (PST) Received: from spam2.snu.ac.kr (spam2.snu.ac.kr [147.46.10.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 0AD9943D1D for ; Sun, 8 Feb 2004 19:16:56 -0800 (PST) (envelope-from nospam@users.sourceforge.net) Received: (snipe 30707 invoked by alias); 9 Feb 2004 12:16:53 +0900(KST) Received: from nospam@users.sourceforge.net with SpamSniper2.76 (Processed in 0.041111 secs); Received: from unknown (HELO sis1.snu.ac.kr) (147.46.10.36) by 0 with SMTP; 9 Feb 2004 12:16:53 +0900(KST) X-RCPTTO: freebsd-questions@freebsd.org, Received: from users.sourceforge.net (cisr.snu.ac.kr [147.46.44.181]) by sis1.snu.ac.kr (8.12.10/8.12.10) with ESMTP id i193DewT094486 for ; Mon, 9 Feb 2004 12:13:40 +0900 Message-ID: <4026FBA6.8030001@users.sourceforge.net> Date: Mon, 09 Feb 2004 12:16:54 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040207 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: How to safely merge two slices on harddisk? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2004 03:16:56 -0000 Hi, I have a hard disk, on which I would like to merge two slices into one single slice. The disk slices are as follows: /dev/ad1s1a 98M 43M 47M 48% /home/userB /dev/ad1s1d 64G 45G 14G 77% /home/userA /dev/ad1s1e 3.0G 2.5G 282M 90% /home/userC /dev/ad1s1f 3.0G 1.0G 1.7G 37% /usr/ports /dev/ad1s1g 3.0G 268M 2.5G 10% /mnt /dev/ad1s1h 295M 295M -23.5M 109% /diskless_swap I want to merge /ad1s1f and /ad1s1g into one 6Gb slice. The merging should NOT destroy anything in the slices before (ad1s1a, d, and e), but destroying the data in the one afer (ad1s1h) is no problem. Is there a way to do this? What is the safest one? (without having to backup the whole disk). Thanks, Rob.