Pages

Tuesday, 27 August 2013

WIndows 8 activation details

SLMGR.vbs /dlv

Friday, 23 August 2013

How to: Install Windows 8 on a pen drive

This How to will demonstrate how you can install and run Windows 8 from a USB drive without disturbing your existing operating system on your PC.
Windows 8, the latest edition to Microsoft's OS evolution is making big waves in the PC arena. We are sure that many of you are eagerly waiting to try out the new Windows 8 Preview on your PCs, to have a first look and glimpse of what Microsoft has in store for you with the new operating system. Installing Windows 8 on your PC, which already has Windows 7 or Windows XP installed can be quite a task—backing up data, clearing space for the new OS, reinstalling, and so on. However, before that, the pain of burning the downloaded ISO file on a DVD or on a USB pen drive to get the installation ready also makes it a killing task. We shall show you how you can relax and enjoy the complete features of Windows 8 on your existing PC without going through any of the above cumbersome exercises and run the new operating system in less than half the time.

This How to will reveal the installation of Windows 8 on any USB storage and then running the operating system directly from the USB drive, itself. You will not have to go through any of the painful set-up procedures that the set-up installer asks, while installing Windows 8 on your PC. All you need to do is download a simple utility, a 16GB or higher USB storage drive, the Windows 8 ISO file, WinRAR archiver and your existing PC. Before we begin, we would like you to know that using a USB pen drive will suffice, but since the speed of a regular USB pen drive is very sluggish, we recommend using an external USB storage drive.

How to Create a Program Shortcut to Run Without the UAC Prompt in Windows 7

Do you have a program or script that has to be run as administrator and you want a shortcut for it that doesn’t bring up User Account Control (UAC)? Here is a simple trick that will get rid of the annoying UAC prompt.
The trick makes use of Windows Task Scheduler to create a task with highest privileges. The task is then used in a shortcut. First, create the task:
  1. Open Task Scheduler by entering “sched” (without quotes) in the Start search box. Another way is  Control Panel-System and Security-Administrative Tools-Schedule tasks.
  2. In the right pane of the Task Scheduler interface (shown in a previous tip), click “Create Task”.
  3. The dialog shown below will open.Create a task
  4. Give the task a name. You will need to use this later.
  5. Be sure to check the box by “Run with highest privileges”. This is what keeps the UAC prompt from popping up.
  6. Click the tab “Actions”
  7. Click the button "New..."
  8. The dialog window shown below will open.Add an action to the task
  9. Enter or browse to the full path and name of the program you want to run. If it has spaces,  enclose the entire path and name in quotation marks.
  10. Click "OK"
  11. If you are using a laptop or other battery-powered device, click the "Conditions" tab and remove any power settings that might interfere with running on a battery.
  12. Click “OK”
Next, you create a shortcut to run the task:
  1. Right-click on an empty spot on the desktop.
  2. In the context menu that opens, choose New—Shortcut.
  3. In the box under “Type the location of the item”, enter
         schtasks /run /tn "your_taskname"
    where your_taskname is what was used in step 4 above. Be sure to keep quotes around the task name.
  4. Click “Next”
  5. Enter a name for the shortcut.
  6. Click “Finish”
  7. Place the shortcut anywhere convenient. 
And there you have it – a shortcut that will run a program with elevated privileges without the UAC dialog popping up.

Thursday, 22 August 2013

How to Delete Files Protected by TrustedInstaller

Windows 7 – How to Delete Files Protected by TrustedInstaller

November 12th, 2009 by Aseem Kishore | File in: Windows 7
Did you know that a lot of files in Windows 7 are not owned by you, even if you are the Administrator? They are instead owned by an entity called the “Trusted Installer”. Such a wonderful sounding name eh!
So that’s not a problem most of the time, unless you need to delete certain system files and folders. You’ll end up getting a message like:
You do not have permission to perform this action.
or something like:
You need authorization from TrustedInstaller in order to perform this action.

Sunday, 4 August 2013

windows7 install from partition

DO NOT FORMAT THE PARTITION AS IT WILL OVERWRITES THE BOOT MANAGER AND THERE WILL BE NO CHANCE FOR INSTALLATION TO CONTINUE AFTER REBOOT.

Saturday, 3 August 2013

Computer maintenance after install

delete hyberfile.sys  
    remove it by changing advanced power options hybernate "never" 3gb
    and run powercfg -h off

delete pagefile.sys
    mycomputer>properties>advancedsettings>performance 4.5gb

winsxs folder size reduce
    DISM /online /clear-image spsuserprep  >7gb

systemrestore points less
    mycomputer>properties>systemprotection  .5gb

delete files in C:\windows\software distribution\download\  2gb

Tuesday, 12 March 2013

Indian Spices

List of Indian spices

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Indian spices include a variety of spices that are grown across the Indian subcontinent (South Asia). With different climates in different parts of the country, India produces a variety of spices, many of which are native to the Subcontinent, while others were imported from similar climates and have since been cultivated locally for centuries.

Indian spices
Spices are used in different forms - whole, chopped, ground, roasted, sauteed, fried and as topping. They blend food to extract the nutrients and bind them in a palatable form. Some spices are added at the end as a flavouring and are typically heated in a pan with ghee or cooking oil before being added to a dish. Lighter spices are added last, and spices with strong flavor should be added first. Curry is not a spice, but a term used by western people and refers to any dish in Indian cuisine that contains several spices blended together and could be with a gravy base or a dry item. A curry in Indian cuisine typically consist of whey cooked with gram flour, chopped onions, tumeric powder and several spices blended together and some that are fried and added in the end as flavouring.



List of Indian spices

Below is a list of spices and other flavoring substances commonly used in India.
Indian common name (Hindi written in English) English name Hindi name
Telugu name Comments
Adrak Ginger अदरक
అల్లం Used as fresh and also Dried Powder form, see "Sonth"
Aamchur/Amchoor powder Sour dried mango powder आमचूर / अमचुर
మామిడి చూర్ణము gives fish curries tartness
Ajmud Celery / radhuni seed अज्मुद,अज्मोदा
వాము
Ajwain Carom/thymol seed अज़वाइन
వాము, યવાનો, जवानो, ਐਜਵਾਇਨ, അയമോദകം
Amla Indian gooseberry आँवला
ఉసిరి కాయ / పప్పు
Anardana Pomegranate seed अनारदाना
దానిమ్మ, గింజలు Dried not fresh. Is ground in Middle East.
Bazil / Basil Fresh basil बाजील


mayur Badam Almond बादाम
బాదాం
Choti Elaichi Green cardamom छोटी इलाइची
ఏలకులు Malabar variety is native to Kerala.
Badi Elaichi Black cardamom बड़ी इलाइची

Very earthy and darkly aromatic.
Chakra Phool Star anise चक्र फूल, बदल फुल
అనసపువ్వు Exotic, Chinese influenced flavors
Char Magaz Four seeds


Seeds of Water melon, musk melon,cucumber and pumpkin
Chironji Charoli चिरोंजी
సార పప్పు a type of nut particularly used in making desserts
Camiki Mango extract कामिकी


