Huawei Mediapad S7-301u – Partition List

root@android:/proc # cat partitions
cat partitions
major minor #blocks name

179 0 7815168 mmcblk0
179 1 32768 mmcblk0p1
179 2 4096 mmcblk0p2
179 3 4096 mmcblk0p3
179 4 1 mmcblk0p4
179 5 12288 mmcblk0p5
179 6 4096 mmcblk0p6
179 7 4096 mmcblk0p7
179 8 4096 mmcblk0p8
179 9 4096 mmcblk0p9
179 10 12288 mmcblk0p10
179 11 4096 mmcblk0p11
179 12 4096 mmcblk0p12
179 13 4096 mmcblk0p13
179 14 4096 mmcblk0p14
179 15 655360 mmcblk0p15
179 16 8192 mmcblk0p16
179 17 16384 mmcblk0p17
179 18 16384 mmcblk0p18
179 19 12288 mmcblk0p19
179 20 393216 mmcblk0p20
179 21 8192 mmcblk0p21
179 22 262144 mmcblk0p22
179 23 32768 mmcblk0p23
179 24 114688 mmcblk0p24
179 25 4096 mmcblk0p25
179 26 8192 mmcblk0p26
179 27 6179840 mmcblk0p27
179 64 512 mmcblk0boot1
179 32 512 mmcblk0boot0
179 96 15637504 mmcblk1
179 97 10450251 mmcblk1p1
179 98 4739175 mmcblk1p2
179 99 441787 mmcblk1p3
root@android:/proc #

root@android:/proc # mount
mount
rootfs / rootfs ro,noatime 0 0
tmpfs /dev tmpfs rw,nosuid,noatime,mode=755 0 0
devpts /dev/pts devpts rw,noatime,mode=600 0 0
proc /proc proc rw,noatime 0 0
sysfs /sys sysfs rw,noatime 0 0
none /acct cgroup rw,noatime,freezer,cpuacct,cpu 0 0
tmpfs /mnt/asec tmpfs rw,noatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,noatime,mode=755,gid=1000 0 0
/dev/block/mmcblk0p21 /persist ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barri
er=1,data=ordered 0 0
/dev/block/mmcblk0p15 /cust ext4 ro,noatime,user_xattr,acl,barrier=1,data=ordere
d 0 0
/dev/block/mmcblk0p20 /system ext4 ro,noatime,user_xattr,acl,barrier=1,data=orde
red 0 0
/dev/block/mmcblk0p23 /tmpdata ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barri
er=1,data=ordered,noauto_da_alloc 0 0
/dev/block/mmcblk0p22 /cache ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barrier
=1,data=ordered 0 0
/dev/block/mmcblk0p27 /data ext4 rw,nosuid,nodev,noatime,user_xattr,acl,commit=1
5,barrier=1,nodelalloc,data=ordered,noauto_da_alloc 0 0
/dev/block/mmcblk0p24 /tombstones ext4 rw,nosuid,nodev,relatime,user_xattr,acl,b
arrier=1,data=ordered 0 0
/dev/block/mmcblk0p1 /firmware vfat ro,relatime,fmask=0000,dmask=0022,codepage=c
p437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/fuse /mnt/sdcard fuse rw,nosuid,nodev,noexec,relatime,user_id=1000,group_id
=1015,default_permissions,allow_other 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
/dev/block/vold/179:97 /mnt/sdcard2 vfat rw,noexec,noatime,uid=1000,gid=1015,fma
sk=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname
=mixed,utf8,errors=remount-ro 0 0
root@android:/proc #

Smartfren Andromax C : Partition List

root@android:/proc # cat /proc/emmc_partition
cat /proc/emmc_partition
dev: start size name
mmcblk0p1: 00000001 00000040 “cfg_data”
mmcblk0p2: 00000041 00000600 “qcsbl”
mmcblk0p3: 00000641 00081920 “modem”
mmcblk0p4: 00082561 07732607 “ebr”
mmcblk0p5: 00131072 00004000 “oemsbl”
mmcblk0p6: 00135072 00002000 “appsboot”
mmcblk0p7: 00137072 00004000 “ssd”
mmcblk0p8: 00141072 00018480 “boot”
mmcblk0p9: 00159552 00006144 “modem_backup”
mmcblk0p10: 00165696 00006144 “modem_st1″
mmcblk0p11: 00171840 00006144 “modem_st2″
mmcblk0p12: 00177984 00800000 “system”
mmcblk0p13: 00977984 04180000 “userdata”
mmcblk0p14: 05157984 00040960 “persist”
mmcblk0p15: 05198944 00120000 “cache”
mmcblk0p16: 05318944 00020480 “recovery”
mmcblk0p17: 05339424 00002000 “misc”
mmcblk0p18: 05341424 02097152 “mdm”
mmcblk0p19: 07438576 00060000 “cdrom”
mmcblk0p20: 07498576 00004000 “”
mmcblk0p21: 07502576 00312591 “tombstones”
root@android:/proc #

