From owner-freebsd-questions Mon Jul 15 7:32:16 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 263E437B401 for ; Mon, 15 Jul 2002 07:32:12 -0700 (PDT) Received: from zim.0x7e.net (zim.0x7e.net [203.38.184.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1972843E4A for ; Mon, 15 Jul 2002 07:32:09 -0700 (PDT) (envelope-from listone@deathbeforedecaf.net) Received: from goo.0x7e.net ([203.38.184.164] helo=goo) by zim.0x7e.net with smtp (Exim 3.33 #1) id 17U6w5-0008kT-00; Tue, 16 Jul 2002 00:04:49 +0930 Message-ID: <000201c22c0c$74bd06d0$a4b826cb@goo> From: "Rob" To: Cc: References: <004a01c22b31$1b706da0$a4b826cb@goo> <20020715060413.GF63545@cicely5.cicely.de> Subject: Re: FFS on CD-ROM - can it be done? (Yes!) Date: Tue, 16 Jul 2002 00:02:31 +0930 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 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 That was it! After 6 coasters, I have a mountable FFS CD-ROM - thank you *so* much! For the curious, here is the recipe - assumes a 700MB CD-R: # create the image file dd if=/dev/zero of=image bs=1m count=700 # create the virtual filesystem vnconfig -s labels -c vn0 image disklabel -r -w vn0 auto newfs -f 2048 vn0c # mount it mkdir mount mount /dev/vn0c `pwd`/mount # at this point, you have a 700MB file 'image', and a directory 'mount' # which holds a 700MB filesystem. now copy some stuff into mount.... # ummount & burn umount /dev/vn0c burncd -f /dev/acd1c -s 12 data image fixate # cleanup vnconfig -u vn0 rm -rf image mount And thanks again :-) On July 15, 2002 Bernd Walter said: > 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