Tuesday, January 24, 2012

How to Properly Disable Offline Files in Windows 7

Check the following blog http://blogs.technet.com/b/askds/archive/2009/03/12/how-to-properly-disable-offline-files-in-windows-vista.aspx. What if worked for me is this part:

"To enable/disable Offline Files via WMIC:

We use the Enable method of Win32_OfflineFilesCache to enable or disable offline files. Simply pass the Enable method a Boolean value.

Execute the following command from an elevated command prompt:

wmic path win32_offlinefilescache call enable false

... a reboot is required for the new setting to take effect."

It worked for Windows Vista, too.

Friday, December 2, 2011

windows 2008 R2 shows inaccessible boot device 0x0000007B because system reserved partition is using C drive letter


Problem: While starting, Windows 2008 R2 shows a blue screen and the inaccessible boot device message or the error 0x0000007B in a BSOD.

Resolution: for any reason Windows marked the System Reserved partition as active and assigned a letter. Because of that, Windows is trying to boot from the incorrect partition and the BSOD message is shown. To solve this:

  1. boot from the Windows DVD, select the language of the keyboard in the first screen and then choose the repair Windows installation from the lower left side of the screen.
  2. It doesn’t matter if the setup program detects your windows installation in the wrong letter. Select it and then choose the command prompt tool from the recovery options available
  3. In the command prompt type:


  • diskpart
  • list disk. (make note of the OS disk, for example 0)
  • select disk 0
  • list vol (shows the volumes in the disk). You should see there that SYSTEM RESERVED is assigned the C letter and your Windows partition other (for example D as the example below:
  
Volume      Ltr  Label        Fs     Type        

----------  ---  -----------  -----  ----------
Volume 0     F                       DVD-ROM     
Volume 1     D   System Rese  NTFS   Partition     
Volume 2     C                NTFS   Partition    

  • select volume 1
  • remove letter=d
  •  exit



Using diskpart make sure the C partition is marked as active.

After rebooting, boot again from the DVD, choose repair installation and notice that the setup program now detects your windows installation with the letter C.
You can then run from a command prompt Bootrec /rebuildbcd to rebuild the bcd store and then you can access the startup repair option by running “x:\sources\recovery\StartRep.exe”.

Finally, in the next boot it is possible that a new BSOD is shown. In my particular case, after reboot from that BSOD Windows show me the menu with the recovery options shown when you press F8; choosing Last Good Known configuration finally started the server.




Tuesday, July 26, 2011

Understanding file transfer rates in a network

Have you ever wanted to know the reason you only get less than 100 Mbps rates when copying files between computers in a network that uses Gigabit equipment? Check the following link http://www.tomshardware.co.uk/gigabit-ethernet-bandwidth,review-31611.html  for a good explanation about this. Summary:

1) Gigabit is not the same as Gigabyte. There is no a Gigabyte network but only Gigabit ones. Gigabit is only 125 Mbps.
2) Hard Disk speed has a lot to say in the copying process.

Monday, May 16, 2011

How to move a Oracle Datafile to another partition

1) Query and write down the current location of the datafiles from the V$DATAFILE view: SELECT name FROM v$datafile;

2) Connect to SQL Plus as sysdba

3) Run the following commands from SQL Plus:

* SHUTDOWN IMMEDIATE

* HOST MOVE <<original location file>> <<new location file>>

* STARTUP MOUNT

* ALTER DATABASE RENAME FILE <<original file location obtained from step 1>> - (press enter after the dash)
> TO <<new file location>>; (the semicolon is important)


* ALTER DATABASE OPEN;
4) Repeat the initial query so you can verify that the the datafile has been renamed in the data dictionary


Note: file locations must be between apostrophes '...............'