Archive for the ‘軟體’ Category


PARTCLONE.NTFS的用法

(1)備份分割區–不採用壓縮 (完整備份使用空間, DATA20 GB, IMAGE就是20GB)
PARTCLONE.NTFS –c –s /dev/sda3 –o /home/partimag/imagefile.img

(2)還原分割區–不採用壓縮
PARTCLONE.NTFS –r –s /home/partimag/imagefile.img –o /dev/sda3

(3)備份分割區–使用gzip壓縮(完整備份使用空間有壓縮, DATA20 GB, IMAGE約12GB)
PARTCLONE.NTFS –c –s /dev/sda3 | gzip –1 –c > /home/partimag/imagefile.img.gz
(-1~-9代表壓縮率, -1最少壓縮,-9最大壓縮)

(4)還原分割區–使用gzip壓縮
gzip –d  -c  /home/partimag/imagefile.img.gz | PARTCLONE.NTFS –r –o /dev/sda3

NAME
partclone.ntfs – The utility for clone and restore an ntfs partition.SYNOPSIS
partclone.ntfs [options]… [MODE] [SOURCE FILE] [OUTPUT FILE]

OPTIONS
       -V, –version
              prints program version.

       -c, –clone
              Back used block to the special image format.

       -r, –restore
              Restore from the special image format.

       -b, –dev-to-dev
              Local device to device copy mode

       -d, –debug
              Show debug information.

       -h, –help
              Display help information.

       -s, –source
              Source FILE can be a partition or image file.

       -o, –output
              Output FILE can be a partition

       -O, –overwrite
              Output FILE, overwriting if exists

       -C, –no_check
       Don’t check device size and free space

       -N, –ncurses
       Using Ncurses User Interface

       -X, –dialog
       output message as Dialog Format

       -F, –force
       force progress

http://s10.histats.com/476.swf


Sample:
mkntfs –f –Q /dev/sda3

Name

mkntfs – create an NTFS file system

Synopsis

mkntfs [options] device [number-of-sectors]

mkntfs [ -C ] [ -c cluster-size ] [ -F ] [ -f ] [ -H heads ] [ -h ] [ -I ] [ -L volume-label ] [ -l ] [ -n ] [ -p part-start-sect ] [ -Q ] [ -q ] [ -S sectors-per-track ] [ -s sector-size ] [ -T ] [ -V ] [ -v ] [ -z mft-zone-multiplier] [ –debug ] device [ number-of-sectors ]

Description

mkntfs is used to create an NTFS file system on a device (usually a disk partition) or file. device is the special file corresponding to the device (e.g /dev/hdXX). number-of-sectors is the number of blocks on the device. If omitted, mkntfs automagically figures the file system size.

Options

Below is a summary of all the options that mkntfs accepts. Nearly all options have two equivalent names. The short name is preceded by and the long name is preceded by . Any single letter options, that don’t take an argument, can be combined into a single command, e.g. -fv is equivalent to -f -v. Long named options can be abbreviated to any unique prefix of their name.

Basic options
-f, –fast, -Q, –quick

Perform quick (fast) format. This will skip both zeroing of the volume and bad sector checking.

-L, –label STRING

Set the volume label for the filesystem.

-C, –enable-compression

Enable compression on the volume.

-n, –no-action

Causes mkntfs to not actually create a filesystem, but display what it would do if it were to create a filesystem. All steps of the format are carried out except the actual writing to the device.
Advanced options
-c, –cluster-size BYTES

Specify the size of clusters in bytes. Valid cluster size values are powers of two, with at least 256, and at most 65536 bytes per cluster. If omitted, mkntfs uses 4096 bytes as the default cluster size.

Note that the default cluster size is set to be at least equal to the sector size as a cluster cannot be smaller than a sector. Also, note that values greater than 4096 have the side effect that compression is disabled on the volume (due to limitations in the NTFS compression algorithm currently in use by Windows).

-s, –sector-size BYTES

