From owner-freebsd-questions@FreeBSD.ORG Wed Jan 21 04:05:52 2004 Return-Path: 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 C633E16A4CE for ; Wed, 21 Jan 2004 04:05:52 -0800 (PST) Received: from smtp.covadmail.net (mx08.covadmail.net [63.65.120.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 4246B43D31 for ; Wed, 21 Jan 2004 04:05:51 -0800 (PST) (envelope-from strick@covad.net) Received: (covad.net 2312 invoked from network); 21 Jan 2004 12:05:45 -0000 Received: from unknown (HELO mist.nodomain) (strick@covad.net@68.164.174.235) by sun-qmail14 with SMTP; 21 Jan 2004 12:05:45 -0000 Received: from mist.nodomain (localhost [127.0.0.1]) by mist.nodomain (8.12.9p2/8.12.9) with ESMTP id i0LC5VbV000732; Wed, 21 Jan 2004 04:05:31 -0800 (PST) (envelope-from dan@mist.nodomain) Received: (from dan@localhost) by mist.nodomain (8.12.9p2/8.12.9/Submit) id i0LC5Udo000731; Wed, 21 Jan 2004 04:05:30 -0800 (PST) (envelope-from dan) Date: Wed, 21 Jan 2004 04:05:30 -0800 (PST) From: Dan Strick Message-Id: <200401211205.i0LC5Udo000731@mist.nodomain> To: fbsd_user@a1poweruser.com cc: freebsd-questions@FreeBSD.ORG cc: dan@mist.nodomain Subject: Re: using cd rw drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2004 12:05:52 -0000 There is a third reason why you can't treat a CD-RW just like a hard disk drive: 3) A CD has 2048 byte data sectors. FreeBSD hard disk drivers expect 512 byte sectors. The CD driver might have to be modified to fake the hard disk sector size. Even if the UFS fragment size is a multiple of 2048 bytes the OS might attempt 512 byte transfers to access disk labels. I am not sure the CD driver will look for disk labels or support all the special ioctls used by the disklabel program. Since the CD driver fakes a trivial partition table, you should not have to use the disklabel program anyway. If the newfs program and the OS do not do gratuitous sub-fragment transfers, setting the fragment size to 2048 bytes might finesse the sector size problem. Even if it works, UFS is probably not normally the best file system for CD-RW. The long seek times discourage random access and favor contiguous files. (However, I do see a small environmental niche for UFS on CD.) Given all these nagging little software issues, we may be stuck with mkisofs/burncd/cdrecord for the near future even with CD-RW. Dan Strick strick@covad.net