From owner-freebsd-questions@FreeBSD.ORG Sat May 16 07:41:39 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7B9A1CC5 for ; Sat, 16 May 2015 07:41:39 +0000 (UTC) Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4972B14DC for ; Sat, 16 May 2015 07:41:39 +0000 (UTC) Received: by ieczm2 with SMTP id zm2so66446079iec.1 for ; Sat, 16 May 2015 00:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=KXG5SocFqJI6zj17RF3CzJfZBAtDfB7uBrj9Qvygx6o=; b=YYF01pgZA+sYvNcF8RKdIfPcRctelAavCQd+XyVhts1HC3dODir4S9tqxMP1NRkF+C ahadlxANqOtOdiCEScTUFNkdVEIhj/dyAtGRA1OjOBCLT6cZjqy8d+/ql7D4rcOGSeVl sgFGzTcA5lbkmoqPMP0CveyQ25IGxDYXHL276AHIERlsY7jVNcR1PFOMQl1gohD1TJcZ v4vL7JeS2WuvsUVnk3DB5tfPBoEqYCwSeeDjD2qiZsPkpuOjAskgnnkKBKL+PGawJpyU v7Muz6bPgPpCaGjAjVXlIcVGVLMn8Adi/qGcnWn0snfReQCwHKBGv93+B1uVX/GID2S0 adxg== X-Received: by 10.50.79.228 with SMTP id m4mr2888421igx.42.1431762098761; Sat, 16 May 2015 00:41:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.121.1 with HTTP; Sat, 16 May 2015 00:41:18 -0700 (PDT) From: Avinash Sonawane Date: Sat, 16 May 2015 13:11:18 +0530 Message-ID: Subject: Swap partition for FreeBSD To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 May 2015 07:41:39 -0000 Hello all! I was trying to build www/webkit-gtk3 (a dependency for x11/gnome3) then it abruptly exited with "Out of swap space error" so I created a separate 8GB partition to be used as freebsd-swap. Here is `gpart show`, `gpart show -p`, `swapinfo` and `/etc/fstab` http://pastebin.com/KSFM49yP Now my problem is that I see a message "May 16 12:31:59 titanic kernel: GEOM_PART: Partition 'ada0s6' not suitable for kernel dumps (wrong type?)" during bootup. And I think that's because though the system is using ada0s6 as swap partition (evident from the above pastebin) the partition has a wrong type. More specifically it is linux-data instead of freebsd-swap (See `gpart show` in above paste) So how do I change the type of ada0s6 to freebsd-swap? I tried `bsdlabel -e ada0s6` but then it said "bsdlabel: /dev/ada0s6: no valid label found" Then I tried `gpart modify -i 2878773 -t freebsd-swap ada0s4` then it said "gpart: pre-check failed: Operation canceled" (Here 2878773 is the index number of ada0s6. See `gpart show` in above pastebin) I tried these 2 approaches after `swapoff /dev/ada0s6` too but they throw same error messages as above. So how do I get rid of the above mentioned error message appearing during boot or how do I format ada0s6 to freebsd-swap from linux-data? Thank you. -- Avinash Sonawane (RootKea) PICT, Pune http://rootkea.wordpress.com