Dalchini Cinnamon दालचीनी
దాల్చిన చెక్క Grown commercially in Kerala in southern India. Two types, cassia (common) and royal.
Dhania/hara dhaniya Coriander seed धनिया
ధనియాలు
Garam masala/Kadha Masala Spice mixture गरम मसाला
గరం మసాలా Blend of 8+ spices. Each family has their own secret recipe.
Gulab Jal or Arq Distilled Rose water गुलाब जल
పన్నీరు Flavors desserts. Heavily used in Middle East.
Gur Jaggery (unrefined sugar) गुड़
బెల్లము from the sap of the sugarcane or date palm
Haldi Turmeric हल्दी
పసుపు Source of "yellow color" in many curries.
Hara dhaniya Fresh coriander हरा धनिया
కొత్తిమీర Fresh green leaves. AKA Cilantro.
Harad / Harr /Haritaki Inknut Terminalia chebula हरद
కరక చెట్టు,
Hari Mirch Green chili pepper हरी मिर्च
పచ్చి మిరపకాయలు
Dhania powder/ Pisa Dhania Coriander powder धनिया पाउडर/पिसा धनिया
ధనియాల పొడి,
Hing Asafoetida हींग
ఇంగువ Intensely aromatic - related to Truffle and Garlic
Imli Tamarind इमली
చింతపండు Provides tartness in South Indian curries
Jaiphal Nutmeg जैफल/जायफल
జాజికాయ Whole nuts last forever. Powder, only a month.
Javitri Mace जावित्री
జాపత్రి Mace is outer covering to nutmeg nut. Similar aroma.
Jeera Cumin seed ज़ीरा
జీలకర్ర See Kali Jeera.
Jeera Goli Cumin seed grounded into balls ज़ीरा गोली
'జీలకర్ర వుండ'
Jethimadh Licorice powder जेठीमध
యష్టిమధుక్కం
Kachra Capers कचरा, कब्र, करेर
మరాఠీ మొగ్గు, ముముదాటు, also known as Kabra, Karer in Hindi
Kadipatta Curry tree or sweet neem leaf करीपत्ता / कढ़ीपत्ता
కరివేప ఆకు, Cannot retain flavor when dried. Only use fresh.
Kaju Cashew nut काजू
జీడి పప్పు
Kala Namak / Sanchal Black salt काला नमक / संचल
నల్ల ఉప్పు Rock salt, but with very sulfury smell.
Kali Elaichi Black cardamom काली इलाइची
నల్ల ఏలకులు Earthy, much used in North Indian curries.
Kali Mirchi Black pepper काली मिर्च
నల్ల మిరియాలు, Largest producer is the southern Indian state of Kerala.
Kalonji Nigella seed कलोंजी
నల్ల జీలకర్ర,
Kasoori Methi Dried Fenugreek leaf कसूरी मेथी
మెంతి ఆకులు, menthi aakulu
Katira Goond Gum tragacanth कटीरा गोंद

A thickener and coating for desserts
Kebab Cheeni / Kabab Chini Cubeb कबाब चीनी
తోక మిరియాలు Tastes of Clove + Persistent Mild Numbing + Bitterness
Kesar, mayur Saffron केसर, जाफरान
కుంకుమ పువ్వు, World's most expensive spice. Flavoring for rice.
Kesar mari mari Saffron pulp केसर मिरी मिरी,
కుంకుమ పూల పొడి Actually, safflower concentrate
Khajur Dates खज़ूर,
ఖర్జూరం
Kokum Garcinia indica कोकम,


Khus Khus Poppy seed खस-खस
గసగసాలు
Kudampuli Garcinia gummi-gutta


Used in fish preparations of Kerala
Lahsun Garlic लहसुन
వెల్లుల్లి పాయ, vellulli paaya
Lal Mirchi Red chili pepper लाल मिर्च
మిరప కాయలు,
Lavang Cloves लवंग / लौंग
లవంగం Andhra Pradesh, Kerala, Tamil Nadu and Karnataka are largest producers in India.
Kali Mirch Peppercorns काली मिर्च
miriyalu, మిరియాలు
Methi leaves Fenugreek leaf मेथी पत्ता
మెంతి ఆకులు,
Methi seeds Fenugreek seed मेथी दाना
మెంతులు,
Naaga Keshar Cinnamon buds नाग केशर


Namak Salt नमक
ఉప్పు, uppu
Nimbu Lemon / Lime नींबू
'నిమ్మ కాయ',
Pudina Mint पुदीना
పుదీన
Pyaz / Kanda Onion प्याज / कांदा
ఉల్లి పాయ,
Panch Phoron Panch Phoron पञ्च फोरन

This is a Bengali spice mix that combines aniseed, cumin, fenugreek, mustard and nigella
Pathar Ka Phool Kalpasi पत्थर के फूल
కల్లుపచి, Also known as black stone flower
Pippali Long pepper पिप्पलि
అనాసపువ్వు
Peeli Mirchi Yellow pepper पीली मिर्ची


Rai Brown mustard seed राई
ఆవాలు,
Ratin jot Alkanet[disambiguation needed] root रातीं जोट


