How to Fix the Disk Signature Collision Problem in Windows 7

by jeff 16. November 2011 00:59

Windows 7 comes with a command line utility called diskpart that can let you view and change the disk signature.

  1. Open a command prompt as administrator. To do this in Windows 7, click the Windows start menu (the round Windows icon on the left bottom corner), type "cmd" (without the quotes), right click the "cmd.exe" item that appears at the top of your menu, and click the line "Run as administrator". Do this even if you are already logged in as administrator, since on Windows 7, administrators run with reduced rights by default.

  2. A black command prompt window will open. In Windows 7, the title bar of the window will tell you that you are running it as Administrator. If it does not, it means you did not do what I just said above. Return and follow the first step, or you will not be able to successfully carry out the rest of this tutorial.

  3. Type "diskpart" (without the quotes) into the window. (Note: for this and the other commands described here, you'll have to hit the ENTER key after you finish typing your commands for them to take effect.)

  4. Microsoft DiskPart will start. When it is ready, it will issue a "DISKPART>" prompt, allowing you to enter your commands.

  5. Type "list disk" (without the quotes). This will list all the disks that are currently mounted (connected to the system). The disk will not have the usual names and labels that you're accustomed to from the Windows Explorer interface, so you will have to recognize them by their sizes.

    Note that "list disk" actually lists the physical disks, and not the partitions that you may have assigned drive letters. This means that if you have 2 physical disks, with 3 partitions on each, so that you have drives C:, D:, E:, F:, G: and H:, "list disk" will only show "Disk 0" and "Disk 1".

  6. To view the signature of a disk, you must first select it. To select a disk, type "select disk x" (without the quotes) where x is the number of the disk from your "list disk" display. When you type (say) "select disk 1", DiskPart will respond by telling you "Disk 1 is now the selected disk".

    Now type "uniqueid disk" (again, without the quotes). DiskPart will respond with the disk's signature, a series of hexadecimal digits (or at least I think it's hexadecimal).

  7. To change the signature to some other number, type "uniqueid disk ID=[NEW SIGNATURE]" (without the quotes) where "[NEW SIGNATURE]" stands for the new identifier you want for the disk (without the square brackets and without the quotes). However, before you do that, you may want to type "help uniqueid disk", which will give you more information on how the command works. You may also want to find out the disk signatures of your other disks on your system before you modify your current one so that you don't cause a new signature collision in trying to solve your current problem. In addition, if you're really not sure how many digits you should give your disk, perhaps try changing only one digit of the current signature (eg, increasing or decreasing it by 1). Remember my disclaimer above: I really don't know what I'm talking about here: do it at your own risk.

  8. To quit DiskPart, type "exit". Incidentally, in case you get lost while running DiskPart, when you are at the "DISKPART>" prompt, you can type "help" to get a list of commands. Typing "help" followed by the command typically gives you more info about that command.

    Once you've quit DiskPart, type "exit" again to quit the Administrator Command Prompt.

Source: http://www.howtohaven.com/system/change-disk-signature.shtml

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

General

Execute Query to Set a SQL Variable

by jeff 6. June 2011 06:22

For those of you in need of setting a variable value based on a parameterized query:

 

declare @RecordCount int

declare @sql nvarchar(4000)

set @sql = N'select @RecordCount = (select count(*) from TABLE)'

exec sp_executesql @sql,N'@RecordCount int output', @RecordCount output

select @RecordCount

Source: http://support.microsoft.com/kb/262499/en-us

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Development | SQL Server

Import XML File into a SQL Table

by jeff 25. May 2011 02:21

Here is a brief example of importing an XML file into SQL Server table. This is accomplished by using the BULK option of OPENROWSET to load the file, and then utilizing the XQuery capabilities of SQL Server to parse the XML to normalized table format. This example requires SQL server 2005 or SQL Server 2008.

First, the following XML is saved to XML file C:\Products.xml.

