Nov 21, 2003


             onlsbc1, コンパクトフラッシュ上のLinuxシステム構築(その2)
          			---  インストール #15
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               (http://www-online.kek.jp/~inoue/para-CAMAC/
                                   Work/SBC-Linux20.html)



                        高エネルギー加速器研究機構
                            素粒子原子核研究所
                         物理、オンライングループ
                                井上 栄二

        目的

	    Debian GNU/Linux 3.0 でUSBディスクが利用できるようにする。


        (1). USBハードディスクを認識できるようにするには
        (2). 必要なプログラムを組み込む

  --------------------------------------------------------------------


 (1).  USBハードディスクを認識できるようにするには

	Linux kernel 2.4 では hotplug がサポートされている。 USB もその対象に
	なっているので、USB 機器を使うには、hotplug エージェントをインストールす
	ればよい。

	カーネルコンパイルのオプションをチェックして、USB 関係のモジュール組み込
	まれていることを調べる。 組み込まれていない場合にはカーネルの再構築が
	必要になる。

inoue@onlsbc1:/mnt/usr/src/linux$ cat /boot/config-2.4.18-bf2.4
CONFIG_X86=y
CONFIG_ISA=y
CONFIG_UID16=y
CONFIG_EXPERIMENTAL=y
CONFIG_MODULES=y
CONFIG_KMOD=y
CONFIG_M386=y
CONFIG_X86_L1_CACHE_SHIFT=4
CONFIG_RWSEM_GENERIC_SPINLOCK=y
CONFIG_X86_PPRO_FENCE=y
CONFIG_TOSHIBA=m
CONFIG_I8K=m
CONFIG_MICROCODE=m
CONFIG_X86_MSR=m
CONFIG_X86_CPUID=m
CONFIG_NOHIGHMEM=y
CONFIG_MATH_EMULATION=y
CONFIG_MTRR=y
CONFIG_X86_UP_APIC=y
CONFIG_X86_UP_IOAPIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
CONFIG_NET=y
CONFIG_PCI=y
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_NAMES=y
CONFIG_HOTPLUG=y
CONFIG_SYSVIPC=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_SYSCTL=y
CONFIG_KCORE_ELF=y
CONFIG_BINFMT_AOUT=m
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=m
CONFIG_PM=y
CONFIG_APM=m
CONFIG_APM_CPU_IDLE=y
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_PC_CML1=m
CONFIG_PARPORT_PC_FIFO=y
CONFIG_PARPORT_PC_SUPERIO=y
CONFIG_PARPORT_1284=y
CONFIG_PNP=m
CONFIG_ISAPNP=m
CONFIG_BLK_DEV_FD=y
CONFIG_PARIDE=m
CONFIG_PARIDE_PARPORT=m
CONFIG_PARIDE_PD=m
CONFIG_PARIDE_PCD=m
CONFIG_PARIDE_PF=m
CONFIG_PARIDE_PT=m
CONFIG_PARIDE_PG=m
CONFIG_PARIDE_ATEN=m
CONFIG_PARIDE_BPCK=m
CONFIG_PARIDE_COMM=m
CONFIG_PARIDE_DSTR=m
CONFIG_PARIDE_FIT2=m
CONFIG_PARIDE_FIT3=m
CONFIG_PARIDE_EPAT=m
CONFIG_PARIDE_EPIA=m
CONFIG_PARIDE_FRIQ=m
CONFIG_PARIDE_FRPW=m
CONFIG_PARIDE_KBIC=m
CONFIG_PARIDE_KTTI=m
CONFIG_PARIDE_ON20=m
CONFIG_PARIDE_ON26=m
CONFIG_BLK_CPQ_DA=y
CONFIG_BLK_CPQ_CISS_DA=y
CONFIG_BLK_DEV_DAC960=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_NBD=m
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_INITRD=y
CONFIG_MD=y
CONFIG_BLK_DEV_MD=m
CONFIG_MD_LINEAR=m
CONFIG_MD_RAID0=m
CONFIG_MD_RAID1=m
CONFIG_MD_RAID5=m
CONFIG_MD_MULTIPATH=m
CONFIG_BLK_DEV_LVM=m
CONFIG_PACKET=y
CONFIG_NETLINK_DEV=m
CONFIG_NETFILTER=y
CONFIG_FILTER=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_NET_IPIP=m
CONFIG_NET_IPGRE=m
CONFIG_INET_ECN=y
CONFIG_INET_ECN_DISABLED=y
CONFIG_SYN_COOKIES=y
CONFIG_IP_NF_CONNTRACK=m
CONFIG_IP_NF_FTP=m
CONFIG_IP_NF_IRC=m
CONFIG_IP_NF_QUEUE=m
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP_NF_MATCH_LIMIT=m
CONFIG_IP_NF_MATCH_MAC=m
CONFIG_IP_NF_MATCH_MARK=m
CONFIG_IP_NF_MATCH_MULTIPORT=m
CONFIG_IP_NF_MATCH_TOS=m
CONFIG_IP_NF_MATCH_LENGTH=m
CONFIG_IP_NF_MATCH_TTL=m
CONFIG_IP_NF_MATCH_TCPMSS=m
CONFIG_IP_NF_MATCH_STATE=m
CONFIG_IP_NF_MATCH_UNCLEAN=m
CONFIG_IP_NF_MATCH_OWNER=m
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=m
CONFIG_IP_NF_TARGET_MIRROR=m
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_NAT_NEEDED=y
CONFIG_IP_NF_TARGET_MASQUERADE=m
CONFIG_IP_NF_TARGET_REDIRECT=m
CONFIG_IP_NF_NAT_SNMP_BASIC=m
CONFIG_IP_NF_NAT_IRC=m
CONFIG_IP_NF_NAT_FTP=m
CONFIG_IP_NF_MANGLE=m
CONFIG_IP_NF_TARGET_TOS=m
CONFIG_IP_NF_TARGET_MARK=m
CONFIG_IP_NF_TARGET_LOG=m
CONFIG_IP_NF_TARGET_TCPMSS=m
CONFIG_IP_NF_COMPAT_IPCHAINS=m
CONFIG_IP_NF_NAT_NEEDED=y
CONFIG_IP_NF_COMPAT_IPFWADM=m
CONFIG_IP_NF_NAT_NEEDED=y
CONFIG_IPX=m
CONFIG_ATALK=m
CONFIG_ECONET=m
CONFIG_WAN_ROUTER=m
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDETAPE=m
CONFIG_BLK_DEV_IDEFLOPPY=y
CONFIG_BLK_DEV_IDESCSI=m
CONFIG_BLK_DEV_CMD640=y
CONFIG_BLK_DEV_RZ1000=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_BLK_DEV_AEC62XX=y
CONFIG_BLK_DEV_ALI15X3=y
CONFIG_BLK_DEV_AMD74XX=y
CONFIG_BLK_DEV_CMD64X=y
CONFIG_BLK_DEV_CS5530=y
CONFIG_BLK_DEV_HPT34X=y
CONFIG_BLK_DEV_HPT366=y
CONFIG_BLK_DEV_PIIX=y
CONFIG_BLK_DEV_PDC202XX=y
CONFIG_PDC202XX_BURST=y
CONFIG_BLK_DEV_SVWKS=y
CONFIG_BLK_DEV_SIS5513=y
CONFIG_BLK_DEV_SLC90E66=y
CONFIG_BLK_DEV_VIA82CXXX=y
CONFIG_IDE_CHIPSETS=y
CONFIG_BLK_DEV_4DRIVES=y
CONFIG_BLK_DEV_ALI14XX=y
CONFIG_BLK_DEV_DTC2278=y
CONFIG_BLK_DEV_HT6560B=y
CONFIG_BLK_DEV_PDC4030=y
CONFIG_BLK_DEV_QD65XX=y
CONFIG_BLK_DEV_UMC8672=y
CONFIG_BLK_DEV_IDE_MODES=y
CONFIG_BLK_DEV_ATARAID=y
CONFIG_BLK_DEV_ATARAID_PDC=y
CONFIG_BLK_DEV_ATARAID_HPT=y
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_SD_EXTRA_DEVS=40
CONFIG_CHR_DEV_ST=m
CONFIG_CHR_DEV_OSST=m
CONFIG_BLK_DEV_SR=y
CONFIG_SR_EXTRA_DEVS=2
CONFIG_CHR_DEV_SG=m
CONFIG_SCSI_DEBUG_QUEUES=y
CONFIG_SCSI_MULTI_LUN=y
CONFIG_BLK_DEV_3W_XXXX_RAID=y
CONFIG_SCSI_7000FASST=m
CONFIG_SCSI_ACARD=m
CONFIG_SCSI_AHA152X=m
CONFIG_SCSI_AHA1542=m
CONFIG_SCSI_AHA1740=m
CONFIG_SCSI_AACRAID=y
CONFIG_SCSI_AIC7XXX=y
CONFIG_AIC7XXX_CMDS_PER_DEVICE=8
CONFIG_AIC7XXX_RESET_DELAY_MS=15000
CONFIG_SCSI_ADVANSYS=m
CONFIG_SCSI_IN2000=m
CONFIG_SCSI_AM53C974=m
CONFIG_SCSI_MEGARAID=m
CONFIG_SCSI_BUSLOGIC=y
CONFIG_SCSI_CPQFCTS=m
CONFIG_SCSI_DTC3280=m
CONFIG_SCSI_EATA=m
CONFIG_SCSI_EATA_MAX_TAGS=16
CONFIG_SCSI_EATA_DMA=m
CONFIG_SCSI_EATA_PIO=m
CONFIG_SCSI_FUTURE_DOMAIN=m
CONFIG_SCSI_GDTH=m
CONFIG_SCSI_GENERIC_NCR5380=m
CONFIG_SCSI_G_NCR5380_PORT=y
CONFIG_SCSI_INITIO=m
CONFIG_SCSI_INIA100=m
CONFIG_SCSI_PPA=m
CONFIG_SCSI_IMM=m
CONFIG_SCSI_SYM53C8XX_2=m
CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1
CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16
CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64
CONFIG_SCSI_SYM53C8XX=y
CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=8
CONFIG_SCSI_NCR53C8XX_MAX_TAGS=4
CONFIG_SCSI_NCR53C8XX_SYNC=5
CONFIG_SCSI_NCR53C8XX_PQS_PDS=y
CONFIG_SCSI_PCI2000=y
CONFIG_SCSI_PCI2220I=y
CONFIG_SCSI_PSI240I=m
CONFIG_SCSI_QLOGIC_FAS=m
CONFIG_SCSI_QLOGIC_ISP=m
CONFIG_SCSI_QLOGIC_FC=m
CONFIG_SCSI_SEAGATE=m
CONFIG_SCSI_SIM710=m
CONFIG_SCSI_SYM53C416=m
CONFIG_SCSI_DC390T=y
CONFIG_SCSI_T128=m
CONFIG_SCSI_U14_34F=m
CONFIG_SCSI_U14_34F_MAX_TAGS=8
CONFIG_SCSI_ULTRASTOR=m
CONFIG_FUSION=m
CONFIG_FUSION_ISENSE=m
CONFIG_FUSION_CTL=m
CONFIG_FUSION_LAN=m
CONFIG_NET_FC=y
CONFIG_IEEE1394=m
CONFIG_IEEE1394_PCILYNX=m
CONFIG_IEEE1394_PCILYNX_LOCALRAM=y
CONFIG_IEEE1394_PCILYNX_PORTS=y
CONFIG_IEEE1394_OHCI1394=m
CONFIG_IEEE1394_VIDEO1394=m
CONFIG_IEEE1394_SBP2=m
CONFIG_IEEE1394_RAWIO=m
CONFIG_I2O=y
CONFIG_I2O_PCI=m
CONFIG_I2O_BLOCK=m
CONFIG_I2O_LAN=m
CONFIG_I2O_SCSI=y
CONFIG_I2O_PROC=m
CONFIG_NETDEVICES=y
CONFIG_ARCNET=m
CONFIG_ARCNET_1051=m
CONFIG_ARCNET_COM90xx=m
CONFIG_ARCNET_COM90xxIO=m
CONFIG_ARCNET_RIM_I=m
CONFIG_ARCNET_COM20020=m
CONFIG_ARCNET_COM20020_PCI=m
CONFIG_APPLETALK=y
CONFIG_LTPC=m
CONFIG_COPS=m
CONFIG_COPS_DAYNA=y
CONFIG_COPS_TANGENT=y
CONFIG_IPDDP=m
CONFIG_IPDDP_ENCAP=y
CONFIG_DUMMY=m
CONFIG_BONDING=m
CONFIG_EQUALIZER=m
CONFIG_TUN=m
CONFIG_NET_SB1000=m
CONFIG_NET_ETHERNET=y
CONFIG_HAPPYMEAL=m
CONFIG_SUNGEM=m
CONFIG_NET_VENDOR_3COM=y
CONFIG_EL1=m
CONFIG_EL2=m
CONFIG_ELPLUS=m
CONFIG_EL16=m
CONFIG_EL3=m
CONFIG_3C515=m
CONFIG_VORTEX=m
CONFIG_LANCE=m
CONFIG_NET_VENDOR_SMC=y
CONFIG_WD80x3=m
CONFIG_ULTRA=m
CONFIG_SMC9194=m
CONFIG_NET_VENDOR_RACAL=y
CONFIG_NI5010=m
CONFIG_NI52=m
CONFIG_NI65=m
CONFIG_AT1700=m
CONFIG_DEPCA=m
CONFIG_HP100=m
CONFIG_NET_ISA=y
CONFIG_E2100=m
CONFIG_EWRK3=m
CONFIG_EEXPRESS=m
CONFIG_EEXPRESS_PRO=m
CONFIG_HPLAN_PLUS=m
CONFIG_HPLAN=m
CONFIG_LP486E=m
CONFIG_ETH16I=m
CONFIG_NE2000=m
CONFIG_NET_PCI=y
CONFIG_PCNET32=y
CONFIG_ADAPTEC_STARFIRE=m
CONFIG_AC3200=m
CONFIG_APRICOT=m
CONFIG_CS89x0=m
CONFIG_TULIP=m
CONFIG_DE4X5=m
CONFIG_DGRS=m
CONFIG_DM9102=m
CONFIG_EEPRO100=m
CONFIG_FEALNX=y
CONFIG_NATSEMI=m
CONFIG_NE2K_PCI=y
CONFIG_8139CP=y
CONFIG_8139TOO=y
CONFIG_8139TOO_8129=y
CONFIG_SIS900=y
CONFIG_EPIC100=m
CONFIG_SUNDANCE=m
CONFIG_TLAN=m
CONFIG_VIA_RHINE=m
CONFIG_WINBOND_840=y
CONFIG_NET_POCKET=y
CONFIG_ATP=m
CONFIG_DE600=m
CONFIG_DE620=m
CONFIG_ACENIC=m
CONFIG_DL2K=m
CONFIG_NS83820=m
CONFIG_HAMACHI=m
CONFIG_YELLOWFIN=m
CONFIG_SK98LIN=m
CONFIG_FDDI=y
CONFIG_DEFXX=y
CONFIG_SKFP=m
CONFIG_HIPPI=y
CONFIG_ROADRUNNER=m
CONFIG_PLIP=m
CONFIG_PPP=m
CONFIG_PPP_MULTILINK=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_ASYNC=m
CONFIG_PPP_SYNC_TTY=m
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_BSDCOMP=m
CONFIG_NET_RADIO=y
CONFIG_STRIP=m
CONFIG_WAVELAN=m
CONFIG_ARLAN=m
CONFIG_AIRONET4500=m
CONFIG_AIRONET4500_NONCS=m
CONFIG_AIRONET4500_PNP=y
CONFIG_AIRONET4500_PCI=y
CONFIG_AIRONET4500_ISA=y
CONFIG_AIRONET4500_I365=y
CONFIG_AIRONET4500_PROC=m
CONFIG_AIRO=m
CONFIG_HERMES=m
CONFIG_PLX_HERMES=m
CONFIG_NET_WIRELESS=y
CONFIG_TR=y
CONFIG_IBMTR=m
CONFIG_IBMOL=m
CONFIG_IBMLS=m
CONFIG_TMS380TR=m
CONFIG_TMSPCI=m
CONFIG_TMSISA=m
CONFIG_ABYSS=m
CONFIG_NET_FC=y
CONFIG_IPHASE5526=m
CONFIG_WAN=y
CONFIG_HOSTESS_SV11=m
CONFIG_COSA=m
CONFIG_COMX=m
CONFIG_COMX_HW_COMX=m
CONFIG_COMX_HW_LOCOMX=m
CONFIG_COMX_HW_MIXCOM=m
CONFIG_COMX_PROTO_PPP=m
CONFIG_COMX_PROTO_FR=m
CONFIG_DSCC4=m
CONFIG_FARSYNC=m
CONFIG_LANMEDIA=m
CONFIG_SEALEVEL_4021=m
CONFIG_SYNCLINK_SYNCPPP=m
CONFIG_HDLC=y
CONFIG_HDLC_PPP=y
CONFIG_N2=m
CONFIG_C101=m
CONFIG_DLCI=m
CONFIG_DLCI_COUNT=24
CONFIG_DLCI_MAX=8
CONFIG_SDLA=m
CONFIG_WAN_ROUTER_DRIVERS=y
CONFIG_VENDOR_SANGOMA=m
CONFIG_WANPIPE_CHDLC=y
CONFIG_WANPIPE_FR=y
CONFIG_WANPIPE_X25=y
CONFIG_WANPIPE_PPP=y
CONFIG_WANPIPE_MULTPPP=y
CONFIG_CYCLADES_SYNC=m
CONFIG_CYCLOMX_X25=y
CONFIG_SBNI=m
CONFIG_IRDA=m
CONFIG_IRLAN=m
CONFIG_IRCOMM=m
CONFIG_IRDA_ULTRA=y
CONFIG_IRDA_CACHE_LAST_LSAP=y
CONFIG_IRDA_FAST_RR=y
CONFIG_IRDA_DEBUG=y
CONFIG_IRTTY_SIR=m
CONFIG_IRPORT_SIR=m
CONFIG_DONGLE=y
CONFIG_ESI_DONGLE=m
CONFIG_ACTISYS_DONGLE=m
CONFIG_TEKRAM_DONGLE=m
CONFIG_GIRBIL_DONGLE=m
CONFIG_LITELINK_DONGLE=m
CONFIG_OLD_BELKIN_DONGLE=m
CONFIG_NSC_FIR=m
CONFIG_WINBOND_FIR=m
CONFIG_TOSHIBA_FIR=m
CONFIG_SMC_IRCC_FIR=m
CONFIG_ALI_FIR=m
CONFIG_VLSI_FIR=m
CONFIG_ISDN=m
CONFIG_ISDN_PPP=y
CONFIG_ISDN_PPP_VJ=y
CONFIG_ISDN_MPP=y
CONFIG_ISDN_PPP_BSDCOMP=m
CONFIG_ISDN_AUDIO=y
CONFIG_ISDN_TTY_FAX=y
CONFIG_ISDN_DRV_LOOP=m
CONFIG_ISDN_DIVERSION=m
CONFIG_ISDN_DRV_HISAX=m
CONFIG_HISAX_EURO=y
CONFIG_HISAX_MAX_CARDS=8
CONFIG_HISAX_16_0=y
CONFIG_HISAX_16_3=y
CONFIG_HISAX_TELESPCI=y
CONFIG_HISAX_S0BOX=y
CONFIG_HISAX_AVM_A1=y
CONFIG_HISAX_FRITZPCI=y
CONFIG_HISAX_ELSA=y
CONFIG_HISAX_IX1MICROR2=y
CONFIG_HISAX_DIEHLDIVA=y
CONFIG_HISAX_ASUSCOM=y
CONFIG_HISAX_TELEINT=y
CONFIG_HISAX_HFCS=y
CONFIG_HISAX_SEDLBAUER=y
CONFIG_HISAX_SPORTSTER=y
CONFIG_HISAX_MIC=y
CONFIG_HISAX_NETJET=y
CONFIG_HISAX_NETJET_U=y
CONFIG_HISAX_NICCY=y
CONFIG_HISAX_ISURF=y
CONFIG_HISAX_HSTSAPHIR=y
CONFIG_HISAX_BKM_A4T=y
CONFIG_HISAX_SCT_QUADRO=y
CONFIG_HISAX_GAZEL=y
CONFIG_HISAX_HFC_PCI=y
CONFIG_HISAX_W6692=y
CONFIG_HISAX_HFC_SX=y
CONFIG_HISAX_FRITZ_PCIPNP=m
CONFIG_ISDN_DRV_ICN=m
CONFIG_ISDN_DRV_PCBIT=m
CONFIG_ISDN_DRV_ACT2000=m
CONFIG_HYSDN=m
CONFIG_INPUT=m
CONFIG_INPUT_KEYBDEV=m
CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_JOYDEV=m
CONFIG_INPUT_EVDEV=m
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SERIAL_CONSOLE=y
CONFIG_SERIAL_NONSTANDARD=y
CONFIG_COMPUTONE=m
CONFIG_ROCKETPORT=m
CONFIG_CYCLADES=m
CONFIG_DIGIEPCA=m
CONFIG_ESPSERIAL=m
CONFIG_MOXA_INTELLIO=m
CONFIG_MOXA_SMARTIO=m
CONFIG_ISI=m
CONFIG_SYNCLINK=m
CONFIG_N_HDLC=m
CONFIG_RISCOM8=m
CONFIG_SPECIALIX=m
CONFIG_SPECIALIX_RTSCTS=y
CONFIG_SX=m
CONFIG_RIO=m
CONFIG_RIO_OLDPCI=y
CONFIG_STALDRV=y
CONFIG_STALLION=m
CONFIG_ISTALLION=m
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256
CONFIG_PRINTER=m
CONFIG_PPDEV=m
CONFIG_I2C=m
CONFIG_I2C_ALGOBIT=m
CONFIG_I2C_PHILIPSPAR=m
CONFIG_I2C_ELV=m
CONFIG_I2C_VELLEMAN=m
CONFIG_I2C_ALGOPCF=m
CONFIG_I2C_ELEKTOR=m
CONFIG_I2C_CHARDEV=m
CONFIG_I2C_PROC=m
CONFIG_BUSMOUSE=m
CONFIG_ATIXL_BUSMOUSE=m
CONFIG_MS_BUSMOUSE=m
CONFIG_MOUSE=y
CONFIG_PSMOUSE=y
CONFIG_82C710_MOUSE=m
CONFIG_PC110_PAD=m
CONFIG_INPUT_GAMEPORT=m
CONFIG_INPUT_NS558=m
CONFIG_INPUT_EMU10K1=m
CONFIG_INPUT_ANALOG=m
CONFIG_INTEL_RNG=m
CONFIG_NVRAM=m
CONFIG_RTC=y
CONFIG_SONYPI=m
CONFIG_AGP=m
CONFIG_AGP_INTEL=y
CONFIG_AGP_I810=y
CONFIG_AGP_VIA=y
CONFIG_AGP_AMD=y
CONFIG_AGP_SIS=y
CONFIG_AGP_ALI=y
CONFIG_AGP_SWORKS=y
CONFIG_DRM=y
CONFIG_DRM_NEW=y
CONFIG_DRM_TDFX=m
CONFIG_DRM_R128=m
CONFIG_DRM_RADEON=m
CONFIG_DRM_I810=m
CONFIG_DRM_MGA=m
CONFIG_MWAVE=m
CONFIG_VIDEO_DEV=m
CONFIG_VIDEO_PROC_FS=y
CONFIG_I2C_PARPORT=m
CONFIG_VIDEO_BT848=m
CONFIG_VIDEO_PMS=m
CONFIG_VIDEO_BWQCAM=m
CONFIG_VIDEO_CQCAM=m
CONFIG_VIDEO_W9966=m
CONFIG_VIDEO_CPIA=m
CONFIG_VIDEO_CPIA_PP=m
CONFIG_VIDEO_CPIA_USB=m
CONFIG_VIDEO_SAA5249=m
CONFIG_TUNER_3036=m
CONFIG_VIDEO_STRADIS=m
CONFIG_VIDEO_ZORAN=m
CONFIG_VIDEO_ZORAN_BUZ=m
CONFIG_VIDEO_ZORAN_DC10=m
CONFIG_VIDEO_ZORAN_LML33=m
CONFIG_VIDEO_ZR36120=m
CONFIG_RADIO_CADET=m
CONFIG_RADIO_AZTECH=m
CONFIG_RADIO_GEMTEK=m
CONFIG_RADIO_GEMTEK_PCI=m
CONFIG_RADIO_MAXIRADIO=m
CONFIG_RADIO_MAESTRO=m
CONFIG_RADIO_MIROPCM20=m
CONFIG_RADIO_MIROPCM20_RDS=m
CONFIG_RADIO_SF16FMI=m
CONFIG_RADIO_ZOLTRIX=m
CONFIG_QUOTA=y
CONFIG_AUTOFS_FS=m
CONFIG_AUTOFS4_FS=y
CONFIG_REISERFS_FS=y
CONFIG_AFFS_FS=m
CONFIG_HFS_FS=m
CONFIG_EXT3_FS=y
CONFIG_JBD=y
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=m
CONFIG_UMSDOS_FS=m
CONFIG_VFAT_FS=y
CONFIG_CRAMFS=y
CONFIG_TMPFS=y
CONFIG_RAMFS=m
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
CONFIG_MINIX_FS=m
CONFIG_NTFS_FS=m
CONFIG_HPFS_FS=m
CONFIG_PROC_FS=y
CONFIG_DEVPTS_FS=y
CONFIG_QNX4FS_FS=m
CONFIG_ROMFS_FS=m
CONFIG_EXT2_FS=y
CONFIG_SYSV_FS=m
CONFIG_UFS_FS=m
CONFIG_CODA_FS=m
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFSD=m
CONFIG_SUNRPC=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_SMB_FS=m
CONFIG_NCP_FS=m
CONFIG_NCPFS_NFS_NS=y
CONFIG_NCPFS_OS2_NS=y
CONFIG_NCPFS_NLS=y
CONFIG_NCPFS_EXTRAS=y
CONFIG_ZISOFS_FS=y
CONFIG_ZLIB_FS_INFLATE=y
CONFIG_MSDOS_PARTITION=y
CONFIG_SMB_NLS=y
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="cp437"
CONFIG_NLS_CODEPAGE_437=m
CONFIG_NLS_CODEPAGE_737=m
CONFIG_NLS_CODEPAGE_775=m
CONFIG_NLS_CODEPAGE_850=m
CONFIG_NLS_CODEPAGE_852=m
CONFIG_NLS_CODEPAGE_855=m
CONFIG_NLS_CODEPAGE_857=m
CONFIG_NLS_CODEPAGE_860=m
CONFIG_NLS_CODEPAGE_861=m
CONFIG_NLS_CODEPAGE_862=m
CONFIG_NLS_CODEPAGE_863=m
CONFIG_NLS_CODEPAGE_864=m
CONFIG_NLS_CODEPAGE_865=m
CONFIG_NLS_CODEPAGE_866=m
CONFIG_NLS_CODEPAGE_869=m
CONFIG_NLS_CODEPAGE_936=m
CONFIG_NLS_CODEPAGE_950=m
CONFIG_NLS_CODEPAGE_932=m
CONFIG_NLS_CODEPAGE_949=m
CONFIG_NLS_CODEPAGE_874=m
CONFIG_NLS_ISO8859_8=m
CONFIG_NLS_CODEPAGE_1250=m
CONFIG_NLS_CODEPAGE_1251=m
CONFIG_NLS_ISO8859_1=m
CONFIG_NLS_ISO8859_2=m
CONFIG_NLS_ISO8859_3=m
CONFIG_NLS_ISO8859_4=m
CONFIG_NLS_ISO8859_5=m
CONFIG_NLS_ISO8859_6=m
CONFIG_NLS_ISO8859_7=m
CONFIG_NLS_ISO8859_9=m
CONFIG_NLS_ISO8859_13=m
CONFIG_NLS_ISO8859_14=m
CONFIG_NLS_ISO8859_15=m
CONFIG_NLS_KOI8_R=m
CONFIG_NLS_KOI8_U=m
CONFIG_NLS_UTF8=m
CONFIG_VGA_CONSOLE=y
CONFIG_VIDEO_SELECT=y
CONFIG_FB=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_FB_RIVA=m
CONFIG_FB_VESA=y
CONFIG_FB_VGA16=y
CONFIG_VIDEO_SELECT=y
CONFIG_FB_ATY=m
CONFIG_FB_ATY_GX=y
CONFIG_FB_ATY_CT=y
CONFIG_FB_RADEON=m
CONFIG_FB_ATY128=m
CONFIG_FBCON_CFB8=y
CONFIG_FBCON_CFB16=y
CONFIG_FBCON_CFB24=y
CONFIG_FBCON_CFB32=y
CONFIG_FBCON_VGA_PLANES=y
CONFIG_FBCON_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
CONFIG_SOUND=m
CONFIG_SOUND_BT878=m
CONFIG_SOUND_CMPCI=m
CONFIG_SOUND_CMPCI_JOYSTICK=y
CONFIG_SOUND_CMPCI_CM8738=y
CONFIG_SOUND_CMPCI_SPDIFINVERSE=y
CONFIG_SOUND_CMPCI_SPDIFLOOP=y
CONFIG_SOUND_CMPCI_SPEAKERS=2
CONFIG_SOUND_EMU10K1=m
CONFIG_MIDI_EMU10K1=y
CONFIG_SOUND_FUSION=m
CONFIG_SOUND_CS4281=m
CONFIG_SOUND_ES1370=m
CONFIG_SOUND_ES1371=m
CONFIG_SOUND_ESSSOLO1=m
CONFIG_SOUND_MAESTRO=m
CONFIG_SOUND_MAESTRO3=m
CONFIG_SOUND_ICH=m
CONFIG_SOUND_SONICVIBES=m
CONFIG_SOUND_TRIDENT=m
CONFIG_SOUND_MSNDCLAS=m
CONFIG_MSNDCLAS_INIT_FILE="/etc/sound/msndinit.bin"
CONFIG_MSNDCLAS_PERM_FILE="/etc/sound/msndperm.bin"
CONFIG_SOUND_MSNDPIN=m
CONFIG_MSNDPIN_INIT_FILE="/etc/sound/pndspini.bin"
CONFIG_MSNDPIN_PERM_FILE="/etc/sound/pndsperm.bin"
CONFIG_SOUND_VIA82CXXX=m
CONFIG_SOUND_OSS=m
CONFIG_SOUND_AD1816=m
CONFIG_SOUND_SGALAXY=m
CONFIG_SOUND_ACI_MIXER=m
CONFIG_SOUND_CS4232=m
CONFIG_SOUND_SSCAPE=m
CONFIG_SOUND_GUS=m
CONFIG_SOUND_VMIDI=m
CONFIG_SOUND_TRIX=m
CONFIG_SOUND_MSS=m
CONFIG_SOUND_MPU401=m
CONFIG_SOUND_NM256=m
CONFIG_SOUND_MAD16=m
CONFIG_SOUND_PAS=m
CONFIG_SOUND_PSS=m
CONFIG_SOUND_SB=m
CONFIG_SOUND_AWE32_SYNTH=m
CONFIG_SOUND_WAVEFRONT=m
CONFIG_SOUND_MAUI=m
CONFIG_SOUND_YM3812=m
CONFIG_SOUND_OPL3SA1=m
CONFIG_SOUND_OPL3SA2=m
CONFIG_SOUND_YMFPCI=m
CONFIG_SOUND_UART6850=m
CONFIG_SOUND_AEDSP16=m
CONFIG_SC6600=y
CONFIG_SC6600_JOY=y
CONFIG_SC6600_CDROM=4
CONFIG_SC6600_CDROMBASE=0
CONFIG_AEDSP16_SBPRO=y
CONFIG_AEDSP16_MPU401=y
CONFIG_SOUND_TVMIXER=m
CONFIG_USB=m
CONFIG_USB_DEVICEFS=y
CONFIG_USB_BANDWIDTH=y
CONFIG_USB_UHCI=m
CONFIG_USB_OHCI=m
CONFIG_USB_AUDIO=m
CONFIG_USB_STORAGE=m
CONFIG_USB_STORAGE_DEBUG=y
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_DPCM=y
CONFIG_USB_STORAGE_HP8200e=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_ACM=m
CONFIG_USB_PRINTER=m
CONFIG_USB_HID=m
CONFIG_USB_HIDDEV=y
CONFIG_USB_KBD=m
CONFIG_USB_MOUSE=m
CONFIG_USB_WACOM=m
CONFIG_USB_DC2XX=m
CONFIG_USB_MDC800=m
CONFIG_USB_SCANNER=m
CONFIG_USB_MICROTEK=m
CONFIG_USB_IBMCAM=m
CONFIG_USB_OV511=m
CONFIG_USB_STV680=m
CONFIG_USB_DSBR=m
CONFIG_USB_DABUSB=m
CONFIG_USB_PEGASUS=m
CONFIG_USB_KAWETH=m
CONFIG_USB_CATC=m
CONFIG_USB_CDCETHER=m
CONFIG_USB_USBNET=m
CONFIG_USB_USS720=m
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_BELKIN=m
CONFIG_USB_SERIAL_WHITEHEAT=m
CONFIG_USB_SERIAL_DIGI_ACCELEPORT=m
CONFIG_USB_SERIAL_FTDI_SIO=m
CONFIG_USB_SERIAL_VISOR=m
CONFIG_USB_SERIAL_IPAQ=m
CONFIG_USB_SERIAL_IR=m
CONFIG_USB_SERIAL_EDGEPORT=m
CONFIG_USB_SERIAL_KEYSPAN=m
CONFIG_USB_SERIAL_MCT_U232=m
CONFIG_USB_SERIAL_KLSI=m
CONFIG_USB_SERIAL_PL2303=m
CONFIG_USB_SERIAL_XIRCOM=m
CONFIG_USB_SERIAL_OMNINET=m
inoue@onlsbc1:/mnt/usr/src/linux$
 

	CC/NET用の Debian GNU/Linux 3.0 で使用しているカーネルのバージョンは
	2.4.18-bf2.4 である。 このカーネルでは、USB関係もモジュールが構築されて
	いる。 従って、hotplug をインストールするだけでよさそうだ。


 (2). 必要なプログラムを組み込む

	RAM ディスクを解除してから hotplug をインストールする。

