Rss Feed
Tweeter button
Facebook button
Myspace button
Linkedin button
Delicious button
Digg button
Flickr button
Youtube button

Archive for the Category »windows «

Ubuntu Facepalm

ubuntu-logoI did something totally stupid yesterday afternoon. For those of you that saw the Tweet about it, here’s the full story.

A year or so ago after my new x64 monster was up and running I decided to take my old XP desktop with just 512MB of RAM and have it dual boot XP and Ubuntu. I kept XP running on that computer since I’d yet to figure out how to do a bunch of things in Ubuntu that I needed the computer to do. The three main items were using my D-Link DWA-130 WiFi N USB adapter, reading from and writing to my Sony PRS-500 eBook, and run my (15 year-old but still perfectly functional) HP ScanJet 4c SCSI scanner. Eventually, I accomplished all three of these tasks via ndiswrapper, Calibre, and xSane accordingly.

Having finally accomplished this I decided to sit down yesterday and start to move from a dual-boot to a single-boot Ubuntu desktop. The plan was to take the single 40GB drive and expand it via something like GParted to overwrite the XP installation. So, I made sure to copy all my documents off the XP side of things onto a backup drive on the network. I then realized that the desktop also had a 120GB secondary drive which I’d completely forgotten about since Ubuntu never saw it. So, I backed up that data too.

I then started looking at what software was left on the XP side of things and notice that this was the only computer I owned that would still run the Sony Reader software. Now, I’d pretty much replaced this software with Calibre, but Sony’s software was the only was to access the Sony eBook store. I don’t buy much at all from them but they occasionally have free eBooks that I’m interested in so I decided that this was software was worth keeping. (All my other computers are x64 and the Sony software won’t even install on x64 platforms.)

The new plan was to uninstall just about everything from XP and strip it down to the smallest possible footprint and then shrink the partition and have Ubuntu take over the rest of that drive and the secondary drive. So, off to Add/Remove Programs I went.

DIVX, uninstalled. Office, uninstalled. Codec packages, uninstalled. Games, uninstalled. Yadda, yadda, yadda. Ubuntu… What? Oh, right. You can also install Ubuntu as a Windows application via Wubi. This allows you to boot to Ubuntu but it’s still technically a Windows app that you can uninstall without having to deal with boot loaders and partitions. Well, I must have forgotten that and it’s taking up 7 gig of my 40 gig hard drive so… uninstalled.

Empty the recycle bin. Scandisk. Defrag. All done. Reboot. Select Ubuntu from boot menu and…

Winnt_root\System32\Hal.dll missing or corrupt:
Please re-install a copy of the above file.

Ok. Don’t panic. Let’s search and see if there’s something I can do about this. Well, according to Microsoft I need to repair XP. Try rebooting into XP. XP boots fine. XP isn’t the problem.

OK, let’s check the boot loader. Well, the entry for Ubuntu is pointing to c:\ubuntu\winboot\wubildr.mbr. But the ubuntu directory is now gone since I uninstalled the wubi-based Ubuntu installation. ARGH!!!

What I’d forgotten was the my Ubuntu installation was wubi-based all along. What’ I’d uninstalled was the only Ubuntu installation on the computer. It was gone and it was completely my fault.

So, after feeling completely stupid through dinner I reinstalled Ubuntu off a downloaded .iso onto the secondary hard drive. Now I’ve got plenty of space and it still dual boots but with the grub boot loader instead of the Windows/wubi combination.

What did I loose? A lot of free eBooks and all the hand entered metadata that went along with them. So, nothing crucial except maybe for some of my geek pride.

Even senators get the blues

BSOD in the Senate
From Countdown with Keith Olberman, 14 May 2009. Former Senator Graham in his office with a blue screen on his desktop.

One reason not to get a “home” version of Vista

