From owner-freebsd-questions Thu Mar 9 6: 2: 8 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.camelot.de (robin.camelot.de [195.30.224.3]) by hub.freebsd.org (Postfix) with ESMTP id 7C49137B5C9 for ; Thu, 9 Mar 2000 06:02:03 -0800 (PST) (envelope-from bofax@camelot.de) Received: from robin.camelot.de (bofax@robin.camelot.de [195.30.224.3]) by mail.camelot.de (8.9.3/8.9.3) with ESMTP id PAA05395 for ; Thu, 9 Mar 2000 15:02:01 +0100 (CET) Received: (from bofax@localhost) by robin.camelot.de (8.9.3/8.9.3) id PAA05377 for freebsd-questions@freebsd.org; Thu, 9 Mar 2000 15:02:01 +0100 (CET) Date: Thu, 9 Mar 2000 14:04:05 +0100 From: Florian Bofinger To: "Kenneth D. Merry" Cc: freebsd-questions@camelot.de Subject: Re: DVD-Ram with 4.0-CURRENT Message-ID: <20000309140405.A86742@camelot.de> Mail-Followup-To: "Kenneth D. Merry" , freebsd-questions@camelot.de References: <20000229200749.A88564@camelot.de> <20000229132849.A24223@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000229132849.A24223@panzer.kdm.org>; from ken@kdm.org on Tue, Feb 29, 2000 at 01:28:49PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, On Tue, Feb 29, 2000 at 01:28:49PM -0700, Kenneth D. Merry wrote: > On Tue, Feb 29, 2000 at 20:07:49 +0100, Florian Bofinger wrote: > > Hi, > > > > I'm using a Toshiba DVD-RAM SD-W1111 with an Adaptec 2940 UW Pro under > > FreeBSD 4.0-CURRENT. > > > > I want to put a UFS filesystem on a DVD-Ram (2.6 Gig). > > When I insert a DVD-Ram and execute sysinstall, I get following message at > > the console... > > > > dscheck(rda1): b_bcount 512 is not on a sector boundary (ssize 2048) > > > > ... and sysinstall exits. > > > > I jumpered the DVD-Ram to multiple-LUN-Support, while booting I get > > following messages: > > > > da1 at ahc0 bus 0 target 4 lun 1 > > da1: Removable Optical SCSI-2 device > > da1: 10.000MB/s transfers (10.000MHz, offset 15) > > da1: 2380MB (1218960 2048 byte sectors: 255H 63S/T 75C) > > cd1 at ahc0 bus 0 target 4 lun 0 > > cd1: Removable CD-ROM SCSI-2 device > > cd1: 10.000MB/s transfers (10.000MHz, offset 15) > > cd1: Attempt to query device size failed: NOT READY, Medium not present > > That's odd. I suppose it just reports "not ready" on the CD LUN if you've > got DVD-RAM media in the drive? Interesting. Right. > > The DVD-Ram has no jumper to jumper it to a blocksize of 512 bytes.. > > > > I can partition the medium with fdisk and I can disklabel it (but don't know > > what values to put on it...). > > > > Anyone any suggestions? > > Yeah, use disklabel to partition it, and then use newfs. My guess is that > sysinstall is doing something that accesses the raw device in 512 byte > chunks, which of course doesn't work for devices with a 2K blocksize. It worked: dd if=/dev/zero of=/dev/rda1 count=2 bs=2k disklabel /dev/rda1 > label disklabel -R -r /dev/rda1 label newfs /dev/da1c I guess I should play with the -i option of the newfs to reduce the number of inodes... > I'm working on DVD-RAM support in the CD driver, so you won't have to > enable multiple LUN support on your DVD-RAM to get it to work. (You'll be > able to read/write with the CD driver.) > > The main hangup is what to do about disklabel support. I haven't worked on > it in a few weeks, since I've got other more pressing things to do. > > So using the da driver is the right approach for now. It should be able to > handle 2K blocksizes okay, you probably just need to use disklabel and > newfs on the drive instead of trying to use sysinstall. (I'm not sure what > it is doing in 512 byte chunks that causes the problem.) Yes, that's how it worked, thanks a lot! Greetings, BoFax -- Florian Bofinger www.camelot.de - Der "sagenhafte" Internet Full-Service Provider 'Can't buy what I want because it's free' - Pearl Jam (FreeBSD rocks) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message