onlsbc1:/etc/init.d# pwd
/etc/init.d
onlsbc1:/etc/init.d# ls -l moun*
-rwxr-xr-x    1 root     root         1156 Nov  5 14:19 mountall.sh
-rwxr-xr-x    1 root     root          896 Nov  1  2001 mountall.sh-org
-rwxr-xr-x    1 root     root         1579 Apr  8  2002 mountnfs.sh
onlsbc1:/etc/init.d# cp mountall.sh mountall.sh-bak
onlsbc1:/etc/init.d# cp mountall.sh-org mountall.sh
onlsbc1:/etc/init.d# ls -l moun*
-rwxr-xr-x    1 root     root          896 Nov 21 13:30 mountall.sh
-rwxr-xr-x    1 root     root         1156 Nov 21 13:30 mountall.sh-bak
-rwxr-xr-x    1 root     root          896 Nov  1  2001 mountall.sh-org
-rwxr-xr-x    1 root     root         1579 Apr  8  2002 mountnfs.sh
onlsbc1:/etc/init.d#
onlsbc1:/etc/init.d# ls -l umoun*
-rwxr-xr-x    1 root     root          584 Oct 23 09:46 umountfs
-rwxr-xr-x    1 root     root          505 Nov  6  2001 umountfs-org
-rwxr-xr-x    1 root     root          436 Oct  5  2001 umountnfs.sh
onlsbc1:/etc/init.d# mv umountfs umountfs-bak
onlsbc1:/etc/init.d# cp umountfs-org umountfs
onlsbc1:/etc/init.d# ls -l umoun*
-rwxr-xr-x    1 root     root          505 Nov 21 13:31 umountfs
-rwxr-xr-x    1 root     root          584 Oct 23 09:46 umountfs-bak
-rwxr-xr-x    1 root     root          505 Nov  6  2001 umountfs-org
-rwxr-xr-x    1 root     root          436 Oct  5  2001 umountnfs.sh
onlsbc1:/etc/init.d#

