From owner-freebsd-questions@FreeBSD.ORG Sat Jun 12 00:37:30 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C23931065673 for ; Sat, 12 Jun 2010 00:37:30 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 822F58FC0C for ; Sat, 12 Jun 2010 00:37:30 +0000 (UTC) Received: from r55.edvax.de (port-92-195-117-232.dynamic.qsc.de [92.195.117.232]) by mx01.qsc.de (Postfix) with ESMTP id 2F3ED3D711; Sat, 12 Jun 2010 02:37:24 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o5C0bOUl004302; Sat, 12 Jun 2010 02:37:24 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 12 Jun 2010 02:37:23 +0200 From: Polytropon To: Giorgos Tsiapaliokas Message-Id: <20100612023723.a72dea58.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: resize freebsd slice X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jun 2010 00:37:30 -0000 On Sat, 12 Jun 2010 03:12:57 +0300, Giorgos Tsiapaliokas wrote: > after the formats how i will restore my system? With restore. :-) First of all, after you've created a new slice, and within the slice partitions as desired (you can easily do this from the FreeBSD live system CD or DVD, or any other FreeBSD based live system, e. g. FreeSBIE), you will need one restore operation per dumped partition. In this example, I'll assume that ad0s3 is your new FreeBSD slice, and within it, the partitions ad0s3a (root file system), ad0s3b (swap) and ad0s3e (home) have been successfully created (e. g. via sysinstall's functionality, sade, or fdisk + bsdlabel). If you are in a multiboot environment, pay attention to the implications (e. g. FreeBSD boot manager). Then, when in the live system: # mkdir /backup # mount -o ro /dev/da0 /backup # newfs ad0s3a # newfs -U ad0s3e # mount /dev/newfs ad0s3a /mnt # cd /mnt # restore -rf /backup/root.dump # cd /mnt/home # restore -rf /backup/home.dump # cd / # umount /mnt # umount /backup # sync # reboot See "man restore" for details. Basically, using restore, you go # cd # restore -rf It's quite easy as soon as you've understood this logic. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...