CWM Recovery v6.0.3.3 for Hisense AD686G a.k.a Andromax C

CWM Recovery v6.0.3.3 for Hisense AD686G a.k.a Andromax C

1-Screenshot_2013_07_10_23.25.09

2-Screenshot_2013_07_10_23.30.17

3-Screenshot_2013_07_10_23.30.26

Current BUG :
1. Horisontal Screen Glitch

Download here : http://goo.gl/C2cJQ

Smartfren Andromax C a.k.a Hisense AD686G Screenshot

Screenshot_2013-07-11-05-35-31

01-Screenshot_2013-07-11-05-32-53

02-Screenshot_2013-07-11-05-32-57

03-Screenshot_2013-07-11-05-33-08

04-Screenshot_2013-07-11-05-33-22

05-Screenshot_2013-07-11-05-33-51

06-Screenshot_2013-07-11-05-34-11

07-Screenshot_2013-07-11-05-34-36

08-Screenshot_2013-07-11-05-34-41

09-Screenshot_2013-07-11-05-34-56

10-Screenshot_2013-07-11-05-35-20

11-Screenshot_2013-07-11-05-35-31

12-Screenshot_2013-07-11-05-35-43

13-Screenshot_2013-07-11-05-36-03

14-Screenshot_2013-07-11-05-36-16

15-Screenshot_2013-07-11-05-37-36

How to Spot & Solving IO Bottleneck problem in Vmware Server 2.x with SSD HDD

In this article, I will try to point my solution for solving IO Bottleneck in Vmware Server 2.x

Firstly, why use virtual solution in the first place? Well there are many subjective reasons, and but for me my main reason is Electrical Consumption. Running multiple guest OS under the same physical Server will greatly reduce electrical consumption. At the moment, our server ( AMD X6 with 8GB RAM) are hosting 10 Guest OS : 3 pfsense, 5 ubuntu server, 1 IPCOP, 1 Windows XP. I can save up to 90 %.

Some of my friend ask me, there is gonna be performance hit by running virtualization. Of course there is, but, in real world application, it’s very rare to see your server running in 100% utilization, since most of the time, it’s doing idle/nothing. Performance hits can be spotted when it start to slow down / under perform, most of it are caused by bottleneck in CPU/Memory/IO or hardware problem.

How to Spot Bottleneck :

If you run vmware server under linux, you can use TOP command to monitor server load. Here is an example:

root@vmserver002:~# top
top – 11:06:56 up 5 days, 8 min, 2 users, load average: 1.42, 1.75, 1.70
Tasks: 244 total, 1 running, 243 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.9%us, 15.7%sy, 0.0%ni, 80.6%id, 0.3%wa, 0.1%hi, 0.4%si, 0.0%st

Mem: 8193488k total, 8118824k used, 74664k free, 38152k buffers
Swap: 0k total, 0k used, 0k free, 6919920k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

3995 root 20 0 1270m 56m 39m S 54 0.7 1772:31 vmware-vmx
3427 root 20 0 697m 251m 236m S 21 3.1 1167:04 vmware-vmx

3434 root 20 0 559m 66m 52m S 17 0.8 1739:46 vmware-vmx
4726 root 20 0 697m 205m 191m S 13 2.6 763:06.36 vmware-vmx

3443 root 20 0 707m 140m 118m S 8 1.8 304:12.98 vmware-vmx
3927 root 20 0 972m 63m 48m S 8 0.8 205:20.49 vmware-vmx

3957 root 20 0 558m 18m 6860 S 8 0.2 654:20.00 vmware-vmx
4734 root 20 0 843m 342m 320m S 8 4.3 267:09.66 vmware-vmx

4626 root 20 0 432m 129m 106m S 6 1.6 218:49.46 vmware-vmx
3492 root 20 0 706m 83m 60m S 4 1.0 184:30.86 vmware-vmx