onlsbc1:/etc/init.d# reboot

Broadcast message from root (pts/0) (Fri Nov 21 13:32:09 2003):

The system is going down for reboot NOW!
		:
		:
onlsun4[35]% !!
ssh toyo@onlsbc1
toyo@onlsbc1's password:
Linux onlsbc1 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i586 unknown

Most of the programs included with the Debian GNU/Linux system are
freely redistributable; the exact distribution terms for each program
are described in the individual files in /usr/share/doc/*/copyright

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Oct 23 09:36:55 2003
toyo@onlsbc1:~$

onlsbc1:/home/toyo# apt-cache search hotplug
hotplug - Linux Hotplug Scripts
hotplug-utils - Linux Hotplug utility programs
murasaki - another HotPlug Agent
pcmcia-cs - PCMCIA Card Services for Linux.
onlsbc1:/home/toyo#

onlsbc1:/home/toyo# apt-get install hotplug
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  hotplug
0 packages upgraded, 1 newly installed, 0 to remove and 0  not upgraded.
Need to get 34.4kB of archives. After unpacking 140kB will be used.
Get:1 http://ftp.jp.debian.org stable/main hotplug 0.0.20020114-7 [34.4kB]
Fetched 34.4kB in 5s (6741B/s)
Preconfiguring packages ...
2003-11-21 13:37:12 Failed to open configuration file /etc/exim/exim.conf
Selecting previously deselected package hotplug.
(Reading database ... 22709 files and directories currently installed.)
Unpacking hotplug (from .../hotplug_0.0.20020114-7_all.deb) ...
Setting up hotplug (0.0.20020114-7) ...
Starting hotplug subsystem: usb.
Updating /etc/hotplug/usb.usermap ...done.

onlsbc1:/home/toyo#

onlsbc1:/home/toyo# apt-get clean
onlsbc1:/home/toyo# df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hdc1               484602    449988      9592  98% /
onlsbc1:/home/toyo#

	コンパクトフラッシュの空きスペースが少なくなったので、消しても差し支え
	のないパッケージを削除する。

onlsbc1:/usr# pwd
/usr
onlsbc1:/usr# ls -l
total 29
drwxr-xr-x    5 root     root         1024 Oct 22 15:05 X11R6
drwxr-xr-x    2 root     root         8192 Oct 22 15:05 bin
drwxr-xr-x    2 root     root         4096 Nov 21 13:37 doc
drwxr-xr-x    2 root     root         1024 Oct 22 10:23 games
drwxr-xr-x   26 root     root         3072 Oct 22 15:05 include
drwxr-xr-x    2 root     root         1024 Oct 22 10:44 info
drwxr-xr-x    9 root     root         1024 Oct 22 14:43 j2sdk1.4.2_01
lrwxrwxrwx    1 root     root           13 Nov 19 15:40 java -> j2sdk1.4.2_01
drwxr-xr-x   28 root     root         4096 Nov 21 13:37 lib
drwxrwsr-x   11 root     staff        1024 Oct 22 11:11 local
drwxr-xr-x    2 root     root         3072 Nov 21 13:37 sbin
drwxr-xr-x   50 root     root         1024 Oct 22 14:19 share
drwxrwsr-x    4 root     dip          1024 Oct 23 08:28 src
onlsbc1:/usr#
onlsbc1:/usr# rm -rf games
onlsbc1:/usr#

onlsbc1:/usr/local# pwd
/usr/local
onlsbc1:/usr/local# ls -l
total 9
drwxrwsr-x    2 root     staff        1024 Oct 22 11:11 bin
drwxrwsr-x    2 root     staff        1024 Oct 22 18:34 games
drwxrwsr-x    2 root     staff        1024 Oct 22 18:34 include
drwxr-sr-x    2 root     staff        1024 Oct 22 11:11 info
drwxrwsr-x    3 root     staff        1024 Oct 22 10:34 lib
drwxrwsr-x    4 root     staff        1024 Oct 22 11:11 man
drwxrwsr-x    2 root     staff        1024 Oct 22 11:11 sbin
drwxrwsr-x    3 root     staff        1024 Oct 22 11:11 share
drwxrwsr-x    2 root     staff        1024 Oct 22 18:34 src
onlsbc1:/usr/local# rm -rf games
onlsbc1:/usr/local#

onlsbc1:/usr/share/doc/gnupg-doc# pwd
/usr/share/doc/gnupg-doc
onlsbc1:/usr/share/doc/gnupg-doc# du -k
37      ./mini-HOWTO/de
59      ./mini-HOWTO/es
61      ./mini-HOWTO/fr
84      ./mini-HOWTO/pt
42      ./mini-HOWTO/se
326     ./mini-HOWTO
29      ./pgp2x/html
32      ./pgp2x/es/html
57      ./pgp2x/es
109     ./pgp2x
174     ./GNU_Privacy_Handbook/html
148     ./GNU_Privacy_Handbook/es/html
248     ./GNU_Privacy_Handbook/es
539     ./GNU_Privacy_Handbook/ru/html
710     ./GNU_Privacy_Handbook/ru
1237    ./GNU_Privacy_Handbook
1698    .
onlsbc1:/usr/share/doc/gnupg-doc#

onlsbc1:/usr/share/doc# rm -rf gnupg-doc
onlsbc1:/usr/share/doc#

onlsbc1:/usr/share/doc# cd exim
onlsbc1:/usr/share/doc/exim# du -k
459     .
onlsbc1:/usr/share/doc/exim# ls -l
total 458
-rw-r--r--    1 root     root         1405 Sep  5 22:52 NewStuff.gz
-rw-r--r--    1 root     root        11241 Sep  5 22:52 OptionLists.txt.gz
-rw-r--r--    1 root     root          610 Sep  5 22:52 README.Debian.gz
-rw-r--r--    1 root     root        15242 Sep  5 22:52 README.UPDATING.gz
-rw-r--r--    1 root     root          391 Sep  5 22:52 README.Y2K.gz
-rw-r--r--    1 root     root         5208 Sep  5 22:52 README.gz
-rw-r--r--    1 root     root         5323 Sep  5 22:52 README.orig.gz
-rw-r--r--    1 root     root        13165 Sep  5 22:52 changelog.Debian.gz
-rw-r--r--    1 root     root        33325 Sep  5 22:52 changelog.gz
-rw-r--r--    1 root     root         4435 Sep  5 22:52 copyright
-rw-r--r--    1 root     root         5715 Sep  5 22:52 dbm.discuss.txt.gz
-rw-r-----    1 root     root         5569 Sep  5 22:52 example.conf.gz
-rw-r--r--    1 root     root          968 Sep  5 22:52 exim-uucp.texinfo.gz
-rw-r--r--    1 root     root        26414 Sep  5 22:52 filter.txt.gz
-rw-r--r--    1 root     root         5140 Sep  5 22:52 mails.gz
-rw-r--r--    1 root     root        15681 Sep  5 22:52 oview.txt.gz
-rw-r--r--    1 root     root        29158 Sep  5 22:52 pcre.txt.gz
-rw-r--r--    1 root     root         4005 Sep  5 22:52 pcretest.txt.gz
-rw-r--r--    1 root     root       269362 Sep  5 22:52 spec.txt.gz
onlsbc1:/usr/share/doc/exim# cd ..
onlsbc1:/usr/share/doc#

onlsbc1:/usr/share/doc# cd fdutils
onlsbc1:/usr/share/doc/fdutils# du -k
458     .
onlsbc1:/usr/share/doc/fdutils# cd ..
onlsbc1:/usr/share/doc# rm -rf fdutils
onlsbc1:/usr/share/doc#

onlsbc1:/usr/share/doc# df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hdc1               484602    448595     10985  98% /
onlsbc1:/usr/share/doc#

	RAM ディスクを設定してからシステムをリブートする。

onlsbc1:/etc/init.d# pwd
/etc/init.d
onlsbc1:/etc/init.d# ls -l moun*
-rwxr-xr-x    1 root     root          896 Nov 21 14:41 mountall.sh
-rwxr-xr-x    1 root     root         1156 Nov 21 13:30 mountall.sh-bak
-rwxr-xr-x    1 root     root          896 Nov  1  2001 mountall.sh-org
-rwxr-xr-x    1 root     root         1579 Apr  8  2002 mountnfs.sh
onlsbc1:/etc/init.d# cp mountall.sh-bak mountall.sh
onlsbc1:/etc/init.d# ls -l moun*
-rwxr-xr-x    1 root     root         1156 Nov 21 14:57 mountall.sh
-rwxr-xr-x    1 root     root         1156 Nov 21 13:30 mountall.sh-bak
-rwxr-xr-x    1 root     root          896 Nov  1  2001 mountall.sh-org
-rwxr-xr-x    1 root     root         1579 Apr  8  2002 mountnfs.sh
onlsbc1:/etc/init.d#
onlsbc1:/etc/init.d# ls -l umoun*
-rwxr-xr-x    1 root     root          505 Nov 21 14:42 umountfs
-rwxr-xr-x    1 root     root          584 Oct 23 09:46 umountfs-bak
-rwxr-xr-x    1 root     root          505 Nov  6  2001 umountfs-org
-rwxr-xr-x    1 root     root          436 Oct  5  2001 umountnfs.sh
onlsbc1:/etc/init.d# cp umountfs-bak umountfs
onlsbc1:/etc/init.d# ls -l umoun*
-rwxr-xr-x    1 root     root          584 Nov 21 14:57 umountfs
-rwxr-xr-x    1 root     root          584 Oct 23 09:46 umountfs-bak
-rwxr-xr-x    1 root     root          505 Nov  6  2001 umountfs-org
-rwxr-xr-x    1 root     root          436 Oct  5  2001 umountnfs.sh
onlsbc1:/etc/init.d#
onlsbc1:/etc/init.d# reboot

Broadcast message from root (pts/0) (Fri Nov 21 14:58:53 2003):

The system is going down for reboot NOW!
		:
		:
onlsun4[39]% !!
ssh toyo@onlsbc1
toyo@onlsbc1's password:
Linux onlsbc1 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i586 unknown

Most of the programs included with the Debian GNU/Linux system are
freely redistributable; the exact distribution terms for each program
are described in the individual files in /usr/share/doc/*/copyright

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Nov 21 14:44:20 2003 from onlsun4.kek.jp
toyo@onlsbc1:~$ df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hdc1               484602    449089     10491  98% /
toyo@onlsbc1:~$

	64MB の USBスティックメモリ、および 30GB の USBハードディスクをつないで
	みる。 これらのメディアは前もって、fdisk、mke2fs のコマンドを使って、
	パーティショニング、ファイルシステム作成がされているものを使用している。