<Products>

  <Product>

    <SKU>1</SKU>

    <Desc>Book</Desc>

  </Product>

  <Product>

    <SKU>2</SKU>

    <Desc>DVD</Desc>

  </Product>

  <Product>

    <SKU>3</SKU>

    <Desc>Video</Desc>

  </Product>

</Products>
Next, a table named Products is created to store the XML data.

CREATE TABLE Products( sku INT PRIMARY KEY, product_desc VARCHAR(30));


Finally, the following statement will load the XML file, parse the XML elements to columns, and insert into the Products table:

INSERT INTO Products (sku, product_desc)

SELECT X.product.query('SKU').value('.', 'INT'),

X.product.query('Desc').value('.', 'VARCHAR(30)')

FROM ( SELECT CAST(x AS XML)

FROM OPENROWSET(

BULK 'C:\Projects\MM\Projects\JobFeedXML',

SINGLE_BLOB) AS T(x)

) AS T(x) CROSS APPLY x.nodes('Products/Product') AS X(product);

bulk_column_alias

Is an optional alias to replace a column name in the result set. Column aliases are allowed only in SELECT statements that use the OPENROWSET function with the BULK option. When you use bulk_column_alias, specify an alias for every table column in the same order as the columns in the file.

Source: http://msdn.microsoft.com/en-us/library/ms177634.aspx 

Source: http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html

Source: http://msdn.microsoft.com/en-us/library/ms191184.aspx#existing_row
 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Development | SQL Server

Flash Player Causes IE9 to Crash on Windows 7 64-bit

by jeff 30. March 2011 04:39

If you, like me, have exhausted all possible solutions to viewing Flash content within IE9 (let me google that for you), try the following.

Download and install the Micorsoft DirectX End-User Runtime, then reboot. This is the only solution that worked in my case; Windows 7 64-bit, IE9.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

General

Oracle VM VirtualBox; Extend/Resize Hard Disk

by jeff 4. January 2011 02:34

This is a helpful tip to extend your virtual disk; If you, like me, configured your virtual disk within your VM to the 8GB default. After configuring my Ubuntu 10.10 VM to host Android development, I reached the 8GB limit after pulling a source tree from the Android Open Source Project. The following steps helped me create a new disk form the original and increase the available disk in my VM.

 

  • Add a new drive to the VM, setting it to the desired size (not the 8GB default).
  • Download CloneZilla live from http://clonezilla.sourceforge.net/download/sourceforge/ .
  • Boot the VM to the CloneZilla ISO image.
  • Select the option to clone partition to partition.
  • In the advanced settings, select the option to "Create partition table proportionally" (this is not selected by default).
  • Select the source and destination, start the cloning process.
  • Once it's complete, shut down CloneZilla gracefully.
  • Remove the old VM drive in Media Manager.
  • Set the new cloned drive as the primary boot.
Here is an additional partitioning tool, GParted http://sourceforge.net/projects/gparted/ . Although, after following the steps listed, I did not need to partition the new drive.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Development | General

IIS Metabase Update for Multiple SSL Sites on a Single IP Address

by jeff 19. July 2010 02:46

To update the IIS metabase to support multiple SSL sites on a single IP Address:

# Metabase update for multiple SSL on single IP Address
#
# http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/596b9108-b1a7-494d-885d-f8941b07554c.mspx?mfr=true
# cscript.exe adsutil.vbs set /w3svc/<site identifier>/SecureBindings ":443:<host header>"
# Site identifier found in C:\WINDOWS\system32\inetsrv\MetaBase.xml

cscript.exe C:\Inetpub\AdminScripts\adsutil.vbs set /w3svc/
<site identifier>/SecureBindings "192.168.0.1:443:test.myersmedia.com"

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ASP.NET | Development

IIS ASP.Net Snap-in Not Appearing

by jeff 19. July 2010 02:43

On Windows Server 2003 64bit, the 32 bit IIS snap-in for ASP.Net does not appear. The following commands will add the snap-in or set the .Net version for a given application.

