Can’t no more install FreeNAS

}

March 18, 2007

(First post!)

Since the last week, I can’t install FreeNAS on my virtual machine (same problem under KQEMU and VMware).
When booting from the CDROM (or upgrading from WebGUI) I meet this error message (try to install it in both mode):

gunzip: error writing to output: Broken pipe
gunzip: img file: uncompress failed

Then, from the shell I’ve try to install it manually:

# mkdir /mnt/cdrom_fr_0507
# mount -t cd9660 /dev/acd0 /mnt/cdrom_fr_0507
# /usr/bin/gunzip -S “” -c /mnt/cdrom_fr_0507/FreeNAS-generic-pc.gz | dd of=/dev/ad0 bs=512
dd: /dev/ad0: Invalid argument
1278+1 records in
1278+0 records out
654336 bytes transferred in 0.917600 secs (713095 bytes/sec)

It seem ok but I don’t remember if the message “dd: /dev/ad0: Invalid argument” is a normal message.

Then I check the fresh hard drive:

# mkdir /mnt/tutu
# mount /dev/ad0a /mnt/tutu
# ls -alh /mnt/tutu/
ls: boot: Bad file descriptor
ls: conf: Bad file descriptor
total 15291
drwxr-xr-x 5 root wheel 512B Mar 18 16:11 .
drwxrwxrwx 4 root wheel 512B Mar 19 00:03 ..
drwxrwxr-x 2 root operator 512B Mar 18 16:11 .snap
-rw-r–r– 1 root wheel 15M Mar 18 16:11 mfsroot.gz

It seem that the IMG file is not correctly ‘dd’ on the hard drive (Bad file descriptor for the boot directory).

Then I checked the IMG file on the CDROM (using another drive ad1 for testing it):
# fdisk -I /dev/ad1
******* Working on device /dev/ad1 *******
fdisk: invalid fdisk partition table found
fdisk: Geom not found
# newfs /dev/ad1s1
/dev/ad1s1: 99.9MB (204560 sectors) block size 16384, fragment size 2048
using 4 cylinder groups of 24.98MB, 1599 blks, 3200 inodes.
super-block backups (for fsck -b #) at:
160, 51328, 102496, 153664
# mkdir /mnt/testing
# mount /dev/ad1s1 /mnt/testing/
# cp /mnt/cdrom_fr_0507/FreeNAS-generic-pc.gz /mnt/testing/
# cd /mnt/testing/
# gunzip FreeNAS-generic-pc.gz
# mdconfig -a -t vnode -f FreeNAS-generic-pc -u 1
# mkdir /mnt/check
# mount /dev/md1a /mnt/check/
# ls -alh /mnt/check/
total 15293
drwxr-xr-x 5 root wheel 512B Mar 18 16:11 .
drwxrwxrwx 6 root wheel 512B Mar 19 00:07 ..
drwxrwxr-x 2 root operator 512B Mar 18 16:11 .snap
drwxr-xr-x 4 root wheel 512B Mar 18 16:11 boot
drwxr-xr-x 2 root wheel 512B Mar 18 16:11 conf
-rw-r–r– 1 root wheel 15M Mar 18 16:11 mfsroot.gz

No problem on this IMG file.. the problem seem coming from the “dd” command…

Share On Social: