From owner-freebsd-doc@FreeBSD.ORG Sun Jan 6 15:40:01 2008 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E84E16A419 for ; Sun, 6 Jan 2008 15:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 812AF13C45D for ; Sun, 6 Jan 2008 15:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m06Fe1bk017777 for ; Sun, 6 Jan 2008 15:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m06Fe1um017776; Sun, 6 Jan 2008 15:40:01 GMT (envelope-from gnats) Resent-Date: Sun, 6 Jan 2008 15:40:01 GMT Resent-Message-Id: <200801061540.m06Fe1um017776@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Laabs Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16F6816A417 for ; Sun, 6 Jan 2008 15:37:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 0E6FA13C448 for ; Sun, 6 Jan 2008 15:37:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m06FajhZ089767 for ; Sun, 6 Jan 2008 15:36:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m06Fajca089766; Sun, 6 Jan 2008 15:36:45 GMT (envelope-from nobody) Message-Id: <200801061536.m06Fajca089766@www.freebsd.org> Date: Sun, 6 Jan 2008 15:36:45 GMT From: Martin Laabs To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/119386: bsdlabel and newfs on DVD-RAM (handbook ch. 18.7.9) X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2008 15:40:01 -0000 >Number: 119386 >Category: docs >Synopsis: bsdlabel and newfs on DVD-RAM (handbook ch. 18.7.9) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Jan 06 15:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Martin Laabs >Release: 6.2 >Organization: - >Environment: FreeBSD martin.laabs 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu Apr 26 17:40:53 UTC 2007 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: In chapter 18.7.9 of the handbook (Using a DVD-RAM) is a description how to use/prepare a DVD-RAM so that it can be used with freebsd. Therefore you have to use bsdlabel and newfs. Since the blocksize of an DVD-RAM ist 2048 byte and bsdlabel and newfs (also with the -s 2048 option) do at least one write with blocksize smaller than 2048 byte both commands fails. >How-To-Repeat: For example the first command, which is "dd if=/dev/zero of=/dev/acd0 count=2", produces the following output on my system (Optiarc DVD RW AD-7170A/1.02 device) su:~$ dd if=/dev/zero of=/dev/acd0 count=2 dd: /dev/acd0: Invalid argument 1+0 records in 0+0 records out 0 bytes transferred in 0.000138 secs (0 bytes/sec) If I add the bs=2k option it works fine: su:~$ dd if=/dev/zero of=/dev/acd0 count=1 bs=2k 1+0 records in 1+0 records out 2048 bytes transferred in 0.001740 secs (1177026 bytes/sec) >Fix: >Release-Note: >Audit-Trail: >Unformatted: