Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Friday, March 15, 2013

關於MBR與GPT分區管理


http://www.ha97.com/5365.html
目前我們可以接觸到的大部分x86架構的pc和服務器,還在採用上世紀遺傳下來的BIOS+MBR組合。 BIOS,基本輸入輸出系統 (Basic Input-Output System),是軟件與硬件之間的一個接口,可以把它看作一個翻譯在中文與英語之間,雖然兩者完全不同,不過可以讓大家瞭解 BIOS 所處的位置,BIOS 通常被寫入一塊 ROM 芯片連接在主板上,當然也有直接寫入北橋的,不過相當少見。 BIOS 幾乎是完全用彙編語言編寫,很大程度上決定了主板的性能及穩定性。
MBR,主引導記錄 (Master Boot Record),也就是我們常見的分區方法,不過管理員外的最終用戶很少知道它的存在,MBR 分區的標準決定了MBR只支持在2TB以下 (超過2TB的只能管理 2TB) 的硬盤中創建4個分區表項,要獲得更多分區,需要次級結構–擴展分區。擴展分區可以再次被分成一個或多個邏輯磁盤,也就是普通情況下的C盤以外的盤,或說第一個分區以外的部分,有些情況下 Windows 裡的C盤可能會是一個邏輯分區。
EFI,可擴展固件接口 (Extensible Firmware Interface),由英特爾 (Intel) 公司提出的一種替代 BIOS 的升級方案。 EFI 的位置很特殊,它不像是 BIOS 那樣自己即是固件又是接口,EFI 只是一個接口,位於操作系統與平台固件之間。
GPT,全局唯一標識磁盤分區表 (GUID Partition Table),GUID,全局唯一標識符 (Globally Unique Identifier) 。GUID 分區表 (GPT) 是作為 Extensible Firmware Interface (EFI) 計劃的一部分引入的。當然,你也可以在 BIOS 的PC中使用 GPT 分區,雖然 GPT 來自以 EFI 計劃,但並不依賴於 EFI。GPT 相對於以往 PC 普遍使用的主引導記錄 (MBR) 分區方案更加靈活。比如可以超過 MBR 分區表項4個的限制,在 GPT 規範裡對分區的數量幾乎是沒有限制的,大家在網上可以查到的128個實際上是 Windows 系統 (支持 GPT 的 Windows) 做出的限制,Linux下沒這個限制。 GPT 對可管理磁盤大小也超過了 MBR 的2TB (1TB = 1024GB) 而達到了 18EB (1EB = 1024TB) 。在 MBR 分區方案中操作系統的引導是通過放在磁盤最開始 (第一扇區) 裡的 MBR (這裡的 MBR 是指主引導記錄,而不是主引導記錄分區方案,兩者是同名的。我的猜測是為了與 GPT 分區方案區分,使用了主引導記錄引導方式的名字 MBR 來命名此種分區方案,我查不到確切的資料正明我的猜測是否正確,只能大家努力區分一下了。) 。把重要的信息 (如分區信息、目錄等) 放在某個扇區裡是 MBR 分區方案的方法,而 GPT 把這個信息放到了分區裡,Intel的解釋是這樣可以更加明確更加安全。 GPT 分區為了保護自己不受 MBR 方案下磁盤管理軟件的危害,在磁盤的最開始位置 (第一個扇區) 建立了一個保護分區 (Protective MBR),這種分區的類型標識為 0xEE。蘋果系統Mac OS X下這個保護分區大小為 200MB,這個分區在 Window磁盤管理器裡名字叫做 GPT 保護分區。這個分區可以讓不能識別 GPT 的磁盤管理軟件把 GPT 磁盤看成一個未知格式的分區,而不是錯誤地當成一個未分區的磁盤。
常用的 MS-DOS 分區表格式不能在一個大於 2TB 的設備上使用。要支持大於2TB的設備,GPT 分區表格式必須被使用,並且必須使用parted工具程序來創建和管理 GPT 分區。

Monday, October 29, 2012

How to disable the Windows built-in zip functionality?

http://superuser.com/questions/37578/how-to-disable-the-windows-built-in-zip-functionality
Windows 7
The process is similar to Vista in terms of deleting the same registry keys. However, due to additional protections built-in, you must first change ownership of the keys to your username, which must be an administrator account.

Open Registry Editor (go to Start Menu -> Run and type “regedit“).
Navigate to HKEY_CLASSES_ROOT\CLSID and perform steps 3-7 for each of the two keys:
{E88DCCE0-B7B3-11d1-A9F0-00AA0060FA31} and
{0CD7A5C0-9F37-11CE-AE65-08002B2E1262}.
Right-click on the key and select “Permissions…”. Click “Advanced” and then the “Owner” tab.
Select your username from the list.
Check the box next to “Replace owner on subcontainers and objects”. Click “OK”.
In the “Security” tab, select your username and grant Full Control. (If your username is not there, click “Add…”, type your username, then click “Check Names” and “OK”.) Click “OK” to apply the permissions settings.
Delete the registry key.
Repeat the process for the second key.
Restart Windows and enjoy a life free from zip folders!

Sunday, October 21, 2012

How to disable The Splash of Office 2010?

HKEY_CLASSES_ROOT\Word.Document.8\shell\Open\command
"C:\Program Files\Microsoft Office\Office14\WINWORD.EXE" /q

HKEY_CLASSES_ROOT\Excel.Sheet.8\shell\Open\command
"C:\Program Files\Microsoft Office\Office14\EXCEL.EXE" /e

HKEY_CLASSES_ROOT\PowerPoint.Slide.8\shell\Open\command
"C:\Program Files\Microsoft Office\Office14\POWERPOINT.EXE" /s

Thursday, August 16, 2012

Connecting Linux and Windows Together With a Network Cable

http://www.ehow.com/how_7208875_connect-ubuntu-windows-crossover-cable.html


Windows:

1 Connect the crossover cable to the network port of both the Ubuntu and the Windows computers.

2 Go to the "Start" menu and type "netcpl.cpl" in the "Run" or "search programs and files" field and press "Enter."

3 Right-click on "Local Network connection" and select "Properties."

4 Select "TCP/IP V4" and click "Properties."

5 Select "Use the following IP address" and enter 192.168.1.1 in the "IP address" field.

6 Click on the "Subnet mask" field to fill it automatically. Click "OK."

Linux:

7 Press "CTRL + ALT + F1" to open a terminal.

8 Type "sudo ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up" and press "Enter."

9 Type your password and press "Enter."

10 Press "CTRL + ALT + F7" to go back to the graphical interface.

Monday, November 21, 2011

Using SQLiteSpy To Investigate The Content of EverNote

http://www.yunqa.de/delphi/doku.php/products/sqlitespy/index
SQLiteSpy is a fast and compact GUI database manager for SQLite. It reads SQLite3 files and executes SQL against them. Its graphical user interface makes it very easy to explore, analyze, and manipulate SQLite3 databases.

Friday, September 09, 2011

Require users to press Ctrl+Alt+Delete checkbox is grayed out

http://www.wincert.net/tips/microsoft-windows/windows-xp/2163-require-users-to-press-ctrlaltdelete-checkbox-is-grayed-out.html
Click Start | Settings | Control Panel | Administrative Tools | Local Security Policy
In the left pane browse to Security Settings | Local Policies | Security Options
In the right pane change the value for, "Interactive Logon: Do not require CTRL + ALT + DEL" from Disabled to Enabled

Thursday, March 31, 2011

Padlock Overlay on Some Files/Folders in Windows 7

http://www.winhelponline.com/blog/lock-padlock-icon-files-folders-windows-7/

A private item is an item where the only user account with access is you. You create one of these, for example, by going to the sharing wizard and saying Share with: Nobody. To avoid clutter, the overlay is shown only when there is a transition from non-private to private.

Implementation of Preview Handlers in Office 2007 on Windows XP Service Pack 2+

http://www.azarfamily.org/previewhandlersforwindowsxp/

Pressure Sensitive Inking in Onenote 2007


The default pen size in Onenote 2007 is 0.25 which does not support pressure sensitive inking. This need to be increase to 0.35 or larger to enable this feature.
The pen selection is disable after turning on pressure sensitive function. This is a bug in Onenote. To Turn it back on use keyboard shortcut: Win + v

Sunday, September 26, 2010

LPR vs Raw TCP/IP Printing Protocol

According to the below paper, Raw TCP/IP is more than 50% faster than LPR.
Comparative Efficiency Analysis of LPR and Raw TCP/IP Printing Protocols