Specify the size of sectors in bytes. Valid sector size values are 256, 512, 1024, 2048 and 4096 bytes per sector. If omitted, mkntfs attempts to determine the sector-size automatically and if that fails a default of 512 bytes per sector is used.

-p, –partition-start SECTOR

Specify the partition start sector. The maximum is 4294967295 (2^32-1). If omitted, mkntfsattempts to determine part-start-sect automatically and if that fails a default of 0 is used. Note that part-start-sect is required for Windows to be able to boot from the created volume.

-H, –heads NUM

Specify the number of heads. The maximum is 65535 (0xffff). If omitted, mkntfs attempts to determine the number of heads automatically and if that fails a default of 0 is used. Note thatheads is required for Windows to be able to boot from the created volume.

-S, –sectors-per-track NUM

Specify the number of sectors per track. The maximum is 65535 (0xffff). If omitted, mkntfsattempts to determine the number of sectors-per-track automatically and if that fails a default of 0 is used. Note that sectors-per-track is required for Windows to be able to boot from the created volume.

-z, –mft-zone-multiplier NUM

Set the MFT zone multiplier, which determines the size of the MFT zone to use on the volume. The MFT zone is the area at the beginning of the volume reserved for the master file table (MFT), which stores the on disk inodes (MFT records). It is noteworthy that small files are stored entirely within the inode; thus, if you expect to use the volume for storing large numbers of very small files, it is useful to set the zone multiplier to a higher value. Note, that the MFT zone is resized on the fly as required during operation of the NTFS driver but choosing a good value will reduce fragmentation. Valid values are 1, 2, 3 and 4. The values have the following meaning:

MFT zone
MFT zone size

multiplier
(% of volume size)

1
12.5% (default)

2
25.0%

3
37.5%

4
50.0%

-T, –zero-time

Fake the time to be 00:00:00 UTC, Jan 1, 1970 instead of the current system time. This is only really useful for debugging purposes.

-I, –no-indexing

Disable content indexing on the volume. (This is only meaningful on Windows 2000 and later. Windows NT 4.0 and earlier ignore this as they do not implement content indexing at all.)

-F, –force

Force mkntfs to run, even if the specified device is not a block special device, or appears to be mounted.

Output options
-q, –quiet

Quiet execution; only errors are written to stderr, no output to stdout occurs at all. Useful ifmkntfs is run in a script.

-v, –verbose

Verbose execution.

–debug

Really verbose execution; includes the verbose output from the -v option as well as additional output useful for debugging mkntfs.
Help options
-V, –version

Print the version number of mkntfs and exit.

-l, –license

Print the licensing information of mkntfs and exit.

-h, –help

Show a list of options with a brief description of each one.

http://s10.histats.com/476.swf

[電腦]FOR /R的用法

Posted: 2010 年 06 月 21 日 in 軟體

FOR /R [[drive:]path] %variable IN (set) DO command  [command-parameters]

    在樹狀目錄中切換 [drive:]路徑,並於樹狀目錄的每一個目錄下執行
    FOR 陳述式。如果未在 /R 之後指定目錄規格,則採用目前的目錄。
    如果 set 只是單一句點 (.) 字元,則它只會列舉樹狀目錄結構。

感覺很複雜但用起來很簡單,直接把範例記錄下來,這樣比較好記憶。

用法:
for /R “起始根路徑” %%G IN (篩選檔案的規則) DO “執行的指令

範例1:砍掉C:TEMP資料夾下(包含子資料夾)的所有附檔名為TXT的檔案可以這樣用
for /R C:TEMP %%G IN (*.TXT) DO DEL /F /Q %%G

範例2:在IMAGE中加入語言包可以這樣用
for /R C:X86 %%G IN (LP.CAB) DO DISM IMAGE:C:MNT /ADD-PACKAGE /PACKAGEPATH:%%G

http://s10.histats.com/476.swf

[電腦]7-zip解壓縮

Posted: 2010 年 06 月 17 日 in 軟體

7-zip有支援command line去壓縮和解壓縮…但指令很繁複又不直覺
在此記錄一下解壓縮的用法