onlsbc1:/home/toyo# fdisk -l

Disk /dev/sda: 3 heads, 42 sectors, 1015 cylinders
Units = cylinders of 126 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1      1015     63924   83  Linux

Disk /dev/sdb: 255 heads, 63 sectors, 3648 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdb1             1       638   5124703+  83  Linux
/dev/sdb2           639      1913  10241437+   f  Win95 Ext'd (LBA)
/dev/sdb3          1914      3130   9775552+  83  Linux
/dev/sdb4          3131      3648   4160835   82  Linux swap
/dev/sdb5           639      1913  10241406    b  Win95 FAT32

Disk /dev/hdc: 16 heads, 63 sectors, 993 cylinders
Units = cylinders of 1008 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1             1       993    500440+  83  Linux

Disk /dev/hda: 255 heads, 63 sectors, 4864 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1        69    554211   83  Linux
/dev/hda2            70      1000   7478257+  83  Linux
/dev/hda3          1001      1039    313267+  82  Linux swap
/dev/hda4          1040      4864  30724312+   f  Win95 Ext'd (LBA)
/dev/hda5          1040      2364  10643031   83  Linux
/dev/hda6          2365      3589   9839781   83  Linux
/dev/hda7          3590      4864  10241406   83  Linux
onlsbc1:/home/toyo#

	64MB の USBスティックメモリは、Disk /dev/sda として認識されており、
	30GB の USBハードディスクは、Disk /dev/sdb として認識されている。
	マウントして利用することができるか試してみる。

	<<< 64MB の USBスティックメモリの使用 >>>

onlsbc1:/home/toyo# mount -t ext3 /dev/sda1 /mnt
onlsbc1:/home/toyo# df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hdc1               484602    449089     10491  98% /
/dev/sda1                61897      4127     54574   8% /mnt
onlsbc1:/home/toyo#
onlsbc1:/home/toyo# ls -l /mnt
total 12
drwx------    2 root     root        12288 Nov 12 10:05 lost+found
onlsbc1:/home/toyo# vi /mnt/testfile
testing
~
~
/mnt/testfile: new file: 1 lines, 8 characters
onlsbc1:/home/toyo#
onlsbc1:/home/toyo# ls -l /mnt
total 13
drwx------    2 root     root        12288 Nov 12 10:05 lost+found
-rw-r--r--    1 root     root            8 Nov 21 15:18 testfile
onlsbc1:/home/toyo# cat /mnt/testfile
testing
onlsbc1:/home/toyo# rm -rf /mnt/testfile
onlsbc1:/home/toyo# ls -l /mnt
total 12
drwx------    2 root     root        12288 Nov 12 10:05 lost+found
onlsbc1:/home/toyo#
onlsbc1:/home/toyo# umount /mnt
onlsbc1:/home/toyo#

	ok.  64MB の USBスティックメモリへの読み書きは正常に実行できた。

	<<< 30GB の USBハードディスクの使用 >>>

