約 4,339,374 件
https://w.atwiki.jp/bluearth3/pages/24.html
トップページ Linux導入準備編 HDD と パーティション 作成日 2010-01-03 諸注意 個人による情報収集にはどうしても限界があります。 情報の完全性、正確性、有用性はいかなる保証もできません。 当サイトが原因による損害等については、記載内容に基づいて利用者が下した判断及び行動により いかなる結果が発生した場合においてもその責を負いませんのでご了承ください。 パーティション ハードディスクドライブ、通称「HDD」。 PC起動に必要な「OS」や自分で作成したデータ、例えば「写真」とか「家計簿」、「映像」などの「ファイル群」は全部このHDDに入っているわけであります。 (最近は「SSD」なるものも出てきておりますが、構成される部品が違うだけで、役割は全く同じです。) そしてWindowsの場合、マイコンピュータなどを起動して「ローカルディスク C (Cドライブ)」や「ローカルディスク D (Dドライブ)」をクリックしてHDDにアクセスしているわけですね。 つまり「Cドライブ」や「Dドライブ」が「HDD」をさしているわけです。 さて、この時点でいくつか疑問を感じる人がいるかもしれません。 例えば、 「うちのPCにはHDDが1つしか搭載されていないんだけど、なぜ『Cドライブ』と『Dドライブ』、2つも表示されるんだ?」 「私の場合、CとDの他に『Eドライブ』や『Fドライブ』まであるんですが・・・」 「俺のPCには『Cドライブ』だけで『Dドライブ』なんてないぞ」 などなど。 答えから言うと、これはすべて「パーティション」が関係しています。 まず一般的なPCを例に考えてみます。 通常、市販されているPCの中にはHDD(かSSD)が"1台だけ"搭載されています。(*1) HDDが1台で、「Cドライブ」と「Dドライブ」が表示されている場合、HDDの中は次のように論理的に分割されています。 「Cドライブ」と「Dドライブ」の場合 HDD全体 Cドライブ Dドライブ このHDD内で区切られている1つの塊を「パーティション」と言います。 上記の場合、2つのパーティションに区切られていることになります。 なので、『Fドライブ』まであるという人や、『Cドライブ』しか無いという人は次のようになります。 「Cドライブ」から「Fドライブ」まで分割されている場合 HDD全体 Cドライブ Dドライブ Eドライブ Fドライブ 4つのパーティションに区切られている 「Cドライブ」しかない場合 HDD全体 Cドライブ パーティションが1つしか存在していない まぁパーティションに区切ることは仮想的に複数のHDDを搭載させているように見せかけていると思えばいいと思います。 問題は何でこんなことをするのか、ということです。 実際、疑問に思っている人は多いようで、「CドライブとDドライブの違いがわからない」といった質問や、なんで「パーティションを分ける必要があるの?」という疑問をネットでよく見かけます。 極端な話、HDDを複数のパーティションに分割しなくてもPCは使用できます。 ただ、分割しているとイザというときに便利な時があるんですね。 ではそいつはなんやねんというのを次の項目でお話します。 パーティション分割のメリット 「Windowsが不安定」とか「原因不明でWindowsが起動しなくなってしまった」、「ウイルスに冒されて、システムがおかしくなってしまった」という経験はありませんか? そのときに取れる最強の手段は何か? それはずばり「Windowsの再インストール」または「リカバリ」と呼ばれる作業ですね。 やっていることは「PCの初期化」。HDD上にあるOSやその他のデータを書き直して、工場出荷状態に戻します。 工場出荷状態に戻すというわけですから、「ウイルスなんて目じゃねぇよ」って感じで何も考えないでこれをやると「あれ?俺が保存していた大切なファイルはどこに行った?」ってな話になります。 初期化するのですから、ウイルスは当然なくなるわけですが、自分が作ったり、ダウンロードして保存したりしたファイルも綺麗さっぱりなくなるわけです。自分が望むファイルだけ残してくれというわけには行かないのです。(それじゃ初期化じゃないですし。) なので再インストールする時は自分が必要とするファイルを通常外部メディアなどにバックアップしてから行います。(*2) さて、このOSの再インストールですが、この作業、「HDD単位」で行われるのではなく、「パーティション単位」で行われるんですよ。 なのでWindowsがインストールされていたパーティションにOSを入れ直した(再インストールした)場合、初期化されるのはそのパーティションだけで、その他のパーティションはリセットされないのです。(*3) みなさん、CドライブやDドライブの中身をじっくりと見たことがあるでしょうか? 怖くて触れないとか、見たこともない、という人は結構多いと思います。 まぁちょっとCドライブを覗いてみてください。「Documents and Settings」や「Program Files」、「WINDOWS」フォルダなどがあると思います。これらはシステムに関するフォルダ群です。一方 Dドライブのほうはというと、中がスッカラカンになっているのではないでしょうか。(*4) 基本的にシステムに関するファイル(つまりOS)はCドライブに入っています。DドライブにOSが入ることは通常はありません。そのためDドライブに自分の作ったファイルや入手したファイルを保存してある状態で、元のCドライブのパーティションにOSを再インストールした場合、データがリセットされるのはCドライブだけでDドライブは無傷なんですね。(*5) つまり、システム(OS)とそれ以外のデータをパーティションで分けておくと、再インストールが楽ということです。「Cドライブ」はシステムファイルの置き場所、「Dドライブ(C以外)はユーザのデータの置き場所」といったような使い方が本来の姿だと思います。(*6) WindowsにおけるHDDのパーティション分割のメリットといえばこれくらいじゃないでしょうか。 ※メーカー製PCにおける特殊事例 メーカー製PCの場合、隠しパーティションが用意されている場合があります。 HDD全体 Cドライブ Dドライブ 隠しパーティション 「隠し」ですから、当然マイコンピュータからは認識されておらずアクセス出来ません。 このパーティションには何が入っているのかというと、大概がWindowsの「再インストール用のデータ」です。(*7) このタイプのPCは「リカバリメディア(*8)」が無くても再インストールできるんですね。 便利じゃん、と思うかもしれません。まぁ確かに便利かもしれませんが、そもそもHDDが物理的に壊れてしまったら、再インストール出来ないんですよこれ。それにHDD交換はどうするの?って話にもなります。そういった意味でCDやDVDという安定した形でリカバリディスクがあるというのは安心感があります。 閑話休題 さて、ここまでは再インストールにおけるメリットをあげましたが、その他にも重要なメリットがあるんですよ。 先で『「OSの再インストール」は「パーティション単位」』と言いましたよね。 他のOS、つまりLinuxも何ら変わらないんですよ。 Linuxのインストールも「パーティション単位」です。 なので、パーティションが複数ある場合、空いているパーティションに他のOSをインストールができる、つまりマルチブートが可能です。 HDDを複数のパーティションに区切った場合、このようなこともできるんですね。 例 HDD全体 WindowsXP(Cドライブ) Vine Linux Debian Linux-swap 隠しパーティション ということで、「パーティション分割のメリット」のお話は以上です。 あとは具体的に「パーティションの分割や操作」はどうするのか、という話になります。 ※ 一つのパーティションに複数のOSを入れることは不可能ではありません。 出来なくはないですが、普通やりません。 ハサミで魚が捌けるか、と言ったら可能でしょうけれども実際にはやらないのと同じ類の話になります。 ※ Windowsを使っていてAドライブとかBドライブはなぜ無いのか疑問に思う方がいるかもしれません。 Aドライブ Bドライブで調べてみてください。 PCのOSはどこにある? HDD と パーティション Linuxの種類 最終更新 2010-01-23 名前 コメント
https://w.atwiki.jp/aerocats/pages/16.html
mountコマンドは、デバイスをLinuxの任意の地点に配置するというもの。 HDDをパーティション単位で好きな箇所にマウントする、USBメモリやCD/DVDドライブをマウントする、など、デバイスをファイルシステムとして取り扱う。 標準Linuxでのmountコマンド 概要 helpを表示してみる。 ~ # mount --help BusyBox v1.1.1 (2007.04.06-12 02+0000) multi-call binary Usage mount [flags] DEVICE NODE [-o options,more-options] Mount a filesystem. Filesystem autodetection requires /proc be mounted. Flags -a Mount all filesystems in fstab -o option One of many filesystem options, listed below -r Mount the filesystem read-only -t fs-type Specify the filesystem type -w Mount for reading and writing (default) Options for use with the "-o" flag async/sync Writes are asynchronous / synchronous atime/noatime Enable / disable updates to inode access times dev/nodev Allow use of special device files / disallow them exec/noexec Allow use of executable files / disallow them loop Ignored (loop devices are autodetected) suid/nosuid Allow set-user-id-root programs / disallow them remount Re-mount a mounted filesystem, changing its flags ro/rw Mount for read-only / read-write bind Bind a directory to an additional location move Relocate an existing mount point. There are EVEN MORE flags that are specific to each filesystem You ll have to see the written documentation for those filesystems ~ # 標準LinuxでのmountコマンドはBusyBoxが動作する。 コマンドの実行 HDD装着(未フォーマット) mountコマンドの実行結果は以下。 ~ # mount /dev/root on / type jffs2 (rw,noatime) proc on /proc type proc (rw,nodiratime) sysfs on /sys type sysfs (rw) usbfs on /proc/bus/usb type usbfs (rw) devpts on /dev/pts type devpts (rw) /dev/ram1 on /mnt/ram type tmpfs (rw) /dev/mtd3 on /mnt/mtd type jffs2 (rw,noatime) この出力を表にまとめてみる。 デバイス名 マウント先 タイプ マウントオプション /dev/root / jffs2 rw,noatime proc /proc proc rw,nodiratime sysfs /sys sysfs rw usbfs /proc/bus/usb usbfs rw devpts /dev/pts devpts rw /dev/ram1 /mnt/ram tmpfs rw /dev/mtd3 /mnt/mtd jffs2 rw,noatime
https://w.atwiki.jp/bluearth3/pages/23.html
OSのはなし OSとは何か? OSの違い PCのOSはどこにある? HDD と パーティション パーティション パーティション分割のメリット Linuxの種類 デストリビューション デストリビューションの系統 ビギナーはどのデストリビューションを使うべきか? パーティションの分割 GNU Parted によるパーティションの作成 Windowsユーザから見た Linux 使用までの障害のポイント Linuxの導入時 1 マルチブートに関する知識 2 ネットワーク設定に関する知識 3 ドライバの設定/デバイスの設定 Linuxの使用時 1 アプリケーションの管理(インストールとアンインストール) 2 CUI 参考サイト・参考文献 ハードウェア対応の確認手法 バックアップと再インストール
https://w.atwiki.jp/hama170628/pages/65.html
KNOPPIX付属のQTpartedを利用して既存のパーティションサイズを変更します。 KNOPPIXを起動し、メニューから[システム]→[QTparted create・・・]を起動します。 (コマンド(qtparted)で起動する方法もありますがなぜかHDDのデバイスを読み込まなかったため。) 画面左ペインのデバイス一覧から該当するHDDを選択します。 右上のパーティション情報を右クリックし、[サイズ変更]を選択します。 任意のサイズを入力します。 変更情報を保存するため、左上のフロッピーマークをクリックし、保存します。
https://w.atwiki.jp/bluearth3/pages/22.html
トップページ Linux導入準備編 Linuxの種類 2010-01-22 デストリビューション Linuxって種類が多いんですよ。 Fedora,Vine, Debian,Knoppix,Ubuntu,MEPIS, SlackWare,Plamo Linux,openSUSE・・・ とメジャーどころを挙げてみましたが、探せばキリがないです。 さて、話変わって、これらのLinuxに共通するものは一体何でしょうか? ご存知の方もいるでしょうが、それはOSのコアにあたる「カーネル」が同一であるということです。 正確に言えば「Linuxカーネル」を使用しているということでしょう。 いままでLinuxと呼んでいたのは本当は「OSまるごと」のことではなく、「カーネル」の部分だけだったんですね。Linuxカーネルを使用しているOSは全部Linux扱いという感じでしょうか。 (Windowsのカーネルは WindowsXPやWindows2000 が「NTカーネル」、 Windows95,Windows98,WindowsMe が「9xカーネル」で、名前の呼び方がLinuxとは違いますね。 Windowsの場合はWindowsXPやWindows2000は「OSまるごと」をさしてます。) では、「OSまるごと」は何て言うのかというと、「デストリビューション」と言います。一応「Linux」と言っても通じますが、あまり使いません。「あのデストリビューションは見栄えがいいよね」とか「このデストリビューションは手堅いね」とかそんな使われ方をします。たまに略されて「デストリ」とか「鳥」とか略し過ぎだろ、と思うものもあります。 ちなみに、LinuxをOSとして一つの形にまとめ上げる、つまり、デストリビューションとしてまとめ上げたりする人や組織のことを「デストリビューター」といいます。(*1) デストリビューションの系統 さて、デストリビューションは各々が様々な個性を持っています。それはデストリビューターの好みや思想が反映されているためで、見た目重視、安定重視、セキュリティ重視、研究用、教育用、医療用、レスキュー用、と多種多様です。 しかし、そのパッケージの管理の仕方は大雑把に分けて次の4つのどれかです。 Debian系 (APT系) Red Hat系 (RPM系) Slackware系 その他 (ちょっと乱暴ですが) パッケージ管理のしかたがわからなければ、まずどの系統か把握してから調べると良いでしょう。 ビギナーはどのデストリビューションを使うべきか? 「好きなものを使ってください。」 デストリビューションを選ぶ上で、これが本来の究極の回答なのですが、こう言われても、Linuxのことがようわからん人には選びようが無いですよね。電気店で「好きなエアコンを選んでください」と言われて立ち往生するようなもんです。 ということで一つ選びましょう。2010年現在、入門用として最適なのはUbuntuじゃないでしょうか?ハードウェア対応状況がかなり優れているので、インストールに対する障害は少ないです。ただ、あまりにも古いハードだと重く感じると思います。CPU 2Ghz以上、メモリ1GB もあれば十分でしょう。 ある程度使えるようになったら、自分に最適なデストリビューションを探すと良いと思います。 Ubuntuの入手についてはLinuxの入手編を参考にしてみてください。 HDD と パーティション Linuxの種類 パーティションの分割
https://w.atwiki.jp/aster-infra/pages/160.html
パーティションの設定 パーティションを操作する為にはfdiskコマンドを使う。 fdiskコマンドはハード・ディスク領域を分割して 複数のパーティションを作成・編集できるコマンドになる。 ちなみにパーティションの操作を誤ると、 貴重なデータを喪失しかねないので注意。 fdiskコマンド fdisk [オプション] [デバイス] オプション オプション 意味 -b デバイスのブロック・サイズを指定する -C デバイスのシリンダ数を指定する -H デバイスのヘッダ数を指定する -S デバイスの1トラックあたりのセクター数を指定する -l マウントされているデバイスのパーティション情報を表示する -u -l オプションを利用する際,容量をシリンダ数単位で表示する -s 指定したパーティションの容量を表示する。容量はブロック数 上記コマンドを実行すると、 fdiskのプロンプト「Command(m for help) 」が表示される。 パーティションの操作はコマンドを利用しながら対話的に行うことになる。 コマンド一覧 a ブートの可否を切り替える b BSD用パーティションのディスク・ラベルを編集する c DOSコンパチブルの可否を切り替える d パーティションを削除する l 利用可能なパーティション・タイプを表示する m 利用可能なコマンドを一覧する n 新しいパーティションを作成する o DOSパーティションを作成する p パーティション情報を表示する q パーティション情報を保存せずに終了する s SUN用の新しいディスク・ラベルを作成する t パーティション・タイプを変更する。初期値は"Linux native"(83) u 容量の表示単位を切り替える v パーティションを検査する w パーティション情報を書き込んで,終了する
https://w.atwiki.jp/bluearth3/pages/26.html
現在wiki用の記事を準備中です。 完成するまでは、Parted でパーティションの作成(分割)を参照してください。
https://w.atwiki.jp/aerocats/pages/56.html
/proc /proc/mounts rootfs / rootfs rw 0 0 /dev/root / jffs2 rw,noatime 0 0 proc /proc proc rw,nodiratime 0 0 sysfs /sys sysfs rw 0 0 usbfs /proc/bus/usb usbfs rw 0 0 devpts /dev/pts devpts rw 0 0 /dev/ram1 /mnt/ram tmpfs rw 0 0 /dev/sda1 /mnt/disk1 xfs rw 0 0 /dev/mtd3 /mnt/mtd jffs2 rw,noatime 0 0 /proc/cpuinfo Processor ARM926EJ-Sid(wb) rev 0 (v5l) BogoMIPS 266.24 Features swp half thumb fastmult CPU implementer 0x41 CPU architecture 5TEJ CPU variant 0x0 CPU part 0x926 CPU revision 0 Cache type write-back Cache clean cp15 c7 ops Cache lockdown format C Cache format Harvard I size 32768 I assoc 1 I line length 32 I sets 1024 D size 32768 D assoc 1 D line length 32 D sets 1024 Hardware MV-88fxx81 Revision 0000 Serial 0000000000000000 /proc/devices Character devices 1 mem 2 pty 3 ttyp 4 /dev/vc/0 4 tty 4 ttyS 5 /dev/tty 5 /dev/console 5 /dev/ptmx 7 vcs 10 misc 13 input 21 sg 90 mtd 128 ptm 136 pts 180 usb Block devices 1 ramdisk 7 loop 8 sd 9 md 31 mtdblock 65 sd 66 sd 67 sd 68 sd 69 sd 70 sd 71 sd 128 sd 129 sd 130 sd 131 sd 132 sd 133 sd 134 sd 135 sd 254 mdp /proc/mtd dev size erasesize name mtd0 00040000 00001000 "phys_mapped_flash" mtd1 00400000 00020000 "uImage" mtd2 04000000 00020000 "rootfs" mtd3 0bc00000 00020000 "extra" /proc/interrupts CPU0 0 103019 Mv Timer Tick 3 438 serial 12 0 ehci_hcd usb2 17 0 ehci_hcd usb1 21 426 eth0 29 110 mvSata 30 20704 xor_chan0 31 0 xor_chan1 34 0 MiCon Err 0 /proc/ioports 00000000-000fffff PCI IO Primary 00100000-001fffff PCI IO Primary /proc/meminfo MemTotal 126328 kB MemFree 107748 kB Buffers 0 kB Cached 9640 kB SwapCached 0 kB Active 6332 kB Inactive 6100 kB HighTotal 0 kB HighFree 0 kB LowTotal 126328 kB LowFree 107748 kB SwapTotal 0 kB SwapFree 0 kB Dirty 0 kB Writeback 0 kB Mapped 5644 kB Slab 4616 kB CommitLimit 63164 kB Committed_AS 25104 kB PageTables 244 kB VmallocTotal 385024 kB VmallocUsed 4428 kB VmallocChunk 380412 kB
https://w.atwiki.jp/vmlinuz/pages/35.html
Linuxに関するあれこれ TOP linux OS CentOS Server サーバ、デーモン系 apache nginx samba mysql mongodb vsftpd 言語、プログラム系 php perl アプリケーション p7zip セキュリティ SSH システムライブラリ系 pcre curl zlib openssl cmake bison libxml2
https://w.atwiki.jp/aerocats/pages/15.html
起動メッセージ メッセージを読む電源ON 周辺装置の初期化 メインメモリ上にカーネルを読み込む カーネルの起動SATAデバイスドライバの読み込み NORフラッシュ NANDフラッシュ USB ネットワーク rootfsのマウント ルートファイルシステムによる初期化MountSystemFolders関数 checkroot.sh Kevent.sh mount_share.sh sethostname.sh networking.sh httpd.sh telnet.sh inetd.sh smb.sh clientUtil_servd.sh bootcomplete.sh FanController.sh boss.sh 起動メッセージ Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Apr 10 2007 - 18 10 08) Marvell version 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M) Done NAND 256 MB Soc 88F5182 A2 CPU ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0 host mode USB 1 host mode PCI 0 PCI Express Root Complex Interface PCI 1 Conventional PCI, speed = 33000000 Net egiga0 [PRIME] Using 88E1118 phy Found boot image hit any key to switch tftp boot. Hit any key to stop autoboot 2 1 0 system_bootend Hit any key to stop autoboot 3 2 1 0 Loading from device 0 NULL at 0xfa000000 (offset 0x20000) Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 stop_sound ## Booting image at 00100000 ... Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK Starting kernel ... arg console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.09 CONFIG_KUROBOX_PLATFORM CONFIG_KUROBOX_KUROBOX --- Uncompressing Linux................................................................................................................. done, booting the kernel. Linux version 2.6.12.6-arm1 (root@dev-hara) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #27 Tue Apr 10 22 47 16 JST 2007 CPU ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ) CPU0 D VIVT write-back cache CPU0 I cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets CPU0 D cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets Machine MV-88fxx81 Using UBoot passing parameters structure Sys Clk = 250000000, Tclk = 166664740 Memory policy ECC disabled, Data cache writeback Built 1 zonelists Kernel command line console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.09 PID hash table entries 1024 (order 10, 16384 bytes) Console colour dummy device 80x30 Dentry cache hash table entries 32768 (order 5, 131072 bytes) Inode-cache hash table entries 16384 (order 4, 65536 bytes) Memory 128MB 0MB 0MB 0MB = 128MB total Memory 126208KB available (3037K code, 426K data, 112K init) Mount-cache hash table entries 512 CPU Testing write buffer coherency ok NET Registered protocol family 16 serial_initialize_ttyS1 (Debug) ttyS1 is initialized. config_device_cs Error Unknown board CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 128MB SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB PEX0_IO ....base f2000000, size 1MB PCI0_MEM ....base e8000000, size 128MB PCI0_IO ....base f2100000, size 1MB INTER_REGS ....base f1000000, size 1MB DEVICE_CS0 ....base fa000000, size 2MB DEVICE_CS1 ....base f4000000, size 32MB DEVICE_CS2 ....base fa800000, size 1MB DEV_BOOCS ....base ff800000, size 8MB CRYPTO ENG ....no such Flash bankwidth 1, base ff800000, size 400000 KUROBOX FLASH size 4096[KB] Marvell Development Board (LSP Version 1.10.3.patch5_DB_NAS)-- KUROBOX_BOARD_KUROBOX Soc 88F5182 A2 Detected Tclk 166664740 and SysClk 250000000 Marvell USB EHCI Host controller #0 c04e4b00 Marvell USB EHCI Host controller #1 c04e4a40 pexBarOverlapDetect winNum 2 overlap current 0 mvPexInit Warning Bar 2 size is illigal it will be disabled please check Pex and CPU windows configuration PCI bus0 Fast back to back transfers enabled PCI bus1 Fast back to back transfers enabled SCSI subsystem initialized usbcore registered new driver usbfs usbcore registered new driver hub Use the XOR engines (offloading) for enhancing the following functions o RAID 5 Xor calculation o kernel memcpy o kenrel memzero o copy user to/from kernel buffers Number of XOR engines to use 2 cesadev_init(c00122e4) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. inotify device minor=63 JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. SGI XFS with no debug enabled Serial 8250/16550 driver $Revision 1.90 $ 4 ports, IRQ sharing disabled ttyS0 at MMIO 0x0 (irq = 3) is a 16550A ttyS1 at MMIO 0x0 (irq = 4) is a 16550A io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized 3 RAM disks of 32768K size 1024 blocksize loop loaded (max 8 devices) Marvell Gigabit Ethernet Driver egiga o Ethernet descriptors in DRAM o DRAM SW cache-coherency o Checksum offload enabled o Loading network interface ** egiga_init_module (10) eth0 Intergrated Sata device found scsi0 Marvell SCSI to SATA adapter scsi1 Marvell SCSI to SATA adapter Vendor Seagate Model ST380815AS Rev 3.AA Type Direct-Access ANSI SCSI revision 03 SCSI device sda 156301488 512-byte hdwr sectors (80026 MB) SCSI device sda drive cache write back SCSI device sda 156301488 512-byte hdwr sectors (80026 MB) SCSI device sda drive cache write back sda unknown partition table Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 physmap flash device 400000 at ff800000 Found SST 39LF020 phys_mapped_flash Found 1 x8 devices at 0x0 in 8-bit bank number of JEDEC chips 1 cfi_cmdset_0002 Disabling erase-suspend-program due to code brokenness. RedBoot partition parsing not available Debug nand_scan nand_flash_ids[i].pagesize is exist Debug nand_scan mtd- erasesize=0x00020000 Debug nand_scan mtd- oobblock=0x00000800 Debug nand_scan mtd- oobsize=0x00000040 NAND device Manufacturer ID 0x20, Chip ID 0xda (ST Micro NAND 256MiB 3,3V 8-bit) Scanning device for bad blocks Using static partition definition Creating 3 MTD partitions on "nand_mtd" 0x00000000-0x00400000 "uImage" 0x00400000-0x04400000 "rootfs" 0x04400000-0x10000000 "extra" usbmon debugs is not available ehci_platform ehci_platform.4523 EHCI Host Controller ehci_platform ehci_platform.4523 new USB bus registered, assigned bus number 1 ehci_platform ehci_platform.4523 irq 17, io mem 0x00000000 ehci_platform ehci_platform.4523 park 0 ehci_platform ehci_platform.4523 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 1-0 1.0 USB hub found hub 1-0 1.0 1 port detected ehci_platform ehci_platform.16781 EHCI Host Controller ehci_platform ehci_platform.16781 new USB bus registered, assigned bus number 2 ehci_platform ehci_platform.16781 irq 12, io mem 0x00000000 ehci_platform ehci_platform.16781 park 0 ehci_platform ehci_platform.16781 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 2-0 1.0 USB hub found hub 2-0 1.0 1 port detected USB Universal Host Controller Interface driver v2.2 Initializing USB Mass Storage driver... usbcore registered new driver usb-storage USB Mass Storage support registered. usbcore registered new driver usbhid drivers/usb/input/hid-core.c v2.01 USB HID core driver mice PS/2 mouse device common for all mice md raid0 personality registered as nr 2 md raid1 personality registered as nr 3 md raid5 personality registered as nr 4 raid5 measuring checksumming speed arm4regs 304.000 MB/sec 8regs 215.200 MB/sec 32regs 249.200 MB/sec raid5 using function arm4regs (304.000 MB/sec) md md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 Buffalo Platform Linux Driver(Light) 0.01 installed. MICON ctrl (C) BUFFALO INC. V.1.00 installed. Kernel event proc (C) BUFFALO INC. V.1.00 installed. MICON V2 (C) BUFFALO INC. V.1.00 installed. NET Registered protocol family 2 IP routing cache hash table of 1024 buckets, 8Kbytes TCP established hash table entries 8192 (order 4, 65536 bytes) TCP bind hash table entries 8192 (order 3, 32768 bytes) TCP Hash tables configured (established 8192 bind 8192) NET Registered protocol family 1 NET Registered protocol family 17 md Autodetecting RAID arrays. md autorun ... md ... autorun DONE. Empty flash at 0x00df85f8 ends at 0x00df8800 VFS Mounted root (jffs2 filesystem). Freeing init memory 112K --- rcStart (NANDroot) --- ===== Starting MountSystemFolders ===== mounting procfs ... [Success] mounting sysfs ... [Success] mouting usbfs ... [Success] remouting rootfs ... [Success] mounting all devices ... [Success] ===== Starting checkroot.sh ===== rm /var/lock/perfmon is a directory rm /var/lock/printing is a directory rm /var/lock/subsys is a directory [Success] ===== Starting Kevent.sh ===== [Success] HDD未フォーマットの場合 ===== Starting mount_share.sh ===== Mounting /dev/sda on /mnt/disk1 as a xfs file system. XFS bad magic number XFS SB validate failed mount Mounting /dev/sda on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/sda on /mnt/disk1 as a ext3 file system. mount Mounting /dev/sda on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/mtd3 on /mnt/mtd as a jffs2 file system. Success. [Success] HDDをフォーマットしている場合 ===== Starting mount_share.sh ===== Mounting /dev/sda1 on /mnt/disk1 as a xfs file system. XFS mounting filesystem sda1 Starting XFS recovery on filesystem sda1 (dev sda1) Ending XFS recovery on filesystem sda1 (dev sda1) Success. Mounting /dev/mtd3 on /mnt/mtd as a jffs2 file system. Success. [Success] ===== Starting sethostname.sh ===== hostname is setted to KUROBOX-PRO [Success] LANに未接続の場合 ===== Starting networking.sh ===== create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall dhcpcd no process killed route SIOC[ADD|DEL]RT No such process Configuration network interface lo eth0 requesting DHCP tout=30[s] ** dhcp fail ** setting default ip route SIOC[ADD|DEL]RT No such process /etc/dhcpc/dhcpcd.exe down dhcpcd.exe interface eth0 has been brought down add default if hostname is setted to KUROBOX-PRO [Success] LANに接続されている場合 ===== Starting networking.sh ===== create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall dhcpcd no process killed route SIOC[ADD|DEL]RT No such process Configuration network interface lo eth0 requesting DHCP tout=30[s] eth0 link down eth0 link up 5 , full duplex 5 , speed 100 Mbps 5 /etc/dhcpc/dhcpcd.exe /etc/dhcpc/dhcpcd-eth0.info up dhcpcd.exe interface eth0 has been configured with old IP=192.168.1.9 hostname is setted to KUROBOX-PRO [Success] ===== Starting httpd.sh ===== [Success] ===== Starting telnet.sh ===== [Success] ===== Starting inetd.sh ===== [Success] ===== Starting smb.sh ===== $Starting SMB services $Starting NMB services [Success] ===== Starting clientUtil_servd.sh ===== Starting clientUtil_server starting on eth0 [Success] ===== Starting bootcomplete.sh ===== [Success] ===== Starting FanController.sh ===== [Success] ===== Starting boss.sh ===== (サングラス男AA) [Success] KUROUTOSHIKOU KUROBOX Series KUROBOX/PRO(KOSHO) KUROBOX-PRO login メッセージを読む 電源ON 玄箱PROの電源を入れると、まずCPUのプログラムカウンタにU-Bootのメモリアドレスが設定されU-Bootが実行される。 Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Apr 10 2007 - 18 10 08) Marvell version 1.12.1 - TINY 周辺装置の初期化 U-Bootによる低レベルでの初期化を行い、カーネルイメージを見つける。 PCで言うBIOSのような働きをする。 DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M) Done NAND 256 MB Soc 88F5182 A2 CPU ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0 host mode USB 1 host mode PCI 0 PCI Express Root Complex Interface PCI 1 Conventional PCI, speed = 33000000 Net egiga0 [PRIME] Using 88E1118 phy Found boot image hit any key to switch tftp boot. Hit any key to stop autoboot 2 1 0 system_bootend Hit any key to stop autoboot 3 2 1 0 メインメモリ上にカーネルを読み込む 見つけたカーネルイメージをメインメモリへ読み込む。 PCで言うブートローダーの働きをする。 NANDフラッシュの0x20000番地(mtd1の128k以降)からロードする。 Loading from device 0 NULL at 0xfa000000 (offset 0x20000) Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 stop_sound カーネルイメージをメインメモリの0x00100000番地へロード。 ## Booting image at 00100000 ... Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK カーネルの起動 読み込んだカーネルを実行する。 この時点でU-Bootからカーネルに制御が移される。 Starting kernel ... arg console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.09 CONFIG_KUROBOX_PLATFORM CONFIG_KUROBOX_KUROBOX --- カーネルが圧縮された自身の展開。 Uncompressing Linux................................................................................................................. done, booting the kernel. カーネルの起動。 Linux version 2.6.12.6-arm1 (root@dev-hara) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #27 Tue Apr 10 22 47 16 JST 2007 CPU ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ) CPU0 D VIVT write-back cache CPU0 I cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets CPU0 D cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets Machine MV-88fxx81 Using UBoot passing parameters structure Sys Clk = 250000000, Tclk = 166664740 Memory policy ECC disabled, Data cache writeback Built 1 zonelists Kernel command line console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.09 PID hash table entries 1024 (order 10, 16384 bytes) Console colour dummy device 80x30 Dentry cache hash table entries 32768 (order 5, 131072 bytes) Inode-cache hash table entries 16384 (order 4, 65536 bytes) Memory 128MB 0MB 0MB 0MB = 128MB total Memory 126208KB available (3037K code, 426K data, 112K init) Mount-cache hash table entries 512 CPU Testing write buffer coherency ok NET Registered protocol family 16 serial_initialize_ttyS1 (Debug) ttyS1 is initialized. config_device_cs Error Unknown board CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 128MB SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB PEX0_IO ....base f2000000, size 1MB PCI0_MEM ....base e8000000, size 128MB PCI0_IO ....base f2100000, size 1MB INTER_REGS ....base f1000000, size 1MB DEVICE_CS0 ....base fa000000, size 2MB DEVICE_CS1 ....base f4000000, size 32MB DEVICE_CS2 ....base fa800000, size 1MB DEV_BOOCS ....base ff800000, size 8MB CRYPTO ENG ....no such Flash bankwidth 1, base ff800000, size 400000 KUROBOX FLASH size 4096[KB] Marvell Development Board (LSP Version 1.10.3.patch5_DB_NAS)-- KUROBOX_BOARD_KUROBOX Soc 88F5182 A2 Detected Tclk 166664740 and SysClk 250000000 Marvell USB EHCI Host controller #0 c04e4b00 Marvell USB EHCI Host controller #1 c04e4a40 pexBarOverlapDetect winNum 2 overlap current 0 mvPexInit Warning Bar 2 size is illigal it will be disabled please check Pex and CPU windows configuration PCI bus0 Fast back to back transfers enabled PCI bus1 Fast back to back transfers enabled SCSI subsystem initialized usbcore registered new driver usbfs usbcore registered new driver hub Use the XOR engines (offloading) for enhancing the following functions o RAID 5 Xor calculation o kernel memcpy o kenrel memzero o copy user to/from kernel buffers Number of XOR engines to use 2 cesadev_init(c00122e4) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. inotify device minor=63 JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. SGI XFS with no debug enabled Serial 8250/16550 driver $Revision 1.90 $ 4 ports, IRQ sharing disabled ttyS0 at MMIO 0x0 (irq = 3) is a 16550A ttyS1 at MMIO 0x0 (irq = 4) is a 16550A io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized 3 RAM disks of 32768K size 1024 blocksize loop loaded (max 8 devices) Marvell Gigabit Ethernet Driver egiga o Ethernet descriptors in DRAM o DRAM SW cache-coherency o Checksum offload enabled o Loading network interface ** egiga_init_module (10) eth0 SATAデバイスドライバの読み込み Intergrated Sata device found scsi0 Marvell SCSI to SATA adapter scsi1 Marvell SCSI to SATA adapter Vendor Seagate Model ST380815AS Rev 3.AA Type Direct-Access ANSI SCSI revision 03 SCSI device sda 156301488 512-byte hdwr sectors (80026 MB) SCSI device sda drive cache write back SCSI device sda 156301488 512-byte hdwr sectors (80026 MB) SCSI device sda drive cache write back sda unknown partition table Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 NORフラッシュ physmap flash device 400000 at ff800000 Found SST 39LF020 phys_mapped_flash Found 1 x8 devices at 0x0 in 8-bit bank number of JEDEC chips 1 cfi_cmdset_0002 Disabling erase-suspend-program due to code brokenness. RedBoot partition parsing not available NANDフラッシュ Debug nand_scan nand_flash_ids[i].pagesize is exist Debug nand_scan mtd- erasesize=0x00020000 erasesizeとはNANDフラッシュの内容を消去する単位の大きさであり、それが0x00020000、つまり128KBだとなっている。 消去はブロック単位で行われるため、1ブロック128KBだということになる。 Debug nand_scan mtd- oobblock=0x00000800 OOBとはOut Of Bandの略で、ECCと呼ばれるエラー訂正コードを格納する領域を意味する。 16進数で00000800は10進数で2048を意味し、これはOOBのブロック数を指している。 Debug nand_scan mtd- oobsize=0x00000040 OOBのサイズが00000040だと意味する。 10進数で64となり、OOBのサイズは64バイトだとわかる。 NAND device Manufacturer ID 0x20, Chip ID 0xda (ST Micro NAND 256MiB 3,3V 8-bit) Scanning device for bad blocks Using static partition definition Creating 3 MTD partitions on "nand_mtd" 0x00000000-0x00400000 "uImage" 0x00400000-0x04400000 "rootfs" 0x04400000-0x10000000 "extra" USB usbmon debugs is not available ehci_platform ehci_platform.4523 EHCI Host Controller ehci_platform ehci_platform.4523 new USB bus registered, assigned bus number 1 ehci_platform ehci_platform.4523 irq 17, io mem 0x00000000 ehci_platform ehci_platform.4523 park 0 ehci_platform ehci_platform.4523 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 1-0 1.0 USB hub found hub 1-0 1.0 1 port detected ehci_platform ehci_platform.16781 EHCI Host Controller ehci_platform ehci_platform.16781 new USB bus registered, assigned bus number 2 ehci_platform ehci_platform.16781 irq 12, io mem 0x00000000 ehci_platform ehci_platform.16781 park 0 ehci_platform ehci_platform.16781 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 2-0 1.0 USB hub found hub 2-0 1.0 1 port detected USB Universal Host Controller Interface driver v2.2 Initializing USB Mass Storage driver... usbcore registered new driver usb-storage USB Mass Storage support registered. usbcore registered new driver usbhid drivers/usb/input/hid-core.c v2.01 USB HID core driver mice PS/2 mouse device common for all mice md raid0 personality registered as nr 2 md raid1 personality registered as nr 3 md raid5 personality registered as nr 4 raid5 measuring checksumming speed arm4regs 304.000 MB/sec 8regs 215.200 MB/sec 32regs 249.200 MB/sec raid5 using function arm4regs (304.000 MB/sec) md md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 Buffalo Platform Linux Driver(Light) 0.01 installed. MICON ctrl (C) BUFFALO INC. V.1.00 installed. Kernel event proc (C) BUFFALO INC. V.1.00 installed. MICON V2 (C) BUFFALO INC. V.1.00 installed. ネットワーク NET Registered protocol family 2 IP routing cache hash table of 1024 buckets, 8Kbytes TCP established hash table entries 8192 (order 4, 65536 bytes) TCP bind hash table entries 8192 (order 3, 32768 bytes) TCP Hash tables configured (established 8192 bind 8192) NET Registered protocol family 1 NET Registered protocol family 17 md Autodetecting RAID arrays. md autorun ... md ... autorun DONE. Empty flash at 0x00df85f8 ends at 0x00df8800 rootfsのマウント ルートファイルシステムのマウント。 bootargs_rootで設定されたデバイスがマウントされている。 VFS Mounted root (jffs2 filesystem). initで使用したメモリの解放。 Freeing init memory 112K ルートファイルシステムによる初期化 /etc/init.d/rcSの実行。 ここからは実際にマウントされたルートファイルシステムによるシステムの初期化。 --- rcStart (NANDroot) --- MountSystemFolders関数 /etc/init.d/rcS内のMountSystemFolders関数の実行。 ===== Starting MountSystemFolders ===== mounting procfs ... [Success] mounting sysfs ... [Success] mouting usbfs ... [Success] remouting rootfs ... [Success] mounting all devices ... [Success] checkroot.sh /etc/init.d/checkroot.shの実行。 ===== Starting checkroot.sh ===== rm /var/lock/perfmon is a directory rm /var/lock/printing is a directory rm /var/lock/subsys is a directory [Success] Kevent.sh /etc/init.d/Kevent.shの実行。 ===== Starting Kevent.sh ===== [Success] mount_share.sh /etc/init.d/mount_share.shの実行。 HDDが未フォーマットの場合 ===== Starting mount_share.sh ===== Mounting /dev/sda on /mnt/disk1 as a xfs file system. XFS bad magic number XFS SB validate failed mount Mounting /dev/sda on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/sda on /mnt/disk1 as a ext3 file system. mount Mounting /dev/sda on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/mtd3 on /mnt/mtd as a jffs2 file system. Success. [Success] HDDがフォーマット済みの場合 ===== Starting mount_share.sh ===== Mounting /dev/sda1 on /mnt/disk1 as a xfs file system. XFS mounting filesystem sda1 Starting XFS recovery on filesystem sda1 (dev sda1) Ending XFS recovery on filesystem sda1 (dev sda1) Success. Mounting /dev/mtd3 on /mnt/mtd as a jffs2 file system. Success. [Success] sethostname.sh /etc/init.d/sethostname.sh?の実行。 ===== Starting sethostname.sh ===== hostname is setted to KUROBOX-PRO [Success] networking.sh /etc/init.d/networking.shの実行。 LANに未接続の場合 ===== Starting networking.sh ===== create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall dhcpcd no process killed route SIOC[ADD|DEL]RT No such process Configuration network interface lo eth0 requesting DHCP tout=30[s] ** dhcp fail ** setting default ip route SIOC[ADD|DEL]RT No such process /etc/dhcpc/dhcpcd.exe down dhcpcd.exe interface eth0 has been brought down add default if hostname is setted to KUROBOX-PRO [Success] LANに接続済みの場合 ===== Starting networking.sh ===== create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall dhcpcd no process killed route SIOC[ADD|DEL]RT No such process Configuration network interface lo eth0 requesting DHCP tout=30[s] eth0 link down eth0 link up 5 , full duplex 5 , speed 100 Mbps 5 /etc/dhcpc/dhcpcd.exe /etc/dhcpc/dhcpcd-eth0.info up dhcpcd.exe interface eth0 has been configured with old IP=192.168.1.9 hostname is setted to KUROBOX-PRO [Success] httpd.sh /etc/init.d/httpd.sh?の実行。 ===== Starting httpd.sh ===== [Success] telnet.sh /etc/init.d/telnet.sh?の実行。 ===== Starting telnet.sh ===== [Success] inetd.sh /etc/init.d/inetd.sh?の実行。 ===== Starting inetd.sh ===== [Success] smb.sh /etc/init.d/smb.sh?の実行。 ===== Starting smb.sh ===== $Starting SMB services $Starting NMB services [Success] clientUtil_servd.sh /etc/init.d/clientUtil_servd.sh?の実行。 ===== Starting clientUtil_servd.sh ===== Starting clientUtil_server starting on eth0 [Success] bootcomplete.sh /etc/init.d/bootcomplete.sh?の実行。 ===== Starting bootcomplete.sh ===== [Success] FanController.sh /etc/init.d/FanController.sh?の実行。 ===== Starting FanController.sh ===== [Success] boss.sh /etc/init.d/boss.sh?の実行。 ===== Starting boss.sh ===== (サングラス男AA) [Success] KUROUTOSHIKOU KUROBOX Series KUROBOX/PRO(KOSHO) KUROBOX-PRO login