From owner-freebsd-questions@freebsd.org Thu Dec 29 11:53:47 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B005C964F1 for ; Thu, 29 Dec 2016 11:53:47 +0000 (UTC) (envelope-from starikarp@yandex.com) Received: from forward3j.cmail.yandex.net (forward3j.cmail.yandex.net [IPv6:2a02:6b8:0:1630::16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 284101C97 for ; Thu, 29 Dec 2016 11:53:47 +0000 (UTC) (envelope-from starikarp@yandex.com) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [37.140.190.26]) by forward3j.cmail.yandex.net (Yandex) with ESMTP id 2C65E20F8F for ; Thu, 29 Dec 2016 14:53:44 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id 054DB1300E58 for ; Thu, 29 Dec 2016 14:53:43 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id K358Nlb7rr-rgZWKfCR; Thu, 29 Dec 2016 14:53:42 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1483012423; bh=mCHuqVc7VxRKWzL/KXzrXhlweVYbGzZrjeVO54kHcD4=; h=Message-ID:Subject:From:To:Date; b=cdk8+ydc5HiU2Ds/lhchjV+9SR+pcZdL+W61z6+g4OSKfRS+VzYp/n+V3ZBx1rsMy 5FYfq/QKtL4HxRxyQV4/3uRJxRQtCzyjxM6QiSby7Iew7QBbMP/gHbtZqx9jRxTBpe 0+O3hjAgRtZjSO+aFrdseKv0mvf/oz7zirVYcsLc= Authentication-Results: smtp1o.mail.yandex.net; dkim=pass header.i=@yandex.com X-Yandex-Suid-Status: 1 0 Message-ID: <1483012420.95172.9.camel@yandex.com> Subject: swap partition From: Stari Karp To: FreeBSD Questions Date: Thu, 29 Dec 2016 06:53:40 -0500 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2016 11:53:47 -0000 Hi! I like to increase swap partition but I am scary to screw up my system. FreeBSD is installed on iMac (Mountain Lion). gpart show =>        34  1953525101  ada0  GPT  (932G)           34           6        - free -  (3.0K)           40      409600     1  efi  (200M)       409640  1216587112     2  apple-hfs  (580G)   1216996752     1269536     3  apple-boot  (620M)   1218266288        1024     4  freebsd-boot  (512K)   1218267312   727710720     5  freebsd-ufs  (347G)   1945978032     7547102     6  freebsd-swap  (3.6G)   1953525134           1        - free -  (512B) What I planning to do: Boot to OS X and than decrease apple-hfs partition for 64 GB. Than boot to FreeBSD (single user) and: swapoff -a gpart resize -i6 ada0 swapon -a Do I need to use gpart resize -i6 -s 64G ada0 or gpart will find empty space and use it, please? Should I format on OS X empty space to FAT? And I am using rEFiT for boot manager. Thank you. SK