Command:
7z.exe X source_file_path.iso –aoa –Otarget_folder_path

Sample:
7z.exe X c:haha.iso –aoa –Oc:haha

x (Extract with full paths)
-o (set Output directory)
image
http://s10.histats.com/476.swf

[電腦]Junction for Windows Vista

Posted: 2009 年 06 月 11 日 in 軟體

Vista把一些放使用者資料的資料夾改名了,為了向下相容XP時期的程式,就使用Junction把舊的路徑連結到新的路徑上,一般這些Junction都是不能Access的,如果硬要點開,會收到Access Denied的錯誤訊息,這是給程式讀取舊目錄時,系統自動導向到新的目錄上頭。

雖然理論上這些Junction是沒有使用者權限的,但是卻發生過Application Data有使用者權限,如果這時去對這Junction跑遞迴(算大小,砍檔案,複製檔案),就會發生無窮迴圈的錯誤,直到記憶體爆掉!!

這是因為Application Data所指到的資料夾裡頭,也有個Junction指回Application Data,所以就有Loop Issue拉!!(白痴微軟……)

image

http://s10.histats.com/476.swf


IMG_6214 
今天約了猴王岳簧和家昇吃飯,慶祝猴王考到研究所,三個人來到家昇推薦位於新店高中
旁的六六涮涮鍋,這間小火鍋先前原本也要和小呆來吃,後來跑去吃別間就和六六擦身而
過。六六在新店高中左右邊各有一間店,能夠在一條路上相隔不過數百公尺連續開同性質
的店也算厲害了,走進六六涮涮鍋旗艦店的大門,映入眼前的是許多佛像的裝飾,彌勒佛
,觀音,還有整面牆的書法作品,有種置身古董古藝店的錯覺。

看著菜單上面的價位,大眾鍋兩百元有牛,羊,豬,雞四種肉質,另外副餐白飯,麵,冬
粉,兩百元的價位還可以接受,但是看著外面牆壁上頭,價位由160元提高到180元,然後
今天的200元,物價指數的高漲,通貨膨脹的事實,就圍繞在身邊,來這裡建議點個大眾
鍋即可,雖然六六涮涮鍋也有提供特殊口味的湯頭(香茅,南瓜,藥膳,咖哩,麻辣),但
是價位直接往上由350元起跳,個人覺得不太划算。

菜盤端上桌囉!以高麗菜為底,搭配新鮮的香菇,翠綠的蔬菜,芋頭,南瓜,豆腐,蟳味
棒,蒟篛絲,金針菇,花枝丸,魚板,馬鈴薯片,料挺多的,蔬菜也洗得很乾淨。肉類我
點了梅花豬肉,豬肉非常的柔軟,厚度也夠,吃起來鮮嫩扎實,好吃。另外還附有土雞蛋
一顆,看是要把蛋黃拿來拌沙茶醬,或是要弄水煮蛋都很美味。甜點有紅棗木耳與類似甜
八寶的粥,飲料有茉莉花茶與洛神花茶,對於止渴解膩都很棒,冰淇淋有六種口味,當然
有最愛的薄荷巧克力,最後吃了五球才走。

整體而言,六六涮涮鍋食物品質還算是不錯,環境也很舒適,適合聚餐聊天。

延伸閱讀(鍋類):
八神日式涮涮鍋
http://heater0718.spaces.live.com/blog/cns!62EA087B1A8CAA97!3036.entry
禎饌精緻涮涮鍋
http://heater0718.spaces.live.com/blog/cns!62EA087B1A8CAA97!2448.entry
台北陶一軒日式小火鍋-永吉一店
http://heater0718.spaces.live.com/blog/cns!62EA087B1A8CAA97!1150.entry
過海香辣蟹(竹北店)
http://heater0718.spaces.live.com/blog/cns!62EA087B1A8CAA97!3051.entry
小肥羊(竹北店)
http://heater0718.spaces.live.com/blog/cns!62EA087B1A8CAA97!3161.entry
台北[雙連]大肥羴羊肉爐
http://heater0718.spaces.live.com/blog/cns!62EA087B1A8CAA97!3271.entry
一品花雕雞-另類火鍋 (市民大道店)
http://heater0718.spaces.live.com/blog/cns!62EA087B1A8CAA97!3650.entry
台北[東區]馥臨港式火鍋。花雕雞湯頭
http://heater0718.spaces.live.com/blog/cns!62EA087B1A8CAA97!4771.entry

