2008年10月24日

partition and format under linux

  1. Now type fdisk -l to list available drives/partitions (note which device is your flash drive Example: /dev/sdb). Throughout this tutorial, replace all instances of x with your flash drive letter. For example, if your flash drive is sdb, replace x with b.
  2. Type umount /dev/sdx1
  3. Type fdisk /dev/sdx
    • type p to show the existing partition and d to delete it
    • type p again to show any remaining partitions (if partitions exist, repeat the previous step)
    • type n to make a new partition
    • type p for primary partition
      • type 1 to make this the first partition
      • hit enter to use the default 1st cylinder
      • type +750M to set the partition size
      • type a to make this partition active
      • type 1 to select partition 1
      • type t to change the partition filesystem
      • type 6 to select the fat16 file system
    • type n to make another new partition
    • type p for primary partition
      • type 2 to make this the second partition
      • hit enter to use the default cylinder
      • hit enter again to use the default last cylinder
      • type w to write the new partition table
  4. Type umount /dev/sdx1 to unmount the partition
  5. Type mkfs.vfat -F 16 -n ubuntu810 /dev/sdx1 to format the first partition
  6. Type umount /dev/sdx2 to ensure the partition is unmounted
  7. Type mkfs.ext2 -b 4096 -L casper-rw /dev/sdx2 to format the second partition

阅读全文!

2008年10月20日

VM cannot ping the host

VM cannot ping the host

VMware Workstation 5.5 is installed on Microsoft Windows XP Service Pack 2. NAT networking is used for the virtual machine – Red Hat Linux guest. I can ping the VM from the host but cannot ping the host from my Linux guest.
 

Answer: This happens because Windows Firewall blocks host-guest networking.

Windows Firewall is enabled by default in Windows XP Service Pack 2, which means incoming echo requests ("pings") are disallowed. To allow incoming echo requests, go to Control Panel->Windows Firewall->tab Advanced and click 'ICMP Settings'. In the dialog box check "Allow incoming echo request". You must ensure that the file and printer sharing checkbox is checked on the tab "Exceptions" to access shared host files and folders from the guest.


阅读全文!

2008年10月15日

关机时自动备份重要文件

    电脑中有一些重要的资料需要经常备份,如重要的文档、IE 收藏夹等等,如果利用Windows2000/XP 开关机脚本让系统自动进行备份的话,就可以避免因忘记备份而导致资料丢失的麻烦。下面以IE 收藏夹为例,介绍如何利用关机脚本实现自动备份。

    首先在指定的位置创建备份文件夹,如D:\Favorites ,然后在"C:\Windows (WinNT)\System32\Grouppolicy\Machine\Scripts\Shutdown"目录下, 编写一个能够自动备份的批处理文件DataBak.bat,内容如下:
XCOPY/E/Y "C:\Documents and Settings\Administrator\Favorites" D:\Favorites
    打开组策略窗口,在左侧的控制台树窗格中,依次展开"计算机配置/Windows 设置/ 脚本(启动/ 关机)"节点,双击右侧详细资料窗格中的"关机"项目,在弹出的"关机属性"对话框中点击"添加"按钮,将DataBak.bat 添加为新的计算机关机脚本。设置完成后,退出组策略窗口,重新启动计算机即可。


阅读全文!

2008年10月12日

I am proud I was born here (Xi'An)

生于此,我引以为傲!我的家,我爱西安.
I am proud I was born here. Love home -- Xi'An


阅读全文!

陕西的味道--不单是饮食...

ShaanXi's taste -- not only food also language.
Enjoy this pure sounds from 5000 years ago.


阅读全文!

2008年10月6日

How to install Nvidia9100MG on linux

How to install Nvidia 9100MG driver on LInux?
All the GNU/Linux should be similar, below steps is for SuSE11.
1. Yast, install GCC, MAKE, Kernel source.
2. Download latest Nvidia driver for linux (14.12) include Nvidia 9100MG support.
3. Change run lever to 3.
4. run Nvidia driver as "sh NV....14.12 -q"
5. after install run "sax2 -r -m 0=nvidia"
6. that is all.

阅读全文!