http://support.microsoft.com/kb/894435
ENABLE 32BIT SNAP-IN
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs get W3SVC/AppPools/Enable32bitAppOnWin64


http://support.microsoft.com/kb/894435
REGISTER ASP.NET 1.1
%SYSTEMROOT%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -s W3SVC/<INSTANCE>/ROOT

REGISTER ASP.NET 2.0
%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -s W3SVC/<INSTANCE>/ROOT

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ASP.NET | Development

A Hidden Feature in Visual Studio 2010

by jeff 11. June 2010 03:53

Thumbnail Previews

This hidden feature gives you thumbnail previews on the Ctrl+Tab UI (IDE Navigator). To enable it:

  1. Click the Start button on your desktop and select “Run…” (or press Win+R as a shortcut).
  2. Type the following line into the Run dialog (all on one line) and click “OK”

reg ADD HKCU\Software\Microsoft\VisualStudio\10.0\General /v ShowThumbnailsOnNavigation /t REG_DWORD /d 1

Now, restart or launch Visual Studio 2010, load a few files and press “Ctrl+Tab” to bring up the ‘IDE Navigator’. Presto! You should see thumbnail previews on the navigator. If you don’t see them, it may be for one of the other reasons listed in the next section.

 


http://blogs.msdn.com/b/visualstudio/archive/2010/06/05/15-minute-blog-post-a-hidden-feature-in-visual-studio-2010.aspx

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ASP.NET | Development

MRTG Configuration for NETGEAR ProSafe VPN Firewall FVS338

by jeff 1. April 2010 03:22

Finally, after tinkering around a bit, I have a working MRTG configuration for the Netgear FVS338. You must first create an SNMP entry within the router under Administration > SNMP. The community should be "public".

Target[10.1.1.1.1]: 1:public@10.1.1.1
MaxBytes[10.1.1.1.1]: 1250000
#Colours[10.1.1.1.1]: IN#333399,OUT#33cccc,Extra#ffcc66,Other#00ff99
Options[10.1.1.1.1]: growright,bits
#WithPeak[10.1.1.1.1]: wym
#XSize[10.1.1.1.1]: 600
#YSize[10.1.1.1.1]: 100
#YTics[10.1.1.1.1]: 7 
#YTicsFactor[10.1.1.1.1]: 0.01
#AbsMax[10.1.1.1.1]: 1350000
Title[10.1.1.1.1]: NETGEAR (FVS338): eth0
PageTop[10.1.1.1.1]: <b>Traffic Analysis for 10.1.1.1 eth0</b>
 <TABLE>
   <TR><TD>System:</TD><TD>FVS338 </TD></TR>
   <TR><TD>Maintainer:</TD><TD>admin</TD></TR>
   <TR><TD>Interface:</TD><TD>eth0 (2)</TD></TR>
   <TR><TD>IP:</TD><TD>(10.1.1.1)</TD></TR>
   <TR><TD>Max Speed:</TD>
       <TD>1250.0  kBytes/s (ethernetCsmacd)</TD></TR>
  </TABLE>
 

 

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Development | General

Using Symlinks in Windows

by jeff 19. March 2010 01:00

From Tested.com

To create a symlink, open your command prompt--the quickest way is to press the Windows key and type cmd at the prompt--and browse to the folder you want to create a symlink in using  basic DOS commands. Once you're there, you'll use the mklink command to create your link. The basic structure of the command is mklink <arguments> <symlink> <targetoflink>. I'll break that down for you.

There are several arguments that mklink can take, but you'll probably only use two. The most useful command is the /j option, which lets you make a symlink to a directory. This will make the linked directory appear in a second location on your hard drive. You may also create a hard link to an individual file, rather than a directory by using the /h argument. The third option, /d, creates a soft link, which is more akin to a shortcut. The difference between the soft link and the hard link is that the file you hard link to appears to be stored in the link's location on the drive, while the soft linked file appears to be in its original location. If you want to symlink a directory, you must use the /j option.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

General




RecentComments

Comment RSS