差分

ナビゲーションに移動 検索に移動

MediaWikiを移行する

500 バイト追加, 2019年7月23日 (火) 15:32
USB3.0のポートを1つ持っているLattepandaですが、物によってUSB3.0が機能していない場合があるようです<ref name="LP_forum_USB30" />。<br/>確認してみようかと思います。いつも忘れて、いちから調べ直してるので、ここに上げておきます。
== USB3.0で接続できているかの確認 =バックアップの取得 =参考サイトにもありますが、以下のコマンドを実行します。<syntaxhighlight lang="bash">lsusb「maintenance」ディレクトリで以下を実行します。<br/syntaxhighlight>すると、以下の様な結果が得られます。<syntaxhighlight lang="bash">Bus 002 Device 002: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit EthernetBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 003: ID 0bda:8152 Realtek Semiconductor Corp. Bus 001 Device 005: ID 0411:02cc BUFFALO INC. (formerly MelCo., Inc.) Bus 001 Device 004: ID 2341:8036 Arduino SA Leonardo (CDC ACM, HID)Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub履歴も含めてすべてのページをxmlで取得できます。Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub</syntaxhighlightpre>私の場合、「AX88179」チップ搭載のLANアダプタであるBUFFALOの「LUA4php dumpBackup.php -U3-AGTE-BK」を接続しているので、1行目と4行目にその類の結果が得られています。current > dump.xml<br/pre>これだけでも、2行目を見れば「Linux Foundation 3.0 root hub」と表示されているので、大丈夫と言えば大丈夫なのですが、ちゃんとLANアダプタがUSB3.0のポートに接続されているかも確認します。
この結果を踏まえた上で、以下のコマンドを実行します。<syntaxhighlight lang="bash">lsusb -tバックアップのインポート =新しいサーバー側で作業します。<br/syntaxhighlight>すると、以下の様な結果が得られます。「maintenance」ディレクトリで以下を実行します。<syntaxhighlight lang="bash"br/>/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=ax88179_178a, 5000Mすべてのページをインポートできます。<br/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/7p, 480M |__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 1: Dev 4, If 2, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 1: Dev 4, If 0, Class=Communications, Driver=cdc_acm, 12M> |__ Port 1: Dev 4, If 1, Class=CDC Data, Driver=cdc_acm, 12M |__ Port 2: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M |__ Port 4: Dev 3, If 0, Class=Vendor Specific Class, Driver=r8152, 480M</syntaxhighlightpre>「Bus 02」の「Dev 1」に「5000M」と出ているので「USB3php importDump.0」のポートだとわかります。php < dumpfile.xml<br/pre>「lsusb」の結果でもそのように出ていました。
その配下にある「Dev 2(Bus 02)」に「Driver=ax88179_178a」と表示されていることから、これがUSB画像の移行 =サーバー移行でない(ディレクトリ移行)であれば、以下を実行すれば画像をインポートできます。<pre>php importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/0php importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/1php importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/2php importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/3php importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/4php importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/5php importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/6php importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/7php importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/8php importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/9php importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/aphp importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/bphp importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/cphp importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/dphp importImages.php --search-recursively --user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/ephp importImages.php --search-recursively -LANアダプタとわかります。-user=[wiki_userid] /home/[server_userid]/www/[旧mediawikiのディレクトリ]/images/f</pre>
どうやら、ちゃんとUSB更に、「.htaccess」を以下の様に編集します。<br/>【修正前】<pre># Protect against bug T30235<IfModule rewrite_module> RewriteEngine On RewriteOptions inherit RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase] RewriteRule . -LANアダプタはUSB3[forbidden] # Fix for bug T64289 Options +FollowSymLinks</IfModule></pre>【修正後】<pre># Protect against bug T30235<IfModule rewrite_module> RewriteEngine On RewriteOptions inherit RewriteCond %{QUERY_STRING} \.0で接続されているようです。[^\\/:*?\x22<>|%]+(#|\?|$) [nocase] RewriteRule . - [forbidden] # Fix for bug T64289 # Options +FollowSymLinks</IfModule></pre>
== もし「2.0 root hub」となっていたら… ==BIOSをアップデートすると直るようです<ref name="LP_forum_USB30" />。 == 参考サイト ==[https://blog.goo.ne.jp/takuminews/e/6ea03871680f0d004591493984610974 Linuxで見るとUSB3.0のインターフェイスが実はUSB2接続だった - 情報技術の四方山話] == 脚注 ==<references><ref name="LP_forum_USB30">[https://www.lattepanda.com/topic-f10t1306.html [RESOLVED]USB 3.0 connection problem - LattePanda Forum]</ref></references> [[Category:Debian]][[Category:LattepandaMediaWiki]]

案内メニュー