17 Apr

Raspberry Pi: Creating BerryBoot optimized image (the dirty way)

Goal: To add custom operating system to BerryBoot menu
Problems met: Invalid sector block size, invalid partition info, incompatible filesystem, error when perform kpartx and mounting

1. Write .img file (example: XBian1.0Alpha5.img) into USB drive using win32diskimager. Wait until it complete.
2. Connect and mount USB drive into your linux OS. I’m using Xubuntu installed in VirtualBox, so i need to click and select my USB device into guest OS.

3.Once the USB device recognized, it’ll be shown in your desktop. 2 partitions will be displayed. First partition has a FAT partition with the bootloader and kernel files while the second one is an ext4 partition with everything else. Mount the second partition into your desired location, or you can just perform right-click and mount. Mine is mounted at /media/user/

4. Then you can follow instruction given from berryboot website on how to convert the image files into squashfs file.

$ sudo sed -i 's/^\/dev\/mmcblk/#\0/g' /media/user/changethiswithyourdeviceID
$ sudo mksquashfs /media/user/changethiswithyourdeviceID converted_image_for_berryboot.img -comp lzo -e lib/modules

I’m getting syntax error in sed command, so i replaced the ‘ sign with ” sign:
sed -i "s/^\/dev\/mmcblk/#\0/g"

5. BerryBoot optimized file creation doneMS590SwYa-L2mr8T_yqQarSIIxxfLd-_oucW-LfBJk8


Incoming search terms:

  • berryboot custom image
  • berryboot images
  • berryboot update stuck mounting system partition
  • berryboot create image
  • berryboot compatible images
  • convert img squashfs bootberry
  • 6UWP
  • android sqaushfs image for berryboot
  • berry boot error not in squashfs format
  • berryboot image file
  • berryboot img
  • berryboot kodi mount usb
  • berryboot make image
  • berryboot os not in squashfs format
  • convert img to squashfs windows
11 Apr

Cisco Insight Reporter: Sybase DB issue

Problem: Upgraded Insight Reporter from v3.2.0 to 3.4.0, existing traffic database show disconnected


1) To get Sybase JDBC Connector
Download JConnect from this link http://www.sybase.com/products/allproductsa-z/softwaredeveloperkit/jconnect
Extract and Install it in Insight Server

./setup.bin -i console

Go to /opt/sybase/jConnect-7_0/classes and copy conn4.jar and  jTDS3.jar into Cisco Insight directory (/home/user/Insight/apache-tomcat-6.0.20/webapps/insight/WEB-INF/lib/)
Restart tomcat

/etc/init.d/tomcat-user stop
/etc/init.d/tomcat-user start

2) To determine SCE CM db schema info
Go to your SCE CM server and execute cm file located at /home/user/cm/bin

./cm version
CM CD Version 3.7.5 Build 105


Both Jar files can be downloaded from here: