灌溉梦想,记录脚步

Behavioral Analysis Unit (BAU)

  FBI行为分析部门Behavioral Analysis Unit (BAU)简介
  『原文』
  The mission of the BAU is to provide behavioral based investigative and operational support by applying case experience, research, and training to complex and time-sensitive crimes, typically involving acts or threats of violence. The program areas addressed include Crimes Against Children, Crimes Against Adults, Communicated Threats, Corruption, and Bombing and Arson Investigations. The BAU receives requests for services from Federal, state, local, and international law enforcement agencies. Response to these requests for BAU assistance are facilitated through the network of field NCAVC coordinators. BAU services are provided during on-site case consultations, telephone conference calls, and/or consultations held at the BAU with case investigators.
  BAU assistance to law enforcement agencies is provided through the process of “criminal investigative analysis.” Criminal investigative analysis is a process of reviewing crimes from both a behavioral and investigative perspective. It involves reviewing and assessing the facts of a criminal act, interpreting offender behavior, and interaction with the victim, as exhibited during the commission of the crime, or as displayed in the crime scene. BAU staff conduct detailed analyses of crimes for the purpose of providing one or more of the following services: crime analysis, investigative suggestions, profiles of unknown offenders, threat analysis, critical incident analysis, interview strategies, major case management, search warrant assistance, prosecutive and trial strategies, and expert testimony.
  In addition to the above services, the BAU staff produced the “Child Abduction Response Plan” to assist investigators faced with these challenging and time-sensitive investigations. Recently, the BAU released “The School Shooter: A Threat Assessment Perspective” report to guide school administrators, teachers, parents, and law enforcement in identifying and evaluating threats in our schools. The BAU maintains a reference file for experts in various forensic disciplines such as odontology, anthropology, entomology, or pathology.
  BAU的使命就是提供通过应用案例、研究以及培训方面的基于行为的调查以及具体操作性的支持,将其应用于解决复杂的以及时间敏感的(需要快速解决的)犯罪行为中,例如暴力或暴力恐吓。BAU 涉及的领域包括,对于儿童、成人,通信恐吓、贿赂以及炸弹和纵火相关的犯罪进行调查。BAU服务于联邦政府、州政府、地方政府和国际法律执行机构。应对这些需要援助的请求,BAU通过NCAVC(National Center for the Analysis of Violent Crime全国暴力犯罪中心)领域协调者的网络系统帮助使之变得更为便利。BAU可以通过在罪案现场的商议,电话会议,以及/或者BAU与案件调查者举行的商讨来给于帮助。
  BAU对于法律执行机构的协助是通过其”犯罪调查分析”的过程来实现的。犯罪调查分析是一种从行为和调查性的角度来回顾犯罪的过程。这个过程包括回顾和评估犯罪事实,在重现犯罪过程中,解释罪犯的犯罪行为,以及受害者的反应。BAU成员进行的详细的犯罪分析是为了提供以下一项或多项服务:罪行分析,调查性建议,未知罪犯的肖像,威胁性分析,危急事件分析,面谈策略,主要案件的管理,寻找合理援助,起诉和审讯策略以及专家证词。
  除了以上这些服务,BAU成员还提出了一项”儿童诱拐反应计划”,来支持那些面临挑战性和时间敏感性(需要快速解决的)调查的调查者。最近,BAU发布了”校园枪击:威胁的预计”的报告来指导学校管理者、老师、家长以及执法者来识别和预估我们校园中的威胁。BAU为不同领域的专家提供法学相关学科的参考资料,诸如齿科学、人类学、昆虫学或病理学等等。

