Skip to content

Instantly share code, notes, and snippets.

@zjhui
zjhui / gist:9530924
Created March 13, 2014 15:45
在wr720n上利用extroot将openwrt扩容
1、在openwrt上安装block-mount,挂载硬盘时需要它
opkg update
opkg install block-mount
2、挂载硬盘
mount /dev/sda2 /mnt
3、把/目录下的文件迁移到U盘,pivot-root方式,适用于Barrier Breaker(trunk)版本
mkdir -p /tmp/cproot
mount --bind / /tmp/cproot
@zjhui
zjhui / gist:3445097
Created August 24, 2012 03:18
emerge -avuND world
>>> Installing (1 of 1) sys-apps/portage-2.2.01.20837
* checking 490 files for package collisions
* This package will overwrite one or more files that may belong to other
* packages (see list below). You can use a command such as `portageq
* owners / <filename>` to identify the installed package that owns a
* file. If portageq reports that only one package owns a file then do
* NOT file a bug report. A bug report is only useful if it identifies at
* least two or more packages that are known to install the same file(s).
* If a collision occurs and you can not explain where the file came from
* then you should simply ignore the collision since there is not enough
@zjhui
zjhui / gist:3105122
Created July 13, 2012 14:13
error-message
make[6]: *** [plugin-container] Error 1
make[6]: Leaving directory `/var/tmp/portage/www-client/firefox-10.0.5/work/mozilla-esr10/obj-i686-pc-linux-gnu/ipc/app'
make[5]: *** [tools] Error 2
make[5]: Leaving directory `/var/tmp/portage/www-client/firefox-10.0.5/work/mozilla-esr10/obj-i686-pc-linux-gnu/ipc'
make[4]: *** [tools_tier_platform] Error 2
make[4]: Leaving directory `/var/tmp/portage/www-client/firefox-10.0.5/work/mozilla-esr10/obj-i686-pc-linux-gnu'
make[3]: *** [tier_platform] Error 2
make[3]: Leaving directory `/var/tmp/portage/www-client/firefox-10.0.5/work/mozilla-esr10/obj-i686-pc-linux-gnu'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/var/tmp/portage/www-client/firefox-10.0.5/work/mozilla-esr10/obj-i686-pc-linux-gnu'
@zjhui
zjhui / gist:3026724
Created July 1, 2012 03:42
emerge grub:2
gentoo package.accept_keywords # emerge -av sys-boot/grub:2
* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
* IMPORTANT: config file '/etc/portage/package.accept_keywords/package.keywords.xen-sources' needs updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.