분류 전체보기
-
how to acceess udev rule parameterComputer/linux 2017. 8. 25. 22:36
Sometime, one needs to access all attribute on a device in order to create the udev rule for this device. $ udevadm info --query=all -n /dev/EtherCAT0 --attribute-walk Udevadm info starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be composed b..
-
Exact copy a huge directory into the different one in linuxComputer/linux 2017. 3. 15. 06:34
I have ifc1410-ioxos-161103 in /export/nfsroots/, and would like to copy the entire dir in the different name. $ mkdir ifc1410-ioxos-161103-rules-test $ cd ifc1410-ioxos-161103 $ sudo -E tar cf - . | (cd /export/nfsroots/ifc1410-ioxos-161103-rules-test/ && tar xBf -) Reference http://www.linuxdevcenter.com/pub/a/linux/lpt/18_16.html
-
Raspberry Pi Image copy in LinuxComputer/linux 2017. 3. 10. 05:43
As described in https://www.raspberrypi.org/documentation/installation/installing-images/linux.md, dd can be used for "image copying on a MicroSD". However, in the case where dd version is old, it would be good to use "pv" to check its status as follows: pv -tpre 2017-03-02-raspbian-jessie.img | dd bs=4M of=/dev/sdb