3284 root 20 0 139m 54m 12m S 2 0.7 53:59.05 vmware-hostd
3440 root 20 0 0 0 0 S 2 0.0 62:27.59 vmware-rtc

As you can see, I run 10 guest OS, and the CPU load are +- 20% (80% are idle). And this is a production server, not testing server.

Cpu(s): 2.9%us, 15.7%sy, 0.0%ni, 80.6%id, 0.3%wa, 0.1%hi, 0.4%si, 0.0%st

legend:

us : % CPU used for user space application
sy : % CPU used for system space application
ni : % CPU used for application with nice attribute
id : % CPU not used / IDLE
wa : % CPU in waiting due to bottleneck in IO

Pay attention to the "wa" attribute. When I use regular IDE/SATA HDD, the "%wa" is most of the time reach double digit and the total of "%us" + "%sy" is hardly ever reach 10%, that means, my server is under IO bottleneck. Ever since I switch to SSD HDD, which are pretty cheap nowadays, "%wa" is always very low, just around 4-5% at peak load (at system boot or when starting guest OS simultaneously.

So, upgrade your hard drive to SSD. Your system may reside at the old IDE/SATA hard disk, but make sure the storage for guest OS are reside in the SSD HDD. Also consider investing in main board with SATA 3 / SATA 6 port. My main board is still SATA 3, with both the main HDD and SSD HDD are in the same controller, and it’s not a real issue.

Grup Diskusi KPO BMD Terban resmi dilaunch

Silakan bapak ibu orang tua murid BMD Terban untuk berkunjung ke grup diskusi KPO BMD Terban di Googlegroups :

https://groups.google.com/forum/#!forum/kpo-budi-mudia-dua-terban

DIY : CCTV Server with Ubuntu Server 12.04 + Motion + USB Webcam(s)

Building CCTV Server with Ubuntu Server 12.04 + Motion + USB Webcam(s)

What you need:

  1. PC with Ubuntu Server Installed
  2. PCI USB Card(s), as 1 USB Controller only capable of handling 2 USB Webcams
  3. Webcam(s). Make sure they work in linux. I have bought cheap webcams from Ebay, which are detected automatically by Ubuntu
  4. Optional : IR Illuminator
  5. WIP :  Utilizing USB RJ45 Extender

Steps:

1. Preparing Server & installing Motion

Update your server repo to the latest :

 sudo apt-get update

Install motion :

sudo apt-get install motion

2. Tweaking uvcvideo driver

sudo rmmod uvcvideo
sudo modprobe uvcvideo quirks=128

This will be reset every reboot. If this works, create the following file:

sudo pico /etc/modprobe.d/uvcvideo.conf

containing the line:

options uvcvideo quirks=128

3. Configuring Motion for multiple threads, storage location, etc

The configuration file is located at : /etc/motion/motion.conf

Suggestion : comment out the device in motion conf and configure each camera with their separate thread conf file

Make sure to add line of each thread file in the last line of the motion.conf

thread /etc/motion/camera1.conf

thread /etc/motion/camera2.conf

…..

thread /etc/motion/camera6.conf

Example content of camera1.conf ( pay attention to bold line):

root@cctv01:~# cat /etc/motion/camera1.conf
# /usr/local/etc/thread1.conf
#
# This config file was generated by motion 3.2.12

 

###########################################################
# Capture device options
############################################################

# Videodevice to be used for capturing (default /dev/video0)
# for FreeBSD default is /dev/bktr0
videodevice /dev/video2

# The video input to be used (default: 8)
# Should normally be set to 1 for video/TV cards, and 8 for USB cameras
input 8

# Draw a user defined text on the images using same options as C function strftime(3)
# Default: Not defined = no text
# Text is placed in lower left corner
text_left CAMERA 1
############################################################
# Target Directories and filenames For Images And Films
# For the options snapshot_, jpeg_, mpeg_ and timelapse_filename
# you can use conversion specifiers
# %Y = year, %m = month, %d = date,
# %H = hour, %M = minute, %S = second,
# %v = event, %q = frame number, %t = thread (camera) number,
# %D = changed pixels, %N = noise level,
# %i and %J = width and height of motion area,
# %K and %L = X and Y coordinates of motion center
# %C = value defined by text_event
# Quotation marks round string are allowed.
############################################################

# Target base directory for pictures and films
# Recommended to use absolute patch. (Default: current working directory)
#target_dir /usr/local/apache2/htdocs/cam1
############################################################
# Live Webcam Server
############################################################

# The mini-http server listens to this port for requests (default: 0 = disabled)
webcam_port 8081

# Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
# The filename of the picture is appended as an argument for the command.
#on_picture_save /usr/local/motion-extras/camparse1.pl

# Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)
# Filename of movie is appended as an argument for the command.
#on_movie_end /usr/local/motion-extras/mpegparse1.pl

Test & run motion :

sudo /etc/init.d/motion start

check syslog, make sure no error. You should see something like this:

Jul 20 10:43:52 cctv01 motion: [5] Using palette YUYV (352×288) bytesperlines 704 sizeimage 202752 colorspace 00000000
Jul 20 10:43:52 cctv01 motion: [5] found control 0x00980900, “Brightness”, range 0,255
Jul 20 10:43:52 cctv01 motion: [5] #011″Brightness”, default 140, current 102
Jul 20 10:43:52 cctv01 motion: [5] found control 0x00980901, “Contrast”, range 0,127
Jul 20 10:43:52 cctv01 motion: [5] #011″Contrast”, default 36, current 36
Jul 20 10:43:52 cctv01 motion: [5] found control 0x00980902, “Saturation”, range 0,127
Jul 20 10:43:52 cctv01 motion: [5] #011″Saturation”, default 80, current 80
Jul 20 10:43:52 cctv01 motion: [5] found control 0x00980903, “Hue”, range -15,15
Jul 20 10:43:52 cctv01 motion: [5] #011″Hue”, default -3, current -3
Jul 20 10:43:52 cctv01 motion: [5] found control 0x00980910, “Gamma”, range 1,3
Jul 20 10:43:52 cctv01 motion: [5] #011″Gamma”, default 2, current 2
Jul 20 10:43:52 cctv01 motion: [5] mmap information:
Jul 20 10:43:52 cctv01 motion: [5] frames=4
Jul 20 10:43:52 cctv01 motion: [5] 0 length=202752
Jul 20 10:43:52 cctv01 motion: [5] 1 length=202752
Jul 20 10:43:52 cctv01 motion: [5] 2 length=202752
Jul 20 10:43:52 cctv01 motion: [5] 3 length=202752
Jul 20 10:43:52 cctv01 motion: [5] Resizing pre_capture buffer to 1 items
Jul 20 10:43:53 cctv01 motion: [2] Started stream webcam server in port 8082
Jul 20 10:43:53 cctv01 motion: [2] Resizing pre_capture buffer to 2 items
Jul 20 10:43:53 cctv01 motion: [6] Started stream webcam server in port 8086
Jul 20 10:43:53 cctv01 motion: [6] Resizing pre_capture buffer to 2 items
Jul 20 10:43:53 cctv01 motion: [1] Started stream webcam server in port 8081
Jul 20 10:43:53 cctv01 motion: [1] Resizing pre_capture buffer to 2 items
Jul 20 10:43:53 cctv01 motion: [5] Started stream webcam server in port 8085
Jul 20 10:43:53 cctv01 motion: [5] Resizing pre_capture buffer to 2 items
Jul 20 10:43:53 cctv01 motion: [4] Started stream webcam server in port 8084
Jul 20 10:43:53 cctv01 motion: [4] Resizing pre_capture buffer to 2 items
Jul 20 10:43:53 cctv01 motion: [3] Started stream webcam server in port 8083
Jul 20 10:43:53 cctv01 motion: [3] Resizing pre_capture buffer to 2 items

4. IR Filter Mod &  utilizing IR Illuminator

http://www.instructables.com/id/Hacked-WebCam-for-IR-Photography-and-Night-Vision/

5. Mod for outdoor usage:

http://www.instructables.com/id/Convert-a-Webcam-to-work-outdors-in-bright-light/

6. BROKEN WIP : Utilizing USB RJ45 Extender

useful links :

http://renoirsrants.blogspot.com/2011/07/multiple-webcams-on-zoneminder.html

http://adhi.widjajanto.net/blog/archives/2011/12/my_home_server.html (in bahasa Indonesia)

http://www.instructables.com/id/Hacked-WebCam-for-IR-Photography-and-Night-Vision/

http://www.instructables.com/id/Convert-a-Webcam-to-work-outdors-in-bright-light/

Follow

Get every new post delivered to your Inbox.

Join 666 other followers