From owner-freebsd-questions@FreeBSD.ORG Mon Jan 7 20:14:33 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18C6D16A417 for ; Mon, 7 Jan 2008 20:14:33 +0000 (UTC) (envelope-from kimimeister@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id D578E13C442 for ; Mon, 7 Jan 2008 20:14:32 +0000 (UTC) (envelope-from kimimeister@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so13250265waf.3 for ; Mon, 07 Jan 2008 12:14:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=StuchynxOAqUN9IUczEojPo39ec9mN/uvJmCWo5lWRw=; b=WFXcCLzfgSvtwLJx5d2ahG3Qq17wIbpLCB9CiYfpY1tKXlc6iToFkxUUI/Kj8h8gd1TCFhRqtczitIJs1meLSXvDjfg+44RpdTgANrfOqIBoBN5QmkUf3yuVZyLoihHlsQgm0UPXa6r8OoeV8wcEOGUP2e85byVbm8vbcTNALYQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RbryEN/HyfVPXghFh4guMh8YK4Cpzs5IqCFYHBJOuCS9zVNO8xZXONCnilb7xCyicQRAA3swU1z1jtuRlYQEH3Fn8mQHqu34rE1JyzsTw9LXjU6OWx2ZRrCY+RdJlqhHRkH2vV+WAi9IE/g7WfF7uQ+LxNLTlSNnqrWBbdCRsBI= Received: by 10.114.191.1 with SMTP id o1mr803488waf.66.1199735386252; Mon, 07 Jan 2008 11:49:46 -0800 (PST) Received: by 10.114.111.17 with HTTP; Mon, 7 Jan 2008 11:49:46 -0800 (PST) Message-ID: <42b497160801071149u1cac6122pce67ef31f399a53@mail.gmail.com> Date: Mon, 7 Jan 2008 19:49:46 +0000 From: Kimi To: "Martin Laabs" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-questions@freebsd.org Subject: Re: minimum valid block size on DVD-RAM 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, 07 Jan 2008 20:14:33 -0000 On 07/01/2008, Martin Laabs wrote: > Hi, > > I'm investigating a problem concerning the minimum valid block > size accepted by DVD (writing) devices when writing > on a DVD-RAM. (Please don't mix DVD-R, DVD-RW and DVD-RAM up > here.) > > My motivation for this is the handbook chapter 18.7.9 that > describes how to format a DVD-RAM. All listed commands works > on a blocksize of 512 byte. This does not work for me on an > 'Optiarc DVD RW AD-7170A/1.02' device since it refuse every > operation with a blocksize unequal to a multiple of > 2048 bytes. > > The actual inherent (physical) block-/sector size on > a DVD-RAM is, like on nearly all other DVDs and CDs, > realy 2048 byte so the behaviour of my device makes sense > to me. (How should it write a quarter sector?) > > Now Marc Fonvieille let me know that the instructions in > the handbook has been submitted by a DVD-RAM user. This > means that these instruction works at least at one system. > I'd now like to know whether most of the available DVD-writers > are capable of writing blocks smaller than 2k. If not it > would be worth investigating an alternativ instruction set. > (But this is not as simple as it seems because newfs seems > to have a bug with the -S option and also bsdlabel works > as default on 512 byte blocks) > > Since I don't have access to different DVD-writers I can't > test their behaviour regarding the minimum accepted block > size. > > Therefore I'd like to ask you for a little test with > your DVD-RAM enabled DVD-writer. > > 1. Insert a DVD-RAM (not DVD-R or DVD-RW!) > 2. run 'dd if=/dev/acd0 of=/dev/null bs=512 count=1' (please adjust - if > necessary - the device name) > 3. run 'dd if=/dev/acd0 of=/dev/null bs=2048 count=1' (please adjust - if > necessary - the device name) > > Please report me whether command 3 and command 2 succeed > and also if command 3 succeed and command 2 > fails. The first case would mean that your dvd-write is > capable of reading blocks smaller that 2048 bytes which > would be very surprising for me > > If you have an empty DVD-RAM (or an DVD-RAM with un- > important data) I'd pleased if you could also try a > writing test. > > 1. Insert a DVD-RAM (Remark: *it will be deleted*) > 2. run 'dd if=/dev/zero of=/dev/acd0 bs=512 count=1' (please adjust - if > necessary - the device name) > 3. run 'dd if=/dev/zero of=/dev/acd0 bs=2048 count=1' (please adjust - if > necessary - the device name) > > Please report me whether command 3 and command 2 succeed > ans also if command 3 succeed and command 2 fails. > The first would mean that your dvd-write is capable of writing > blocks with 512 bytes. That would mean that the instruction set > of the handbook works for you. > > My output of the reading an writing test is > the following: > > Reading: > > # dd if=/dev/acd0 of=/dev/null bs=512 count=1 > dd: /dev/acd0: Invalid argument > 0+0 records in > 0+0 records out > 0 bytes transferred in 0.000196 secs (0 bytes/sec) > # dd if=/dev/acd0 of=/dev/null bs=2048 count=1 > 1+0 records in > 1+0 records out > 2048 bytes transferred in 1.886969 secs (1085 bytes/sec) > > Writing: > > # dd if=/dev/zero of=/dev/acd0 bs=512 count=1 > dd: /dev/acd0: Invalid argument > 1+0 records in > 0+0 records out > 0 bytes transferred in 0.000205 secs (0 bytes/sec) > # dd if=/dev/zero of=/dev/acd0 bs=2048 count=1 > 1+0 records in > 1+0 records out > 2048 bytes transferred in 0.001600 secs (1280169 bytes/sec) > > You see that my device accept read and writes with > a blocksize (or a multiple of a blocksize) of 2048 bytes > only. > I can not test now, but everything I had seen previously when looking to use DVD-RAM for a live system instead of using hard drive, plus cheaper & easier to backup/replace, points to having a block size of 2048 bytes, even Vista it is the only option and is the default. it works for me perfectly for over a year on a firewall & file server, only thing I changed was the default block/frag size for UFS2 to 8096/1024. Only time I hear them spin-up is when periodic runs daily/weekly/monthly. > Best regards, > Martin Laabs > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- Kimi