2010年3月23日 星期二

How to capture the packet outside the NAT Router

1. We can plug hub connected to the WAN port of NAT Router. And then use NB connected to the hub. Then we can capture packets onto the NB by using capture software (e.g. wireshark).

2. We can plug switch connected to the WAN port of NAT Router.The switch comes with a Port Mirror feature. So we can connect a PC to the mirror port to capture all the packets pass through the switch.

2010年3月4日 星期四

Drive Fitness Test

Disk check and fix tools

http://www.hgst.com/hdd/support/download.htm#DFT


How to create bootable DFT diskette using Linux
The Drive Fitness Test image file (dft-vxxximg.bin) includes a DOS-based Drive Fitness Test program. Running the Linux Disk Dump (dd) utility, creates an DOS-bootable diskette that contains the Drive Fitness Test Utility. A formatted 1.44 MB diskette is required to create the diskette. The Drive Fitness Test is provided for testing our disk drives. The test will not overwrite customer data.
Restrictions: The users guide contains detailed information on the current restrictions for the Drive Fitness Test. See the link at the bottom of this page.
To create a bootable DFT diskette under Linux:
Download the bootable version of DFT (dft-vxxximg.bin) into a known directory on your PC.
Insert a formatted 1.44 MB diskette into your disk drive.
Make sure that the floppy disk is unmounted.
Change directory to where you saved the DFT image.
Run the Disk Dump (dd) utility with the following parameters: dd if=dft-vxxximg.bin of=/dev/fd0 bs=8k Note: /dev/fd0 is the first diskette drive. Use /dev/fd1 if you would like to use the second diskette drive to create the DFT diskette.
The bootable DFT diskette will now be created, Note this could take a couple of minutes .
See the users guide for information on how to run the Drive Fitness Test. To use the Drive Fitness Test with our SCSI hard disk drives you must have the correct ASPI drivers installed. Please refer to the users guide for a list of supported controllers.
Drive Fitness Test Users Guide


Drive Fitness Test
Version 4.16
The Drive Fitness Test (DFT) quickly and reliably tests SCSI, IDE and SATA drives. The DFT analyze function performs read tests without overwriting customer data. (Note: other DFT restoration utilities may overwrite data.)
DownloadsTo run the DFT, you must download the appropriate creator or image and create a self-booting media.
You may create the media under Windows (using the Windows OS version) or Linux (using the binary image), but you must start your system with the DOS-bootable diskette to run DFT.
Drive Fitness Test User's Guide (426 K)Guide to using DFT
Diskette creator for Windows OS (2,130 K)Creates self-booting media to run DFT Read Me Having trouble creating the bootable diskette?
Binary diskette image for non-Windows OS (1,440 K)Creates self-booting media to run DFT Read Me
CD image (2,720 K)Creates bootable CD for Linux, Windows and other operating systems ( requires CD-RW drive and software).

DFT provides 3 media types to run on different platform (e.g. Windows, Linux, Dos...)
* Windows Application
* Bootable CD
* Bootable Disk

2010年3月3日 星期三

Verified Memory Usage

1. top
we can observe the memory usuage from the top 2 lines of mem/Swap usage
Mem: 3693568k total, 850148k used, 2843420k free, 145076k buffers
Swap: 8385920k total, 0k used, 8385920k free, 372780k cached

2. cat /proc/meminfo
# cat /proc/meminfo
MemTotal: 3693568 kB
MemFree: 2830268 kB

3. free
# free -m -t
total used free shared buffers cached
Mem: 7982 3576 4406 0 625 2677
-/+ buffers/cache: 272 7709
Swap: 10236 0 10236
Total: 18219 3576 14643

Disable UAC protection

UAC (User Authorization Control) is a new feature provided from Microsoft Windows Vista version. If you want to disable it, simply go to the
Control Panel -> User Account -> Enable or Disable UAC -> uncheck the "use UAC to protect your computer"
Done

2010年3月2日 星期二

time zone different between Taiwan and American

Amercian East -13 == Taiwan CST
EST -12 (Daylight Saving Time)

American West -16 == Taiwan CST
PST -15 (Daylight Saving Time)

洛杉磯-台灣時間減16小時
紐約-台灣時間減13小時