{"id":158371,"date":"2012-11-15T22:23:03","date_gmt":"2012-11-15T18:23:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=158371"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=158371","title":{"rendered":"<span class=\"post_title\">\u041a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0430-\u043b\u0438\u043d\u0443\u043a\u0441\u043e\u0438\u0434\u0430 \u2014 \u043d\u0430 \u043f\u0435\u043d\u0441\u0438\u044e!<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u042f \u0443\u0432\u043b\u0435\u043a\u0430\u044e\u0441\u044c \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439 \u0435\u0449\u0451 \u0441\u043e \u0421\u043c\u0435\u043d\u044b-8\u041c. \u0422\u043e\u0433\u0434\u0430 \u0431\u044b\u043b\u0438 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043f\u044f\u0442\u043d\u0438\u0446\u044b \u0438\u043b\u0438 \u0441\u0443\u0431\u0431\u043e\u0442\u044b (\u043f\u0435\u0447\u0430\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u043e \u0448\u043b\u0430 \u0432 \u043d\u043e\u0447\u044c \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0435), \u0430 \u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c \u043e\u043e\u0447\u0435\u043d\u044c \u0434\u043e\u043b\u0433\u0438\u0435 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0444\u043e\u0442\u043e\u043f\u043b\u0451\u043d\u043a\u0438, \u0445\u0438\u043c\u0438\u043a\u0430\u0442\u043e\u0432, \u0444\u043e\u0442\u043e\u0431\u0443\u043c\u0430\u0433\u0438 (\u0438\u0431\u043e \u0434\u0435\u0444\u0438\u0446\u0438\u0442). \u0422\u0435\u043f\u0435\u0440\u044c \u0436\u0435 \u044f \u0432\u044b\u0440\u043e\u0441, \u0441\u0442\u0430\u043b \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0438 \u043b\u0435\u043d\u0438\u0432\u044b\u043c. \u041c\u043e\u044f \u043c\u044b\u043b\u044c\u043d\u0438\u0446\u0430 \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043e \u043c\u043d\u043e\u0439: \u043b\u0438\u0431\u043e \u0432 \u0440\u044e\u043a\u0437\u0430\u043a\u0435, \u043b\u0438\u0431\u043e \u0433\u0434\u0435-\u0442\u043e \u0432 \u043a\u0430\u0440\u043c\u0430\u043d\u0435. \u0424\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0440\u0443\u044e \u0432\u0441\u0451, \u0447\u0442\u043e \u0432\u044b\u0437\u0432\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0437\u0430 \u0434\u0435\u043d\u044c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0434\u043d\u0430 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f (\u0448\u0451\u043b \u0441 \u0440\u0430\u0431\u043e\u0442\u044b), \u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u043c\u043d\u043e\u0433\u043e (\u0446\u0435\u043b\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e \u0432\u044b\u0448\u0435\u043b \u043d\u0430 \u043f\u0440\u043e\u0433\u0443\u043b\u043a\u0443). \u0418 \u0435\u0441\u043b\u0438 \u0441 \u0446\u0435\u043b\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u0441\u043b\u0443\u0447\u0430\u0435\u043c \u044f \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0443 \u0434\u043e\u043c\u043e\u0439 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0441\u043e\u043b\u044c\u044e \u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0443, \u0442\u043e \u0432 \u0435\u0434\u0438\u043d\u0438\u0447\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u044f \u0437\u0430\u0431\u0443\u0434\u0443 \u0438 \u043f\u043e\u0442\u043e\u043c \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0440\u0430\u0441\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0432 \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0440\u0430\u0437\u043d\u044b\u0445 \u0434\u043d\u0435\u0439. \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0446\u0435\u043b\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0451 \u043c\u0435\u043d\u044c\u0448\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u043e\u0441\u043b\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0445 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439. \u0418 \u0432\u043e\u0442 \u0432 \u043e\u0434\u0438\u043d \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u0434\u043d\u0435\u0439, \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0441\u044c <a href=\"http:\/\/habrahabr.ru\/post\/128527\">\u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e\u0434\u043d\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0451\u0439<\/a>, \u044f \u0440\u0435\u0448\u0438\u043b \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0445\u043e\u0431\u0431\u0438. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0441\u0442\u043e\u0438\u0442 Linux (openSUSE 12.1), \u0442\u043e \u043d\u0435\u0440\u0435\u0448\u0430\u0435\u043c\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0431\u044b\u0442\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u2014 \u043f\u043e\u0434\u0443\u043c\u0430\u043b \u044f. \u0410 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u0447\u0442\u043e\u0431 \u043e\u043d\u043e \u0441\u0430\u043c\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u043e \u0438 \u0447\u0442\u043e\u0431 \u043d\u0438\u043a\u0443\u0434\u0430 \u0442\u044b\u043a\u0430\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e. \u041d\u0443, \u0430 \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044f \u043d\u0435\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043b\u0438\u043d\u0443\u043a\u0441\u043e\u0438\u0434 (\u043f\u0435\u0440\u0432\u044b\u0439 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0431\u044b\u043b \u043d\u0430 \u0442\u0440\u0435\u0442\u044c\u0435\u043c \u043a\u0443\u0440\u0441\u0435 0x0C \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434), \u0441\u0440\u0430\u0437\u0443 \u0441\u043a\u0430\u0436\u0443 \u2014 \u043d\u0435 \u0432\u0441\u0451 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0425\u0440\u0430\u043d\u044e \u044f \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0441 \u0434\u0430\u0442\u043e\u0439 \u043f\u043e\u0434 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0442\u0430\u043c \u043e\u0434\u043d\u0430 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f: \u00ab2009.05.20 \u041d\u043e\u0447\u043d\u043e\u0439 \u041f\u0438\u0442\u0435\u0440\u00bb, \u00ab2011.08.20 \u0412\u043e\u0434\u043e\u043f\u0430\u0434 \u041b\u0430\u0432\u043d\u0430\u00bb, \u00ab2012.07.24 \u0414\u0443\u0441\u044f \u0441\u043f\u0438\u0442\u00bb. \u0423\u0436\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043c\u044b\u0441\u043b\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0443\u0436\u0435\u043d \u0435\u0449\u0451 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043e\u0434\u0438\u043d \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u2014 \u0433\u043e\u0434, \u043d\u043e \u043f\u043e\u043a\u0430 \u0435\u0449\u0451 \u0442\u0435\u0440\u043f\u043b\u044e. \u041c\u043e\u0438 \u0438\u043b\u0438 \u043d\u0435 \u043c\u043e\u0438 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 (\u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043e\u043b\u043b\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u0445\u043e\u0434\u043e\u0432) \u2014 \u043c\u043d\u0435 \u043d\u0435 \u0432\u0430\u0436\u043d\u043e, \u0432\u0441\u0451 \u043b\u0435\u0436\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \u043f\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044e. \u0421\u0432\u043e\u0438 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0435\u0441\u043b\u0438 \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u044f \u0440\u0443\u0447\u043a\u0430\u043c\u0438 \u043d\u0430\u0439\u0434\u0443.<br \/>  \u0414\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438. \u0412 Linux \u0437\u0430 \u0436\u0435\u043b\u0435\u0437\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0434\u0435\u043c\u043e\u043d udev. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u0443\u0447\u0438\u043c\u0441\u044f \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0441 \u043d\u0438\u043c.<\/p>\n<h5>udev<\/h5>\n<p>udev \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0441\u0432\u043e\u044e \u043d\u043e\u0434\u0443 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \/dev. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e, \u043d\u043e \u0435\u0441\u0442\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u043d\u044e\u0430\u043d\u0441: \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0438\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u0432\u0441\u0451 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b \u043a\u0443\u0434\u0430 \u043d\u0430\u0434\u043e \u2014 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 (\u043c\u0430\u043b\u043e \u043b\u0438 \u043a\u0430\u043a\u0438\u0435 \u0435\u0449\u0451 \u043e\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u0434\u0438\u0441\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b, \u0430 \u0447\u0442\u043e\u0431 \u043e\u0442\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442, \u0434\u0430 \u0438 \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u044b \u0435\u0449\u0451 \u0438 \u0436\u0430\u0442\u044c \u043a\u0443\u0434\u0430-\u0442\u043e). \u041d\u043e \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0432 \u043d\u0443\u0436\u043d\u0443\u044e \u0442\u043e\u0447\u043a\u0443 \u2014 \u044d\u0442\u043e \u0443\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e, \u043d\u043e \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. \u0415\u0433\u043e \u0441\u0430\u043c\u044b\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u043b\u044e\u0441: \u0437\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u043e \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u043c \u043f\u043e\u0434 \u0444\u0438\u043b\u044c\u0442\u0440. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a \u043a\u0430\u043a\u0438\u043c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c \u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0433\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0444\u0430\u043a\u0442\u0430 \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u043c\u044f\u0442\u0438 \u0432 \u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440. \u041a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0446\u0435\u043b\u044c\u044e \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b udev-\u043f\u0440\u0430\u0432\u0438\u043b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440\u0443.<br \/>  \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 udevadm. \u041d\u043e \u0435\u0439 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0438\u043c\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u043c\u044f \u0434\u0438\u0441\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440\u0435. \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0441\u0430\u043c\u044b\u043c \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c. \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a\u0438\u0435 \u0434\u0438\u0441\u043a\u0438 \u0443 \u043d\u0430\u0441 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c:  <\/p>\n<pre><code class=\"bash\">&gt;ls -1 \/dev\/sd* \/dev\/sda \/dev\/sda1 \/dev\/sdb \/dev\/sdb1 \/dev\/sdc \/dev\/sdc1 \/dev\/sdd \/dev\/sdd1 \/dev\/sde \/dev\/sde1 \/dev\/sdf \/dev\/sdg \/dev\/sdh \/dev\/sdi<\/code><\/pre>\n<p>  \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u0432 \u0440\u0438\u0434\u0435\u0440 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:  <\/p>\n<pre><code class=\"bash\">&gt;ls -1 \/dev\/sd* \/dev\/sda \/dev\/sda1 \/dev\/sdb \/dev\/sdb1 \/dev\/sdc \/dev\/sdc1 \/dev\/sdd \/dev\/sdd1 \/dev\/sde \/dev\/sde1 \/dev\/sdf \/dev\/sdg \/dev\/sdh \/dev\/sdh1 \/dev\/sdi <\/code><\/pre>\n<p>  \u0412\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043f\u0440\u044f\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u0438\u043c\u0435\u043d\u0435\u043c \/dev\/sdh1. \u041f\u043e \u0441\u0435\u043a\u0440\u0435\u0442\u0443 \u0441\u043a\u0430\u0436\u0443 \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 4 \u0434\u0438\u0441\u043a\u0430 (sdf, sdg, sdh, sdi) \u2014 \u044d\u0442\u043e \u0432\u0441\u0451 \u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440, \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0435\u0433\u043e \u0434\u0438\u0441\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u0442\u0443 \u0436\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0440\u0438\u0434\u0435\u0440\u0430 \u043a \u043a\u043e\u043c\u043f\u0443, \u0434\u0430\u0436\u0435 \u0431\u0435\u0437 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u043c\u044f\u0442\u0438 (\u0434\u043e \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0437\u0436\u0435 \u0434\u043e\u0448\u043b\u043e, \u043a\u043e\u0433\u0434\u0430 \u0443\u0436\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b \u0438\u043c\u044f \u0442\u043e\u043c\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c).<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440\u0430 \u0438 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438. \u041d\u0443\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0437\u0430 \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0446\u0435\u043f\u0438\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0433\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0444\u0430\u043a\u0442\u0430 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u044b \u0432 \u0440\u0438\u0434\u0435\u0440\u0435. \u0422\u0443\u0442 \u043d\u0430\u043c \u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043b\u044e\u0431\u043e\u0435 \u0438\u0437 \u0435\u0433\u043e \u0438\u043c\u0451\u043d \u0434\u0438\u0441\u043a\u043e\u0432. \u0414\u0430\u043d\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u0432\u0441\u0435\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0438 \u0434\u043e \u043a\u043e\u0440\u043d\u044f, \u0432 udev-\u043f\u043e\u0434\u043e\u0431\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u044b\u0432\u043e\u0434 udevadm<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">&gt;udevadm info -a -n \/dev\/sdh1  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 by the attributes of the device and the attributes from one single parent device.    looking at device '\/devices\/pci0000:00\/0000:00:02.1\/usb1\/1-1\/1-1:1.0\/host10\/target10:0:0\/10:0:0:2\/block\/sdh\/sdh1':     KERNEL==&quot;sdh1&quot;     SUBSYSTEM==&quot;block&quot;     DRIVER==&quot;&quot;     ATTR{partition}==&quot;1&quot;     ATTR{start}==&quot;2048&quot;     ATTR{size}==&quot;153600&quot;     ATTR{ro}==&quot;0&quot;     ATTR{alignment_offset}==&quot;0&quot;     ATTR{discard_alignment}==&quot;0&quot;     ATTR{stat}==&quot;     146        4      738      319        0        0        0        0        0      319      319&quot;     ATTR{inflight}==&quot;       0        0&quot;    looking at parent device '\/devices\/pci0000:00\/0000:00:02.1\/usb1\/1-1\/1-1:1.0\/host10\/target10:0:0\/10:0:0:2\/block\/sdh':     KERNELS==&quot;sdh&quot;     SUBSYSTEMS==&quot;block&quot;     DRIVERS==&quot;&quot;     ATTRS{range}==&quot;16&quot;     ATTRS{ext_range}==&quot;256&quot;     ATTRS{removable}==&quot;1&quot;     ATTRS{ro}==&quot;0&quot;     ATTRS{size}==&quot;7745536&quot;     ATTRS{alignment_offset}==&quot;0&quot;     ATTRS{discard_alignment}==&quot;0&quot;     ATTRS{capability}==&quot;51&quot;     ATTRS{stat}==&quot;    1352     1239    73856     8882        4       18       22      735        0     3608     9615&quot;     ATTRS{inflight}==&quot;       0        0&quot;     ATTRS{events}==&quot;media_change&quot;     ATTRS{events_async}==&quot;&quot;     ATTRS{events_poll_msecs}==&quot;-1&quot;    looking at parent device '\/devices\/pci0000:00\/0000:00:02.1\/usb1\/1-1\/1-1:1.0\/host14\/target14:0:0\/14:0:0:2':     KERNELS==&quot;14:0:0:2&quot;     SUBSYSTEMS==&quot;scsi&quot;     DRIVERS==&quot;sd&quot;     ATTRS{device_blocked}==&quot;0&quot;     ATTRS{type}==&quot;0&quot;     ATTRS{scsi_level}==&quot;0&quot;     ATTRS{vendor}==&quot;Generic-&quot;     ATTRS{model}==&quot;SD\/MMC          &quot;     ATTRS{rev}==&quot;1.00&quot;     ATTRS{state}==&quot;running&quot;     ATTRS{timeout}==&quot;30&quot;     ATTRS{iocounterbits}==&quot;32&quot;     ATTRS{iorequest_cnt}==&quot;0x220&quot;     ATTRS{iodone_cnt}==&quot;0x220&quot;     ATTRS{ioerr_cnt}==&quot;0x21f&quot;     ATTRS{evt_media_change}==&quot;0&quot;     ATTRS{queue_depth}==&quot;1&quot;     ATTRS{queue_type}==&quot;none&quot;     ATTRS{max_sectors}==&quot;240&quot;    looking at parent device '\/devices\/pci0000:00\/0000:00:02.1\/usb1\/1-1\/1-1:1.0\/host14\/target14:0:0':     KERNELS==&quot;target14:0:0&quot;     SUBSYSTEMS==&quot;scsi&quot;     DRIVERS==&quot;&quot;    looking at parent device '\/devices\/pci0000:00\/0000:00:02.1\/usb1\/1-1\/1-1:1.0\/host14':     KERNELS==&quot;host14&quot;     SUBSYSTEMS==&quot;scsi&quot;     DRIVERS==&quot;&quot;    looking at parent device '\/devices\/pci0000:00\/0000:00:02.1\/usb1\/1-1\/1-1:1.0':     KERNELS==&quot;1-1:1.0&quot;     SUBSYSTEMS==&quot;usb&quot;     DRIVERS==&quot;usb-storage&quot;     ATTRS{bInterfaceNumber}==&quot;00&quot;     ATTRS{bAlternateSetting}==&quot; 0&quot;     ATTRS{bNumEndpoints}==&quot;02&quot;     ATTRS{bInterfaceClass}==&quot;08&quot;     ATTRS{bInterfaceSubClass}==&quot;06&quot;     ATTRS{bInterfaceProtocol}==&quot;50&quot;     ATTRS{supports_autosuspend}==&quot;1&quot;     ATTRS{interface}==&quot;Bulk-In, Bulk-Out, Interface&quot;    looking at parent device '\/devices\/pci0000:00\/0000:00:02.1\/usb1\/1-1':     KERNELS==&quot;1-1&quot;     SUBSYSTEMS==&quot;usb&quot;     DRIVERS==&quot;usb&quot;     ATTRS{configuration}==&quot;CARD READER&quot;     ATTRS{bNumInterfaces}==&quot; 1&quot;     ATTRS{bConfigurationValue}==&quot;1&quot;     ATTRS{bmAttributes}==&quot;80&quot;     ATTRS{bMaxPower}==&quot;500mA&quot;     ATTRS{urbnum}==&quot;10885&quot;     ATTRS{idVendor}==&quot;0bda&quot;     ATTRS{idProduct}==&quot;0151&quot;     ATTRS{bcdDevice}==&quot;5195&quot;     ATTRS{bDeviceClass}==&quot;00&quot;     ATTRS{bDeviceSubClass}==&quot;00&quot;     ATTRS{bDeviceProtocol}==&quot;00&quot;     ATTRS{bNumConfigurations}==&quot;1&quot;     ATTRS{bMaxPacketSize0}==&quot;64&quot;     ATTRS{speed}==&quot;480&quot;     ATTRS{busnum}==&quot;1&quot;     ATTRS{devnum}==&quot;15&quot;     ATTRS{devpath}==&quot;1&quot;     ATTRS{version}==&quot; 2.00&quot;     ATTRS{maxchild}==&quot;0&quot;     ATTRS{quirks}==&quot;0x0&quot;     ATTRS{avoid_reset_quirk}==&quot;0&quot;     ATTRS{authorized}==&quot;1&quot;     ATTRS{manufacturer}==&quot;Generic&quot;     ATTRS{product}==&quot;USB2.0-CRW&quot;     ATTRS{serial}==&quot;20060413092100000&quot;    looking at parent device '\/devices\/pci0000:00\/0000:00:02.1\/usb1':     KERNELS==&quot;usb1&quot;     SUBSYSTEMS==&quot;usb&quot;     DRIVERS==&quot;usb&quot;     ATTRS{configuration}==&quot;&quot;     ATTRS{bNumInterfaces}==&quot; 1&quot;     ATTRS{bConfigurationValue}==&quot;1&quot;     ATTRS{bmAttributes}==&quot;e0&quot;     ATTRS{bMaxPower}==&quot;  0mA&quot;     ATTRS{urbnum}==&quot;222&quot;     ATTRS{idVendor}==&quot;1d6b&quot;     ATTRS{idProduct}==&quot;0002&quot;     ATTRS{bcdDevice}==&quot;0301&quot;     ATTRS{bDeviceClass}==&quot;09&quot;     ATTRS{bDeviceSubClass}==&quot;00&quot;     ATTRS{bDeviceProtocol}==&quot;00&quot;     ATTRS{bNumConfigurations}==&quot;1&quot;     ATTRS{bMaxPacketSize0}==&quot;64&quot;     ATTRS{speed}==&quot;480&quot;     ATTRS{busnum}==&quot;1&quot;     ATTRS{devnum}==&quot;1&quot;     ATTRS{devpath}==&quot;0&quot;     ATTRS{version}==&quot; 2.00&quot;     ATTRS{maxchild}==&quot;6&quot;     ATTRS{quirks}==&quot;0x0&quot;     ATTRS{avoid_reset_quirk}==&quot;0&quot;     ATTRS{authorized}==&quot;1&quot;     ATTRS{manufacturer}==&quot;Linux 3.1.10-1.16-desktop ehci_hcd&quot;     ATTRS{product}==&quot;EHCI Host Controller&quot;     ATTRS{serial}==&quot;0000:00:02.1&quot;     ATTRS{authorized_default}==&quot;1&quot;    looking at parent device '\/devices\/pci0000:00\/0000:00:02.1':     KERNELS==&quot;0000:00:02.1&quot;     SUBSYSTEMS==&quot;pci&quot;     DRIVERS==&quot;ehci_hcd&quot;     ATTRS{vendor}==&quot;0x10de&quot;     ATTRS{device}==&quot;0x077c&quot;     ATTRS{subsystem_vendor}==&quot;0x1043&quot;     ATTRS{subsystem_device}==&quot;0x82e7&quot;     ATTRS{class}==&quot;0x0c0320&quot;     ATTRS{irq}==&quot;22&quot;     ATTRS{local_cpus}==&quot;00000000,00000000,00000000,0000000f&quot;     ATTRS{local_cpulist}==&quot;0-3&quot;     ATTRS{numa_node}==&quot;0&quot;     ATTRS{dma_mask_bits}==&quot;32&quot;     ATTRS{consistent_dma_mask_bits}==&quot;32&quot;     ATTRS{enable}==&quot;1&quot;     ATTRS{broken_parity_status}==&quot;0&quot;     ATTRS{msi_bus}==&quot;&quot;     ATTRS{companion}==&quot;&quot;     ATTRS{uframe_periodic_max}==&quot;100&quot;    looking at parent device '\/devices\/pci0000:00':     KERNELS==&quot;pci0000:00&quot;     SUBSYSTEMS==&quot;&quot;     DRIVERS==&quot;&quot;<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0438, \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u0440\u0430\u0432\u0438\u043b \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u0430\u043c\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432.<\/p>\n<p>  \u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0431\u0443\u0434\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u043c\u044f\u0442\u0438 (\u0447\u0442\u043e\u0431 \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u0441\u0435\u0447\u044c \u043a\u0430\u0440\u0442\u044b \u0431\u0435\u0437 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432, \u0445\u043e\u0442\u044f \u044f \u0438 \u043d\u0435 \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0442\u0430\u043a\u0438\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0438 \u0444\u043e\u0442\u043e\u0430\u043f\u043f\u0430\u0440\u0430\u0442 \u043f\u0438\u0448\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437\u0434\u0435\u043b). \u0423 \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u043e\u043c\u0430 sdh1 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043d\u0435 \u043c\u043d\u043e\u0433\u043e. \u0422\u0443\u0442 \u0440\u0430\u0437\u0432\u0435 \u0447\u0442\u043e \u0438\u043c\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 KERNEL==\u00absdh1\u00bb \u0438 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u044d\u0442\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 SUBSYSTEM==\u00abblock\u00bb. \u041d\u043e \u0442\u0430\u043a\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u043b\u044e\u0431\u0430\u044f \u0444\u043b\u0435\u0448\u043a\u0430. \u0414\u0430 \u0438, \u043a\u0430\u043a \u044f \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u0440\u0430\u043d\u0435\u0435, \u043d\u0435 \u0444\u0430\u043a\u0442 \u0447\u0442\u043e \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0430\u0437\u043e\u0432\u0451\u0442 \u043d\u0430\u0448 \u0442\u043e\u043c sdh1, \u0438 \u0432\u0434\u0440\u0443\u0433 \u044f \u043a\u0443\u043f\u043b\u044e \u0441\u0435\u0431\u0435 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u043e\u0442\u043e\u0430\u043f\u043f\u0430\u0440\u0430\u0442 \u0441 xD-Picture \u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 CompactFlash (\u0430 \u044d\u0442\u043e \u0431\u0443\u0434\u0443\u0442 sdf, sdg, sdi) \u2014 \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0438\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430. \u041d\u0430 \u043d\u0430\u0448\u0435 \u0441\u0447\u0430\u0441\u0442\u044c\u0435 udev \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0434\u0436\u043e\u043a\u0435\u0440\u044b \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0434\u043b\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0432\u043e\u0437\u044c\u043c\u0451\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 KERNEL==\u00absd?1\u00bb (\u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u00absd*\u00bb), \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u0442\u043e\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430, \u0430 \u043f\u043e\u0434 \u043a\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0431\u0443\u043a\u0432\u043e\u0439 \u2014 \u043d\u0430\u043c \u043d\u0435 \u0432\u0430\u0436\u043d\u043e, \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0438\u043c\u044f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0431\u0435\u0437 \u0434\u0436\u043e\u043a\u0435\u0440\u0430.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443. \/devices\/pci0000:00\/0000:00:02.1\/usb1\/1-1\/1-1:1.0\/host14\/target14:0:0\/14:0:0:2\/block\/sdh \u0442\u0443\u0442 \u043d\u043e\u0432\u043e\u0433\u043e \u0438 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0449\u0435\u0433\u043e\u0441\u044f, \u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u0442\u043e\u043b\u044c\u043a\u043e ATTRS{events}==\u00abmedia_change\u00bb, \u043d\u043e \u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u0434\u0430\u043d\u043d\u044b\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u0431\u0443\u0434\u0435\u0442 \u0443 \u043b\u044e\u0431\u043e\u0439 \u0444\u043b\u0435\u0448\u043a\u0438.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \/devices\/pci0000:00\/0000:00:02.1\/usb1\/1-1\/1-1:1.0\/host14\/target14:0:0\/14:0:0:2 \u0438 \u0442\u0443\u0442 \u0443\u0436\u0435 \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 ATTRS{model}==\u00abSD\/MMC \u00bb, \u043d\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0432\u0448\u0438\u0441\u044c \u043a \u044d\u0442\u043e\u043c\u0443 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0443 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 SD-\u043a\u0430\u0440\u0442\u044b \u0438 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043a\u0430\u0440\u0442 \u043f\u0430\u043c\u044f\u0442\u0438. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0442\u0440\u0451\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u043c\u044b \u043e\u043f\u044f\u0442\u044c \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e. \u0423 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \/devices\/pci0000:00\/0000:00:02.1\/usb1\/1-1 \u0443\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435:  <\/p>\n<pre><code class=\"bash\">SUBSYSTEMS==&quot;usb&quot; DRIVERS==&quot;usb&quot; ATTRS{configuration}==&quot;CARD READER&quot; ATTRS{idVendor}==&quot;0bda&quot; ATTRS{idProduct}==&quot;0151&quot; ATTRS{product}==&quot;USB2.0-CRW&quot; ATTRS{serial}==&quot;20060413092100000&quot;<\/code><\/pre>\n<p>  \u0421\u0443\u0434\u044f \u043f\u043e \u0430\u0440\u0438\u0431\u0443\u0442\u0430\u043c, \u044d\u0442\u043e \u0441\u0430\u043c \u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440 \u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d-\u0442\u043e \u043d\u0430\u043c \u0438 \u043d\u0443\u0436\u0435\u043d (\u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0442 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043a \u0448\u0438\u043d\u0435 USB). \u0418\u0442\u043e\u0433\u043e \u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0445 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0439 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043e\u043f\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440\u0430 \u0438 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0442\u043e\u043c\u0430 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u043c\u044f\u0442\u0438:  <\/p>\n<pre><code class=\"bash\">ACTION==&quot;add&quot;, KERNEL==&quot;sd?1&quot;, SUBSYSTEMS==&quot;usb&quot;, ATTRS{configuration}==&quot;CARD READER&quot;, ATTRS{idVendor}==&quot;0bda&quot;, ATTRS{idProduct}==&quot;0151&quot;<\/code><\/pre>\n<p>  \u0418 \u0432\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0435\u0449\u0451 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 (ACTION==\u00abadd\u00bb) \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0442.\u043a. \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043a\u0430\u0440\u0442\u0443 \u0432\u044b\u043d\u0443\u043b\u0438 \u0438\u0437 \u0440\u0438\u0434\u0435\u0440\u0430 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0447\u0438\u0441\u0442\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438. <sup>\u042f \u0442\u0443\u0442 \u043f\u043e\u0434\u0443\u043c\u0430\u043b: \u0435\u0449\u0451 \u0435\u0441\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442 ATTR{ro}==\u00ab0\u00bb \u2014 \u0435\u0433\u043e \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c, \u0430 \u0438\u043d\u0430\u0447\u0435 \u0435\u0441\u043b\u0438 \u0434\u0438\u0441\u043a \u0437\u0430\u0449\u0438\u0449\u0451\u043d \u043e\u0442 \u0437\u0430\u043f\u0438\u0441\u0438, \u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c (\u043d\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442, \u0445\u043e\u0442\u044c \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043b\u0435\u0433\u043a\u0430 \u0440\u0430\u0437\u0431\u0440\u043e\u0441\u0430\u043d\u043e \u043f\u043e \u043b\u0438\u0448\u043d\u0438\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u043c \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0438\u043c\u0451\u043d \u0442\u0438\u043f\u043e\u0432 \u0444\u0430\u0439\u043b\u043e\u0432 \u0443 \u0444\u043e\u0442\u043e\u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0430), \u043d\u043e \u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0431\u0443\u0434\u0443 \u0441\u0435\u0431\u0435 \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c.<\/sup><\/p>\n<p>  \u041a\u0430\u043a \u0432\u044b \u0443\u0436\u0435 \u043d\u0430\u0432\u0435\u0440\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0438 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0438 ATTR\/KERNEL\/SUBSYSTEM\/DRIVER, \u0430 \u0434\u043b\u044f \u0435\u0433\u043e \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u0443\u0436\u0435 \u0441 \u0431\u0443\u043a\u0432\u043e\u0439 S \u043d\u0430 \u043a\u043e\u043d\u0446\u0435: ATTRS\/KERNELS\/SUBSYSTEMS\/DRIVERS.<\/p>\n<p>  \u0423 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0440\u0438\u0434\u0435\u0440 \u0434\u043b\u044f microSD \u043a\u0430\u0440\u0442, \u0442\u0430\u043a \u0443 \u043d\u0435\u0433\u043e \u0432 configuration \u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c\u0441\u044f \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e idVendor \u0438 idProduct. \u0412 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u0444\u0430\u0439\u043b\u0430 \u043f\u0440\u0430\u0432\u0438\u043b udev&#8217;\u0430 (\u0441\u043a\u0440\u0438\u043f\u0442 \u044f \u043d\u0430\u0447\u0430\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u0433\u0434\u0435-\u0442\u043e \u0432 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u0430\u0432\u0433\u0443\u0441\u0442\u0430, \u0438 \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0434\u043e \u043e\u043a\u0442\u044f\u0431\u0440\u044f \u0438 \u0433\u0434\u0435-\u0442\u043e \u0432 \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u043a \u0438 \u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u044d\u0442\u043e\u0442 \u0430\u0442\u0440\u0438\u0431\u0443\u0442, \u0434\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c \u043c\u043d\u043e\u0433\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0440\u0438\u0434\u0435\u0440\u0430) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b vendor \u0438 device, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 (\u0441\u043b\u0435\u0433\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u0432, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0438 \u0438\u0441\u0447\u0435\u0437\u043b\u0438) \u044f \u043e\u0441\u0442\u0430\u0432\u0438\u043b, \u0445\u043e\u0442\u044f \u043e\u0441\u043e\u0431\u043e\u0439 \u043d\u0443\u0436\u0434\u044b \u0442\u0435\u043f\u0435\u0440\u044c \u0432 \u043d\u0438\u0445 \u043d\u0435\u0442. \u0412 \u044d\u0442\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u043a\u0430\u0440\u0442-\u0440\u0438\u0434\u0435\u0440\u0430 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0435 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0430.<\/p>\n<p>  \u0424\u0438\u043b\u044c\u0442\u0440\u044b \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438, \u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0435\u0449\u0451 \u043d\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u043b\u0438. \u0422.\u043a. \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u0442\u043e \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a \u0444\u0438\u043b\u044c\u0442\u0440\u0443 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435:  <\/p>\n<pre><code class=\"bash\">RUN+=&quot;\/root\/bin\/PhotoSort.sh %k&quot;<\/code><\/pre>\n<p>  %k \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u2014 \u0438\u043c\u044f \u0442\u043e\u043c\u0430, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 (\u0442\u043e, \u0447\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043a\u043b\u044e\u0447\u0435 KERNEL \u0434\u0438\u0441\u043a\u0430 \u2014 sdh1); \/root\/bin\/PhotoSort.sh \u2014 \u0438\u043c\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430.<\/p>\n<p>  \u041e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043f\u0440\u0430\u0432\u0438\u043b \u0434\u043b\u044f udev \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\">&gt;cat \/etc\/udev\/rules.d\/99-lumix.rules #\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0434\u0438\u0430 \u0441 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u043c\u044f\u0442\u0438 ACTION==&quot;add&quot;, KERNEL==&quot;sd?1&quot;, SUBSYSTEMS==&quot;usb&quot;, ATTRS{configuration}==&quot;CARD READER&quot;, ATTRS{idVendor}==&quot;0bda&quot;, ATTRS{idProduct}==&quot;0151&quot;, RUN+=&quot;\/root\/bin\/PhotoSort.sh %k&quot; #\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0438 \u043c\u043e\u0434\u0435\u043b\u044c #ACTION==&quot;add&quot;, KERNEL==&quot;sd?1&quot;, SUBSYSTEMS==&quot;pci&quot;, ATTR{events}==&quot;media_change&quot;, ATTRS{vendor}==&quot;0x10de&quot;, ATTRS{device}==&quot;0x077e&quot;, RUN+=&quot;\/root\/bin\/PhotoSort.sh %k&quot;<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u044d\u0442\u043e\u0442 \u0442\u0435\u043a\u0441\u0442 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \/etc\/udev\/rules.d\/ (\u043d\u0443\u0436\u043d\u044b \u043f\u0440\u0430\u0432\u0430 root) \u043f\u043e\u0434 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c (\u0443 \u043c\u0435\u043d\u044f 99-lumix.rules). \u0414\u0435\u043c\u043e\u043d udev \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0432 \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0451\u0442 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c \u0444\u0438\u043b\u044c\u0442\u0440. \u041f\u043e\u0441\u043b\u0435 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0430\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u043e\u043c\u0435\u0440 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043c\u043e\u0436\u043d\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439-\u0440\u0430\u043d\u044c\u0448\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0441\u044f \u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u0438\u043c-\u043d\u0438\u0431\u0443\u0434\u044c \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0432\u0441\u0435\u043c\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u043c\u0438 \u0444\u043b\u0435\u0448\u043a\u0430\u043c\u0438 \u0438 \u043a\u0430\u0440\u0442\u0430\u043c\u0438, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0435\u0440\u0435\u0442\u044c\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043d\u0438\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u0440\u0438\u0434\u0435\u0440\u0430 \u0438 \u0446\u0435\u043f\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u043e SUBSYSTEMS==\u00abusb\u00bb, DRIVERS==\u00abusb-storage\u00bb \u2014 \u043e\u043d\u0438 \u0442\u043e\u0447\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0438 \u0443 \u043a\u0430\u0440\u0442 \u0438 \u0443 \u0444\u043b\u0435\u0448\u0435\u043a. \u041d\u043e \u044f \u043f\u043e\u043a\u0430 \u0441\u043b\u0435\u0436\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u0440\u0438\u0434\u0435\u0440\u043e\u043c \u2014 \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0443\u0436\u0434\u044b.<\/p>\n<h5>bash<\/h5>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0438\u0448\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439 \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b. \u041f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0438\u0441\u043a\u0430 \u0446\u0435\u043b\u0438\u043a\u043e\u043c. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0435\u0449\u0451 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0438 \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 (\u043f\u043e\u0434\u043a\u043e\u043f\u0438\u043b\u043e\u0441\u044c \u043d\u0435\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445), \u043f\u043e\u0441\u0435\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0438 \u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c. \u0417\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430 \u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0434\u0438\u0430-\u0444\u0430\u0439\u043b\u044b (\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043c\u0435\u0434\u0438\u0430-\u0444\u0430\u0439\u043b\u043e\u0432 \u0437\u0430\u0434\u0430\u043d\u044b \u0432 \u0441\u0430\u043c\u043e\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u044b find) \u0438 \u0441 \u0434\u0438\u0441\u043a\u0430 \u0438 \u0438\u0437 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430.<\/p>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u0440\u0430\u0442\u043a\u043e \u043f\u0440\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u2014 \u0442\u043e\u043c \u0438\u043b\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433. \u0415\u0441\u043b\u0438 \u0442\u043e\u043c, \u0442\u043e \u0435\u0433\u043e \u043d\u0430\u0434\u043e \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0440\u0438\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c (\u0430 \u0435\u0441\u043b\u0438 \u0442\u043e\u0447\u043a\u0430 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0436\u0435 \u0437\u0430\u043d\u044f\u0442\u0430, \u0430 \u043e\u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c, \u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442 \u0441\u0432\u043e\u044e \u0440\u0430\u0431\u043e\u0442\u0443), \u0430 \u0432 \u043a\u043e\u043d\u0446\u0435 \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u043e\u0442\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041f\u043e\u0441\u043b\u0435 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0441\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 .PhotoSort \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438. \u0415\u0433\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u043b\u0443\u0436\u0438\u0442 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u043c, \u0447\u0442\u043e \u0431\u044b\u043b\u0430 \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0438 \u0441 \u043d\u0435\u0439 \u043d\u0438\u0447\u0435\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u0412 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0438\u043c\u044f \u0434\u0438\u0441\u043a\u0430 (\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u2014 \u043e\u0431&#8217;\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u0446\u0435) \u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432, \u0435\u0441\u043b\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 (\u0434\u0443\u043c\u0430\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0438\u043a\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435). \u041a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0435\u0449\u0451 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0442\u043e\u0440\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u043a \u0441\u043a\u0440\u0438\u043f\u0442\u0443 \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0438\u043b\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b udev.<\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0432\u0441\u0435 \u043c\u0435\u0434\u0438\u0430-\u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 (\u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0444\u043e\u0442\u043e\u0430\u043f\u043f\u0430\u0440\u0430\u0442\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u0445, \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0430\u043c \u043d\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445) \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f. \u0417\u0434\u0435\u0441\u044c \u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0432\u043e\u0445: \u0432 Linux \u043d\u0435\u0442 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u043a\u0430\u043a \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430, \u0430 \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0444\u0430\u0439\u043b\u0443 \u0438 \u043f\u0440\u0438 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u044f\u0445 \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438 \u043e\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043f\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043d\u0435\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f. \u041f\u043e \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430 \u0442\u043e\u0436\u0435 \u043d\u0435\u043b\u044c\u0437\u044f: DSC08655.JPG \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0439 02.05 \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u0434\u0442\u0438 \u043f\u043e\u0441\u043b\u0435 MOV08554.MPG \u043e\u0442 29.04, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u043f\u043e\u0441\u043b\u0435 P1170007.JPG \u043e\u0442 19.04. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043e\u0441\u0442\u0440\u043e \u044d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u0441\u0442\u0430\u0451\u0442 \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u043e\u0442\u043e\u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043e\u0432 \u043e\u0442 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u043b\u0430\u043b\u0438 \u0441\u043d\u0438\u043c\u043a\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f (aka \u00ab\u0433\u0443\u043b\u044f\u043d\u043a\u0430\u00bb). \u041d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u043d\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 EXIF \u2014 \u043f\u043e\u043c\u0438\u043c\u043e \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0447\u0435\u0433\u043e \u0432 \u043d\u0451\u043c \u0435\u0441\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442 DateTimeOriginal \u0438 CreateDate (\u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0435\u0441\u0442\u044c \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0440\u0430\u0437\u043d\u0438\u0446\u0430: \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0443 \u0432\u0438\u0434\u0435\u043e\u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0435\u0442 \u0438 \u0435\u0441\u043b\u0438 \u043e\u043d \u043f\u043e \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u043d\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b\u0441\u044f, \u0442\u043e \u0447\u0438\u0442\u0430\u0442\u044c\u0441\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u0442\u043e\u0440\u043e\u0439) \u0438 \u044d\u0442\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u043d\u0435 \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f. \u041d\u043e \u043a\u0430\u043a \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0441\u043e \u0432\u0441\u0435\u0445 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e, \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u044d\u0442\u0438\u043c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c \u2014 \u044f \u043d\u0435 \u0437\u043d\u0430\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0446\u0438\u043a\u043b\u0435 \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u044e\u0442\u0441\u044f (\u044d\u0442\u043e \u0443\u043c\u0435\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u0441\u0430\u043c exiftool, \u043d\u043e \u0434\u043b\u044f \u043b\u043e\u0433\u0430 \u044f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0446\u0438\u043a\u043b), \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u043d\u0438\u043c\u043a\u0430 \u0438\u043b\u0438 \u0432\u0438\u0434\u0435\u043e \u043a \u0438\u043c\u0435\u043d\u0438 (\u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0445\u0440\u043e\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430).<\/p>\n<p>  \u0412\u0442\u043e\u0440\u043e\u0439 \u0446\u0438\u043a\u043b \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0444\u0430\u0439\u043b\u044b \u043f\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u043c: \u043d\u043e\u0432\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043a\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0440\u044b\u0432 \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0444\u0430\u0439\u043b\u043e\u043c \u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u044f\u0442\u0438 \u0447\u0430\u0441\u043e\u0432 (5*60*60) \u2014 \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0444\u0430\u0439\u043b\u044b \u0432 \u0445\u0440\u043e\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u041f\u044f\u0442\u044c \u0447\u0430\u0441\u043e\u0432 \u2014 \u0446\u0438\u0444\u0440\u0430 \u0441 \u043f\u043e\u0442\u043e\u043b\u043a\u0430. \u0423 \u043c\u0435\u043d\u044f \u0435\u0449\u0451 \u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u043d\u0438\u043c\u043a\u043e\u0432 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0447\u0442\u043e\u0431 \u043f\u0435\u0440\u0435\u0440\u044b\u0432 \u043c\u0435\u0436\u0434\u0443 \u043a\u0430\u0434\u0440\u0430\u043c\u0438 \u0431\u044b\u043b \u0431\u043e\u043b\u044c\u0448\u0435 \u044d\u0442\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0411\u044b\u043b\u0438 \u044d\u043a\u0441\u043a\u0443\u0440\u0441\u0438\u0438, \u0441 \u0434\u043e\u043b\u0433\u0438\u043c\u0438 \u043f\u0435\u0440\u0435\u0435\u0437\u0434\u0430\u043c\u0438 \u043c\u0435\u0436\u0434\u0443 POI, \u043d\u043e \u0434\u043e\u0440\u043e\u0433\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u044f\u0442\u0438 \u0447\u0430\u0441\u043e\u0432, \u0430 \u0435\u0441\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435, \u0442\u043e \u044d\u0442\u043e \u0431\u044b\u043b \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u043e\u0439 \u0433\u043e\u0440\u043e\u0434. \u0411\u044b\u043b\u0438 \u0441\u0432\u0430\u0434\u044c\u0431\u044b \u0438 \u043f\u0440\u0430\u0437\u0434\u043d\u0438\u043a\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0432 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0443\u0442\u043a\u0438, \u0438 \u0445\u043e\u0442\u044c \u0434\u0430\u0442\u0430 \u043c\u0435\u043d\u044f\u043b\u0430\u0441\u044c, \u043d\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0442\u0435\u043c \u0436\u0435. \u0422\u0430\u043a \u0447\u0442\u043e, \u043f\u043e\u043a\u0430 \u043f\u0435\u0440\u0435\u0440\u044b\u0432 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0442\u043e\u0442 \u0436\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433, \u0447\u0442\u043e \u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0444\u0430\u0439\u043b. \u0418\u043c\u044f \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u043a\u0430\u043a YYYYMMDD_HH \u2014 \u0447\u0430\u0441\u044b (\u0431\u0435\u0440\u0443\u0442\u0441\u044f \u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f) \u0432 \u0438\u043c\u044f \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0438\u0437-\u0437\u0430 \u0434\u0432\u0443\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u043d\u044f, \u0438\u043d\u0430\u0447\u0435 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0435 \u043a\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443 \u0434\u043d\u044e \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0442\u043e \u0436\u0435 \u0438\u043c\u044f \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430, \u0438 \u0445\u043e\u0442\u044c \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439, \u043d\u043e \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0431\u0443\u0434\u0443\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u0442\u043e\u0442 \u0436\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433.<\/p>\n<p>  \u0412 \u043b\u043e\u0433 \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u0432\u0441\u0451 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u0435 (\u0442\u0430\u043a \u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430), \u0430 \u0442\u0430\u043a \u0436\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043d\u0430 \u0434\u0438\u0441\u043a (\u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u2014 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b \u043a\u0443\u0441\u043e\u043a \u0444\u0430\u0439\u043b\u0430 \u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u043c\u0435\u0434\u0438\u0430-\u0444\u0430\u0439\u043b\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u043b\u0438\u0441\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043d\u0430 \u043a\u0430\u0440\u0442\u0443 \u043a \u0441\u0432\u043e\u0438\u043c \u0441\u0442\u0430\u0440\u044b\u043c \u0438\u043c\u0435\u043d\u0430\u043c). \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 (\u043f\u043e\u0432\u043e\u0440\u043e\u0442, \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u0435, \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u0435) \u2014 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e, \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043f\u043e\u0442\u043e\u043c \u0438\u0445 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0438 \u0432\u0441\u0451 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c (\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u043d\u0430 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f\u0445 \u044f \u043d\u0435 \u0441\u0442\u0430\u0432\u043b\u044e). \u041c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">&gt;cat \/root\/bin\/PhotoSort.sh #!\/bin\/bash #\/root\/bin\/PhotoSort.sh  #requires: bash,coreutils,findutils,exiftool,sed,util-linux  #cat \/etc\/udev\/rules\/99-lumix.rules ##\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0434\u0438\u0430 \u0441 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u043c\u044f\u0442\u0438 #ACTION==&quot;add&quot;, KERNEL==&quot;sd?1&quot;, SUBSYSTEMS==&quot;usb&quot;, ATTRS{configuration}==&quot;CARD READER&quot;, ATTRS{idVendor}==&quot;0bda&quot;, ATTRS{idProduct}==&quot;0151&quot;, RUN+=&quot;\/root\/bin\/PhotoSort.sh %k&quot; ##\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0438 \u043c\u043e\u0434\u0435\u043b\u044c ##ACTION==&quot;add&quot;, KERNEL==&quot;sd?1&quot;, SUBSYSTEMS==&quot;pci&quot;, ATTR{events}==&quot;media_change&quot;, ATTRS{vendor}==&quot;0x10de&quot;, ATTRS{device}==&quot;0x077e&quot;, RUN+=&quot;\/root\/bin\/PhotoSort.sh %k&quot;  # \u0414\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u0439 \u043a \u043f\u0440\u0430\u0432\u0438\u043b\u0443 udev #udevadm info -a -p $(udeadm info -q path -n \/dev\/sd*) \u0438\u043b\u0438 udevadm info -a -n \/dev\/sd* #http:\/\/www.arccomm.ru\/OpenSource\/Dev\/udev.html  if [[ -z &quot;$1&quot; ]]     then     echo \u0421\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u0432\u0438\u0434\u0435\u043e \u0438\u0437 \u0432\u0441\u0435\u0445 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e,     echo \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432     echo $(basename &quot;$0&quot;) Source [DestDir]     echo Source - \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0438\u043b\u0438 \u0438\u043c\u044f \u0434\u0438\u0441\u043a\u0430,\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0441\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c     echo DestDir - \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433,\u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u044b \u0444\u0430\u0439\u043b\u044b     echo \u0415\u0441\u043b\u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u0438\u0441\u043a,\u0442\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0438\u043c\u044f \u0442\u043e\u043c\u0430     echo \u0415\u0441\u043b\u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u0438\u0441\u043a,\u0442\u043e \u0432 \u043a\u043e\u0440\u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0444\u0430\u0439\u043b .PhotoCopy     echo \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439     echo     \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 - \u0438\u043c\u044f \u0444\u043b\u0435\u0448\u043a\u0438 \\(\u0434\u043b\u044f \u043b\u043e\u0433\u0430\\)     echo \u041f\u0440\u0438\u043c\u0435\u0440\u044b:     echo $(basename &quot;$0&quot;) sdd1 - \u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0440\u0430\u0441\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043c \/dev\/sdd1.     echo     \u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0432 \u043a\u043e\u0440\u043d\u0435 \u0434\u0438\u0441\u043a\u0430 sdd1 \u0435\u0441\u0442\u044c \u0444\u0430\u0439\u043b \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 .PhotoCopy     echo     \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u043c     echo $(basename &quot;$0&quot;) . ~\/Photo - \u0420\u0430\u0441\u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \\(.\\) \u0438 \u0432\u0441\u0435\u0445 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0432 \u043d\u0435\u0433\u043e  \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432     echo     \u0432\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0432 ~\/Photo\/ \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438     exit 1 #\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0437\u0430\u0434\u0430\u043d\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u0430 fi  if [[ ${1:0:1} == &quot;\/&quot; || ${1:0:1} == &quot;.&quot; || ${1:0:1} == &quot;~&quot; ]]     then # \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433     if [[ -d &quot;$1&quot; ]]         then         disk=&quot;$1&quot;             else             echo \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d             exit 2 # \u043d\u0435\u043d\u0430\u0439\u0434\u0435\u043d \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438     fi         else # \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u0434\u0438\u0441\u043a # \u041f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u0442\u043e\u043c         dev=&quot;\/dev\/$1&quot;         if [[ ! -e &quot;$dev&quot; ]]             then # \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c,\u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u044d\u0442\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435(\u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0438 \u0444\u043b\u0435\u0448\u043a\u0438,\u043d\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d\u043e)             exit 0         fi # \u041a\u0443\u0434\u0430 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u043b\u0435\u0448\u043a\u0443         disk=&quot;\/mnt\/photo&quot; fi  # \u041a\u0443\u0434\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 if [[ ! -z &quot;$2&quot; ]]     then # \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d \u0432\u0442\u043e\u0440\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c     photo=&quot;$2&quot;         else         photo=&quot;\/mnt\/temp\/Photo&quot; # \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e,\u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c fi sphoto=&quot;&quot; # \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a # \u0414\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u0444\u0430\u0439\u043b\u044b \u043f\u043e \u0434\u0430\u0442\u0430\u043c photodir=&quot;&quot; # \u043b\u043e\u0433-\u0444\u0430\u0439\u043b: \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0435\u0433\u043e \u043d\u0430\u0434\u043e \u0431\u0440\u043e\u0441\u0430\u0442\u044c \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0438\u043b\u0438 \u0446\u0435\u043b\u0435\u0432\u043e\u0439-\u0435\u0441\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b log=&quot;\/var\/log\/photosort.log&quot; # \u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 lastfiletime=0 # \u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430 curfiletime=0 # \u0434\u043b\u044f \u043f\u043e\u0441\u044b\u043b\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f-\u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e #export XAUTHORITY=&quot;\/home\/%username%\/.Xauthority&quot; #export DISPLAY=:0.0 #notify-send Photoes &quot;FlashCard found&quot;  # \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0435 \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u043b\u0438 \u043a\u0443\u0434\u0430-\u043d\u0438\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433? \u0421\u0434\u0435\u043b\u0430\u043d\u043e \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e,\u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0447\u0442\u043e \u0434\u0432\u0430\u0436\u0434\u044b \u0432 \u043e\u0434\u043d\u0443 \u0442\u043e\u0447\u043a\u0443 \u043d\u0435 \u043f\u0440\u0438\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f if [[ -n &quot;$dev&quot; ]]     then     grep -q &quot;$disk&quot; \/etc\/mtab     if [[ $? -eq 0 ]] # \u0435\u0441\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u0430 \u0445\u043e\u0442\u044c \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430,\u0442\u043e grep \u0432\u0435\u0440\u043d\u0451\u0442 0         then # \u0443\u0436\u0435 \u043f\u0440\u0438\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e-\u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c         echo &quot;#=- $(date -u +%Y.%m.%d\\ %T) \u0422\u043e\u0447\u043a\u0430 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u043d\u044f\u0442\u0430 -=#&quot;         exit 10 # \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u043b\u0438,\u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043a \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443 \u0447\u0442\u043e-\u0442\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e     fi     # \u041c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c     if [[ ! -d &quot;$disk&quot; ]]         then # \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0434\u043b\u044f \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f-\u0441\u043e\u0437\u0434\u0430\u0451\u043c         mkdir &quot;$disk&quot; &&gt;&gt;&quot;$log&quot;         echo &quot;#&quot; \u0421\u043e\u0437\u0434\u0430\u043d\u0430 \u0442\u043e\u0447\u043a\u0430 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f &quot;$disk&quot; &gt;&gt; &quot;$log&quot;     fi     mount -t vfat -o noatime,rw,noexec,users,iocharset=utf8 &quot;$dev&quot; &quot;$disk&quot; &&gt;&gt; &quot;$log&quot;     if [[ ! -e &quot;$disk&quot;\/.PhotoCopy ]]         then # \u043d\u0435\u0442 \u0444\u0430\u0439\u043b\u0430 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0432 \u043a\u043e\u0440\u043d\u0435 \u0444\u043b\u0435\u0448\u043a\u0438,\u043d\u0435 \u043d\u0430\u0434\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c         umount &quot;$disk&quot; &&gt;&gt; &quot;$log&quot;         exit 0 # \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u043b\u0438,\u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0444\u0430\u0439\u043b\u0430 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0432 \u043a\u043e\u0440\u043d\u0435 \u0434\u0438\u0441\u043a\u0430 \u043d\u0435\u0442,\u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0434\u0435\u043b\u0430\u0442\u044c     fi # \u0412\u0430\u0440\u0438\u0430\u043d\u0442:\u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d \u0441\u043a\u0440\u0438\u043f\u0442\u0443 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f $2,\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0438 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 # \u0418\u0437 \u043c\u0438\u043d\u0443\u0441\u043e\u0432-\u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u043f\u0443\u0442\u044c(\u0445\u043e\u0442\u044c \/dev)\u0438 \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0442\u0443\u0434\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u044b(\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043e\u0442 root)     sphoto=$(head -n1 &quot;$disk&quot;\/.PhotoCopy) # \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0444\u0430\u0439\u043b\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u043d \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443,\u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0443\u0442 \u0441\u043a\u043b\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0441 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430     if [[ ${sphoto:0:1} == &quot;\/&quot; && -d &quot;$sphoto&quot; ]]         then # \u041a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439,\u043a\u0430\u043a \u0437\u0430\u0434\u0430\u043d\u043e \u0432 \u0444\u0430\u0439\u043b\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442,\u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0435\u0433\u043e         photo=&quot;$sphoto&quot;     fi     sphoto=$(tail -n1 &quot;$disk&quot;\/.PhotoCopy) # \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0444\u0430\u0439\u043b\u0430 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0438\u043c\u044f \u0434\u0438\u0441\u043a\u0430     echo $(date -u +%Y.%m.%d\\ %T) \u0412\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u043e\u0432\u044b\u0439 \u0434\u0438\u0441\u043a &quot;$sphoto&quot; &gt;&gt; &quot;$log&quot;         else         if [[ ! -z &quot;$2&quot; ]]             then             photo=&quot;$2&quot; # \u043a\u0443\u0434\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438         fi         log=&quot;.\/PhotoSort.log&quot; # \u043a\u0443\u0434\u0430 \u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0442\u0447\u0451\u0442 \u043e \u0441\u043e\u0434\u0435\u044f\u043d\u043d\u043e\u043c         echo &quot;#&quot; $(date -u +%Y.%m.%d\\ %T) \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 &quot;$photo&quot; &gt;&gt; &quot;$log&quot;         echo cd $(pwd) &gt;&gt; &quot;$log&quot; # \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u0442\u043e\u0433\u043e,\u0447\u0442\u043e\u0431 \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u0441\u0451 \u0432\u0437\u0430\u0434 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u0441 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438 fi # \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0438\u0441\u043a\u0430 \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a # NB!: \u0435\u0441\u043b\u0438 \u0444\u0430\u0439\u043b\u044b \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f,\u0442\u043e \u043c\u043e\u0433\u0443\u0442 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u043f\u043e\u043f\u0430\u043b\u043e # \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b\u044b,\u0447\u0442\u043e\u0431 \u0432 \u0438\u043c\u0435\u043d\u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0431\u044b\u043b\u0430 \u0434\u0430\u0442\u0430 \u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f, # \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044f \u0444\u0430\u0439\u043b\u044b \u0441 \u043f\u043e\u0434\u0447\u0451\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435\u043c(\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u044b) # \u0438 \u0444\u0430\u0439\u043b\u044b \u0441 \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438(\u0442\u0443\u0442 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435-\u043d\u0430\u0434\u043e \u044d\u043a\u0440\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u0435\u043b\u044b) for file in $(find &quot;$disk&quot; -type f \\( -name '*.JPG' -o -name '*.MOV' -o -name '*.MPG' -o -name '*.THM' -o -name '*.MP4' -o -name '*.AVI' \\) -and -not -name '*_*' -and -not -name '* *')     do # exiftool \u0432\u0435\u0440\u043d\u0451\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432\u0438\u0434\u0430: # Date\/Time Original              : 2011:07:30 15:35:52 # \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0446\u0438\u0444\u0440\u044b 20110730153552     curfiletime=$(exiftool -DateTimeOriginal &quot;$file&quot; | cut -d: -f2- | sed 's\/[:\\ ]\/\/g') # \u0414\u0430\u0442\u0430\u0412\u0440\u0435\u043c\u044f \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430     if [[ $curfiletime == &quot;&quot; ]]         then         curfiletime=$(exiftool -CreateDate &quot;$file&quot; | cut -d: -f2- | sed 's\/[:\\ ]\/\/g') # \u0414\u0430\u0442\u0430\u0412\u0440\u0435\u043c\u044f \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430     fi     mv &quot;$file&quot; $(dirname &quot;$file&quot;)\/&quot;$curfiletime&quot;_$(basename &quot;$file&quot;) &&gt;&gt; &quot;$log&quot; # \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u043c     echo mv $(dirname &quot;$file&quot;)\/&quot;$curfiletime&quot;_$(basename &quot;$file&quot;) &quot;$file&quot; &gt;&gt; &quot;$log&quot; # \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443     done # \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b # (\u0435\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0434\u0438\u0441\u043a \u043d\u0435 \u0438\u0437 \u0444\u043e\u0442\u043e\u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0430,\u0442\u043e \u0432\u0441\u0451 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0431\u0440\u043e\u0441\u0430\u043d\u043e \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u043c-\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u0436\u0435\u043b\u0430\u043d\u0438\u044f-\u043b\u0438\u0431\u043e \u0432 \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433,\u043e\u0442\u043a\u0443\u0434\u0430 \u0431\u0440\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b,\u043b\u0438\u0431\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439) for file in $(find &quot;$disk&quot; -type f -name '*.JPG' -o -name '*.MOV' -o -name '*.MPG' -o -name '*.THM' -o -name '*.MP4' -o -name '*.AVI' | sort)     do # exiftool \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u0430\u0442\u0443,\u0433\u0434\u0435 \u0432\u0441\u0435 \u0447\u0430\u0441\u0442\u0438 \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430 \u043e\u0442\u0434\u0435\u043b\u0435\u043d\u044b \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u044f\u043c\u0438 \u0438 \u043d\u0430\u0434\u043e \u0432 \u0434\u0430\u0442\u0435 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u044f \u043d\u0430 \u0442\u0438\u0440\u0435,\u043d\u0443 \u0438 \u043e\u0431\u0440\u0435\u0437\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u0433\u0430     curfiletime=$(exiftool -DateTimeOriginal &quot;$file&quot; | sed -r 's\/^.+: ([0-9]+):([0-9]+):([0-9]+) ([0-9]+):([0-9]+):([0-9]+)\/\\1-\\2-\\3 \\4:\\5:\\6\/g')     if [[ $curfiletime == &quot;&quot; ]]         then         curfiletime=$(exiftool -CreateDate &quot;$file&quot; | sed -r 's\/^.+: ([0-9]+):([0-9]+):([0-9]+) ([0-9]+):([0-9]+):([0-9]+)\/\\1-\\2-\\3 \\4:\\5:\\6\/g')     fi     curfiletime=$(date -d &quot;$curfiletime&quot; +%s) # \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0441 \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0440\u0435\u043c\u0451\u043d     if (( $curfiletime - $lastfiletime &gt; 5*60*60 )) # \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0444\u0430\u0439\u043b \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043f\u043e\u0437\u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u043d:\u0447\u0435\u0440\u0435\u0437 5*60*60 \u0441\u0435\u043a\u0443\u043d\u0434,\u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0447\u0435\u0433\u043e \u0438 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c \u0447\u0442\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u0430\u044f \u0441\u0435\u0440\u0438\u044f \u0441\u043d\u0438\u043c\u043a\u043e\u0432         then         photodir=$(date -d @$curfiletime +%Y.%m.%d_%H) # \u0422\u0430\u043a\u0438\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u043e\u0432\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043f\u043e\u0434 \u0441\u043d\u0438\u043c\u043a\u0438         if [[ ! -d &quot;$photo&quot;\/&quot;$photodir&quot; ]] # \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u0442\u0430\u043a\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430-\u0441\u043e\u0437\u0434\u0430\u0451\u043c             then             mkdir &quot;$photo&quot;\/&quot;$photodir&quot; &&gt;&gt; &quot;$log&quot;             chown nobody:users &quot;$photo&quot;\/&quot;$photodir&quot; &&gt;&gt; &quot;$log&quot;             chmod 0777 &quot;$photo&quot;\/&quot;$photodir&quot; &&gt;&gt; &quot;$log&quot;             echo &quot;#&quot; $(date -u +%Y.%m.%d\\ %T) \u0421\u043e\u0437\u0434\u0430\u043d \u043d\u043e\u0432\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 &quot;$photodir&quot; &gt;&gt; &quot;$log&quot;         fi         lastfiletime=&quot;$curfiletime&quot;     fi     echo &quot;#&quot; $(date -u +%Y.%m.%d\\ %T) \u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 &quot;$file&quot; \u0432 &quot;$photo&quot;\/&quot;$photodir&quot;\/$(basename &quot;$file&quot;) &gt;&gt; &quot;$log&quot;     echo copy &quot;$photo&quot;\/&quot;$photodir&quot;\/$(basename &quot;$file&quot;) &quot;$file&quot; &gt;&gt; &quot;$log&quot; # \u0422\u0443\u0442 \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0432\u043e \u0447\u0442\u043e-\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0431\u043b\u0430\u0433\u043e\u0437\u0432\u0443\u0447\u043d\u043e\u0435(\u0434\u0430\u0442\u0430\/\u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f,\u043f\u043e gps \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u0433\u043e\u0440\u043e\u0434)     mv &quot;$file&quot; &quot;$photo&quot;\/&quot;$photodir&quot;\/ &&gt;&gt; &quot;$log&quot;     chown nobody:users &quot;$photo&quot;\/&quot;$photodir&quot;\/$(basename &quot;$file&quot;) &&gt;&gt; &quot;$log&quot;     chmod 0666 &quot;$photo&quot;\/&quot;$photodir&quot;\/$(basename &quot;$file&quot;) &&gt;&gt; &quot;$log&quot;     done if [[ -n &quot;$dev&quot; ]]     then     echo $(date -u +%Y.%m.%d\\ %T) \u0414\u0438\u0441\u043a \u0438\u0437\u044a\u044f\u0442 &gt;&gt; &quot;$log&quot; # \u041e\u0442\u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0434\u0438\u0441\u043a \u043e\u0431\u0440\u0430\u0442\u043d\u043e     umount &quot;$disk&quot; &&gt;&gt; &quot;$log&quot; fi exit 0 <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043a \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043c: exiftool \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u0438\u0434\u0430 \u00abDate\/Time Original: 2011:07:30 15:35:52\u00bb \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u00ab20110730153552\u00bb (\u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u043f\u043e\u043b\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432, \u0433\u0434\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043d\u0435 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435, \u0430 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0447\u0435\u0440\u0442\u0430 \u2014 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0447\u0442\u043e \u0443 \u0432\u0430\u0441):<\/p>\n<pre><code class=\"bash\">curfiletime=$(exiftool -DateTimeOriginal &quot;$file&quot; | cut -d: -f2- | sed 's\/[:\\ ]\/\/g')<\/code><\/pre>\n<p>  cut \u2014 \u0432\u044b\u0440\u0435\u0436\u0435\u0442 \u0432\u0441\u0451 \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u044f, \u0430 sed \u0443\u0434\u0430\u043b\u0438\u0442 \u0432\u0441\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u0438 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u044f \u0438\u0437 \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0435\u0439\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0438. \u0423\u0432\u0435\u0440\u0435\u043d \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e sed&#8217;\u043e\u043c, \u043d\u043e \u0441 RegExp&#8217;\u0430\u043c\u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0434\u0440\u0443\u0436\u043e\u043d.<\/p>\n<pre><code class=\"bash\">curfiletime=$(exiftool -DateTimeOriginal &quot;$file&quot; | sed -r 's\/^.+: ([0-9]+):([0-9]+):([0-9]+) ([0-9]+):([0-9]+):([0-9]+)\/\\1-\\2-\\3 \\4:\\5:\\6\/g')<\/code><\/pre>\n<p>  \u0422\u0443 \u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0432 \u00ab2011-07-30 15:35:52\u00bb. \u041e\u043f\u044f\u0442\u044c \u0436\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u042d\u0442\u043e \u0447\u0442\u043e\u0431 date \u043c\u043e\u0433 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u0434\u0430\u0442\u0443 (\u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u0435\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u043e\u0434\u0441\u0443\u043d\u0443\u0442\u044c).<\/p>\n<h5>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/h5>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0438 \u0432\u0441\u0435 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0432 \u043d\u0435\u0433\u043e (\u0434\u043b\u044f \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u043c\u044f\u0442\u0438 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0435\u0451 \u043a\u043e\u0440\u0435\u043d\u044c \u0438 \u0432\u0441\u0451, \u0447\u0442\u043e \u0433\u043b\u0443\u0431\u0436\u0435) \u043a\u0430\u043a \u043e\u0434\u0438\u043d.<\/p>\n<pre><code class=\"bash\">.\/PhotoSort.sh sdh1<\/code><\/pre>\n<p> \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0437 udev&#8217;\u043e\u043c \u0434\u043b\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0434\u0438\u0441\u043a\u0430 sdh1. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c\u0441\u044f \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0432 \u0435\u0433\u043e \u043a\u043e\u0440\u043d\u0435. \u0414\u0438\u0441\u043a \u043d\u0430\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u0438\u043b\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u0441\u0438\u043c\u0432\u043e\u043b\u0443: \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0431\u0443\u0434\u0443\u0442 ~ \/ \u0438\u043b\u0438. \u2014 \u0437\u043d\u0430\u0447\u0438\u0442, \u043a\u0430\u0442\u0430\u043b\u043e\u0433, \u0438\u043d\u0430\u0447\u0435 \u2014 \u0434\u0438\u0441\u043a.<\/p>\n<pre><code class=\"bash\">.\/PhotoSort.sh ~\/AllFromParty<\/code><\/pre>\n<p> \u0430 \u0442\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0444\u043e\u0442\u043e- \u0438 \u0432\u0438\u0434\u0435\u043e-\u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u0432\u0441\u0435\u0445 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0432 ~\/AllFromParty \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0438 \u0435\u0433\u043e \u0441\u0430\u043c\u043e\u0433\u043e). \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u0432\u0441\u0451 \u0431\u0443\u0434\u0435\u0442 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0439 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 (photo=&quot;\/mnt\/temp\/Photo&quot;). \u0415\u0441\u043b\u0438 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \u043b\u0435\u0436\u0430\u043b\u0438 \u0444\u0430\u0439\u043b\u044b \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0444\u043e\u0442\u043e\u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043e\u0432, \u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0441\u0441\u0438\u043d\u0445\u0440\u043e\u043d \u0432 \u0438\u043c\u0435\u043d\u0430\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043c\u0435\u0436\u0434\u0443 \u043a\u0430\u043c\u0435\u0440\u0430\u043c\u0438 \u043d\u0435 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043e, \u0430 \u0442\u043e \u0438 \u0432\u043e\u0432\u0441\u0435 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u043e\u0441\u044c. \u0427\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0437 \u0440\u0430\u0437\u043d\u044b\u0445 \u0444\u043e\u0442\u043e\u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043e\u0432 \u0432 \u0440\u0430\u0437\u043d\u044b\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438. \u0422\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u0432 \u0442\u0435\u0433\u0430\u0445 EXIF: exiftool &quot;-DateTimeOriginal+=00.00.0000 02:37:30&quot; *.JPG \u2014 \u0441\u0434\u0432\u0438\u043d\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u0432 \u0442\u0435\u0433\u0435 DateTimeoriginal \u043d\u0430 2:37:30 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u0435 \u043f\u043e \u0432\u0441\u0435\u043c \u0444\u0430\u0439\u043b\u0430\u043c JPG \u0438\u0437 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430.<\/p>\n<pre><code class=\"bash\">.\/PhotoSort.sh ~\/AllFromParty \/media\/backup\/Photoes<\/code><\/pre>\n<p> \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 \u0432\u044b\u0448\u0435, \u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u0432\u0441\u0451 \u0431\u0443\u0434\u0435\u0442 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \/media\/backup\/Photoes<\/p>\n<h5>\u041e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u0445\u043e\u0442\u0435\u043b\u043a\u0438<\/h5>\n<ol>\n<li>\u041d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043f\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044e \u0438\u043c\u043f\u043e\u0440\u0442\u0430<br \/>  \u0412\u043e\u043e\u0431\u0449\u0435 \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0435\u0441\u0442\u044c: \u043a\u043e\u0433\u0434\u0430 \u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043d, KDE \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u0434\u0438\u0441\u043a, \u043d\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0443\u0441\u043b\u044b\u0448\u0430\u0442\u044c \u044d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0431\u0443\u043a\u0432\u0430\u043c\u0438 \u0432\u0441\u0435\u043c \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0435\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c. \u0422\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0442\u043e \u044f \u043d\u0430\u0448\u0451\u043b, \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b (\u043a\u0443\u0441\u043e\u043a \u043e\u0442 \u043d\u0435\u0433\u043e \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0432 \u0442\u0435\u043a\u0441\u0442\u0435).<\/li>\n<li>\u0412\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435, \u0430 \u043d\u0435 \u0432 \u043a\u043e\u0434\u0435. \u041f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c ini-\u0444\u0430\u0439\u043b\u044b.<\/li>\n<li>\u0412\u0440\u0435\u043c\u044f \u0436\u0438\u0437\u043d\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043e \u043e\u0434\u043d\u043e\u0439 \u043c\u0438\u043d\u0443\u0442\u043e\u0439. \u042d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442. \u0425\u043e\u0442\u044c \u0432\u0435\u0437\u0434\u0435 \u0438 \u043f\u0438\u0448\u0443\u0442 \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0447\u0435\u0440\u0435\u0437 RUN+= \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442, \u043d\u043e \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u043e\u043d \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0438\u0441\u0438\u0442 \u0437\u0430\u043c\u043e\u0440\u043e\u0436\u0435\u043d\u043d\u044b\u043c \u0433\u0434\u0435-\u0442\u043e \u0432 \u0431\u044d\u043a\u0433\u0440\u0430\u0443\u043d\u0434\u0435. \u041c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u044d\u0442\u043e \u043d\u0435 \u0432 udev&#8217;\u0435 \u0434\u0435\u043b\u043e, \u043c\u043e\u0436\u0435\u0442 KDE \u0432\u043c\u0435\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u043a\u0430\u043a \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u2014 \u044f \u043d\u0435 \u0437\u043d\u0430\u044e. \u0415\u0441\u043b\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441\u043a\u043e\u043f\u0438\u043b\u043e\u0441\u044c \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e, \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u043e\u0431\u0440\u0430\u0442\u043d\u043e.<\/li>\n<li>\u0412 \u0444\u0430\u0439\u043b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a .PhotoSort \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0438 \u043d\u0438\u0447\u0442\u043e \u043d\u0435 \u043f\u043e\u043c\u0435\u0448\u0430\u0435\u0442 udev&#8217;\u0443 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0443\u0434\u0430 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u043e\u0442\u043e\u043c \u0432 \u0436\u0438\u0437\u043d\u0438 \u0438\u0445 \u043d\u0435 \u043d\u0430\u0439\u0434\u0451\u0442, \u0430 root \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043d\u0430\u0442\u043a\u043d\u0451\u0442\u0441\u044f \u043d\u0430 \u043d\u0438\u0445. \u0421 \u044d\u0442\u0438\u043c \u043d\u0430\u0434\u043e \u0447\u0442\u043e-\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c. \u041c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f (\u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432) \u043e\u0442 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0438 \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430.<\/li>\n<li>\u041f\u043e\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, dosfslabel \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c. \u041d\u0430\u0432\u0435\u0440\u043d\u043e udev \u0447\u0442\u043e-\u0442\u043e \u0435\u0449\u0451 \u043f\u043e\u0442\u043e\u043c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0434\u0435\u043b\u0430\u0435\u0442. \u0422\u043e\u043b\u044c\u043a\u043e \u0438\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u0432 \u0444\u0430\u0439\u043b\u0435 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u0434\u0438\u0441\u043a\u0430.<\/li>\n<li>\u0420\u0430\u0437\u0432\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0444\u043b\u0435\u0448\u043a\u0438: \u0447\u0442\u043e\u0431 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u0438\u043b\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0441 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f\u043c\u0438 \u043d\u0430 \u044d\u043a\u0441\u043f\u043e\u0440\u0442. \u0410 \u0442\u043e \u0431\u044b\u043b\u043e \u0433\u043b\u0443\u043f\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0444\u043b\u0435\u0448\u043a\u0443 \u0441 \u0438\u0433\u0440\u0430\u043c\u0438 \u043e\u0442 Caanoo \u2014 \u0442\u0430\u043a \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0444\u0430\u0439\u043b\u0430 .PhotoSort \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438.<\/li>\n<li>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u043e \u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u043d\u0443 \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u0430 \u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u0442\u0430\u0432\u0438\u0442\u044c RO \u043d\u0430 \u043a\u0430\u0440\u0442\u0435 \u043f\u0430\u043c\u044f\u0442\u0438.<\/li>\n<li>\u0412\u0430\u0448\u0438 \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f. \u0412 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u043c\u043e\u0436\u0435\u0442 \u044f \u043d\u0435 \u0432\u0438\u0436\u0443 \u0435\u0449\u0451 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0437\u0430\u0434\u0430\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431 \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430?<\/li>\n<\/ol>\n<p>  <\/p>\n<h5>\u0421\u043f\u0438\u0441\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u044b<\/p>\n<h5><a href=\"http:\/\/www.opennet.ru\/docs\/RUS\/bash_scripting_guide\/\">\u0418\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f Bash-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432<\/a><br \/>  <a href=\"http:\/\/ru.gentoo-wiki.com\/wiki\/HOWTO_Udev_\u0438_\u0430\u0432\u0442\u043e\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435_\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u0435\u0439\">HOWTO: udev \u0438 \u0430\u0432\u0442\u043e\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u043e\u0441\u0438\u0442\u0435\u043b\u0435\u0439<\/a><br \/>  <a href=\"http:\/\/rus-linux.net\/lib.php?name=MyLDP\/sys-conf\/udev.html\">udev. \u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430<\/a> (<a href=\"http:\/\/www.arccomm.ru\/OpenSource\/Dev\/udev.html\">\u0434\u0440\u0443\u0433\u0430\u044f \u0442\u0430\u043a\u0430\u044f \u0436\u0435 \u0441\u0441\u044b\u043b\u043a\u0430<\/a>)<\/h5>\n<\/h5>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/158371\/\"> http:\/\/habrahabr.ru\/post\/158371\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u042f \u0443\u0432\u043b\u0435\u043a\u0430\u044e\u0441\u044c \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439 \u0435\u0449\u0451 \u0441\u043e \u0421\u043c\u0435\u043d\u044b-8\u041c. \u0422\u043e\u0433\u0434\u0430 \u0431\u044b\u043b\u0438 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043f\u044f\u0442\u043d\u0438\u0446\u044b \u0438\u043b\u0438 \u0441\u0443\u0431\u0431\u043e\u0442\u044b (\u043f\u0435\u0447\u0430\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u043e \u0448\u043b\u0430 \u0432 \u043d\u043e\u0447\u044c \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0435), \u0430 \u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c \u043e\u043e\u0447\u0435\u043d\u044c \u0434\u043e\u043b\u0433\u0438\u0435 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0444\u043e\u0442\u043e\u043f\u043b\u0451\u043d\u043a\u0438, \u0445\u0438\u043c\u0438\u043a\u0430\u0442\u043e\u0432, \u0444\u043e\u0442\u043e\u0431\u0443\u043c\u0430\u0433\u0438 (\u0438\u0431\u043e \u0434\u0435\u0444\u0438\u0446\u0438\u0442). \u0422\u0435\u043f\u0435\u0440\u044c \u0436\u0435 \u044f \u0432\u044b\u0440\u043e\u0441, \u0441\u0442\u0430\u043b \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0438 \u043b\u0435\u043d\u0438\u0432\u044b\u043c. \u041c\u043e\u044f \u043c\u044b\u043b\u044c\u043d\u0438\u0446\u0430 \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043e \u043c\u043d\u043e\u0439: \u043b\u0438\u0431\u043e \u0432 \u0440\u044e\u043a\u0437\u0430\u043a\u0435, \u043b\u0438\u0431\u043e \u0433\u0434\u0435-\u0442\u043e \u0432 \u043a\u0430\u0440\u043c\u0430\u043d\u0435. \u0424\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0440\u0443\u044e \u0432\u0441\u0451, \u0447\u0442\u043e \u0432\u044b\u0437\u0432\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0437\u0430 \u0434\u0435\u043d\u044c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0434\u043d\u0430 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f (\u0448\u0451\u043b \u0441 \u0440\u0430\u0431\u043e\u0442\u044b), \u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u043c\u043d\u043e\u0433\u043e (\u0446\u0435\u043b\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e \u0432\u044b\u0448\u0435\u043b \u043d\u0430 \u043f\u0440\u043e\u0433\u0443\u043b\u043a\u0443). \u0418 \u0435\u0441\u043b\u0438 \u0441 \u0446\u0435\u043b\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u0441\u043b\u0443\u0447\u0430\u0435\u043c \u044f \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0443 \u0434\u043e\u043c\u043e\u0439 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0441\u043e\u043b\u044c\u044e \u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0443, \u0442\u043e \u0432 \u0435\u0434\u0438\u043d\u0438\u0447\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u044f \u0437\u0430\u0431\u0443\u0434\u0443 \u0438 \u043f\u043e\u0442\u043e\u043c \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0440\u0430\u0441\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0432 \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0440\u0430\u0437\u043d\u044b\u0445 \u0434\u043d\u0435\u0439. \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0446\u0435\u043b\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0451 \u043c\u0435\u043d\u044c\u0448\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u043e\u0441\u043b\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0445 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0439. \u0418 \u0432\u043e\u0442 \u0432 \u043e\u0434\u0438\u043d \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u0434\u043d\u0435\u0439, \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0441\u044c <a href=\"http:\/\/habrahabr.ru\/post\/128527\">\u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e\u0434\u043d\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0451\u0439<\/a>, \u044f \u0440\u0435\u0448\u0438\u043b \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0445\u043e\u0431\u0431\u0438. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0441\u0442\u043e\u0438\u0442 Linux (openSUSE 12.1), \u0442\u043e \u043d\u0435\u0440\u0435\u0448\u0430\u0435\u043c\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0431\u044b\u0442\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u2014 \u043f\u043e\u0434\u0443\u043c\u0430\u043b \u044f. \u0410 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u0447\u0442\u043e\u0431 \u043e\u043d\u043e \u0441\u0430\u043c\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u043e \u0438 \u0447\u0442\u043e\u0431 \u043d\u0438\u043a\u0443\u0434\u0430 \u0442\u044b\u043a\u0430\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e. \u041d\u0443, \u0430 \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044f \u043d\u0435\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043b\u0438\u043d\u0443\u043a\u0441\u043e\u0438\u0434 (\u043f\u0435\u0440\u0432\u044b\u0439 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0431\u044b\u043b \u043d\u0430 \u0442\u0440\u0435\u0442\u044c\u0435\u043c \u043a\u0443\u0440\u0441\u0435 0x0C \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434), \u0441\u0440\u0430\u0437\u0443 \u0441\u043a\u0430\u0436\u0443 \u2014 \u043d\u0435 \u0432\u0441\u0451 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-158371","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/158371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=158371"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/158371\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=158371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=158371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}