onlsbc1:/home/toyo# mount -t ext3 /dev/sdb1 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       or too many mounted file systems
onlsbc1:/home/toyo# 
mount /dev/sdb1 /mnt
onlsbc1:/home/toyo# df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hdc1               484602    449089     10491  98% /
/dev/sdb1              5044156   4468532    319392  94% /mnt
onlsbc1:/home/toyo# ls -l /mnt
total 140464
-rwx--x--x    1 root     root         1488 Jun  3 09:02 1simple.custom.knx-cdcus
t.sh
-rwx--x--x    1 root     root         1378 Jun  3 09:02 3mini.custom.knx-cdcust.
sh
-rwx--x--x    1 root     root          877 Jun  3 09:01 4opera.custom.knx-cdcust
.sh
-rwx--x--x    1 root     root          228 Jun  3 09:01 auto.knx-cdcust.sh
-rw-r--r--    1 toyo     toyo     143602724 Oct 17 09:48 compact-debian-oct16200
3.tar.gz
-rwx--x--x    1 root     root        23550 Jun  3 09:01 custom.knx-cdcust.sh
drwxr-xr-x    4 root     root         4096 Jun  3 08:37 knx-cdcust
-rwxr--r--    1 root     root        18496 Jun  2 17:25 knx-cdcust.sh
drwx------    2 root     root        16384 Jun  2 17:22 lost+found
onlsbc1:/home/toyo#
onlsbc1:/home/toyo# vi /mnt/testfile
testing2
~
~
/mnt/testfile: new file: 1 lines, 9 characters
onlsbc1:/home/toyo#
onlsbc1:/home/toyo# ls -l /mnt
total 140468
-rwx--x--x    1 root     root         1488 Jun  3 09:02 1simple.custom.knx-cdcus
t.sh
-rwx--x--x    1 root     root         1378 Jun  3 09:02 3mini.custom.knx-cdcust.
sh
-rwx--x--x    1 root     root          877 Jun  3 09:01 4opera.custom.knx-cdcust
.sh
-rwx--x--x    1 root     root          228 Jun  3 09:01 auto.knx-cdcust.sh
-rw-r--r--    1 toyo     toyo     143602724 Oct 17 09:48 compact-debian-oct16200
3.tar.gz
-rwx--x--x    1 root     root        23550 Jun  3 09:01 custom.knx-cdcust.sh
drwxr-xr-x    4 root     root         4096 Jun  3 08:37 knx-cdcust
-rwxr--r--    1 root     root        18496 Jun  2 17:25 knx-cdcust.sh
drwx------    2 root     root        16384 Jun  2 17:22 lost+found
-rw-r--r--    1 root     root            9 Nov 21 15:25 testfile
onlsbc1:/home/toyo# cat /mnt/testfile
testing2
onlsbc1:/home/toyo# rm /mnt/testfile
onlsbc1:/home/toyo# ls -l /mnt
total 140464
-rwx--x--x    1 root     root         1488 Jun  3 09:02 1simple.custom.knx-cdcus
t.sh
-rwx--x--x    1 root     root         1378 Jun  3 09:02 3mini.custom.knx-cdcust.
sh
-rwx--x--x    1 root     root          877 Jun  3 09:01 4opera.custom.knx-cdcust
.sh
-rwx--x--x    1 root     root          228 Jun  3 09:01 auto.knx-cdcust.sh
-rw-r--r--    1 toyo     toyo     143602724 Oct 17 09:48 compact-debian-oct16200
3.tar.gz
-rwx--x--x    1 root     root        23550 Jun  3 09:01 custom.knx-cdcust.sh
drwxr-xr-x    4 root     root         4096 Jun  3 08:37 knx-cdcust
-rwxr--r--    1 root     root        18496 Jun  2 17:25 knx-cdcust.sh
drwx------    2 root     root        16384 Jun  2 17:22 lost+found
onlsbc1:/home/toyo# umount /mnt
onlsbc1:/home/toyo# df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hdc1               484602    449089     10491  98% /
onlsbc1:/home/toyo#

	ok.  30GB の USBハードディスクへの読み書きは正常に実行できた。
	USBスティックメモリでも、USBハードディスクでも正常に使用できるのを確認
	できた。

	注.
	    USBハードディスクの電源の供給は、CC/NET の USB コネクタから摂るのを
	  を予定すべきではない。 外部電源供給型のミニハブや外部電源供給型の
	    USBハードディスクを使用すべきである。 そうしないと、CAMAC バック
	    プレーンからCC/NET への許される電力供給限度を超えてしまう可能性が
	    ある。



---xxxxx