Safed Mirchi White pepper सफ़ेद मिर्च
తెల్ల మిరియాలు,
Saji na phool Citric acid सजी न फूल


Sarson Mustard seed सरसों,
ఆవాలు, సరసావాలు,
Sarson ka Tel Mustard oil सरसो तेल
ఆవ నూనె shorsher tel
Saunf/Sanchal Fennel seed सौंफ / संचल
సోంపు
Shah Jeera Black Cumin शाही जीरा
నల్ల జీలకర్ర, smaller in size than regular cumin. Often mistaken as Caraway seed. Though English translation is Black Cumin, the term black cumin is also used as English translation of Nigella sativa, kalonji
Sirka Vinegar सिरका
সির্কা
Soa sag Dill सोया साग
శతపుష్పము, వకతరహా తోటకూర, ചതകുപ്പ,
Sonth Dried ginger सोंठ
సొంఠి mostly powdered
Suwa or Shopa Aniseed सुव्वा / शोप
సోంపు
Tej Patta Indian bay leaf, bay leaf तेज पत्ता
బిర్యానీ ఆకు Both Indian bay leaf and bay leaf are similar and called as Tej Patta in Hindi. however, they are from two different species and have differences in taste
Til Sesame seed तिल
నువ్వులు
Shimla Mirch Capsicum शिमला मिर्च


Kala Zeera Black cumin काला जीरा

Sweet, floral and smoky cumin and anise-like flavor.
Tulsi Holy basil तुलसी
తులసి, తులసి ఆకు

Tuesday, 26 February 2013

How to Download your windows Updates manually

Open your internet explorer and type / copy-paste in the following link
http://test.catalog.update.microsoft.com/v7/site/Home.aspx
Or
http://test.catalog.update.microsoft.com/
“What it does is, detect your system automatically.” And you’ll see a search bar.

Monday, 25 February 2013

Cleanup Winsxs after Windows 7 SP1 install

I recently noticed that the free space on the 60GB OS partiton on my laptop was running very low on space. Some of this was due to old offline files which I managed to cleanup fine.
I then ran Tree Size on the OS partition and found that the winsxs folder was 10.2GB.
After a bit of research I managed to use the command below and reduced the winsxs by 4GB

DISM /online /Cleanup-Image /SpSuperseded

The command needs to be run from an elevated command prompt and you cannot uninstall the Service Pack after it completes

Sunday, 24 February 2013

Create Administrator Mode Shortcuts Without UAC Prompts in Windows 7 or Vista

One of the most talked about annoyances in Windows Vista are the UAC prompts that constantly pop up when you are trying to make system changes. It’s especially irritating when you often need to run a particular tool that requires administrator mode in order to run. Thankfully there’s a simple hack that you can do to create an administrator mode shortcut that doesn’t prompt for UAC.
Note: This should also work on Windows 7.
This works by setting up a scheduled task to run the application in Administrator mode, and then setting up a separate shortcut that tells the scheduled task to run. If that sounds difficult, it’s really not… just follow through the instructions below.
Note: Because you are required to click through a UAC prompt to setup the scheduled task, it’s not really a security loophole.

Saturday, 23 February 2013

Change the System/Boot Drive Letter

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
  1. Make a full system backup of the computer and system state.
  2. Log on as an Administrator.
  3. Start Regedt32.exe.
  4. Go to the following registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
  5. Click MountedDevices.
  6. On the Security menu, click Permissions.
  7. Verify that Administrators have full control. Change this back when you are finished with these steps.
  8. Quit Regedt32.exe, and then start Regedit.exe.
  9. Locate the following registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
  10. Find the drive letter you want to change to (new). Look for "\DosDevices\C:".
  11. Right-click \DosDevices\C:, and then click Rename.

    Note You must use Regedit instead of Regedt32 to rename this registry key.
  12. Rename it to an unused drive letter "\DosDevices\Z:".

    This frees up drive letter C.
  13. Find the drive letter you want changed. Look for "\DosDevices\D:".
  14. Right-click \DosDevices\D:, and then click Rename.
  15. Rename it to the appropriate (new) drive letter "\DosDevices\C:".
  16. Click the value for \DosDevices\Z:, click Rename, and then name it back to "\DosDevices\D:".
  17. Quit Regedit, and then start Regedt32.
  18. Change the permissions back to the previous setting for Administrators (this should probably be Read Only).
  19. Restart the computer.