Apple Talk is not support by my printer server TE100-MP2U.
My printer's SMB printer can not see by my Windows 7.
LPR is slow.
My printer server's Raw TCP/IP is not compatible with Windows 7.

Wednesday, August 18, 2010

Mac PowerPoint vs. Windows PowerPoint

Apple的使用率在美國還挺高的, 尤其在學界
可是Mac跟Windows 兩個作業系統的PowerPoint的相容性, 實在是不敢恭維
最大的問題是, Mac上的 PowerPoint不會自動轉換多媒體格式, 導致在Mac上做的 PowerPoint移到 Windows上時會沒辦法顯示
就算在 Windows上裝了QuickTime也不能解決

為了看到上課的 slide, Google了一下這個問題
解法如下:
1) Save PPT as Webpage
2) Search for pcz-Files
3) unpack pcz-Files by Gzip or WinRar
4) extract and add extension .pict to the files
5) convert PICT-Files into JPG (QuickTime is needed to be installed)
6) reinsert into PPT

粉麻煩, 但至少有解. 感覺這是 Microsoft在 PowerPoint裡留下的伏筆, 讓 Mac 到 Windows上做簡報變的很難

Speeding Up Matlab

Java 'Out of memory' errors
修改或新增下列程式碼於 'java.opts' (in $MATLAB/bin/win32/java.opts)
-XX:PermSize=72m
-XX:MaxPermSize=72m
-Xmx256m
-Dcom.sun.management.jmxremote
除此之外, 可以參考 Sun JVM的微調參數, 做更進一步的調教

Java Virtual Machine (JVM) Matlab
修改系統變數 MATLAB_JAVA
更換Matlab內建的 BLAS函式庫
先找出你CPU對應最佳化Basic Linear Algebra Subroutines (BLAS)函式庫, 然後修改 BLAS_VERSION這個系統變數, 去使用最佳化函式庫
理論上, 這對舊版的 Matlab 6有奇效, 因為舊的 Matlab並沒有使用最佳化的函式庫, 改用新的至少會快兩倍
以下是 Intel 最佳化函式庫 9.1.2版的對照表 (最新版是 10.1)
mkl_p3 Kernel optimized for Intel® Pentium® III processor
mkl_p4 Kernel optimized for Intel® Pentium® 4 processor
mkl_p4m Kernel optimized for Intel® Core™ 2 Duo Processor
mkl_p4p Kernel optimized for Intel® Pentium® 4 processor with SSE3 Instructions
可以用 LAPACK_VERBOSITY=1 來檢查 BLAS的版本

Optimized Elementary MATLAB Functions
用在 PII以上, 可以快上兩三倍

Monday, August 02, 2010

Transforming a Unused Laptop into a Secondary Monitor

Install ZoneScreen and make the desktop extended to the virtual monitor.
Then, use the ZS Wizard to set up a screen server on my Windows. Run the the client mode of ZS Wizard via Wine on my Linux laptop and connect it to the Windows box.
Note:
1. The latest ZoneScreen 1.0.11.0 did not show virtual monitor on my Windows XP and the SC Wizard did not show the cursor. Version 1.0.10.0 worked fine.
2. TightVNC 2.0.2 did not support projecting only secondary monitor to the VNC client (remmina 0.8.1 with libvncclient). UltraVNC 1.0.8.2 did not show my cursor in the client. RealVNC 4.1.3 refused to make connection.

Thursday, July 15, 2010

Solving The Problem Related to In-executable Java Program Under Win64

cd %windir%\system32
mklink java.exe ..\syswow64\java.exe
mklink javaw.exe ..\syswow64\javaw.exe
mklink javaws.exe ..\syswow64\javaws.exe

Wednesday, April 21, 2010

Making File Name in NTFS Case-sensitive

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel\obcaseinsensitive
DWORD=0 for case-sensitive

Thursday, March 25, 2010

Xming Warning: Cannot convert string *** to type FontStruct

Just follow the instruction from here http://www.straightrunning.com/XmingNotes/fonts.php to generate the fonts list for all true type fonts

Saturday, March 13, 2010

How to disable Windows Vista/7 from probing the internet via msftncsi?

Set the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet\EnableActiveProbing to 0
Windows Vista/7 will no longer probe for internet connectivity, but you also lose the 'earth' overlaid on the internet connectivity.