Skip to main content

Posts

Showing posts from March, 2017

Google Search

Custom Search

Live Search

Yahoo Search


Search the web Search this site

Removing all Partitions from a Disk

Today I thought of writing an article on how to remove all the partitions from a disk so you can re-use the disk.If you tried removing existing partitions using the Computer Management (type computer management on the start menu to open it) tool in Windows you will find that, you can delete partitions by right clicking on the partition / volume and clicking on Delete Volume option.However you will notice Computer Management is useless on some of the protected volumes since the options to work on them will not be available.In this case you will need to use the DiskPart utility in the Command Prompt.In the Start type Cmd or Command Prompt to open a command prompt. Then type DiskPart, it is a powerful utility which can even work on protected volumes.In my case, I would like to work on Disk 3 to remove all the existing volumes on it. Below are the steps required to clean the drive.1. Select the disk.List all the disks by typing List Disk, this will list all the disks connected and active …

Removing a Partition from a Disk

You can remove simple partitions by using the Computer Management tool found in Windows. Search for it on the Start menu to launch it.But if it is a protected partition you will need to use the tool DiskPart. In the Start menu type Cmd or Command Prompt to open a command prompt. Then type DiskPart, it is a powerful utility which can even work on protected volumes.To delete one partition, follow the steps.1. List all disks by using the command List Disk.2. Select the disk by using Select Disk x command.3. You can confirm the disk by listing all the partitions on it by using the command List Partition.4. Select the partition by using the command, Select Partition x command.5. Delete the partition by command Delete Partition Override.Override parameter needs to be passed if the partition is not a simple data partition.You can confirm the deletion by re-listing the partitions on the disk by List Partition command.

SQL – The target principal name is incorrect. Cannot generate SSPI context.

Recently in one of my Virtual Machine (VM)s I received the above error message when trying to connect to a SQL Server which I used to connect on other times.After having a look I found that the trust between my virtual machine and the domain was broken. You can find the status of the secure channel by using the PowerShell command Test-ComputerSecureChannel.This will also be evident when you try to login to the computer using a domain account. It will generate the following message.To fix this you can try using the below methods.1. PowerShellUse the command Test-ComputerSecureChannel.If your current login has the required access in the domain you can use the below command.Test-ComputerSecureChannel –RepairIf you need to use another account than the current logged user then you need to use the –Credential parameter when calling the command.Test-ComputerSecureChannel –Repair –Credential MyDomain\MyUser2. Joining the domain again.This will also get fixed by removing the machine from the d…