Mkflash_new Errors on FreeBSD 8.2
-
Hi.
I want to increase the size of the nano pfsense 2.0RC3, I install freebsd 8.2 i386 just for this,but something is not working good.
I download the script and follow the instructions:
But the final file size don't match, I even have errors went I run the script:
./mkflash_new 1024 pfSense-2.0-RC3-512mb-i386-20110621-1821-nanobsd.img
Aug 8 07:34:56: Creating 1 Gigabyte Compact Flash
Aug 8 07:34:56: And using pfSense-2.0-RC3-512mb-i386-20110621-1821-nanobsd.img as source image.
Aug 8 07:34:56:
Aug 8 07:34:56: Real flash size: 978 MB
Aug 8 07:34:56: root size: 974, root blocks: 1994752
Aug 8 07:34:56: conf size: 4, conf blocks: 8192 1994752
Aug 8 07:34:56: cylinders: 489, heads: 128, sectors: 32
Aug 8 07:34:56:
Aug 8 07:34:56: Creating empty 1024MB flash image in /usr/images
Aug 8 07:35:18:
Aug 8 07:35:18: Preparing Filesystems on /usr/images/pfSense-1024MB.img
Aug 8 07:35:19: Bsdlabel
Aug 8 07:35:19: Newfs
Aug 8 07:35:19:
Aug 8 07:35:19: Extracting content from pfSense-2.0-RC3-512mb-i386-20110621-1821-nanobsd.img
mount: /dev/md0a : No such file or directory
mount: /dev/md0d : No such file or directory Aug 8 07:35:19: -> /usr/images/pfSense-slash.tar.bz2
Aug 8 07:35:19: -> /usr/images/pfSense-conf.tar.bz2
umount: /dev/md0a: statfs: No such file or directory
umount: /dev/md0a: unknown file system
umount: /dev/md0d: statfs: No such file or directory
umount: /dev/md0d: unknown file system Aug 8 07:35:19:
Aug 8 07:35:19: Restoring content to /usr/images/pfSense-1024MB.img
Aug 8 07:35:19: <- /usr/images/pfSense-slash.tar.bz2
Aug 8 07:35:19: <- /usr/images/pfSense-conf.tar.bz2
Aug 8 07:35:19: Cleanig up.
Aug 8 07:35:19:
Aug 8 07:35:19: Compressing /usr/images/pfSense-1024MB.img
Aug 8 07:35:48: Creating MD5 hash
Aug 8 07:35:48:
Aug 8 07:35:48: READY! Now you have a 1024MB pfSense image.
Aug 8 07:35:48: You can get this image on your CF Card using:
Aug 8 07:35:48: zcat /usr/images/pfSense-1024MB.img.gz | dd of=/dev/da0 bs=16kU can see the size here:
ls -l
total 1226924
-rw-r–r-- 1 root wheel 229630464 Aug 8 06:47 latest-nanobsd-512mb.img
-rwxr-xr-x 1 root wheel 7983 Aug 8 06:37 mkflash_new
drwxr-xr-x 4 root wheel 512 Aug 8 06:45 mnt
-rw-r--r-- 1 root wheel 1016438 Aug 8 07:35 pfSense-1024MB.img.gz
-rw-r--r-- 1 root wheel 75 Aug 8 07:35 pfSense-1024MB.img.gz.md5
-rw-r--r-- 1 root wheel 512483328 Jul 18 22:44 pfSense-2.0-RC3-512mb-i386-20110621-1821-nanobsd.img
fbsd# uname -a
FreeBSD fbsd.pheriko.dyndns.org 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386The original file size is 512MB and the result is less than that,is possible?
-
The image is compressed so the final size is no indication of the resulting image.
Why don't you just use a larger NanoBSD image?
Steve
-
stephenw10 sorry, I forget to get a bigger image, thanks!!!