Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2008 15:36:45 GMT
From:      Martin Laabs <martin.laabs@mailbox.tu-dresden.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/119386: bsdlabel and newfs on DVD-RAM (handbook ch. 18.7.9)
Message-ID:  <200801061536.m06Fajca089766@www.freebsd.org>
Resent-Message-ID: <200801061540.m06Fe1um017776@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801061536.m06Fajca089766>