From owner-freebsd-questions Sun Jul 14 23: 4:35 2002 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 BDCBC37B400 for ; Sun, 14 Jul 2002 23:04:32 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE73543E6A for ; Sun, 14 Jul 2002 23:04:31 -0700 (PDT) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.3/8.12.3) with ESMTP id g6F64G0i048564 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 15 Jul 2002 08:04:19 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g6F64FFJ079067 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 15 Jul 2002 08:04:16 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g6F64EIu079066; Mon, 15 Jul 2002 08:04:14 +0200 (CEST)?g (envelope-from ticso) Date: Mon, 15 Jul 2002 08:04:14 +0200 From: Bernd Walter To: Rob Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FFS on CD-ROM - can it be done? Message-ID: <20020715060413.GF63545@cicely5.cicely.de> Reply-To: ticso@cicely.de References: <004a01c22b31$1b706da0$a4b826cb@goo> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004a01c22b31$1b706da0$a4b826cb@goo> X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Jul 14, 2002 at 09:52:22PM +0930, Rob wrote: > Wise Ones, > > I'm trying to put a FFS filesystem on CD-ROM. My current attempt builds > a virtual filesystem with vnconfig + disklabel + newfs, then writes the image > file using burncd. I end up with something that half works - df and fsdb can > see the filesystem, but ffsinfo and mount can't. > > # mount -r /dev/acd1c /mnt > mount: /dev/acd1c on /mnt: incorrect super block > # df -h /dev/acd1c > Filesystem Size Used Avail Capacity Mounted on > /dev/acd1c 678M 256M 368M 41% > # ffsinfo /dev/acd1c > ffsinfo: partition is unavailable > # fsdb -r /dev/acd1c > ** /dev/acd1c (NO WRITE) > > CANNOT READ: BLK 2048 > CONTINUE? yes > > THE FOLLOWING DISK SECTORS COULD NOT BE READ: > Examining file system `/dev/acd1c' > Last Mounted on /var/spool/cdrom-images/mount > current inode: directory > I=2 MODE=40755 SIZE=512 ^^^^^^^^ Here is your problem! > MTIME=Jul 6 16:17:23 2002 [0 nsec] > CTIME=Jul 6 16:17:23 2002 [0 nsec] > ATIME=Jul 6 16:23:36 2002 [0 nsec] > OWNER=root GRP=wheel LINKCNT=5 FLAGS=0 BLKCNT=2 GEN=baec144 > fsdb (inum: 2)> q CDs have a blocksize of 2048 bytes. Therefor you need your filesystem newfs'ed with -f 2048. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message