From owner-freebsd-questions@FreeBSD.ORG Mon Aug 14 00:55:43 2006 Return-Path: X-Original-To: questions@freebsd.org 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 69B0516A4DE for ; Mon, 14 Aug 2006 00:55:43 +0000 (UTC) (envelope-from BCSFD204@twcny.rr.com) Received: from ms-smtp-03.nyroc.rr.com (ms-smtp-03.nyroc.rr.com [24.24.2.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ADAF43D46 for ; Mon, 14 Aug 2006 00:55:42 +0000 (GMT) (envelope-from BCSFD204@twcny.rr.com) Received: from [192.168.0.10] (cpe-74-67-201-204.twcny.res.rr.com [74.67.201.204]) by ms-smtp-03.nyroc.rr.com (8.13.6/8.13.6) with ESMTP id k7E0tf1P011065 for ; Sun, 13 Aug 2006 20:55:41 -0400 (EDT) Message-ID: <44DFCA04.6030501@twcny.rr.com> Date: Sun, 13 Aug 2006 20:55:32 -0400 From: Tom Parquette User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20060625 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: Subject: Problem erasing swap parition before encrypting 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: Mon, 14 Aug 2006 00:55:43 -0000 Hi all. I'm trying to turn on swap encryption on a 6.1-S machine. I ran into problems trying to write the random data over the swap space. I get the following messages: Script started on Sun Aug 13 20:48:28 2006 P3R-233# dd if=/dev/random of=/dev/ad4s1b bs=1m dd: /dev/ad4s1b: Operation not permitted 1+0 records in 0+0 records out 0 bytes transferred in 0.029574 secs (0 bytes/sec) P3R-233# exit exit Script done on Sun Aug 13 20:48:55 2006 I have tried this on several swap partitions and have gotten the same result. I have also tried this to a new partition that I would like to encrypt as a test and I the the same messages. I'm running as root. I have swap turned off to that swap file. I have tried coming up in single user mode. I have even unmounted the other filesystems on that disk. I checked and /dev/ad3a1b is owned by root:wheel. Any ideas would be more than welcome. Thanks...