Archive for the ‘ Windows ’ Category

This tip shows you how to convert files from Windows format to UNIX format and vice versa. This can be handy if you’ve ever opened a file that was created in Windows and found your screen full of of ^M characters at the end of every line.

Code Listing 1: Converting files with tr and sed

// Convert from DOS/windows to unix
% tr -d '\015' win.txt > unix.txt

// Convert from unix to DOS/windows
% sed -e 's/$/\r/' unix.txt > win.txt

1.Boot with XP CD or 6 floppy boot disk set.

2. Press R to load the Recovery Console.

3. Type bootcfg.

4. This should fix any boot.ini errors causing setup not to see the  XP OS
install.

5. Try the repair install.

One more suggestion from MVP Alex Nichol

“Reboot, this time taking the immediate R option and if the CD letter is say K: give these commands

copy K:\i386\ntldr C:\
copy K:\i386\ntdetect.com C:\

(two other files needed – just in case)

1. Type: attrib -h -r -s C:\boot.ini del C:\boot.ini

2. Type: BootCfg /Rebuild

which will get rid of any damaged boot.ini, search the disk for systems and make a new one. This might even result in a damaged windows reappearing; but gives another chance of getting at the repair”

If you get an error that NTLDR is not found during bootup,

If you have FAT32 partitions, it is much simpler than with NTFS.
Just boot with a Win98 floppy and copy the NTLDR or NTDETECT.COM files
from the i386 directory to the root of the C:\ drive.

For NTFS:

  1. Insert and boot from your WindowsXP CD.
  2. At the first R=Repair option, press the R key
  3. Press the number that corresponds to the correct location for the installation of Windows you want to repair.
    Typically this will be #1
  4. Enter in the administrator password when requested
  5. Enter in the following commands (X: is replaced by the actual drive letter that is assigned to the CD ROM drive.
    COPY X:\i386\NTLDR C\:
    COPY X:\i386\NTDETECT.COM C:\
  6. Take out the CD ROM and type exit

If you get the error:
Windows could not start because the following files is missing or corrupt
\WINDOWS\SYSTEM32\CONFIG\SYSTEM or \WINDOWS\SYSTEM32\CONFIG\SOFTWARE

  1. Insert and boot from your WindowsXP CD.
  2. At the first R=Repair option, press the R key
  3. Press the number that corresponds to the correct location for the installation of Windows you want to repair.
    Typically this will be #1
  4. Enter in the administrator password when requested
  5. cd \windows\system32\config
  6. Depending on which section was corrupted:
    ren software software.bad or ren system system.bad
  7. Depending on which section was corrupted
    copy \windows\repair\system
    copy \windows\repair\software
  8. Take out the CD ROM and type exit

To resolve this issue, start the computer from the Windows XP CD, start the Recovery Console, and then use the Bootcfg.exe tool to rebuild the Boot.ini file. To do this, follow these steps:
Read the rest of this entry