Getting Back Win8 gui bootmgr

The actual presentation (graphical or text) depends on many properties that can be set to the entries in the BCD store. An easy way to restore the defaults for Windows 8, effectively restoring the graphical boot menu, would be the following:
  1. Open an elevated command prompt inside Windows 8, for example via +X and then A.
  2. There run the following command:
    bcdboot C:\Windows (C should be the letter for your Windows 8, change it if it's not)
That command will replace the boot files with the ones from Windows 8, set the Windows 8 menu entry as the default one and set the parameters in the BCD to the default ones hence next time you reboot you'll see the graphical menu.

Friday, 22 February 2013

WinVBlock in a Windows XP/2003 PE environment

http://reboot.pro/topic/8168-winvblock/

Make sure you include:
  • \I386\System32\Drivers\WVBlk32.SYS (or WVBlk64.SYS)
Make sure TXTSETUP.SIF includes:
...

[SCSI.Load]

wvblk32 = wvblk32.sys,4

Thursday, 21 February 2013

Creating a Basic Unattended Setup

An answer file is a way to script the answers for a series of graphical user interface (GUI) dialog boxes. An answer file also tells Setup how to interact with the $OEM$ distribution folders and files you create, and supplies Setup with all of the information that the end user would provide during a typical Windows Setup.

With the XP SP2 Deployment Tools you downloaded, simply extract them to a folder, or double click on the Cab file. The only files you will need is setupmgr.exe and ref.chm:

Unattended XPCD

Installing XP From An .iso File


It is possible to use the firadisk driver to install Windows XP from an .iso file without editing the Windows installation media. The following method has been adapted from posts here and here by boot-land member fujianabc.
This method requires a floppy disk image (containing the firadisk drivers and a setup file txtsetup.oem) and a Windows installation CD image file.
To create the floppy disk image -
  1. Use ImDisk to create and mount a floppy disk image C:\firadisk.ima as drive R: with the following command -
    imdisk -a -s 1440K -m R: -o fd -f C:\firadisk.ima -p "/fs:fat"
  2. Create file R:\txtsetup.oem containing the following text -
  3. Copy firadisk.inf, firadisk.sys and firadisk64.sys to drive R:
  4. Unmount drive drive R: using the following command -
    imdisk -d -m R:

Method 1

Install windows XP from a Grub4dos bootable USB drive (this assumes that the BIOS supports USB booting and recognises the USB drive as a hard disk type device (hd)) -
  • Copy the Windows XP .iso file to the USB drive - we will be using xp.iso
  • Copy firadisk.ima (the floppy disk image containing the firadisk drivers and txtsetup.oem) to the USB drive
  • Create menu.lst file at the root of the USB drive with the following entries -
  • Change the BIOS settings on the target PC (the machine you plan to install XP to) to boot from the USB stick - when the system boots the USB stick will become device (hd0) and the hard disk will become device (hd1), hence the menu.lst entries -
  • Boot the target PC from the USB stick and select option XP setup from iso - this will load the Windows installation image file to system memory. Loading times will vary - the test system booted using USB 2.0 speeds and mapped the image in approximately 90 seconds.
  • When the image has finished loading into RAM Windows setup should begin - follow the instructions on screen.
  • After the first stage of the Windows installation has completed the PC will reboot - this will clear the mapped .iso image from RAM. If the BIOS settings were configured correctly the USB stick will be booted. The iso image must be remapped prior to restarting the install - select option Continue XP setup.
  • During the second stage of the installation you will be prompted with a warning that FiraDisk Virtual Disk Enumerator has not passed Windows Logo testing... click on the Continue Anyway button.
  • The setup process should now continue as normal. When prompted to reboot the PC remove the USB stick and change the BIOS settings back to normal.
Source:  http://diddy.boot-land.net/firadisk/files/win_iso_install.htm

Wednesday, 20 February 2013

Booting windows 7 install from grub4dos

from grub command shell type these commands, dvd is copied in a hard disk first partition
root (hd0,0)
chainloader /bootmgr
boot

or


Grub4DOS


Here's a sample entry (source):
title fdfullcd.iso (0xFF)
  find --set-root /fdfullcd.iso
  map /fdfullcd.iso (0xFF)
  map --hook
  root (0xFF)
  kernel /isolinux/data/memdisk
  initrd /isolinux/data/fdboot.img
Supposedly the Win7 ISO can be booted with this entry:
title Windows 7
  map (hd0,0)/win7.iso (hd32)
  map --hook
  chainloader (hd32)
Other ISOs can be booted with Memdisk:
title Boot Hardware Detection Tool from iso image (with 'iso' parameter)
  kernel /memdisk iso
  initrd /hdt.iso

Monday, 18 February 2013

Grub Appendix Commands


Use caution when following the built in help information - it is based on GNU GRUB and contains some legacy commands (and information) that do not always apply to Grub4dos. The following example is the output from typing help default -
grub> help default
default: default [NUM ¦ 'saved' ¦ FILE]
   set the default entry to entry number NUM (if not specified, it is 0,
   the first entry), or to the entry number saved by savedefault if the
   key word 'saved' is specified, or to the entry number previously saved
   in the specified file FILE. When FILE is specified, all subsequent
   'savedefault' commands will save default entry numbers into FILE.
Although the default [NUM] parameter works within a configuration file, using default saved does not. In addition the default [FILE] command only works with the default file included in the grub4dos download - e.g. default /default.
The following (66) commands are all recognised by Grub4dos - version 0.4.4 (build 2009-03-31)

GRUB Embedded Menu

To summarise,
(cd) and (fd) devices are not scanned for either grldr or menu.lst, unless they are the boot device.

If grldr is loaded from a (hd) device via Grub4dos code in the MBR or partition boot sector, then the partition from which it is loaded becomes the root device. This partition is scanned for menu.lst at the root of the partition and in the directories /boot/grub/ and /grub/. If menu.lst is not found in any of these locations then all supported hard disks and partitions are scanned for menu.lst (at root and in /boot/grub/ and /grub/ directories) - (cd) and (fd) devices are not searched. If menu.lst is not found then the device from which grldr was loaded remains the root device. If menu.lst is found then the partition from which it was loaded becomes the root device. menu.lst does not therefore have to be contained in the same partition as grldr.

If grldr is loaded from a (cd) device then (cd) becomes root. (cd) is then scanned for menu.lst (at root and in /boot/grub/ and /grub/ directories). If menu.lst is not present in these location then (hd) devices are scanned (at root and in /boot/grub/ and /grub/ directories) - (fd) devices are not searched. If menu.lst is found on a (hd) device then the partition from which it was loaded becomes the root device.

If grldr is loaded from a (fd) device then (fd) becomes root. (fd) is then scanned for menu.lst (at root and in /boot/grub/ and /grub/ directories). If menu.lst is not present in these location then (hd) devices are scanned (at root and in /boot/grub/ and /grub/ directories) - (cd) devices are not searched. If menu.lst is found on a (hd) device then the partition from which it was loaded becomes the root device.

A note from README_GRUB4DOS.txt if loading grldr via ntldr (the NT loader used by Windows NT/2000/XP) - "...ntldr only loads the startup code of grldr (i.e., the leading 16 sectors of grldr), not the whole grldr file". The embedding settings in the startup code consequently scans for grldr in all supported (hd) type devices. If grldr is present on more than one partition then another instance of grldr could be loaded. If for example grldr (the first 16 sectors) was initially loaded from (hd0,3) but grldr was also present on (hd0,0), then (hd0,0)/grldr would be loaded and (hd0,0) would become root.

If menu.lst is not present on the device from which grldr was loaded but multiple menu.lst files are present on other devices (e.g. on (hd0,0) and (hd1,2)) then the first instance of menu.lst is loaded - in this case (hd0,0).

Sunday, 17 February 2013

Renaming grldr


 http://diddy.boot-land.net/grub4dos/Grub4dos.htm

If loading grldr via the Windows NT/2000/XP loader (ntldr), changing the grldr filename will result in Grub4dos failing to boot. Note from README_GRUB4DOS.txt - "...ntldr only loads the startup code of grldr (i.e., the leading 16 sectors of grldr), not the whole grldr file". The embedding settings in the startup code consequently scans for grldr in all available drives - if the file was renamed it will no longer be found. The following test was carried out on a dual boot system containing Windows Vista on (hd0,0) and Windows XP on (hd0,1). (hd0,1) was set as the active partition and mygrldr (renamed grldr) was loaded via C:\mygrldr="Grub4Dos" entry in boot.ini. This resulted in the following output -
Try (hd0,0): NTFS5: No grldr
Try (hd0,1): NTFS5: No grldr
Try (hd0,3): invalid or null
Try (hd0,4): invalid or null
Try (fd0): invalid or null
Error: Cannot find grldr in all drives. Press Ctrl+Alt+Del to restart._
It is possible to change the embedded setting to search for a different file by using the grubinst/grubutil tool. The procedure is outlined in README_GRUB4DOS.txt -
  • Download the latest version of grubinst/grubutil (see here).
  • Copy grldr to C:\ drive and rename as C:\mygrldr
  • Open a command prompt and run the command grubinst -o -b=mygrldr C:\grldr.mbr - where -b=mygrldr will replace the embedded reference to grldr with mygrldr in the created file C:\grldr.mbr. Note - you can use any name for the file C:\grldr.mbr, however make sure you use the 8.3 naming convention.
  • Now load C:\grldr.mbr from Windows NT/2K/XP by adding C:\grldr.mbr="Grub4Dos" to your boot.ini file.
Alternatively, grubinst/grubutil can be used to edit an existing grldr and/or grldr.mbr file. This will require a compatible version of grubinst.
  • Copy grldr.mbr to C:\ drive and rename this file if required (making sure that you use the 8.3 naming convention). Run the command grubinst -e -b=mygrldr C:\grldr.mbr to replace the embedded reference to grldr with mygrldr. Now add entry C:\grldr.mbr="Grub4Dos" to boot.ini
  • Alternatively, copy grldr to C:\ drive and rename the file to mygrldr. Run the command grubinst -e -b=mygrldr C:\mygrldr to replace the embedded reference to grldr with mygrldr. Now add entry C:\mygrldr="Grub4Dos" in boot.ini
Unfortunately, at the time of testing, the latest version of grubinst (grubinst-1.1-bin-w32-2008-01-01) is not compatible with Grub4dos build 2009-02-05. Running command grubinst -e -b=mygrldr C:\grldr.mbr results in grubinst: Invalid input file error and grubinst -e -b=mygrldr C:\grldr results in grubinst: Version number mismatched (old=4 new=2) error.

Friday, 15 February 2013

Defragmenting boot files under Win7

Rundll32.exe advapi32.dll,ProcessIdleTasks
defrag -b %SystemDrive%
 
save it as batch file and select run as administrator
If you choose to create your own file, DO NOT NAME IT DEFRAG.BAT! 
If you do it will cause the batch file to loop over and over! 

Convert to NTFS

To convert a FAT partition to NTFS, perform the following steps.
  1. Click Start, click Programs, and then click Command Prompt.
  2. At the command prompt, type CONVERT [driveletter]: /FS:NTFS.
  3. Convert.exe will attempt to convert the partition to NTFS.

Disk Defragment Tips


Tips and tricks

  • Many users start looking for defragmentation/optimization programs when their computer becomes slow. The main reason for a slow computer is a full harddisk. A full harddisk is slow because the distance between files is greater than on a fresh practically empty harddisk. Deleting half the data on a full disk will just about double the speed. The more free diskspace, the faster your computer will be.
  • Buy a second harddisk (for example an USB harddisk) and move little used stuff from your primary harddisk to that secondary harddisk. The second disk can also be used for backing up the primary disk.
  • The first partition on a harddisk (usually the C: partition) is significantly faster than other partitions. Place your important programs on this first partition and try to use other partitions only for data that is used less often (such as music, movies, archives, backups, logfiles). From a speed perspective it is best to have only a single partition.
  • When buying a new computer, buy the biggest harddisk you can afford. Investing in a bigger harddisk gives more speed-per-dollar than investing in a faster CPU or investing in more memory. The same amount of data on a bigger harddisk is faster because the data takes up less physical space, so the harddisk heads have to travel less distance.
  • Cleanup old junk from your harddisk before running MyDefrag. You can clean Windows files with for example "Start -> Programs -> Accessories -> System Tools -> Disk Cleanup", or with something like the freeware  *  CCleaner program.
  • Reboot before running MyDefrag. This will release files that are in use, so they can be defragmented and optimized.
  • Boot into Windows safe mode by pressing F8 when booting, and then run MyDefrag. It will be slower because the Windows disk cache is off in safe mode, but MyDefrag will be able to process (a few) more files.
  • Stop your real time virus scanner before running MyDefrag. Some virus scanners check all disk activity, making defragmentation and optimization very slow.
  • Move the swap file to another volume, reboot, defragment, and move the swap file back. If you don't have a second volume then temporarily make the swap file small, for example 100Mb.
  • Package unused files with a packager such as  *  7-zip. The packagefile not only takes less harddisk space, but will also defragment and optimize much faster than the individual files. Note: This does not apply to Windows NTFS compression, which will actually make defragmentation and optimization slower.
  • If you have 2 physical harddisks of the same speed, then place the pagefile on the first partition of the second harddisk. 

Source: http://www.mydefrag.com/Manual-TipsAndTricks.html

Tuesday, 12 February 2013

PE 3.0 to USB

1. Install and configure PStart

 When the installation wizard of PStart asks you about the setup type, you should choose Portable Setup. Select your USB drive and tell the wizard to copy PStart to the root folder. Next, you can launch PStart from your USB drive with Windows Explorer.

2. Launch PStart automatically when WinPE boots up

mkdir c:\img
imagex /mountrw F:\sources\boot.wim 1 c:\img
 

c:\img\windows\system32\startnet.cmd

Add these lines to startnet.cmd after the wpeinit command 

@echo off
for %%p in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do if exist %%p:\PStart\ set w=%%p
%w%:\PStart\PStart.exe
 

And commit changes to wim

imagex /unmount /commit c:\img

3. Add your own rescue tools

 

Monday, 11 February 2013

Understand Bcdedit

Procedure to understand bcdedit

you have to first create a store(BCD).
Add bootmgr entry.

if you are not mounting anything just specify device and boot to file path.
if you are mounting .wim or .vhd (remember guid) you have to also specify osdevice and its system root folder.

Sunday, 10 February 2013

BCDedit


Examples - Part 1


The BCD Store used to boot the operating system may be in use as the system store - if a system store is in use then this will be the default store on which all bcdedit commands are carried out. If no system store is in use, or to specify a store other than the system store, the /store switch must be used.
I personally recommend using the /store switch whenever modifying a BCD store to reduce the risk of targeting the wrong store. To specify the BCD store D:\Boot\BCD we would use the command bcdedit.exe /store D:\Boot\BCD .....
Before modifying a BCD store I recommend that you create a backup. Be aware that modifying a BCD store could result in your system not booting, I therefore recommend that you take either of the following precautions -
  • Create a BOOTMGR bootable CD/DVD/USB/Floppy with your existing (working) BCD store copied to it. BCD entries (with the exception of any devices set as BOOT) contain disk signature and partition offset information - booting the BCD store from another device will therefore still target the correct device.
  • Create a WinPE bootable CD/DVD/USB disk and use this to replace a non-working BCD store with the backup you made earlier. If you do not have access to WinPE then many Linux Live distributions can also be used.

Administrator Account on Windows 7

First you’ll need to open a command prompt in administrator mode by right-clicking and choosing “Run as administrator” (or use the Ctrl+Shift+Enter shortcut from the search box)

 Enable Built-in Administrator Account
net user administrator /active:yes
 Disable Built-in Administrator Account
net user administrator /active:no