Virtualpc2007 Turns out that despite the fact that at home I’ve got an x64 quad-core PC with 6GB of RAM I can’t install the Windows 7 beta via Microsoft Virtual PC 2007 because I’ve got Windows Vista Home Premium and Virtual PC won’t run on anything less than Vista Business. :-(

However, I do have Vista Business at the office and I was able to successfully get Windows 7 Beta running via this method.

Windows 7 beta running in Vista via VirtualPC 2007

The first 72 hours with 64 bits -or- Taking the Ferrari to the corner for milk

Gateway® DX4710-UB301AAs some of you may have read on FriendFeed and Twitter, after six years, I finally replaced my aging home desktop computer. The old one ran Windows XP at 2.0GHz with 1GB of RAM. The new computer (shown right) runs Windows Vista 64-bit with a 2.66GHz Quad-core processor and 6.144GB of RAM. I’ve nicknamed it "The Beast". (Full specs can be found on the Gateway site.)

First, some background.

Whenever someone asks me, "Should I get a new computer?" I ask them "Well, does your current computer do what you need it to do without an undue burden on you?" In other words, does it work without going too slow, or needing regular (daily) reboots? If the answer is yes, then it isn’t time for a new computer. If no, then it is.

Readers, it’s been that time for me for about a year now.

I knew that this computer was never going to be upgradable to Vista. I looked into doubling the RAM (which is generally a stop-gap measure at best) and found that the old Gateway used some sort of obscure RAM and that all my slots were full so upping it to 2GB was going to cost me something in the neighborhood of $300. That wasn’t going to fly.

So, I’ve been looking. I’ve been trolling the NewEgg and TigerDirect flyers and RSS feeds and figured that I’d be purchasing a bare-bones kit (case, power supply, CPU, RAM) then customizing it with a graphics card, hard drive, and OS. This was looking to cost me about $900 for something in the neighborhood of a dual-core 3GHZ with 3GB of RAM.

Then, this past Thursday, Gateway sent me an e-mail.

The e-mail listed a deal on a laptop and The Beast via Office Depot. I posted a message to FriendFeed and Twitter to get opinions and most were "go for it". The one from @stephenk was memorable: "Do you really need a Ferrari to go to the corner store for milk?"

The simple answer is of course no, but I’m glad I got the Ferrari. (I ended up driving 50 miles out to LaVista, NE to pick it up at the store so I’d have it to set up over the weekend.)

I’m not a serious gamer (as can be shown by the fact that The Beast doesn’t contain the greatest graphics card in the world,) but I have been known to encode DVD video. Did I "need" 6GB or RAM and a quad-core processor, probably not. But for this price, I’m glad I didn’t pass it up.

Here’s an example from the weekend:

At one point I had Firefox, Outlook open, BitTorrent downloading and seeding some video, a bunch of background software running in the system tray, I was burning a DVD-ROM, AND streaming a tv show up the the livingroom over the network.  All at the same time, and yet was still using only about .45 of the CPUs and .40 of the available RAM.

That’s what I need my computer to be able to do and it did so with enough headroom to be able to handle anything else I could think of throwing at it. Oh, and did I mention that it boots in about 30 seconds?

As for the 64-bit version of Vista, I was hesitant but Paul Thurrott over on the Windows Weekly podcast says that it’s ready for prime-time and the 64-bit hardware drivers are no longer a problem. So, how’s that working for me? Just fine.

I did have to hunt through the Dell Web site for a 64-bit driver for my Dell 1100 laser printer but once I found that, it printer works as it should.

The only continuing problem is with my Ultra USB hard drive enclosure. Which, most unfortunately, contains my music. So far The Beast refuses to recognize this USB device even though it works fine on the old computer. I contacted Ultra and they insist that it should work just fine in Vista 64-bit, it’s a Windows problem, and I should contact Microsoft. I’m thinking I’ll just replace the enclosure with a different brand. Right now that decision is coming down to wether I’d rather spend time with Microsoft technical support or just shell out $30 for a replacement.

So, yes, I’m glad that I bought the Ferrari. Sometimes a little overkill is worth not having to walk to the store.

Cloning Windows Vista using the Sysprep tool

So I’ve previously cloned the thirteen Vista computers in out lab without any significant problems. Well, problems that I can point to the cloning process as the cause of the problem anyway. What have I been using to do the cloning? That would be the free linux-based Clonezilla. Just boot from the CD and follow the prompts. But, there’s been this issue nagging at the backs of the minds of our computer team that we’d been ignoring since they’re our computers in our control so until there was a problem, we could ignore it.

Then came ten new computers as part of a Gates grant that are going out to small rural libraries here in Nebraska. Hey, I’ll just set one up and clone the other nine. But, in this case, once we’ve set the machines up, they’ll be sent out across the state and out of our hands. Ah, that nagging problem starts shouting at us again. That problem is the issue of Security Identifiers (SIDs). What are those? Let’s ask Microsoft:

“Security identifiers (SIDs) are numeric values that identify a user or group. For each access control entry (ACE), there is a SID that identifies the user or group for whom access is allowed, denied, or audited.”

Yeah, that’s a lot of help…

The gist of this is that for certain security features of Windows Vista this unique SID is used. The SID is generated as part of the initial setup of Windows. i.e. When you first boot the computer after you take it out of the box. If you have more than one computer with the same SID, this could cause problems. The trouble is, cloning a hard drive also clones the SID. Bingo! I’ve now got ten computers all with the same SID. In fact, Microsoft has a Web page that specifically tells you not to do what I did. It’s title: Do not disk duplicate installed versions of Windows. Here’s what it says:

“Computers that are running the Windows operating system use a Security ID (SID) to uniquely identify themselves. When you use disk-duplicating software, it is important to take steps to ensure the uniqueness of these Security IDs.”

Yep, the computer team’s fears were based in fact. I even double-checked by downloading a small program named PSGetSid to verify the duplication of the SID in question.

“Have you performed a rollout, only to discover that your network might suffer from the SID duplication problem? In order to know which systems have to be assigned a new SID (using a SID updater like our own NewSID), you have to know what a computer’s machine SID is. Up until now, there’s been no way to tell the machine SID without knowing Regedit tricks and exactly where to look in the Registry. PsGetSid makes reading a computer’s SID easy, and works across the network so that you can query SIDs remotely. PsGetSid also lets you see the SIDs of user accounts and translate a SID into the name that represents it.”

So, now the ultimate question: How to clone a computer and yet still have unique SIDs on each of the clones. After way to much searching and reading I found a handy little program from Microsoft that supposedly solves this problem. That program is Sysprep.

“The System Preparation (Sysprep) tool prepares an installation of Windows for duplication, auditing, and customer delivery. Duplication, also called imaging, enables you to capture a customized Windows image that you can reuse throughout an organization.”

Turns out that Sysprep comes with Vista. You can find it at C:\Windows\system32\sysprep. (Don’t run this on your computer! ONLY run this on a master that you plan on cloning. If you run it on a computer you actually want to continue to use, you might just mess it up a smidge.)

So more reading and more reading and I finally found the following from Microsoft:

Creating a Build-to-Plan (BTP) Windows Image

In the build-to-plan (BTP) scenario, you create a single Windows reference image to install computers that use the same hardware configuration. You customize the single Windows reference installation by installing Windows and then adding additional drivers and applications. You then capture the Windows image and use it to install your computers. No additional modifications are made to this image.

This scenario comprises the following stages:

  1. You install Windows on a reference computer.
  2. After the installation is complete, you boot the computer and install any additional device drivers or applications.
  3. After you update the Windows installation, you run the sysprep /oobe /generalize command. The /generalize option instructs Sysprep to remove system-specific data from the Windows installation. System-specific information includes event logs, unique security IDs (SIDs), and other unique information. After the unique system information is removed, the computer shuts down. The /oobe option instructs the Windows installation to run Windows Welcome the next time the computer boots.
  4. After the computer shuts down, you can boot to Windows PE or another operating system on the computer.
  5. You then capture the Windows installation with ImageX, [I'm using Clonezilla instead, M] by creating a reference image with which to install computers with the same hardware configuration.

Well, that sounds like what I want to do so I gave it a shot. I set up one computer just how I wanted it (a full set up updates, installed Firefox, AV software, Steady State, and created the accounts I needed,) then ran Sysprep on that computer. Here’s what the program looked like:

System Preperation Tool 3.14

What you see here are the setting that I used. I chose the OOBE option to get the cloned computers to act like it just came out of the box when first booted, and checked Generalize to reset certain settings, most importantly the SID which was central to why I was going through all of this.

I clicked OK and the computer did a few things and then shutdown. Next, I hooked up my drive to clone to and ran Clonezilla. When that was done I removed the cloned drive from the master computer, popped it back into it’s original case and booted up the cloned computer.

I was told the the computer was setting itself up and it rebooted itself once during this process. I was then Welcomed to Windows, asked to accept the licenses, set the time, and create a new account. The account creation bit worried me a bit since I’d already created the accounts I needed but I had to follow through. So, I created an account named “m” with a password of “m” just to make things simple.

Once setup completed I was presented with the Windows logon screen which contained the two previously created accounts and the new “m” account. I logged into the admin account and found that all of my updates, settings, and software were exactly as they should have been. I just deleted the “m” account and I was pretty much all set. There were just two other things:

First, I ran PsGetSid on the cloned computer to make sure this one had a different SID from the original. Yes, it did.

Second, I did have to delete and re-create the second account that was on the cloned computer that I’d originally created on the master. I’m not exactly sure why but I have two theories.

  • Theory one:
    It had something to do with cloning a computer that had Windows Steady State installed and locking that account. If this was the problem the solution would be to not clone a locked account, but to lock the account on the cloned computers.
  • Theory two:
    The Sysprep tool doesn’t like computers with multiple accounts. This theory is based on the idea the OEMs like Dell and Gateway don’t ship computers with multiple accounts (if any) pre-installed on a computer. If this was the problem the solution would be to have just one account created on the master and then create additional needed accounts on the clones.

UPDATE 03 Nov 08: Turns out theory one seems to be the correct one. I’ve since cloned other computers where the public account wasn’t locked by SteadyState and the account came through the cloning process in tact.

Despite this final “problem” it was more just an annoyance. This whole process was still much shorter than if I’d had to boot all ten computers and install all the software and updates individually. Also, each time I did it, the process took a little less time as a result of the repetition of the process. I’ve got another 30-40 computers I’ll be doing this to in September and plan on following this process. If I find any additional details then, I’ll be sure to post them.

The Mojave Experiment

It’s been said that most people who think that Vista sucks haven’t actually used it.

The end of an era for Windows

No, not XP. Yep, here’s proof for everyone that’s so totally worried that they won’t be able to buy XP any more. (BTW: Get over it!) Come November 1, 2008 OEM’s will no longer be able to sell Windows for Workgroups 3.11. (The OS I used in grad school in 1994-95.)

Error message

Huh?
What does this mean?

Category: windows  Leave a Comment

Internet Connectivity Evaluation Tool

Internet Connectivity Evaluation Tool: “The Internet Connectivity Evaluation Tool checks your Internet router to see if it supports certain technologies. You can use this tool on a PC running either the Windows Vista or Windows XP operating system. If you’re planning to run Windows Vista, this tool can verify whether your existing Internet router supports advanced features, such as improved download speeds and face-to-face collaboration using Windows Meeting Space.”

Game makers excited about Windows Vista

Game makers excited about Windows Vista – CNN.com: “The latest improvements, many believe, far surpass even the very best of what the consoles are capable of. Case in point: the upcoming PC shooter ‘Crysis,’ where players take the role of a battle-savvy soldier who has to uncover the secrets behind an asteroid that has smashed into Earth.”

Category: vista, windows  One Comment