2016年9月23日 星期五

temp1

[3] Stopped vi dsi2lvds.c (wd: ~/jetson_tx1/kernel_sources/drivers/video/tegra/dc)
[5]+ Stopped vi tegra210-jetson-cv-power-tree-p2597-2180-a00.dtsi (wd: ~/jetson_tx1/kernel_sources/arch/arm64/boot/dts/tegra210-platforms)
[6]- Stopped vi tegra210-jetson-e-pmic-p2530-0930-e03.dtsi (wd: ~/jetson_tx1/kernel_sources/arch/arm64/boot/dts/tegra210-platforms)


[1] Stopped vi tegra210-jetson-cv-base-p2597-2180-a00.dts (wd: ~/jetson_tx1/kernel_sources/arch/arm64/boot/dts)
[3] Stopped vi include/dt-bindings/display/tegra-panel.h (wd: ~/jetson_tx1/kernel_sources/arch/arm64/boot/dts)
[4]- Stopped git log -p tegra210-platforms/tegra210-jetson-cv-power-tree-p2597-2180-a00.dtsi (wd: ~/jetson_tx1/kernel_sources/arch/arm64/boot/dts)
[5]+ Stopped vi ../../../../drivers/watchdog/max77620_wdt.c (wd: ~/jetson_tx1/kernel_sources/arch/arm64/boot/dts)

2016年9月9日 星期五

BackupYourSystem/TAR

https://help.ubuntu.com/community/BackupYourSystem/TAR

tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system / 

tar jcvpf backup.tbz2 --exclude=/media --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/tmp --exclude=/run --exclude=/mnt --exclude=/lost+found --exclude=/backup.tbz2 /

解壓縮

sudo tar --same-owner -zxpf ../backup.tar.gz

切到root後
tar xpf ../backup.tbz2

--------------------------------------------------------------------------------------

tbz2 --> tar
bzip2 -d backup.tbz2

檢視檔案內容
tar tvf backup.tar

刪除檔案 abc.txt
tar --delete -f backup.tar abc.txt

加入檔案 xyz.txt, 加到 home/user/ 下,需要先把xyz.txt放到  home/user/ 下
tar --append --file=backup.tar home/user/xyz.txt

tar --> tbz2
bzip2 backup.tar


2016年9月6日 星期二

用Rsync 複製整個file system

http://superuser.com/questions/307541/copy-entire-file-system-hierarchy-from-one-drive-to-another

What you want is rsync.
This command can be used to synchronize a folder, and also resume copying when it's aborted half way. The command to copy one disk is:
rsync -avxHAX --progress / /new-disk/
The options are:
-a  : all files, with permissions, etc..
-v  : verbose, mention files
-x  : stay on one file system
-H  : preserve hard links (not included with -a)
-A  : preserve ACLs/permissions (not included with -a)
-X  : preserve extended attributes (not included with -a)
To improve the copy speed, add -W (--whole-file), to avoid calculating deltas/diffs of the files. This is the default when both the source and destination are specified as local paths, since the real benefit of rsync's delta-transfer algorithm is reducing network usage.
Also consider adding --numeric-ids to avoid mapping uid/gid values by user/group name.