squid清除缓存脚本

  脚本文件名:clear_squid_cache.sh

  #!/bin/sh
  squidcache_path=”/var/spool/squid”
  squidclient_path=”/usr/local/squid/bin/squidclient”
  grep -a -r $1 $squidcache_path/* | strings | grep “http:” | awk -F’http:’ ‘{print “http:”$2;}’ > cache_list.txt
  for url in `cat cache_list.txt`; do
  $squidclient_path -m PURGE -p 8080 $url
  done
  

设置clear_squid_cache.sh可执行权限(命令:chmod +x ./clear_squid_cache.sh)。

  设置:
  squidcache_path= 表示squid缓存目录的路径
  squidclient_path= 表示squidclient程序所在的路径,默认为squid安装目录下的bin/squidclient
  用法:
  1、清除所有Flash缓存(扩展名.doc):
  ./clear_squid_cache.sh doc
  2、清除URL中包含sina.com.cn的所有缓存:
  ./clear_squid_cache.sh sina.com.cn
  3、清除文件名为zhangyan.jpg的所有缓存:
  ./clear_squid_cache.sh test.jpg

phpMyadmin中编辑用户权限

1、新建数据库:

进入phpmyadmin管理界面以后,找到如下文字”创建一个新的数据库”,然后在下面填上要新建的数据库的名称,在后面的下拉列表中选择数据库的编码,一般为”gb2312_chinese_bin”,点击”创建”按钮,这样就新建了一个数据库。

2、新建此数据库的对应帐户

在phpmyadmin管理界面点击”权限”,打开链接,点击”添加新用户”,在打开的页面中会看到”登入信息”,输入用户名、主机(一般为本地:localhost)、密码后,因为我们现在是要给单个用户配置单个数据库的权限,所以我们在这里不选择”全局权限”,然后点击最下面的”执行”按钮,这样就新建了一个用户名。

3、为新建的用户添加此数据库权限

添加完用户以后,管理界面的上方会提示”您已添加了一个新用户”,我们现在就给新建的用户添加权限,在下面找到”按数据库指定权限”,然后点击”在下列数据库添加权限”后面的下拉列表,选择数据库,选择数据下面的全部,然后选择结构除了最下面三个以外的复选框,其他一律不选,然后点击”执行”按钮,这样就配置好了这个用户完全管理这个数据库的权限了。

注:因为我们只是要给这个用户管理这个数据库的全部权限,但是没有其他数据库的管理权限,所以在配置权限的时候一定要注意。

附:在phpmyadmin中显示的用户权限都是英文的,我们在此附上中文翻译:

数据:

Select:允许读取数据。

Insert:允许插入和替换数据。

UPDATA:允许更改数据。

Delete:允许删除数据。

FILE:允许从文件中导入数据以及将数据导出至文件。

结构:

Create:允许创建新数据库和表。

Alter:允许修改现有表的结构。

INDEX:允许创建和删除索引。

Drop:允许删除数据库和表。

Create TEMPORARY TABLES:允许创建暂时表。

Create VIEW:允许创建新的意见。

SHOW VIEW:显示创建的看法。

Create ROUTINE:允许创建存储过程。

Alter ROUTINE:允许改变和下降存储过程。

EXECUTE:允许许执行存储过程。

管理:

GRANT:允许添加用户和权限,而不允许重新载入权限表。

SUPER:允许在达到最大允许数目时仍进行连接。

PROCESS:允许查看进程列表中的完整查询。

RELOAD:允许重新载入服务器设置并刷新服务器的缓存。

SHUTDOWN:允许关闭服务器。

SHOW DATABASES:允许访问完整的数据库列表。

LOCK TABLES:允许锁住当前线索的表。

REFERENCES:在此版本的 MySQL 中无效。

REPLICATION CLIENT:用户有权询问附属者/控制者在哪里。

REPLICATION SLAVE:回复附属者所需。

Create USER:允许创建,下降和重新命名的用户帐户。

DoS攻击威胁移动网络安全

  贝尔实验室高级电信安全研究人员Krishan Sabnani警告,现有的移动IP协议有固有的弱点可被黑客利用,并且很难发现和修复.
  黑客可以用某种类型的攻击例如SYN来迅速耗尽无线互联网上的资源,并可以攻击终端设备,防止移动设备进入睡眠,导致电池使用寿命减短,这是他在纽约市立学院举行的《网络世界》网络基础设施保护会议上报告的.
  更糟糕的是,发动袭击的成本和所造成的后果完全不对等,一个电缆调制解调器用户,500kbps的上传就可以同时攻击超过100万台手机.
  黑客可以挤爆无线网络控制器,伪造合法用户,发送数据包防止移动设备进入睡眠,制造虚假流量和过度扫描端口.
  贝尔实验室宣称他们已经开发出流量特征算法和统计模型以抵御这种攻击,减少不必要的数据传送和终端用户设备电源消耗.

无盘linux配置

Some networks require multiple systems with the same configuration. They also require that these systems be easy to reboot, upgrade, and manage. One solution is to use a diskless environment in which most of the operating system, which can be read-only, is shared from a central server between the clients. The individual clients have their own directories on the central server for the rest of the operating system, which must be read/write. Each time the client boots, it mounts most of the OS from the NFS server as read-only and another directory as read-write. Each client has its own read-write directory so that one client can not affect the others.

The following steps are necessary to configure Red Hat Enterprise Linux to run on a diskless client:

 

  1. Install Red Hat Enterprise Linux on a system so that the files can be copied to the NFS server. (Refer to the Red Hat Enterprise Linux Installation Guide for details.) Any software to be used on the clients must be installed on this system and the busybox-anaconda package must be installed.

  2. Create a directory on the NFS server to contain the diskless environment such as /diskless/i386/RHEL4-AS/. For example:

    mkdir -p /diskless/i386/RHEL4-AS/
    

    This directory is referred to as the diskless directory.

  3. Create a subdirectory of this directory named root/:

    mkdir -p /diskless/i386/RHEL4-AS/root/
    
  4. Copy Red Hat Enterprise Linux from the client system to the server using rsync. For example:

    rsync -a -e ssh installed-system.example.com:/ /diskless/i386/RHEL4-AS/root/
    

    The length of this operation depends on the network connection speed as well as the size of the file system on the installed system. Depending on these factors, this operation may take a while.

  5. Start the tftp server as discussed in Section 4.1 Start the tftp Server.

  6. Configure the DHCP server as discussed in Section 4.2 Configuring the DHCP Server.

  7. Finish creating the diskless environment as discussed in Section 4.4 Finish Configuring the Diskless Environment.

  8. Configure the diskless clients as discussed in Section 4.5 Adding Hosts.

  9. Configure each diskless client to boot via PXE and boot them.

1. Start the tftp Server

On the DHCP server, verify that the tftp-server package is installed with the command rpm -q tftp-server. If it is not installed, install it via Red Hat Network or the Red Hat Enterprise Linux CD-ROMs. For more information on installing RPM packages, refer to Part III Package Management.

tftp is an xinetd-based service; start it with the following commands:

/sbin/chkconfig --level 345 xinetd on
/sbin/chkconfig --level 345 tftp on

These commands configure the tftp and xinetd services to immediately turn on and also configure them to start at boot time in runlevels 3, 4, and 5.

2. Configuring the DHCP Server

If a DHCP server does not already exist on the network, configure one. Refer to Chapter 24 Dynamic Host Configuration Protocol (DHCP) for details. Make sure the configuration file contains the following so that PXE booting is enabled for systems which support it:

allow booting;
allow bootp;
class "pxeclients" {
   match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
   next-server <server-ip>;
   filename "linux-install/pxelinux.0";
}

where <next-server> option should be replaced with the IP address of the tftp server.

3. Configuring the NFS Server

The shared read-only part of the operating system is shared via NFS.

Configure NFS to export the root/ and snapshot/ directories by adding them to /etc/exports. For example:

 

/diskless/i386/RHEL4-AS/root/     *(ro,sync,no_root_squash)
/diskless/i386/RHEL4-AS/snapshot/ *(rw,sync,no_root_squash)

Replace * with one of the hostname formats discussed in Section 22.3.2 Hostname Formats. Make the hostname declaration as specific as possible, so unwanted systems can not access the NFS mount.

If the NFS service is not running, start it:

 

service nfs start

If the NFS service is already running, reload the configuration file:

 

service nfs reload

4. Finish Configuring the Diskless Environment

To use the graphical version of the Network Booting Tool, you must be running the X Window System, have root privileges, and have the system-config-netboot RPM package installed. To start the Network Booting Tool from the desktop, go to Applications (the main menu on the panel) => System Settings => Server Settings => Network Booting Service. or, type the command system-config-netboot at a shell prompt (for example, in an XTerm or a GNOME terminal).

If starting the Network Booting Tool for the first time, select Diskless from the First Time Druid. Otherwise, select Configure => Diskless from the pull-down menu, and then click Add.

A wizard appears to step you through the process:

 

  1. Click Forward on the first page.

  2. On the Diskless Identifier page, enter a Name and Description for the diskless environment. Click Forward.

  3. Enter the IP address or domain name of the NFS server configured in Section 4.3 Configuring the NFS Server as well as the directory exported as the diskless environment. Click Forward.

  4. The kernel versions installed in the diskless environment are listed. Select the kernel version to boot on the diskless system.

  5. Click Apply to finish the configuration.

After clicking Apply, the diskless kernel and image file are created based on the kernel selected. They are copied to the PXE boot directory /tftpboot/linux-install/<os-identifier>/. The directory snapshot/ is created in the same directory as the root/ directory (for example, /diskless/i386/RHEL4-AS/snapshot/) with a file called files in it. This file contains a list of files and directories that must be read/write for each diskless system. Do not modify this file. If additional entries must be added to the list, create a files.custom file in the same directory as the files file, and add each additional file or directory on a separate line.

5. Adding Hosts

Each diskless client must have its own snapshot directory on the NFS server that is used as its read/write file system. The Network Booting Tool can be used to create these snapshot directories.

After completing the steps in Section 4.4 Finish Configuring the Diskless Environment, a window appears to allow hosts to be added for the diskless environment. Click the New button. In the dialog shown in Figure 4-1, provide the following information:

 

  • Hostname or IP Address/Subnet – Specify the hostname or IP address of a system to add it as a host for the diskless environment. Enter a subnet to specify a group of systems.

  • Operating System – Select the diskless environment for the host or subnet of hosts.

  • Serial Console – Select this checkbox to perform a serial installation.

  • Snapshot name – Provide a subdirectory name to be used to store all of the read/write content for the host.

  • Ethernet – Select the Ethernet device on the host to use to mount the diskless environment. If the host only has one Ethernet card, select eth0.

Ignore the Kickstart File option. It is only used for PXE installations.

Figure 4-1. Add Diskless Host

In the existing snapshot/ directory in the diskless directory, a subdirectory is created with the Snapshot name specified as the file name. Then, all of the files listed in snapshot/files and snapshot/files.custom are copied copy from the root/ directory to this new directory.

6. Booting the Hosts

Consult the documentation for your PXE card to configure the host to boot via PXE.

When the diskless client boots, it mounts the remote root/ directory in the diskless directory as read-only. It also mounts its individual snapshot directory as read/write. Then it mounts all the files and directories in the files and files.custom files using the mount -o bind over the read-only diskless directory to allow applications to write to the root directory of the diskless environment if they need to.

Error:Starting NFS quotas: Cannot register service: RPC

  环境:
  client: 主机rac2,ip 192.168.0.6
  server: 主机rac1,ip 192.168.0.5
  1) 在客户端启动portmap和nfs服务,单起nfs进程是无法启动的。
  [root@rac2 init.d]# ./nfs start
  Starting NFS services: [ OK ]
  Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused
  rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
  [FAILED]
  Starting NFS daemon:
  [FAILED]
  Starting NFS mountd: Cannot register service: RPC: Unable to receive; errno = Connection refused
  mountd: unable to register (mountd, 1, udp).
  [FAILED]
  Starting RPC idmapd: [ OK ]
  [root@rac2 init.d]# ps -ef|grep nfs
  证明nfs没有启动。
  [root@rac2 init.d]# /etc/init.d/portmap start
  Starting portmap: [ OK ]
  [root@rac2 init.d]# ps -ef|grep portmap
  rpc 3198 1 0 02:39 ? 00:00:00 portmap
  root 3202 2998 0 02:39 pts/0 00:00:00 grep portmap
  [root@rac2 init.d]# /etc/init.d/nfs start
  Starting NFS services: [ OK ]
  Starting NFS quotas: [ OK ]
  Starting NFS daemon: [ OK ]
  Starting NFS mountd: [ OK ]
  启动正常,检查一下nfs进程是否在。
  [root@rac2 init.d]# ps -ef|grep nfs
  root 3222 1 0 02:39 ? 00:00:00 [nfsd]
  root 3223 1 0 02:39 ? 00:00:00 [nfsd]
  root 3224 1 0 02:39 ? 00:00:00 [nfsd]
  root 3225 1 0 02:39 ? 00:00:00 [nfsd]
  root 3226 1 0 02:39 ? 00:00:00 [nfsd]
  root 3227 1 0 02:39 ? 00:00:00 [nfsd]
  root 3228 1 0 02:39 ? 00:00:00 [nfsd]
  root 3231 1 0 02:39 ? 00:00:00 [nfsd]
  root 3260 2998 0 02:45 pts/0 00:00:00 grep nfs
  rac1上有一个/disk0分区,看从rac2能否直接连接上rac1
  [root@rac1 ~]# df -h
  Filesystem Size Used Avail Use% Mounted on
  /dev/sda5 2.9G 2.3G 503M 83% /
  /dev/sda1 99M 12M 83M 12% /boot
  none 125M 0 125M 0% /dev/shm
  /dev/sda2 7.7G 2.3G 5.1G 32% /home
  /dev/sda3 3.9G 2.3G 1.4G 62% /usr
  /dev/sda7 2.8G 1.1G 1.6G 40% /var
  /dev/sdb5 1004M 1.3M 952M 1% /disk0
  [root@rac2 init.d]# mount 192.168.0.5:/disk0 /wyl (/wyl目录必须已存在)
  mount: mount to NFS server ‘192.168.0.5’ failed: System Error: Connection refused.
  报错信息指的是server端(Rac1)的nfs进程没起来!
  在服务端启动nfs进程(实际上是要启动portmap和nfs进程)
  [root@rac1 ~]# /etc/init.d/portmap start
  Starting portmap: [ OK ]
  [root@rac1 ~]# /etc/init.d/nfs start
  Starting NFS services: [ OK ]
  Starting NFS quotas: [ OK ]
  Starting NFS daemon: [ OK ]
  Starting NFS mountd: [ OK ]
  Starting RPC idmapd: [ OK ]

linux下挂载详解

  linux是一个优秀的开放源码的操作系统,可以运行在大到巨型小到掌上型各类计算机系统上,随着linux系统的日渐成熟和稳定以及它开放源代码特有的优越性,linux在全世界得到了越来越广泛的应用。现在许多企业的计算机系统都是由UNIX系统、Linux系统和Windows系统组成的混合系统,不同系统之间经常需要进行数据交换。下面我根据自己的实际工作经验介绍一下如何在linux系统下挂接(mount)光盘镜像文件、移动硬盘、U盘以及Windows网络共享和UNIX NFS网络共享。
  挂接命令(mount)
  首先,介绍一下挂接(mount)命令的使用方法,mount命令参数非常多,这里主要讲一下今天我们要用到的。
  命令格式:
  mount [-t vfstype] [-o options] device dir
  其中:
  1.-t vfstype 指定文件系统的类型,通常不必指定。mount 会自动选择正确的类型。常用类型有:
  光盘或光盘镜像:iso9660
  DOS fat16文件系统:msdos
  Windows 9x fat32文件系统:vfat
  Windows NT ntfs文件系统:ntfs
  Mount Windows文件网络共享:smbfs
  UNIX(LINUX) 文件网络共享:nfs
  2.-o options 主要用来描述设备或档案的挂接方式。常用的参数有:
  loop:用来把一个文件当成硬盘分区挂接上系统
  ro:采用只读方式挂接设备
  rw:采用读写方式挂接设备
  iocharset:指定访问文件系统所用字符集
  3.device 要挂接(mount)的设备。
  4.dir设备在系统上的挂接点(mount point)。
  挂接光盘镜像文件
  由于近年来磁盘技术的巨大进步,新的电脑系统都配备了大容量的磁盘系统,在Windows下许多人都习惯把软件和资料做成光盘镜像文件通过虚拟光驱来使用。这样做有许多好处:一、减轻了光驱的磨损;二、现在硬盘容量巨大存放几十个光盘镜像文件不成问题,随用随调十分方便;三、硬盘的读取速度要远远高于光盘的读取速度,CPU占用率大大降低。其实linux系统下制作和使用光盘镜像比Windows系统更方便,不必借用任何第三方软件包。
  1、从光盘制作光盘镜像文件。将光盘放入光驱,执行下面的命令。
  #cp /dev/cdrom /home/sunky/mydisk.iso 或
  #dd if=/dev/cdrom of=/home/sunky/mydisk.iso
  注:执行上面的任何一条命令都可将当前光驱里的光盘制作成光盘镜像文件/home/sunky/mydisk.iso
  2、将文件和目录制作成光盘镜像文件,执行下面的命令。
  #mkisofs -r -J -V mydisk -o /home/sunky/mydisk.iso /home/sunky/ mydir
  注:这条命令将/home/sunky/mydir目录下所有的目录和文件制作成光盘镜像文件/home/sunky/mydisk.iso,光盘卷标为:mydisk
  3、光盘镜像文件的挂接(mount)
  #mkdir /mnt/vcdrom
  注:建立一个目录用来作挂接点(mount point)
  #mount -o loop -t iso9660 /home/sunky/mydisk.iso /mnt/vcdrom
  注:使用/mnt/vcdrom就可以访问盘镜像文件mydisk.iso里的所有文件了。
  挂接移动硬盘
  对linux系统而言,USB接口的移动硬盘是当作SCSI设备对待的。插入移动硬盘之前,应先用fdisk -l 或 more /proc/partitions查看系统的硬盘和硬盘分区情况。
  [root at pldyrouter /]# fdisk -l
  Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
  255 heads, 63 sectors/track, 8924 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot Start End Blocks Id System
  /dev/sda1 1 4 32098+ de Dell Utility
  /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
  /dev/sda3 2555 7904 42973875 83 Linux
  /dev/sda4 7905 8924 8193150 f Win95 Ext’d (LBA)
  /dev/sda5 7905 8924 8193118+ 82 Linux swap
  在这里可以清楚地看到系统有一块SCSI硬盘/dev/sda和它的四个磁盘分区/dev/sda1 — /dev/sda4, /dev/sda5是分区/dev/sda4的逻辑分区。接好移动硬盘后,再用fdisk -l 或 more /proc/partitions查看系统的硬盘和硬盘分区情况
  [root at pldyrouter /]# fdisk -l
  Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
  255 heads, 63 sectors/track, 8924 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot Start End Blocks Id System
  /dev/sda1 1 4 32098+ de Dell Utility
  /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
  /dev/sda3 2555 7904 42973875 83 Linux
  /dev/sda4 7905 8924 8193150 f Win95 Ext’d (LBA)
  /dev/sda5 7905 8924 8193118+ 82 Linux swap
  Disk /dev/sdc: 40.0 GB, 40007761920 bytes
  255 heads, 63 sectors/track, 4864 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot Start End Blocks Id System
  /dev/sdc1 1 510 4096543+ 7 HPFS/NTFS
  /dev/sdc2 511 4864 34973505 f Win95 Ext’d (LBA)
  /dev/sdc5 511 4864 34973473+ b Win95 FAT32
  大家应该可以发现多了一个SCSI硬盘/dev/sdc和它的两个磁盘分区/dev/sdc1?、/dev/sdc2,其中/dev/sdc5是/dev/sdc2分区的逻辑分区。我们可以使用下面的命令挂接/dev/sdc1和/dev/sdc5。
  #mkdir -p /mnt/usbhd1
  #mkdir -p /mnt/usbhd2
  注:建立目录用来作挂接点(mount point)
  #mount -t ntfs /dev/sdc1 /mnt/usbhd1
  #mount -t vfat /dev/sdc5 /mnt/usbhd2
  注:对ntfs格式的磁盘分区应使用-t ntfs 参数,对fat32格式的磁盘分区应使用-t vfat参数。若汉字文件名显示为乱码或不显示,可以使用下面的命令格式。
  #mount -t ntfs -o iocharset=cp936 /dev/sdc1 /mnt/usbhd1
  #mount -t vfat -o iocharset=cp936 /dev/sdc5 /mnt/usbhd2
  linux系统下使用fdisk分区命令和mkfs文件系统创建命令可以将移动硬盘的分区制作成linux系统所特有的ext2、ext3格式。这样,在linux下使用就更方便了。使用下面的命令直接挂接即可。
  #mount /dev/sdc1 /mnt/usbhd1
  挂接U盘
  和USB接口的移动硬盘一样对linux系统而言U盘也是当作SCSI设备对待的。使用方法和移动硬盘完全一样。插入U盘之前,应先用fdisk -l 或 more /proc/partitions查看系统的硬盘和硬盘分区情况。
  [root at pldyrouter root]# fdisk -l
  Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
  255 heads, 63 sectors/track, 8924 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot Start End Blocks Id System
  /dev/sda1 1 4 32098+ de Dell Utility
  /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
  /dev/sda3 2555 7904 42973875 83 Linux
  /dev/sda4 7905 8924 8193150 f Win95 Ext’d (LBA)
  /dev/sda5 7905 8924 8193118+ 82 Linux swap
  插入U盘后,再用fdisk -l 或 more /proc/partitions查看系统的硬盘和硬盘分区情况。
  [root at pldyrouter root]# fdisk -l
  Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
  255 heads, 63 sectors/track, 8924 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot Start End Blocks Id System
  /dev/sda1 1 4 32098+ de Dell Utility
  /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
  /dev/sda3 2555 7904 42973875 83 Linux
  /dev/sda4 7905 8924 8193150 f Win95 Ext’d (LBA)
  /dev/sda5 7905 8924 8193118+ 82 Linux swap
  Disk /dev/sdd: 131 MB, 131072000 bytes
  9 heads, 32 sectors/track, 888 cylinders
  Units = cylinders of 288 * 512 = 147456 bytes
  Device Boot Start End Blocks Id System
  /dev/sdd1 * 1 889 127983+ b Win95 FAT32
  Partition 1 has different physical/logical endings:
  phys=(1000, 8, 32) logical=(888, 7, 31)
  系统多了一个SCSI硬盘/dev/sdd和一个磁盘分区/dev/sdd1,/dev/sdd1就是我们要挂接的U盘。
  #mkdir -p /mnt/usb
  注:建立一个目录用来作挂接点(mount point)
  #mount -t vfat /dev/sdd1 /mnt/usb
  注:现在可以通过/mnt/usb来访问U盘了, 若汉字文件名显示为乱码或不显示,可以使用下面的命令。
  #mount -t vfat -o iocharset=cp936 /dev/sdd1 /mnt/usb
  挂接Windows文件共享
  Windows网络共享的核心是SMB/CIFS,在linux下要挂接(mount)windows的磁盘共享,就必须安装和使用samba软件包。现在流行的linux发行版绝大多数已经包含了samba软件包,如果安装linux系统时未安装samba请首先安装samba。当然也可以到