thinkpads.com Support Community Forum Index Bill Morrow's thinkpads.com Open Forum - The Original Thinkpad Support Forum
Follow ThinkpadsForum on Twitter
eCoupons
Save with Lenovo ThinkPad eCoupons
Exclusive 4% CASH BACK from eCoupons.com
Support this forum, shop at newmodeus.com
 
It is currently Wed Jun 19, 2013 7:56 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Why Windows (XP) is even worse than Linux
PostPosted: Sat Aug 18, 2012 1:24 am 
Offline
Senior ThinkPadder
Senior ThinkPadder

Joined: Sat Oct 29, 2005 6:20 am
Posts: 4970
Location: Israel
The dark side of the hard drive clone I performed last night (the bright side is here).

I always thought it was mighty stupid how the Linux kernel depends on the root= parameter in the LILO/Grub config files to be exactly right to complete its boot. There is just something mind boggling when you start booting, and everything works, and then when it tries to mount the drive, if the root= is not correct, it panics that it cannot find the drive and halts. I mean, the drive is right there! You just booted from it - why do I have to tell you again where it is?! :lol:

Well, XP is even worse. ;) You would think that after cloning the drive, you can just disconnect the original, connect the cloned in its place and it will work? No way. Windows assigns DOS drive letters not based on the physical connection of the drive, but based on the drive itself. It remembers drives it's seen, and keeps drive letters the same even if you connect them to different ports inside the system, unless you tell it to change the drive letter.

This does make sense to an extent (for example if you were forced to move to a different SATA/IDE port, you would have less problems). However here it meant that my OS became completely unusable. Once I told the PC to boot from the new drive, Windows booted just fine, but then when one comes to login, it tries to run the Userinit.exe from drive C:, but the new drive has been assigned a different letter! So it got stuck in a permanent logon/logoff loop, and since I could not login, I could not change the drive letter assignment!

So far it seems just like Linux, so why is it worse?

Because in Linux at least one can append a root= parameter during boot to get the system up at which point one can edit the config files. How the heck do you do that in Windows? It's not an issue with the boot record, so FIXBOOT/FIXMBR/BCDEDIT won't help - the OS sees "itself" and boots just fine. The drive letter is something embedded in the registry! :evil:

The solution?

1) Find where in the registry the drive letter assignments take place (this took some googling - answer is HKLM\System\MountedDevices)
2) Boot up from the old drive with the new drive connected to a different port
3) Load the registry editor
4) From inside the registry editor, load the HKLM\System hive from the new drive (this is a neat feature I didn't know the built-in registry editor had)
5) Change the drive letter assignment so that the new drive is recognized in its own registry hive as C:, and unload the hive)
6) Turn PC off, disconnect the old drive and boot from the new drive. Finally!
:mrgreen:

Now, noticed how I rant about XP here. This is because somehow when I did the same procedure on a PC running Vista, it did somehow allow me to login and change the drive letters manually. So I am not sure whether they made the new kernels smarter or whether I did some things differently.

But at least it works now. :wink:

_________________
Current: T410 2537-R46, T60 1952-F76, T60 2007-QPG, T42 2373-F7G, X61 7673-V2V
Collectibles: X32 w/ IPS Screen, A31p w/ Ultrabay Numpad
Past: Z61t 9440-A23, T60 2623-D3U, X32 2884-M5U


Top
 Profile  
 
 Post subject: Re: Why Windows (XP) is even worse than Linux
PostPosted: Sun Aug 19, 2012 12:37 am 
Offline
Junior Member
Junior Member

Joined: Tue Feb 10, 2009 6:15 pm
Posts: 316
Location: Canton, MI
Yes, I've run into this before too (with Win2k). Resources I used to fix it:
http://support.microsoft.com/kb/249321
http://support.microsoft.com/kb/223188

_________________
Current Thinkpads:
X31 (PM-1.4), X40 (PM-1.2 LV), X60s (CD-1.66 L2400), X61 (C2D-2.0 T7300), X201 (i7-620M), W520 (i7-2720QM, 2000M, FHD)
Dells: Latitude XPi, Latitude C840, Inspiron 9200, Precision M70, Precision M4400


