Wenwei Weng's Blog
A small corner to record learning journey and share with others!
-
Linux disk amangement (4) - disk partition table MBR and GPT
In Linux world, disk management is an interesting area. As time moves on, the disk capacity is increasing, speed is improving, and price is dropping. In this post, let’s talk about disk partition table type:MBR and GPT. Master Boot Record (MBR) MBR was born in the early 1980s for IBM...
-
Linux SWIG - A little nice glue tool
SWIG is a little nice glue tool that connects programs written in C and C++ with a variety of high-level programming languages like Javascript, Perl, PHP, Python, Tcl, Ruby, Java etc… It is similar to JNI in Java world. It is available in most linux distribution. In ubuntu, it can...
-
Linux root file systen change while kernel running
When a Linux system running, there are two critical things: kernel and root file system. They are working together to provide services to user. In Cisco IR800 platform, I have a need to run a linux which has kind of luxury file system, which includes gcc, make, gdb, dpdk package...
-
Linux disk management (3) - Virtual Disk Image
As the virtualization is being spreaded into many field, learn to how manipulate virtual disk image is sometime you have to deal with. In Cisco CGR1000 and IR800 routers, there was a need to create a bootable disk image as a reference guest linux image for customer to use. Along...
-
Linux disk management (2) - Logical Volume Manager
In Linux world, disk as storage device, it is detected by Linux kernel typically as “/dev/sda”, “/dev/hdd”. The tools like “fdisk” is used to create partions, and create filesystem on the partition, then mount the partition to the root file system. The disk space is ready to be used. There...