• HEXUS
  • HEXUS.tv
  • channel
  • gaming
  • lifestyle
  • trust
  • community
  • ESReality
  • HEXUS.community discussion forumsVisit Corsair.com

    Welcome to the HEXUS.community discussion forums forums.

    You are currently viewing our boards as a guest which gives you limited access to view most discussions and other features. By joining our free community you will have access to post topics, respond to polls and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Operating systems & applications

    Operating systems & applications Looking for that application for Windows? needing advice with your Linux setup? - ask here! Add RSS Feed

    Reply
     
    LinkBack Thread Tools
    Old 29-06-2006, 07:21 AM   #1 (permalink)
    MSFT
     
    Paul Adams's Avatar
     
    Join Date: Jul 2003
    Location: %systemroot%
    Posts: 1,835
    Thanks: 11
    Thanked 50 Times in 41 Posts
    Paul Adams's system
    Windows - boot process & simple troubleshooting

    This is the (simplified) boot sequence for Windows NT, 2000, XP and 2003:

    BIOS: performs Power On Self Test (POST)
    BIOS: loads MBR from the boot device specified/selected by the BIOS

    MBR: contains a small amount of code that reads the partition table, the first partition marked as active is determined to be the system volume
    MBR: loads the boot sector from the system volume

    BOOT SECTOR: reads the root directory of the system volume at loads NTLDR

    NTLDR: reads BOOT.INI from the system volume to determine the boot drive (presenting a menu if more than 1 entry is defined)
    NTLDR: loads and executes NTDETECT.COM from the system volume to perform BIOS hardware detection
    NTLDR: loads NTOSKRNL.EXE, HAL.DLL, BOOTVID.DLL (and KDCOM.DLL for XP upwards) from the boot (Windows) volume
    NTLDR: loads \WINDOWS\SYSTEM32\CONFIG\SYSTEM which becomes the system hive HKEY_LOCAL_MACHINE\System
    NTLDR: loads drivers flagged as "boot" defined in the system hive, then passes control to NTOSKRNL.EXE

    NTOSKRNL.EXE: brings up the loading splash screen and initializes the kernel subsystem
    NTOSKRNL.EXE: starts the boot-start drivers and then loads & starts the system-start drivers
    NTOSKRNL.EXE: creates the Session Manager process (SMSS.EXE)

    SMSS.EXE: runs any programs specified in BootExecute (e.g. AUTOCHK, the native API version of CHKDSK)
    SMSS.EXE: processes any delayed move/rename operations from hotfixes/service packs replacing in-use system files
    SMSS.EXE: initializes the paging file(s) and the remaining registry hives
    ** before this step completes, bugchecks will not result in a memory dump as we need a working page file on the boot (Windows) volume **
    SMSS.EXE: starts the kernel-mode portion of the Win32 subsystem (WIN32K.SYS)
    SMSS.EXE: starts the user-mode portion of the Win32 subsystem (CSRSS.EXE)
    SMSS.EXE: starts WINLOGON.EXE

    WINLOGON.EXE: starts the Local Security Authority (LSASS.EXE)
    WINLOGON.EXE: loads the Graphical User Identification and Authentication DLL (MSGINA.DLL by default)
    WINLOGON.EXE: displays the logon window
    WINLOGON.EXE: starts the services controller (SERVICES.EXE)
    ** at this point users can logon **

    SERVICES.EXE: starts all services markes as automatic

    ---------

    NOTES:
    The SYSTEM volume is the partition from which the boot process starts, containing the MBR, boot sector, NTLDR, NTDETECT.COM & BOOT.INI

    The BOOT volume is the partition which contains the Windows folder - this can be a logical partition


    ---------

    Example 1:
    2 hard disks, 0 and 1
    Disk 0, partition 0 is the SYSTEM volume
    Windows is installed to "D:" which is disk 1, partition 0 [even if disk 0 has an extended & logical partitions] - this is the BOOT volume
    - if either disk fails or is removed, Windows cannot boot


    Example 2:
    1 hard disk, 2 partitions
    Disk 0, partition 0 is the SYSTEM volume
    Disk 0, partition 1 is the BOOT volume [D:]
    - add another disk to the system and create a partition on it, this becomes D: and Windows will not boot [disk 0, partition 1 now becomes E:]

    ---------

    Boot problems and their possible causes & resolutions:

    Symptoms:
    Black screen
    "Invalid Partition Table"
    "Error loading operating system"
    "Missing operating system"


    Cause:
    Corrupt Master Boot Record (MBR)

    Resolution:
    Boot into Recovery Console and run "fixmbr" to repair the MBR

    --

    Symptoms:
    "A disk read error occurred"
    "NTLDR is missing"
    "NTLDR is compressed"


    Cause:
    Corrupt boot sector

    Resolution:
    Boot into Recovery Console and run "fixboot" to repair the boot sector

    --

    Symptoms:
    "BOOT.INI is missing or corrupt"
    "Boot device inaccessible"
    "Windows could not start because the following file is missing or corrupt:
    <Windows root>\system32\hal.dll"


    Cause:
    BOOT.INI missing, corrupt or out of date as a partition has been inserted

    Resolution:
    Boot into Recovery Console and run "bootcfg /rebuild" to repair the BOOT.INI

    --

    Symptoms:
    "Windows could not start not start because the following file is missing or corrupt:
    \WINDOWS\SYSTEM32\CONFIG\SYSTEM"


    Cause:
    Corrupt/missing system hive

    Resolution:
    1. Boot into Recovery Console and run "chkdsk C: /f" to check the system disk for errors and fix them, then reboot.
    2. If the error continues and System Restore is enabled, copy the system hive from the last restore point into \WINDOWS\SYSTEM32\CONFIG
    3. If the error continues, copy the system hive from \WINDOWS\REPAIR into \WINDOWS\SYSTEM32\CONFIG
    4. If the error continues, perform a repair installation by booting from the Windows installation media


    --

    Symptoms:
    "Windows could not start because of a computer disk hardware configuration problem.
    Could not read from the selected boot disk, Check boot path and disk hardware."


    Cause:
    Boot volume (with Windows folder) is not accessible as defined in BOOT.INI

    Resolution:
    Check the boot volume is accessible

    --

    Symptoms:
    Dual-boot 32-bit Windows and 64-bit Windows system reports "NTOSKRNL.EXE is corrupt" trying to boot into 64-bit Windows

    Cause:
    System volume contains an older boot loader than the boot volume requires - e.g. XP SP2 installed after XP x64

    Resolution:
    Copy NTDETECT.COM and NTLDR from XP x64 installation media to the root of the system volume

    ---------

    Notes:
    Not all of the above applies to Windows Vista/Longhorn, there are a few differences:

    - the boot loader is different, and if the machine has a TPM 1.2 chip then BitLocker might be involved right at the start to decrypt & validate the boot code

    - the boot drive will become "C:" regardless of which partition it might be (so any bootable Vista volume will refer to itself as C: even in a multi-boot environment)

    - WINLOGON.EXE no longer launches SERVICES.EXE, this is handled by a separate process WININIT.EXE, as session 0 is now solely the system area and not combined with the console desktop (the first interactive logon session becomes session 1)

    - the recovery options are more automated via wizards by booting from the installation DVD, common faults can be checked for automatically

    ~ I have CDO. It's like OCD except the letters are in alphabetical order, as they should be. ~
    [ Personal Website ] - [ Technet Blog ]
    Main PC: Win7 x64 / Asus P6T Deluxe / Core i7 920 / 12GB DDR3 / 120GB SSD / GeForce GTX285
    Server: W2K8 R2 / Asus P5K Premium / Core2 E6750 / 8GB DDR2 / 150GB, 500GB SATA2 / GeForce 9800GTX
    HTPC: Win7 x64 / Asus P5E-VM HDMI / Core2 E6850 / 4GB DDR2 / 400GB SATA2 / ATI 3650 Silent
    Paul Adams is offline   Reply With Quote
    Old 29-06-2006, 07:24 AM   #2 (permalink)
    A shadowy flight.
     
    MSIC's Avatar
     
    Join Date: Oct 2005
    Location: London/Herts
    Posts: 2,321
    Thanks: 140
    Thanked 93 Times in 71 Posts
    MSIC's system
    Nice one mate. Potentially very useful indeed - have never been too hot with Windows Recovery Console.

    System as shown, plus: Akasa 965 HSF. Griffin Powermate that pulsates blue! Solid oak computer desk.
    Diamondback Razor. Logitech media keyboard. Western Dig HD Media Player. An AC-S1 R2 on the 3870. Netgear DG834N router. Acer Aspire One netbook.
    Creative I-Trigue 3450 driven by an Audigy 2. External 160GB and 500GB hard drives. 1 happy me. 1 not so happy me's wife.
    My Hexus Trust
    MSIC is offline   Reply With Quote
    Old 29-06-2006, 09:33 AM   #3 (permalink)
    More l33t than dangel
     
    directhex's Avatar
     
    Join Date: Jul 2003
    Location: /dev/urandom
    Posts: 14,305
    Thanks: 42
    Thanked 389 Times in 281 Posts
    directhex's system
    so correct me if i'm wrong...


    but if you mark a linux partition (which has a grub or lilo boot sector on it) as active, then wouldn't a windows MBR load it?

    directhex is offline   Reply With Quote
    Old 29-06-2006, 09:39 AM   #4 (permalink)
    Member
     
    Join Date: Apr 2006
    Posts: 187
    Thanks: 1
    Thanked 4 Times in 3 Posts
    This could have helped me so many times in the past. Will be saving/printing this for future reference.
    wmsteele is offline   Reply With Quote
    Old 29-06-2006, 09:51 AM   #5 (permalink)
    MSFT
     
    Paul Adams's Avatar
     
    Join Date: Jul 2003
    Location: %systemroot%
    Posts: 1,835
    Thanks: 11
    Thanked 50 Times in 41 Posts
    Paul Adams's system
    Originally Posted by directhex
    if you mark a linux partition (which has a grub or lilo boot sector on it) as active, then wouldn't a windows MBR load it?
    Short answer - no idea
    Bear in mind that I haven't fiddled with OS's other than Windows for a good few years (XENIX, OS/2, OS/2 Warp, Linux) and this kind of stuff with the boot process (at this level of detail) is relatively new to me.

    The MBR might expect the boot sector to be in a particular format, which in turn is hard-coded to look for NTLDR.
    I know the boot sector is different for Vista as it tries to load BOOTMGR instead, but I'm not sure of the relationship between MBR and boot sector.
    (Conversely, the MSDOS boot sector looks for MSDOS.SYS & IO.SYS IIRC.)

    The MBR, boot sector and boot files on the system volume are typically bundled together when it comes to troubleshooting, as most installations are basic singe-volume, single-OS.

    Edit:
    Found this page detailing the NT 5.0/5.1 MBR which lists the requirements for the MBR to load an OS from a partition as:
    1) it is on the Primary Master hard drive
    2) it is set to be the only active partition
    3) it has a boot loader in the first sector of that partition

    Not sure about the first point as SATA disks as I don't think there is such a thing as a master SATA disk... and it's possibly up to the BIOS to determine the order of scanning devices on the PATA and SATA buses, so may be unpredictable...

    ~ I have CDO. It's like OCD except the letters are in alphabetical order, as they should be. ~
    [ Personal Website ] - [ Technet Blog ]
    Main PC: Win7 x64 / Asus P6T Deluxe / Core i7 920 / 12GB DDR3 / 120GB SSD / GeForce GTX285
    Server: W2K8 R2 / Asus P5K Premium / Core2 E6750 / 8GB DDR2 / 150GB, 500GB SATA2 / GeForce 9800GTX
    HTPC: Win7 x64 / Asus P5E-VM HDMI / Core2 E6850 / 4GB DDR2 / 400GB SATA2 / ATI 3650 Silent

    Last edited by Paul Adams; 29-06-2006 at 12:04 PM..
    Paul Adams is offline   Reply With Quote
    Old 29-06-2006, 01:20 PM   #6 (permalink)
    Gentoo Ricer
     
    Join Date: Jan 2005
    Location: /var/portage
    Posts: 5,727
    Thanks: 66
    Thanked 267 Times in 248 Posts
    aidanjt's system
    Well the MBR loads a small portion of boot sector code, whatever code is in the boot sector loads whatever boot manager is installed there (I'm sure this is how it works).. But I just avoid this issue altogether by installing GRUB to the MBR and let it chainload windows, works a charm.

    Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...
    Server Box -> Asus P5B-E Plus | C2D E6320 | 2x2GB GieL PC2-6400 | 6x500GB (md-raid5) | nVidia 7300LE | Ubuntu Server 9.10 (for now)
    Test Box -> P4E 3.2Ghz Rev. E0 | Asus P4C800-E Deluxe | 2x1GB PC3200 | 2x160Gb | nVidia TNT 2 | Gentoo (X86)

    Currently breaking: eINIT
    aidanjt is offline   Reply With Quote
    Old 30-06-2006, 08:36 PM   #7 (permalink)
    Throbbing Member
     
    Join Date: Aug 2004
    Location: not in bloody PC World, that's for sure...
    Posts: 532
    Thanks: 5
    Thanked 3 Times in 3 Posts
    8bit's system
    As I understand it, the Windows bootloader *can* be configured to boot a Linux, although I've never seen it done. I guess it would require some very specific knowledge on the subject.

    I think this thread should be made a sticky, thanks Paul that's going to help me a lot the next time i get me bootloaders in a twist!



    system 1 - 'shiro' - Windows 7 Home Premium x64 :: AMD Opteron 185 (2x 2.6GHz) :: Foxconn WinFast NF4SK8AA :: 2x 1GB OCZ Platinum DDR-PC3200 :: NVidia GeForce 8800GTX (768MB) :: Asus XONAR D2 (PCI) :: Western Digital Caviar Black (1TB) WD1001FALS :: Pioneer DVR-115 DVD+-RW :: Lian-Li PC-A16 (silver) :: LG 32LH3000 TV (1080p) :: Logitech G5 Laser Mouse :: Saitek Eclipse II keyboard ::

    system 2 - 'polaris' - Ubuntu 9.04 Desktop x86 :: AMD Athlon64 3500 2.2GHz :: Asus A8V Deluxe :: 2x 512MB Kingmax DDR-PC4000 :: ATI Radeon HD3650 AGP :: Samsung Spinpoint P120 250GB SATA :: Sony/NEC OptiArc DVD+-RW :: CoolerMaster WaveMaster (silver) :: LG 32LH3000 TV (1080p) ::
    8bit is offline   Reply With Quote
    Old 30-06-2006, 08:39 PM   #8 (permalink)
    More l33t than dangel
     
    directhex's Avatar
     
    Join Date: Jul 2003
    Location: /dev/urandom
    Posts: 14,305
    Thanks: 42
    Thanked 389 Times in 281 Posts
    directhex's system
    Originally Posted by 8bit
    As I understand it, the Windows bootloader *can* be configured to boot a Linux, although I've never seen it done. I guess it would require some very specific knowledge on the subject.

    I think this thread should be made a sticky, thanks Paul that's going to help me a lot the next time i get me bootloaders in a twist!
    ntldr can be convinced to do it (i made it boot beos once), but the question is more about the windows MBR, which happens *before* ntldr

    directhex is offline   Reply With Quote
    Old 11-01-2008, 05:43 AM   #9 (permalink)
    Registered User
     
    Join Date: Jan 2008
    Posts: 2
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Re: Windows - boot process & simple troubleshooting

    What displays the boot splash in vista (and how do i make it go away)
    thanks
    black_13
    black_13 is offline   Reply With Quote
    Old 11-01-2008, 08:10 AM   #10 (permalink)
    More l33t than dangel
     
    directhex's Avatar
     
    Join Date: Jul 2003
    Location: /dev/urandom
    Posts: 14,305
    Thanks: 42
    Thanked 389 Times in 281 Posts
    directhex's system
    Re: Windows - boot process & simple troubleshooting

    assuming it's the same as xp, the splash is embedded in the kernel

    directhex is offline   Reply With Quote
    Old 11-01-2008, 11:34 AM   #11 (permalink)
    MSFT
     
    Paul Adams's Avatar
     
    Join Date: Jul 2003
    Location: %systemroot%
    Posts: 1,835
    Thanks: 11
    Thanked 50 Times in 41 Posts
    Paul Adams's system
    Re: Windows - boot process & simple troubleshooting

    Originally Posted by black_13 View Post
    What displays the boot splash in vista...
    winload.exe (the boot loader) has the code to display the black screen with the animated bar which is used by default, and the localized version (winload.exe.mui) contains the alternative boot screen (as it contains text which is language-specific).

    Originally Posted by black_13 View Post
    ...(and how do i make it go away)
    If you use the NOGUI option then a static 24-bit colour imge stored inside winload.exe is used instead.

    To enable NOGUI:
    - Run MSCONFIG
    - Select the Boot tab
    - Check the "No GUI boot" box
    - Reboot

    This is your loading screen now:



    [Pre-empting the next question of "how can I use my own image during startup?"]
    As with previous versions of Windows, to replace this image with a custom one involves hacking the EXE file to embed the image, which on Vista involves taking ownership of the file first due to the extra security in this version of the OS.

    It has always been a risky proposition to go resource hacking, but lots of people do it, and there is a tool someone has developed to embed custom images for you in the x86 version:
    Development Dan’s Blog » Blog Archive » Windows Vista Boot Logo Generator Beta
    I have not used this tool and cannot vouch for it, use at your own risk.

    ~ I have CDO. It's like OCD except the letters are in alphabetical order, as they should be. ~
    [ Personal Website ] - [ Technet Blog ]
    Main PC: Win7 x64 / Asus P6T Deluxe / Core i7 920 / 12GB DDR3 / 120GB SSD / GeForce GTX285
    Server: W2K8 R2 / Asus P5K Premium / Core2 E6750 / 8GB DDR2 / 150GB, 500GB SATA2 / GeForce 9800GTX
    HTPC: Win7 x64 / Asus P5E-VM HDMI / Core2 E6850 / 4GB DDR2 / 400GB SATA2 / ATI 3650 Silent
    Paul Adams is offline   Reply With Quote
    Old 14-01-2008, 01:18 AM   #12 (permalink)
    Registered User
     
    Join Date: Jan 2008
    Posts: 2
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Re: Windows - boot process & simple troubleshooting

    thanks for the response.
    actually i would prefer to no resource hack but find out if there is a registry setting or some legitimate hook that would allow me to do what i want. but your info gives me a start point.

    i will update you on what i find.
    black_13
    black_13 is offline   Reply With Quote
    Old 14-01-2008, 01:54 AM   #13 (permalink)
    More l33t than dangel
     
    directhex's Avatar
     
    Join Date: Jul 2003
    Location: /dev/urandom
    Posts: 14,305
    Thanks: 42
    Thanked 389 Times in 281 Posts
    directhex's system
    Re: Windows - boot process & simple troubleshooting

    Originally Posted by black_13 View Post
    thanks for the response.
    actually i would prefer to no resource hack but find out if there is a registry setting or some legitimate hook that would allow me to do what i want. but your info gives me a start point.

    i will update you on what i find.
    black_13
    the registry is a million miles from loaded when the splash screen is appearing. and do you really want an OS where you can hook into the kernel before it boots - that doesn't smell like virus activity to you?

    directhex is offline   Reply With Quote
    Old 12-09-2009, 10:52 AM   #14 (permalink)
    Registered User
     
    Join Date: Sep 2009
    Posts: 2
    Thanks: 0
    Thanked 0 Times in 0 Posts
    help

    how can write commmand in my own bootloader?
    i want to run a code to access pagefile.sys so before windows is booted i can access this file!
    do you have any idea to access pagefile ?
    i wan to write bootloader !but i donot know anything?
    mahzad is offline   Reply With Quote
    Old 12-09-2009, 12:37 PM   #15 (permalink)
    Gentoo Ricer
     
    Join Date: Jan 2005
    Location: /var/portage
    Posts: 5,727
    Thanks: 66
    Thanked 267 Times in 248 Posts
    aidanjt's system
    Re: Windows - boot process & simple troubleshooting

    Just boot another OS off a USB stick or something.

    Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...
    Server Box -> Asus P5B-E Plus | C2D E6320 | 2x2GB GieL PC2-6400 | 6x500GB (md-raid5) | nVidia 7300LE | Ubuntu Server 9.10 (for now)
    Test Box -> P4E 3.2Ghz Rev. E0 | Asus P4C800-E Deluxe | 2x1GB PC3200 | 2x160Gb | nVidia TNT 2 | Gentoo (X86)

    Currently breaking: eINIT
    aidanjt is offline   Reply With Quote
    Old 12-09-2009, 08:46 PM   #16 (permalink)
    Senior Member
     
    Join Date: Aug 2005
    Posts: 1,080
    Thanks: 9
    Thanked 43 Times in 36 Posts
    lodore's system
    Re: Windows - boot process & simple troubleshooting

    i have chainloaded grub using the vista bootloader using a program called easybcd.

    btw very interesting thread i will read about the windows boot process when i have time

    Last edited by lodore; 12-09-2009 at 08:53 PM..
    lodore is offline   Reply With Quote
    Reply

    Breadcrumb
    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Operating systems & applications


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Trackbacks are On
    Pingbacks are On
    Refbacks are On


    Similar Threads
    Thread Thread Starter Forum Replies Last Post
    Windows - hotfixing overview Paul Adams Operating systems & applications 13 13-10-2009 10:17 AM
    Windows XP Pro Wont Boot Up Green Beret Help - technical & advisory 3 15-03-2006 09:36 PM
    How do I restore "Show Desktop" icon in the Quick Launch bar of Windows? davidstone28 Help - technical & advisory 7 09-01-2006 12:02 PM
    Windows XP 64 boot problem after install tfboy Operating systems & applications 10 02-09-2005 09:53 PM
    Windows Me Boot Disk AndyL Operating systems & applications 3 14-11-2003 02:03 PM



    All times are GMT. The time now is 05:10 AM.

    Any representations/statements made on the HEXUS.community discussion forums are the representations/statements of the author i.e. the person/organisation making them. If any such representations/statements are disputed they are a matter between the parties concerned.
    HEXUS Limited accepts no responsibility for any misrepresentations, inaccurate or false statements made by any person/organisation other than HEXUS Limited employees.
    For more information please read HEXUS Limited's terms, conditions and privacy policy.

    Hosted Exchange

    Powered by vBulletin® Version 3.8.4
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Content Relevant URLs by vBSEO 3.3.2
    © Copyright 2009 HEXUS® Limited. All rights reserved. Unauthorised reproduction strictly prohibited.