Top
 Profile  
 
 Post subject: Re: Why Windows (XP) is even worse than Linux
PostPosted: Wed Sep 19, 2012 7:41 am 
Offline
Junior Member
Junior Member

Joined: Fri May 27, 2011 9:19 pm
Posts: 454
Location: Usually WC FL, temp ass'd to the Giant Sandbox
This is old, you can fix it by getting a W98SE startup floppy and boot that. From the command prompt enter:

FDISK /MBR

That writes the boot MBR, overwriting the win NT/ 2000 / XP undocumented usages of the 24 or so extra bytes in the MBR without touching the partition table. More on this here:

http://www.goodells.net/multiboot/partsigs.shtml

That whole site is informative.

FDDs are about $3 nowadays - no excuse for not having one.

_________________
760LD 9547 FUBARd; i1411 2611
T21 2647; T22 2647 4@ 900MHz, 1@ 1GHz SXGA+; T23 2647 2@ 1.13GHz, 1@ 1.2GHz SXGA+, WiFi
T30 2366-83U 1.8GHz; 5@ 2366-LU0/66U 1.9GHz; 2367-KU6 2GHz FUBARd
T61 8897-03U, 1.8GHz, SXGA+; 8898-AGM, 2.4GHz; 6463-Y64, 2.4GHz, WSXGA+; 6463-WTL, 2.1GHz, WSXGA+


Last edited by cadillacmike68 on Sat Dec 22, 2012 11:13 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Why Windows (XP) is even worse than Linux
PostPosted: Wed Sep 19, 2012 2:46 pm 
Offline
Senior ThinkPadder
Senior ThinkPadder

Joined: Sat Oct 29, 2005 6:20 am
Posts: 4970
Location: Israel
Interesting solution! Will remember for the future references.

BTW, plenty of reasons not to have a floppy these days - they take up spaces in the case, requires extra power cables and clumsy IDE cables, adding to cable clutter, and in many new motherboards the floppy connector is either gone or placed in completely stupid and inaccessible places. :) I removed the floppy drive from my old desktop and couldn't be happier, as all it did in the past ~5 years was collect dust.

Fortunately, Win98 with all the tools can be booted from a USB flash driver as well. :D

_________________
Current: T410 2537-R46, T60 1952-F76, T60 2007-QPG, T42 2373-F7G, X61 7673-V2V
Collectibles: X32 w/ IPS Screen, A31p w/ Ultrabay Numpad
Past: Z61t 9440-A23, T60 2623-D3U, X32 2884-M5U


Top
 Profile  
 
 Post subject: Re: Why Windows (XP) is even worse than Linux
PostPosted: Thu Sep 20, 2012 10:04 am 
Offline
RBS10000
RBS10000

Joined: Mon Sep 18, 2006 5:17 am
Posts: 11844
Location: Mt. Cobb, PA USA
I use an official "USB Portable Diskette Drive", made by IBM. It has a date on it of MAR2005.
ASM P/N: 08K9835
FRU P/N: 06P5223
Works on every laptop and PC with a USB port!
You can boot from it via F12 or BIOS setting.

There are several of those on eBay.

_________________
Lovely day for a Guinness! (The Real Black Stuff)

Check out The Board Room for:
- LED-mods: Postoffice lost package, perhaps available again early July 2013
- SATA-mods: native SATA for T43/R52 with ATI GPU
- other Services


Top
 Profile  
 
 Post subject: Re: Why Windows (XP) is even worse than Linux
PostPosted: Tue Dec 11, 2012 8:58 pm 
Offline
Freshman Member

Joined: Thu Jul 21, 2011 2:53 pm
Posts: 94
Location: Columbia, SC
I burn "floppy emulation" CDs for the same result. Been doing that since 1999.

You can download boot floppy images and manipulate the self-extracting sort using Winimage (free trial) into .IMA files which are bootable.
If you want to, burn other files to the root directory of the CD.

This guy has a Win98 CD boot image for download, as do some other folks:

http://www.onecomputerguy.com/software_download.htm

I use ImgBurn to write .isos when running XP. Burn as slow as possible for best burn.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group