The ThinState USB disk is split into 2 partitions. And the second partition isn’t accessible in Windows so it was very hard to build a stick from scratch. There are a lot of Windows USB clone tools but because I had to clone the ThinState 16GB to a 8GB stick also, it was impossible to do it from my windows workstation. But when some things get more difficulty what do you do? Use Linux 🙂
The Easy way (same USB stick size or bigger):
$sudo dd if=/dev/sdb of=/dev/sdc bs=512
The “Hard” way (clone to smaller USB):
First resize the partitions with gparted to the minimum size. Then find out the last sector of the /dev/sdb2 (where sdb2 is my USB stick)
$sudo fdisk -u -l /dev/sdb
Disk /dev/sdb: 14,9 GiB, 16026435584 bytes, 31301632 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x6a60ab98
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 2099199 2097152 1G b W95 FAT32
/dev/sdb2 2099200 14131199 12032000 5,8G 7 HPFS/NTFS/exFAT
Now use dd with sector 12032000 + 1.
dd if=/dev/sdb of=/home/myusername/usbimage.img count=12032001
and write the *.img file back to your new USB stick:
dd if=/home/myusername/usbimage.img of=/dev/sdb
For: Windows Server 2008 R2 (64-bit)
Copy the following files:
> copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe C:\Windows\System32\
> copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui C:\Windows\System32\en-US\
> copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_nl-nl_72d752f33b5fc86a c:\Windows\System32\nl-NL\
Run the cleanmgr.exe:
Try to turn hyper-v off
bcdedit /set hypervisorlaunchtype off
and a reboot. To turn it back on:
bcdedit /set hypervisorlaunchtype on
If you have a new computer you always must install the same tools. There is an very nice installation tool that automate this process. All the crap with the installers is deselected by default.
- Go to: https://ninite.com/
- Select the apps
- Click “Get installer”
- Run the installer
- The software will be download and installed
I had 2x HP DL 380 G6 servers with Windows 2012 R2 whit the same problem. When I start a download (I try a lot of different sites) the download drops and fluctuate. When I connect my laptop or another server on the same cable the download is stable. So my conclusion was the onboard nic.
What I tried:
- Update latest HP SSP (2014_2)
- Update firmware NIC
- Update driver NIC
- Update Windows (patches)
- change all the default nic settings like disable tcp offload for example
- Try another switch
Bandwidth during download:
I thought the problem must be the NIC so I added an intel pro to my server with the same result 🙁
Then I found the command netsh interface tcp show global
C:\Windows\system32>netsh interface tcp show global
Querying active state...
TCP Global Parameters
Receive-Side Scaling State : enabled
Chimney Offload State : disabled
NetDMA State : disabled
Direct Cache Access (DCA) : disabled
Receive Window Auto-Tuning Level : enabled
Add-On Congestion Control Provider : none
ECN Capability : enabled
RFC 1323 Timestamps : disabled
Initial RTO : 3000
Receive Segment Coalescing State : enabled
Non Sack Rtt Resiliency : disabled
Max SYN Retransmissions : 2
I dived in to these settings and I found the “Receive Window Auto-Tuning Level on enabled”. So I disabled the setting with:
netsh int tcp set global autotuninglevel=disabled
After that setting the network connection to the internet was stable 🙂
I found an article on the net that Cisco PIX IOS 8.0 doesn’t support “TCP Window Scaling”. Source: http://www.cisco.com/c/en/us/support/docs/security/ios-firewall/71613-iosfw-tcp-scaling-ts.html
So I use the workaround to disable the Automatic Windows Scaling in Windows because I can’t update our old PIX.
Problem solved 😀
When you run Acronis version 10 on a Windows 2008 R2 you get the error “0xc0000225 – Boot selection failed because a required device is inaccessible.
To fix this problem:
- Boot Windows 2008 R2 CD
- Select repair
- Run command line
- Now run these commands
Reboot the server and your windows is running again.
I have an HP 6560b laptop with windows 8 installed. But HP driver support for Windows 8 is very very bad… I don’t go too deep in to de details but the network driver, video driver, auto-update software (HPSoftpaq) and hardware support and sucks big time :X
I bought a bluetooth speaker but the HP wireless assistant isn’t available for windows 8 so you can’t enable bluetooth. What you must do to get this working is reboot your laptop, press F10, and reset your BIOS to default.
When you boot Windows you will see an bluetooth icon (out-of-the-box windows drivers are working fine 🙂 )
Best way to clean malware, rootkits, trojans and virusses (I call it malware from now on) is to backup your data, scan your data with another computer, remove your partition, reinstall Windows, install a virusscanner, update your Windows and put you data back. This is the safest method and I allways recommend this to people.
But if you don’t want to reinstall everything you can follow this steps to get a infected pc clean.
- Go to http://support.kaspersky.com/viruses/rescuedisk/main?qid=208286083 and download the USB util and the Kaspersky Rescue Disk 10 image
- Create a bootable USB disk with the USB util. You also can burn the ISO to a CD
- Boot from the USB/CD
- Make a network connection (I recommend using a network cable)
- Update the virus definitions
- Select all options and do a full system scan. This can take about 1,5 hour. Maybe longer if you use a slow disk/pc
- Clean all the malware
- Exit the rescue disk and boot windows
- Now download Kaspersky TDSSKiller @ http://support.kaspersky.com/faq/?qid=208283363
- Install the TDSSKiller software, scan the pc and remove the rootkits. It is almost impossible to clean a rootkit with a standard virusscanner. And because of some rootkits you can’t install drivers so you can’t load an antivirus real time protection.
- Now install a virusscanner. I recommend MS Security Essentials. This is a free antivirus software.
- Update the antivirus (this can take 45 min the first time so please be patient) software and do a full scan.
- Now download and install Malwarebytes Anti-Malware and do a full system scan.
- Update your Windows true windows update (and turn automatic updates ON!), update your browser, update Java and Flash or remove it.
Now your pc is clean of almost any type of malware and ready to protect it for new malware. All steps together takes almost 6 hours of scanning. So maybe reinstall your operating system is always the best option 😉
This steps helped me to clean a very bad infected laptop that had not any antivirus realtime protection installed. If this steps also helps you to fix a infected pc please leave a comment below or buy me a beer (see widget on the right).
By default the Roaming profile is only accessible for the owner (end-user) and the system account. I found a post on the internet with a workaround to access the profile without problems to the end user.
Using two tools, the first is SubInAcl.exe available from Microsoft (download), and the second is cacls.exe which you should already have by default in Windows.
These first two commands will give the local administrators group ownership of the user’s folder and everything underneath. NOTE: This will not change any existing permissions.
SubInAcl /subdirectories D:\Profile\User.Name /setowner=Administrators
SubInAcl /subdirectories D:\Profile\User.Name\*.* /setowner=Administrators
This second command will give the local administrators group full access to the user’s foldercacls
D:\Profile\User.Name /T /E /C /G Administrators:F
Today I found a very nice cross platform Paint.NET program clone with the name Pinta.
Now I can edit images on every platform (OSX, Linux & Windows) and use always the same interface and hotkeys for the few times a year I need a simple paint prgram.
When you install the software under windows do not forget to install the “Gtk# for Windows“. Without the GTK the program don’t start and don’t give any error.
You can find the software here: http://pinta-project.com/