NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/38171 (mount_ffs doesn't work on CDs)



The following reply was made to PR bin/38171; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: bin/38171 (mount_ffs doesn't work on CDs)
Date: Wed, 9 Feb 2011 19:04:00 +0900

 > Synopsis: mount_ffs doesn't work on CDs
  :
 > The necessary blocksize translation layer should probably be written sometime
 > but probably won't be happening particularly soon...
 
 FYI, ffs with bsize=16384,fsize=2048 on CD-R can be mounted by mount_ffs(8).
 
 ---
 % makefs -t ffs -o fsize=2048,bsize=16384 /tmp/ffs hp300
 Calculated size of `/tmp/ffs': 153141248 bytes, 13523 inodes
 Extent size set to 16384
 /tmp/ffs: 146.0MB (299104 sectors) block size 16384, fragment size 2048
         using 1 cylinder groups of 146.05MB, 9347 blks, 14976 inodes.
 super-block backups (for fsck -b #) at:
  32,
 Populating `/tmp/ffs'
 Image `/tmp/ffs' complete
 % su
 # cdrecord -dev=/dev/rcd0d -speed=4 /tmp/ffs
  :
 
 # dumpfs /dev/rcd0a
 file system: /dev/rcd0a
 format  FFSv1
 endian  little-endian
 magic   11954           time    Wed Feb  9 18:46:49 2011
 superblock location     8192    id      [ 4d526289 6b8b4567 ]
 cylgrp  dynamic inodes  4.4BSD  sblock  FFSv2   fslevel 4
 nbfree  394     ndir    66      nifree  1452    nffree  7
 ncg     1       size    74776   blocks  73815
 bsize   16384   shift   14      mask    0xffffc000
 fsize   2048    shift   11      mask    0xfffff800
 frag    8       shift   3       fsbtodb 2
 bpg     9347    fpg     74776   ipg     14976
  :
 
 # mount_ffs -o ro /dev/cd0a /mnt
 # ls -l /mnt
 total 18
 drwxrwxr-x   2 tsutsui  wheel   512 Feb  9 18:42 CVS
 drwxrwxr-x   3 tsutsui  wheel   512 Dec 21  2009 DOC
 -rw-r--r--   1 tsutsui  wheel   821 Oct 30  2008 Makefile
 drwxrwxr-x  11 tsutsui  wheel   512 Jan 31 02:46 compile
 drwxrwxr-x   3 tsutsui  wheel   512 Feb  8 20:20 conf
 drwxrwxr-x   3 tsutsui  wheel  1536 Feb  9 18:33 dev
 drwxrwxr-x   3 tsutsui  wheel   512 Feb  9 18:42 hp300
 drwxrwxr-x   3 tsutsui  wheel  1536 Feb  9 18:33 include
 drwxrwxr-x   8 tsutsui  wheel   512 Feb  9 18:42 stand
 # df /mnt
 Filesystem   1K-blocks       Used      Avail %Cap Mounted on
 /dev/cd0a        147630     141312      -1062 100% /mnt
 # 
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index