memstick.img is bloated with 7% 2K blocks of nulls

Bruce Cran bruce at cran.org.uk
Sat Feb 12 01:01:36 UTC 2011


On Sat, 12 Feb 2011 01:54:58 +0100
"Julian H. Stacey" <jhs at berklix.com> wrote:

> 	 -O filesystem-type
>              Use 1 to specify that a UFS1 format file system be
> built; use 2 to specify that a UFS2 format file system be built.  The
> default format is UFS2.
> If anyone fancies looking deeper, please do :-)

I checked with dumpfs that memstick.img is UFS1.

Also, mounting /dev/md0 confuses the kernel into ultimately panic'ing,
since /dev/md0a is the proper slice. For the mfsroot.gz file from the
CD ISOs:

# mdconfig -a -f mfsroot
md0
# mount /dev/md0a /mnt
# ls /mnt
ls: /mnt: Bad file descriptor
# cd /mnt
cd: /mnt: Not a directory
# vim /mnt

panic: ffs_read: type 0

kdb_enter()
panic()
ffs_read()
vn_read
dofileread()
kern_readv()
read()
syscallenter()
syscall()
Xfast_syscall()

-- 
Bruce Cran


More information about the freebsd-hackers mailing list