Skip to content

Instantly share code, notes, and snippets.

View robertlinux's full-sized avatar

Robert Yang robertlinux

  • Wind River
  • Beijing, China
View GitHub Profile
@robertlinux
robertlinux / populate-extfs.sh
Created July 19, 2013 01:53
Create an ext2/ext3/ext4 filesystem from a directory or file
#!/bin/sh
do_usage () {
cat << _EOF
Usage: populate-extfs.sh <source> <device>
Create an ext2/ext3/ext4 filesystem from a directory or file
source: The source directory or file
device: The target device