約 1,494,648 件
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/aerocats/pages/60.html
標準Linux 標準Linuxの/etc/fstabは以下のようになっている。 デバイスまたはラベル マウントポイント ファイルシステム オプション バックアップ指定 fsckの順位 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0
https://w.atwiki.jp/aerocats/pages/54.html
標準Linuxの/etc/init.dにある。 スクリプト #!/bin/sh PATH=/bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin export PATH DispSF(){ if [ $1 -eq 0 ] ; then echo [Success] else echo [Failed ] fi } MountSystemFolders(){ ##### mount system file systems.##### ##### we can t mount usbfs cause kernel don t have a usb driver statically. #### echo "===== Starting MountSystemFolders =====" echo -n "mounting procfs ... " mount -t proc proc /proc DispSF $? echo -n "mounting sysfs ... " mount -t sysfs sysfs /sys DispSF $? echo -n "mouting usbfs ... " if [ ! -e /proc/bus/usb ] ; then mkdir /proc/bus/usb -p fi mount -t usbfs usbfs /proc/bus/usb DispSF $? echo -n "remouting rootfs ... " mount -o rw,remount /dev/root / DispSF $? echo -n "mounting all devices ... " mount -a DispSF $? echo "" } BootendNotify(){ miconapl -b -a boot_end } RestoreClock(){ hwclock -l -s } echo "--- rcStart (NANDroot) ---" RestoreClock MountSystemFolders ldconfig /sbin/depmod -a . /usr/local/bin/kuro_lib for CMD in checkroot.sh Kevent.sh do exec_sh ${CMD} done for CMD in mount_share.sh sethostname.sh networking.sh httpd.sh telnet.sh inetd.sh do exec_sh ${CMD} done # file services for CMD in smb.sh do exec_sh ${CMD} done exec_sh clientUtil_servd.sh exec_sh bootcomplete.sh exec_sh FanController.sh exec_sh boss.sh /usr/local/bin/PlayBeep.sh /usr/local/music/SW_ON.msc
https://w.atwiki.jp/aerocats/pages/59.html
終了メッセージ ----- rcDown ----- ===== Starting shutdown_start.sh ===== [Success] ===== Starting shutdown_proc.sh ===== ===== Starting clientUtil_servd.sh ===== Stop clientUtil_server [Success] ===== Starting smb.sh ===== $Shutting down SMB services $Shutting down NMB services [Success] ===== Starting networking.sh ===== Deconfiguration network interface lo eth0 killall dhcpcd no process killed [Success] ===== Starting Kevent.sh ===== [Success] ===== Starting FanController.sh ===== Stopping a fan ........... [Success] [Success] ===== Starting umount_disk.sh ===== [Success] The system is going down NOW !! Sending SIGTERM to all processes. The system is halted. md stopping all md devices. md md0 switched to read-only mode. Synchronizing SCSI cache for disk sda System halted.
https://w.atwiki.jp/aerocats/pages/2.html
ブログ内検索 and or メニュー トップページ 掲示板 更新履歴 取得中です。 未作成ページ telnet arm httpd fileコマンド カーネル sethostname.sh httpd.sh telnet.sh inetd.sh smb.sh clientutil_servd.sh bootcomplete.sh fancontroller.sh boss.sh パーティション routedコマンド gettyコマンド xinetd inetd ランレベル 共有ライブラリ bash syslog wgetコマンド lsコマンド シンボリックリンク dns hosts nsswitch.conf cpコマンド rmコマンド デバイス unix システムコール vfs tarコマンド fdiskコマンド mkdirコマンド nvramコマンド 環境変数について シェル dfコマンド sedコマンド grepコマンド routeコマンド ifconfigコマンド awkコマンド killallコマンド echoコマンド procコマンド -
https://w.atwiki.jp/aerocats/pages/57.html
起動メッセージ シリアルコンソール使用 LAN接続済み HDD装着 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 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 Reset IDE Marvell Serial ATA Adapter Integrated Sata device found Device 0 OK Model ST380815AS Firm 3.AAC Ser# 9QZ15T5J Type Hard Disk Supports 48-bit addressing Capacity 76319.0 MB = 74.5 GB (156301488 x 512) Using device ide0, partition 1 Loading from block device ide device 0, partition 1 Name hda1 Type U-Boot File /uImage.buffalo 1736436 bytes read stop_sound ## Booting image at 00100000 ... Image Name Linux-2.6.12.6-arm1 Created 2007-02-08 6 00 09 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736372 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK Starting kernel ... arg console=ttyS0,115200 root=/dev/sda2 rw panic=5 BOOTVER=1.09 CONFIG_BUFFALO_PLATFORM CONFIG_BUFFALO_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)) #2 Thu Feb 8 15 00 20 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/sda2 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, 425K 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 BUFFALO KUROBOX FLASH size 4096[KB] Marvell Development Board (LSP Version 1.10.3.patch5_DB_NAS)-- BUFFALO_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(c00122e0) 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 sda1 sda2 sda3 sda4 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 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. XFS mounting filesystem sda2 VFS Mounted root (xfs filesystem). Freeing init memory 112K init started BusyBox v1.1.1 (2006.11.29-02 37+0000) multi-call binary Starting pid 223, console /dev/ttyS0 /etc/init.d/rcS --- rcStart (hddroot) --- ===== Starting checkroot.sh ===== grep /proc/mtd No such file or directory grep /proc/mtd No such file or directory grep /proc/mtd No such file or directory chown unknown group name rpcuser grep /proc/buffalo/firmware No such file or directory rm /var/lock/perfmon is a directory rm /var/lock/printing is a directory rm /var/lock/subsys is a directory [Success] ===== Starting MountSystemFolders ===== [Success] Setting up swapspace version 1, size = 139825152 bytes Adding 136544k swap on /dev/sda3. Priority -1 extents 1 ===== Starting Kevent.sh ===== [Success] ===== Starting mount_share.sh ===== Mounting /dev/sda4 on /home as a xfs file system. XFS mounting filesystem sda4 Starting XFS recovery on filesystem sda4 (dev sda4) Ending XFS recovery on filesystem sda4 (dev sda4) Success. Mounting /dev/mtd3 on /mnt/mtd as a jffs2 file system. mount mount point /mnt/mtd does not exist Failed. [Failed ] ===== Starting sethostname.sh ===== hostname is setted to KUROBOX-PRO [Success] ===== 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 hostname is setted to KUROBOX-PRO [Success] ===== Starting smb.sh ===== $Starting SMB services $Starting NMB services [Success] ===== Starting FanController.sh ===== [Success] ===== Starting bootcomplete.sh ===== [Success] Starting pid 613, console /dev/ttyS0 /sbin/getty KUROUTOSHIKOU KUROBOX Series KUROBOX-PRO login
https://w.atwiki.jp/aerocats/pages/40.html
シェルスクリプトとは、コンピューターに実行させたい処理をテキスト形式に列記していったものでプログラム言語とは違う。 たとえば「test」というファイルに echo -e "KURO-BOX/PRO" date とだけ書き込んだものを実行するには sh test とすればいい。 すると画面には KURO-BOX/PRO Tue Jan 15 12 21 35 JST 2008 と表示されるだろう。 ただし「test.sh」としておく方が「これはシェルスクリプトだ」と他のプログラムと区別をするため賢明だ。 このように、シェルスクリプトの決まりごとそのものはそれほど難しいものではない。 いつも繰り返す複数のコマンド入力作業があれば、それらをひとつのテキストファイルに保存し実行すれば一度に出来る、というだけだ。 しかし、これだけではやや利便性に欠ける場合もでてくる。
https://w.atwiki.jp/aerocats/pages/55.html
/binとは /binの構成 実際に標準Linuxの/binがどのようになっているのかを見てみる。 コマンド 備考 説明 addgroup BusyBoxのシンボリックリンク adduser BusyBoxのシンボリックリンク ash BusyBoxのシンボリックリンク bash bash2 BusyBoxのシンボリックリンク bbconfig BusyBoxのシンボリックリンク busybox cat BusyBoxのシンボリックリンク chattr BusyBoxのシンボリックリンク chgrp BusyBoxのシンボリックリンク chmod BusyBoxのシンボリックリンク chown BusyBoxのシンボリックリンク cp BusyBoxのシンボリックリンク cpio BusyBoxのシンボリックリンク date BusyBoxのシンボリックリンク dd BusyBoxのシンボリックリンク delgroup BusyBoxのシンボリックリンク deluser BusyBoxのシンボリックリンク df BusyBoxのシンボリックリンク dmesg BusyBoxのシンボリックリンク dumpkmap BusyBoxのシンボリックリンク echo BusyBoxのシンボリックリンク egrep BusyBoxのシンボリックリンク false BusyBoxのシンボリックリンク fdflush BusyBoxのシンボリックリンク fgrep BusyBoxのシンボリックリンク getopt BusyBoxのシンボリックリンク grep BusyBoxのシンボリックリンク gunzip BusyBoxのシンボリックリンク gzip BusyBoxのシンボリックリンク hostname BusyBoxのシンボリックリンク ip BusyBoxのシンボリックリンク ipaddr BusyBoxのシンボリックリンク ipcalc BusyBoxのシンボリックリンク iplink BusyBoxのシンボリックリンク iproute BusyBoxのシンボリックリンク iptunnel BusyBoxのシンボリックリンク kill BusyBoxのシンボリックリンク linux32 BusyBoxのシンボリックリンク linux64 BusyBoxのシンボリックリンク ln BusyBoxのシンボリックリンク login BusyBoxのシンボリックリンク ls BusyBoxのシンボリックリンク lsattr BusyBoxのシンボリックリンク mkdir BusyBoxのシンボリックリンク mknod BusyBoxのシンボリックリンク mktemp BusyBoxのシンボリックリンク more BusyBoxのシンボリックリンク mount BusyBoxのシンボリックリンク mountpoint BusyBoxのシンボリックリンク mt BusyBoxのシンボリックリンク mv BusyBoxのシンボリックリンク netstat BusyBoxのシンボリックリンク nice BusyBoxのシンボリックリンク pidof BusyBoxのシンボリックリンク ping BusyBoxのシンボリックリンク pipe_progress BusyBoxのシンボリックリンク printenv BusyBoxのシンボリックリンク ps BusyBoxのシンボリックリンク pwd BusyBoxのシンボリックリンク rm BusyBoxのシンボリックリンク rmdir BusyBoxのシンボリックリンク rpm BusyBoxのシンボリックリンク run-parts BusyBoxのシンボリックリンク sed BusyBoxのシンボリックリンク setarch BusyBoxのシンボリックリンク sh BusyBoxのシンボリックリンク sleep BusyBoxのシンボリックリンク stat BusyBoxのシンボリックリンク stty BusyBoxのシンボリックリンク su BusyBoxのシンボリックリンク sync BusyBoxのシンボリックリンク tar BusyBoxのシンボリックリンク touch BusyBoxのシンボリックリンク true BusyBoxのシンボリックリンク umount BusyBoxのシンボリックリンク uname BusyBoxのシンボリックリンク uncompress BusyBoxのシンボリックリンク unzip usleep BusyBoxのシンボリックリンク vi BusyBoxのシンボリックリンク watch BusyBoxのシンボリックリンク zcat BusyBoxのシンボリックリンク
https://w.atwiki.jp/aerocats/pages/62.html
/sbinとは /sbinの構成 実際に標準Linuxの/sbinがどのようになっているのかを見てみる。 コマンド 備考 説明 adjtimex BusyBoxのシンボリックリンク depmod dhcpcd e2fsck fsck.ext2のシンボリックリンク fdisk BusyBoxのシンボリックリンク freeramdisk BusyBoxのシンボリックリンク fsck BusyBoxのシンボリックリンク fsck.ext2 fsck.ext3 fsck.ext2のシンボリックリンク fsck.minix BusyBoxのシンボリックリンク getty BusyBoxのシンボリックリンク halt BusyBoxのシンボリックリンク hdparm BusyBoxのシンボリックリンク hwclock BusyBoxのシンボリックリンク ifconfig BusyBoxのシンボリックリンク ifdown BusyBoxのシンボリックリンク ifup BusyBoxのシンボリックリンク init BusyBoxのシンボリックリンク insmod BusyBoxのシンボリックリンク klogd BusyBoxのシンボリックリンク ldconfig loadkmap BusyBoxのシンボリックリンク logread BusyBoxのシンボリックリンク losetup BusyBoxのシンボリックリンク lsmod BusyBoxのシンボリックリンク makedevs BusyBoxのシンボリックリンク mdev BusyBoxのシンボリックリンク mke2fs mkfs.ext2のシンボリックリンク mkfs.ext2 mkfs.ext3 mkfs.ext2のシンボリックリンク mkfs.minix BusyBoxのシンボリックリンク mkswap BusyBoxのシンボリックリンク modinfo modprobe BusyBoxのシンボリックリンク nameif BusyBoxのシンボリックリンク pivot_root BusyBoxのシンボリックリンク poweroff BusyBoxのシンボリックリンク reboot BusyBoxのシンボリックリンク rmmod BusyBoxのシンボリックリンク route BusyBoxのシンボリックリンク runlevel BusyBoxのシンボリックリンク setconsole BusyBoxのシンボリックリンク shutdown start-stop-daemon BusyBoxのシンボリックリンク sulogin BusyBoxのシンボリックリンク swapoff BusyBoxのシンボリックリンク swapon BusyBoxのシンボリックリンク switch_root BusyBoxのシンボリックリンク sysctl BusyBoxのシンボリックリンク syslogd BusyBoxのシンボリックリンク tune2fs vconfig BusyBoxのシンボリックリンク watchdog BusyBoxのシンボリックリンク zcip BusyBoxのシンボリックリンク
https://w.atwiki.jp/aerocats/pages/61.html
/devとは /devの構成 実際に標準Linuxではどのような構成となっているか。 モード 所有者 グループ メジャー番号 マイナー番号 サイズ ファイル名 リンク先 crw-r--r-- root root 5 1 console crw-r--r-- root root 205 16 cuaam0 crw-r--r-- root root 205 17 cuaam1 lrwxrwxrwx root root 3 disk1 sda lrwxrwxrwx root root 4 disk1_1 sda1 lrwxrwxrwx root root 4 disk1_2 sda2 lrwxrwxrwx root root 4 disk1_3 sda3 lrwxrwxrwx root root 4 disk1_4 sda4 lrwxrwxrwx root root 4 disk1_5 sda5 lrwxrwxrwx root root 4 disk1_6 sda6 lrwxrwxrwx root root 4 disk1_7 sda7 lrwxrwxrwx root root 4 disk1_8 sda8 lrwxrwxrwx root root 4 disk1_9 sda9 lrwxrwxrwx root root 13 fd /proc/self/fd prw-r--r-- root root 0 initctl brw-r--r-- root root 1 250 initrd brw-r--r-- root root 9 0 md0 brw-r--r-- root root 9 1 md1 brw-r--r-- root root 9 2 md2 brw-r--r-- root root 9 3 md3 brw-r--r-- root root 9 4 md4 brw-r--r-- root root 9 5 md5 brw-r--r-- root root 9 6 md6 brw-r--r-- root root 9 7 md7 crw-r--r-- root root 1 1 mem brw-r--r-- root root 28 0 mmc brw-r--r-- root root 31 0 mtd0 brw-r--r-- root root 31 1 mtd1 brw-r--r-- root root 31 2 mtd2 brw-r--r-- root root 31 3 mtd3 brw-r--r-- root root 31 4 mtd4 brw-r--r-- root root 31 5 mtd5 brw-r--r-- root root 31 6 mtd6 brw-r--r-- root root 31 7 mtd7 brw-r--r-- root root 31 0 mtdblock0 brw-r--r-- root root 31 1 mtdblock1 brw-r--r-- root root 31 2 mtdblock2 brw-r--r-- root root 31 3 mtdblock3 brw-r--r-- root root 31 4 mtdblock4 brw-r--r-- root root 31 5 mtdblock5 brw-r--r-- root root 31 6 mtdblock6 brw-r--r-- root root 31 7 mtdblock7 crw-r--r-- root root 90 0 mtdchar0 crw-r--r-- root root 90 2 mtdchar1 crw-r--r-- root root 90 4 mtdchar2 crw-r--r-- root root 90 6 mtdchar3 crw-r--r-- root root 90 8 mtdchar4 crw-r--r-- root root 90 10 mtdchar5 crw-r--r-- root root 90 12 mtdchar6 crw-r--r-- root root 90 14 mtdchar7 crw-r--r-- root root 1 3 null crw-r--r-- root root 5 2 ptmx drwxr-xr-x root root 0 pts crw-r--r-- root root 2 0 ptyp0 crw-r--r-- root root 2 1 ptyp1 crw-r--r-- root root 2 2 ptyp2 crw-r--r-- root root 2 3 ptyp3 brw-r--r-- root root 1 0 ram0 brw-r--r-- root root 0 1 ram1 brw-r--r-- root root 0 2 ram2 lrwxrwxrwx root root 4 ramdisk ram0 crwxrwxrwx root root 1 8 random crwxrwxrwx root root 10 135 rtc brwxrwxrwx root root 8 0 sda brwxrwxrwx root root 8 1 sda1 brwxrwxrwx root root 8 2 sda2 brwxrwxrwx root root 8 3 sda3 brwxrwxrwx root root 8 4 sda4 brwxrwxrwx root root 8 5 sda5 brwxrwxrwx root root 8 6 sda6 brwxrwxrwx root root 8 7 sda7 brwxrwxrwx root root 8 8 sda8 brwxrwxrwx root root 8 9 sda9 brw-r--r-- root root 8 16 sdb brw-r--r-- root root 8 17 sdb1 brw-r--r-- root root 8 18 sdb2 brw-r--r-- root root 8 19 sdb3 brw-r--r-- root root 8 20 sdb4 brw-r--r-- root root 8 21 sdb5 brw-r--r-- root root 8 22 sdb6 brw-r--r-- root root 8 23 sdb7 brw-r--r-- root root 8 32 sdc brw-r--r-- root root 8 33 sdc1 brw-r--r-- root root 8 34 sdc2 brw-r--r-- root root 8 35 sdc3 brw-r--r-- root root 8 36 sdc4 brw-r--r-- root root 8 37 sdc5 brw-r--r-- root root 8 38 sdc6 brw-r--r-- root root 8 39 sdc7 brw-r--r-- root root 8 48 sdd brw-r--r-- root root 8 49 sdd1 brw-r--r-- root root 8 50 sdd2 brw-r--r-- root root 8 51 sdd3 brw-r--r-- root root 8 52 sdd4 brw-r--r-- root root 8 53 sdd5 brw-r--r-- root root 8 54 sdd6 brw-r--r-- root root 8 55 sdd7 lrwxrwxrwx root root 4 stderr fd/2 lrwxrwxrwx root root 4 stdin fd/0 lrwxrwxrwx root root 4 stdout fd/1 crw-r--r-- root root 5 0 tty crw-r--r-- root root 4 0 tty0 crw------- root root 4 1 tty1 crw------- root root 4 2 tty2 crw-r--r-- root root 4 3 tty3 crw--w--w- root root 4 64 ttyS0 crw-r--r-- root root 4 65 ttyS1 crw-rw-rw- root tty 3 0 ttyp0 crw-rw-rw- root tty 3 1 ttyp1 crw-rw-rw- root tty 3 2 ttyp2 crw-rw-rw- root tty 3 3 ttyp3 crw-r--r-- root root 1 5 zero