六六涮涮鍋
地址:台北縣新店市中央路89號(新店高中旁)
電話:(02) 8219-3388
價位:大眾鍋200元起
時間:平日 11:00-23:00
推薦:豬肉大眾鍋
附近停車場:斜對角有收費停車場
IMG_6237 IMG_6241 IMG_6206
IMG_6209 IMG_6215 IMG_6219IMG_6224 IMG_6227 IMG_6228 IMG_6207 IMG_6229 IMG_6230
http://s10.histats.com/476.swf


saddas 
功能:編輯撰寫Windows Spaces部落格的軟體還支援其他多家的部落格系統如 Blogger,TypePad, Movable Type,  LiveJournal, WordPress,有所見即所得的編輯模式外,還會自動下載部落格樣式,直接預覽該文章在部落格的樣式與效果,免除編輯與發佈之後的文章有任何差異,我自己也是用這軟體來編輯部落格,我覺得他其中最大的好處是和相簿作整合,只需要把圖片拉到WRITER中,編輯好文章後上傳,圖片就會自動幫你上傳到Windows live spaces的相簿裡面,完全不需要另外自己找空間放圖片,簡化編輯的麻煩,另外也可以針對圖片作浮水印或是加上陰影等特效功能,只要透過點點選選很直覺得方式,就可以達到多種特效工唷,也支援多國語言,包含繁體中文。
價格:免費
網址:http://get.live.com/writer/overview
下載點:http://get.live.com/writer/overview (BETA)
使用步驟:http://twmsnclub.spaces.live.com/blog/cns!3E98D2738D9DA67E!163.entry?fl=cat
http://s10.histats.com/476.swf

[軟體]NetMeter免費網路流量監控程式

Posted: 2007 年 12 月 07 日 in 軟體

NetMeterScreen 
功能:透過監控網路卡的進出流量,以圖形化展現即時上傳下載的流量圖形,並且統計每日,每週,每月,每年的上傳下載流量表,並可把統計表會出成檔案模式,方便統計,簡單易用,無繁體中文版。
價格:免費
網址:http://www.metal-machine.de/readerror/
下載點:http://www.metal-machine.de/readerror/index.php?action=tpmod;dl=item14 (v1.1.3)
http://s10.histats.com/476.swf

[軟體]FileZilla免費好用的FTP客戶端

Posted: 2007 年 12 月 05 日 in 軟體

fz3_win_main-small 
功能:簡單好用的FTP客戶端軟體,可以用來取代cuteftp或是smartftp,圖形化的介面讓初次使用者很快輕易的上手,支援FTP,FTP over SSL/TLS (FTPS) and SSH File Transfer Protocol (SFTP),支援 Unicode,也支援多國語言,包含繁體中文。
價格:免費
網址:http://filezilla-project.org/
下載點:http://downloads.sourceforge.net/filezilla/FileZilla_3.0.4.1_win32-setup.exe (v3.0.4.1)
http://s10.histats.com/476.swf


screenshot 

功能:比對兩份文件的不同點,並且以高亮度視覺話展現,會分別顯示在左右兩邊的分割視窗,也可以比對兩個資料夾下所有檔案,並且列出有不同處的檔案列表,對寫程式需要比對前後版本有何不同的工程師來說,非常實用,支援 Unicode,也支援多國語言,包含繁體中文。
價格:免費
網址:http://winmerge.org/
下載點:http://prdownloads.sourceforge.net/winmerge/WinMerge-2.6.12-Setup.exe (v2.6.12)
http://s10.histats.com/476.swf