Pages

Friday, April 22, 2011

Operating System Frustrations

Warning: The following post is my expression of some frustrations with a certain OS, with some contrasting examples from a different OS; I'm mostly writing it to vent, and figure it might be interesting to some readers. If you are apt to take OS stuff personally and/or feel like defending/criticizing one of the OS's involved, please skip this post.

I recently resurrected my old desktop machine, with a combination of Windows 7 and Ubuntu 10.10 (dual-boot). The big change from my old desktop was replacing the Win XP that's been my choice for gaming ever since it came out. I hadn't had a Linux distro in use in a while (since my laptop is OS X, it fulfills my need for a programming machine), but figured I should try one of the new ones after messing around with some Linux Live CD's for L's little netbook and seeing how nice they were. [Live CD: it's a CD which can be booted as a full fledged operating system, many of these can also be used to install said OS to a hard drive if you like how it works. They're fun to try out, with no risk (unlike purchasing a new Mac OS or Windows version).]

Let me say right now, my experience with the new install of both OS's were great. Up to a point, where one plummeted like a rock, while the other kept improving. I doubt that this will be a surprise that the rock was Win 7, while Ubuntu just got better.

The point in question was when one of my hard drives started dying; coincidentally the one which had the MBR (Master Boot Record, it's how the computer knows how to start up an OS) and was first in the HD chain [important for Windows, Linux could care less afaik]. This drive was a legacy from my old setup, and had been replaced with a new hard drive; it had no OS partitions and nothing except old data (which had been copied to the new drive + backups). Until it was acting flaky it was more trouble to just remove it, in retrospect I think it would probably have led to the exact same mess as having it die did.

Well, the drive died about a week ago and neither OS would boot from the remaining hard drive, as there was no MBR even though both OS's were installed there. I thought to myself:  "Drat, now I have to grab the Linux Live CD / Windows Repair disk to repair my dual boot stuff, that'll take maybe an hour one evening to sort it all out." I finally got around to spending that hour. All good repair jobs start with a web search to find someone who's solved the problem already. I try a search for MBR fixes for the Windows side, but get nothing on an official site, just lots of forums and tech help sites, so I try a search on the Ubuntu side and immediately get an official Wiki page (conveniently titled Recovering Ubuntu After Installing Windows), it appears to have a pretty simple set of instructions for fixing a lost MBR, which boiled down to these four steps:

1. Boot the Ubuntu Live CD.
2. Check what version of GRUB you were previously using [Grub is a boot loader; it's what the MBR can be sent to, to allow the user a choice as to which operating system or tool they want booted], and find the hard drive partition that had your linux install. [This boils down to clicking on the hard drive in your list of partitions in the "Places" menu, and checking to see which one of two files is in a certain directory there]
3. Run one command on the command line, using the information found in step 2 to tell it which hard drive and what partition it needed to update.
4. Reboot.

(Details for those curious at the link, above; it took me about a minute to do steps 2-4, most of the time was me misreading grub.cfg as being the Grub Legacy config file and being very confused as I was 99% certain I had Grub2 installed. Yes, it uses the command line; I think I saw a nice graphical app that does it too, but I didn't want to bother since it was simple.)

Bonus info on the Ubuntu webpage: how to get your Windows install to show up on boot in the Grub menu. Win! I may only have to do a single repair and have both OS's up and running.

Great, I stick in the Ubuntu Live CD and boot that, get distracted web surfing for a bit [on that computer!], load up the Ubuntu wiki page I had been reading and copy/paste most of the steps. It completes and says it worked, so I reboot. Yep, sure did, there's my nice boot menu again, and I boot up Ubuntu to check that it works and it did; all my normal settings and programs are there, data looks fine, etc.

Ok, that was easy; now to test the windows side. Reboot, try the Windows 7 entry that the update added to the boot menu. Hey, it's the correct Windows partition to boot. How do I know that? Because it complained about a missing BOOTMGR and refused to boot. (also, there are only 3 partitions on the drive; Win 7 OS, Linux OS, and a huge storage partition) Anyways, I think it's got some sort of love attachment with the old hard drive and really misses it. I try to tell the OS that the hard drive is still around, it's even still in the case, just it ain't plugged in because if it was it'd make horrible scraping noises and nothing would work.

Anyways, at least I have an error message, and a search turns up more forum pages, but they look more relevant than the last set  (none of the 1st page of results were Microsoft though); paring through all that data I find that the best way to fix this issue is to load up the Win 7 install disk and use the repair function. Great, that will be simple. I boot the disc, click 'startup repair' as instructed, it chugs for a bit, I check the log and hey, it says it fixed a MBR issue. Perfect, that's what I needed fixed.

It does the reboot thing and hey, the boot menu entry for windows has been removed. That's odd, it should have auto-detected it just fine like it did previously. Maybe Linux borked it. Very bad, no cookie. Try the same update I did before to get it to add the Windows partition. No luck. Examine the full drive info, the partitions are all there just fine it just looks like... the Windows 'repair' completely borked the Windows partition's bootable flags so it's not even registering to anyone as being valid a valid choice to boot. Ok, another Ubuntu wiki link later and I try adding a custom boot entry to Grub that will go to the Windows partition (and flag it bootable as needed).  That takes a few minutes, but I have it back in the boot menu and what do you know, BOOTMGR is still missing.

At this point I'm wondering why I'm even bothering; all my data is ok as I can mount windows partitions in linux trivially (but not vice versa) and get the very limited, mostly non-Steam game save data off those partitions. Oh right, games is why I had the Win 7 stuff in the first place. Ok, might as well try the Windows repair again.

Why do I think the repair might work this time? Well, the websites did say that sometimes it just doesn't work the first time and you should reboot and run it again. I'm not kidding, that's what it recommends; many user comments saying hey, it failed but after the next repair boot it worked!)

Ok, Windows CD loads again. At this point I should mention that I kept getting bored while the repair CD booted. To diverge for a second, I eventually decided to measure the repair CD boot times [that was after boot #8 of that CD]. No wonder I got bored; it was taking five minutes to go from detecting hard drives (which is all BIOS, e.g. before the OS starts to load) to when I actually got to anything looking like a menu that needed input.

Ok, repair (it fixed a MBR record, I note dubiously), reboot... hmm, that's funny, it should boot off the hard drive first, but now it's going straight to CD. Oh joy, it trashed the entire MBR so the drive isn't even bootable now. This is roughly equivalent to my starting state after the drive died.

Wash, rinse, repeat with the Windows Repair. Try again, using the helpful 'command line' bootrec /fixboot and other stuff mentioned on the forums. Drive's still not bootable, my only available diagnostic on the Windows Repair CD (bootrec) has four options. Three of them fail with the same cryptic error, and the last, a pure diagnostic rather than actual repair tool, says I have a Windows install on C:. No ****, Sherlock, that's what I want you to make bootable!

Ok, my patience is shot for the Windows Repair. [I'm now up to try #8 or so]. Reboot time.

2m, 15s later, I am back in a Ubuntu linux desktop, with working network, web browser, etc. Ready to fix the MBR issue, again. No, that's not my hard drive install, it's the Live CD I'm going to use to repair my install; Yes, it's already fully functional at this point and I can program, read web pages, etc. I don't really need to repair the MBR, I just prefer running it off the hard drive as some things are smoother.

I reassure myself that I don't have to click on the repair startup button anymore, or look at a mangled graphical interface with a joke of a command line. In fact, I go read web comics just because I can, and I probably need the relaxation.

Back to the MBR fixing again. Load up the nice Ubuntu webpage I used last time, follow the steps, this time taking much less time (30s?).  Nice, it says it had no issues and we're good. Reboot time.

Hard drives spin up, boot starts and there's my boot menu back again (pretty much instant after the hard drive pause). 21.5s later and I'm at my Ubuntu linux login screen. One password and 10s later, I'm at my desktop and good to go.

Some final thoughts and other notes:

I like it when a repair that says it worked actually works. Also, I don't expect snappiness from a CD boot, but I also don't want to wait 2x as long to get something I can't even use except to attempt at a repair that's likely going to need another long boot anyways.

For reference, the times mentioned above were 5m for the Windows Repair disk to reach the first menu, 2m 15s for the Ubuntu Live CD to reach the first menu (about 15s more to reach a fully functional desktop, if you wanted one), 20.5s for the Ubuntu HD install to reach the User Login screen, and another 10 for it to actually be on the desktop, ready to use.

Yes, I know Win 7 boots pretty fast too; I was liking that back when it worked. I'd time the hard drive boot for it, *IF IT WORKED*. I'm sure it'd be competitive.

If you time the same events, it's likely to vary from my times so don't complain to me; I don't want to hear it. The desktop in question is on the order of 5+ years old (it's using an Athlon 64 3800, single core), and runs Linux great. Win 7 for most tasks ran great as well; some games were CPU-bound (the graphics card is pretty new, so it made up for many deficiencies in some games). Also, I know there are super fast booting Linux Live CD's. I was using my Ubuntu 10.10 Live CD (that can also be used as a full fledged install CD) as it's what I had on hand. The Windows 7 CD was the equivalent Windows Install/Repair CD. [I've also used a Knoppix Live CD in the past, and it's very snappy as it was designed to be a used as a LiveCD only, never needing a hard drive install.]

Comment policy for this post:    Comments welcome, but I'll repeat what I said at the start: defensive or critical comments about either OS aren't welcome. Commiserating is ok; as are similar stories about OS troubles (in any direction) as long as they're personal experience.

Flamewar inciting is not welcome; both OS's have their place, and Win 7 certainly ran nicely when it worked; for anything resembling my own work [e.g. research and programming] my preference has always been Linux or Mac OS X, and my preference for gaming is rapidly moving towards OS X, just there are many games that are non-existant on that platform.

Comments re: possible fixes are also welcome, but at this point it's not been worth the startup cost for me to try the repair CD after spending nearly the original 1 hr estimate in waiting for it to boot all those times. If you know a way to fix it via Linux that'd be ideal, otherwise I likely will just wipe the partition and do a fresh reinstall the next time I have several more hours to spend.

Errors in spelling, typos and grammer are all mine; see my previous policy on correcting those. I already did one full edit of this post to make it flow better, so anything left in there I really don't feel like fixing.

That said, if some of my story is too technical for whoever reads this, feel free to ask questions; I'd be happy to help people learn more about these topics, and tried to make it at least somewhat approachable! :)

Hopefully the above post was entertaining to someone; should you have problems with boot records or OS dual boot installs or the like, feel free to ask me for help; at this point I should have something to show for banging my head against the problem all evening. Similarly, if you want to try a Linux Live CD, I have tried two recently and they are very usable and can give recommendations or help out if needed.

Friday, December 3, 2010

ICQ and dictation mode.

So, today I found out that my ICQ password is no longer very working. In particular, I can't figure out what my password is or whether it was changed without me knowing. So if you're trying to reach me via ICQ it most likely will not work because I will not be online.

On the bright side, this entire post has been written using dictation software. Hopefully, I will be able to respond more e-mails and IMs with the software but it can still be frustrating at times.

On the other hand the previous two paragraphs were typed with no mistakes which I find quite amazing.

Wednesday, November 3, 2010

Myalgia

I saw a hand specialist today about my rapidly worsening hands - the diagnosis was myalgia which basically means muscle pain. That's a good thing in that it's not a symptom of something more serious (e.g. carpal tunnel, etc), but a bad thing in that the next step is to not use my hands for at least a week. So if I am not easily reachable by the usual methods, the best bet is to try calling or just drop by; I think there's a bluetooth headset somewhere that works with my phone [yes, holding the cell phone is painful].

For perspective on what this is like, I nearly was in tears at least twice due to the pain - today when I saw and filled out all the forms for the doctor's appointment [they measured that same thing later, in how much pain I was in to grip things - I'm not sure the scale but it was a 10 for each of three trials for each hand], and yesterday when I went to vote. That's a longer story, new paragraph.

Our voting place moved to the fire station nearby, I went to vote in early evening and there wasn't any line. Usually there's no problems and I'm on the list, but they couldn't find me so I had to fill out a provisional ballot; signing my name was already painful and when they asked me to fill out all the info on the envelope it was too much. I asked if there was some other way to fill it out, and the lady who was helping me said she could fill it out. I am ever so grateful to her for filling out all those details for me!

In general I don't notice it much, as I have a fairly high pain tolerance for non-sharp pains. It's worst and less ignorable when actually using my hands though, so I should really finish this post and start resting. See yall in a week or more!

Tuesday, October 5, 2010

From the Library of...

I was recently pondering loaning out some books to a wider group of people, ones who I may not personally know. While doing so, I ended up writing down a lot of my thoughts about books and specifically about loaning them, as I was trying to work out what I would say to someone reading a loaned book.

So here you have my thoughts, in the form which I [if space permits] would likely put them in a "From the Library of..." at the beginning of a book I would loan out. Comments, thoughts and stories are all welcomed; criticism aimed at anything other than making this written form of my thoughts more clear [clearer?] should be avoided. :)


Thoughts About Books

  1. Please treat any book like it was a treasured member of your family.
    If none exist, please give this book a hug and take care of it like
    you would want to be taken care of.
  2. Much like a younger sibling, this book will probably get stains and
    creases as it ages. Trying to prevent that completely is a lost cause,
    but you may want to at least brush any dirt off so the next person can
    still read it.
  3. Loaning a book is a lot like having children [or at least, I think so,
    not having any children]; At some point you have to let them go into
    the world and experience it on their own. They may find their own way,
    and they may return to you again and again. In either case your only
    hope is to cherish the experience of having known them, and welcome
    their return with open arms.
    • If you fall in love with this book and want to provide it a home,
      by all means do; I ask only that you treat it kindly, and share with
      me a story of how it came to your home. I worry over my lost children,
      and rejoice when one makes their own way in the world.
    • If you lose this book and find it again, share it with others. Unlike
      children, I can always buy another book; books that have been found
      have many stories about them, not just within the covers, and stories
      should be shared.
  4. While writing is a thing to be treasured, when someone reads a book they
    are probably not interested in what you’ve written on the pages [unless
    you perhaps wrote the book!]. If you feel the need to write in this book,
    please do so here, in between the covers and before the story starts; poems,
    thoughts and dreams add a story to the book, rather than hide the one
    already written.
  5. Reading a book should be enjoyable. While I only loan out books that I have
    enjoyed, that doesn’t mean you always will like them, or even that I enjoyed
    every single word or page. Take what enjoyment you can from each book, even
    if it’s as simple as reading a paragraph and deciding that you have no
    obligation to read the whole thing. Return it and someone else may find it.
    Similarly, I rarely agree with everything in a book; the only thing contained
    here that I agree with is what I have written here. And even that is
    uncertain: just because Present me wrote it doesn’t mean that Future me
    will agree.
  6. I believe books should be shared; the stories you gain from the sharing may
    come to be even more important than the story you read in the pages. I love
    to hear how people experienced a book and what pieces they found interesting.
    If you want to share a story about a book, please do! If there’s no-one
    around to tell, please write it down and share it with me.

Sunday, October 3, 2010

Legend of Zelda Theme rendition

For those readers who like Legend of Zelda:

Legend of Zelda Theme

As a digression, while I frequently say that I don't really play the newer Zelda games much, I do consider myself a fan of the series, and like them as a whole; it's just that I only play every third or fourth when the gameplay or story aligns with my tastes. The series as a whole is one of my foundational roots in the realm of RPG type games!

Here's my foundational roots: Started with Ultima III and Temple of Apshai, on the Atari 130XE (or other Atari home computers), inspired by my older cousin Sean who was playing the original Apshai on a TRS-80 and one of the Ultima games (not sure which system, it was a different visit and definitely a different system. Probably Ultima 1 or 2 from what I recall seeing. Spent hours typing in the Roguelike game ARogue from Antic magazine, never did get it to work right (Man, I made so many typos!). Zelda was one of the three games the Walkups got with their NES, and the first RPG-like I played on any console. So the opening music in the link above really gets me, and the Zelda series as a whole has many shining examples of good games.

Thursday, September 23, 2010

Nightmares

I thought it'd be impossible to experience something as scary as Flower's terrifying rain/lightning level; naturally that means my dreams last night managed to top it. Last night's dreams were about Von Neumann machines taking over civilization and I was the only one who realized what was happening. These particular machines started out small and masqueraded as friendly pets who loved to eat anything, growing bigger and bigger. They looked like small red gift boxes, with teeth. I'm still not sure if they were actually malign - it all seemed to happen offscreen, or perhaps because I was so paranoid about them.

Anyways... I haven't mentioned Flower before, but I should - only picked it up recently, it was one of the original games for the PS3 arcade. The gameplay basically can be described as you playing through the dreams of a flower, where you control a petal and how the wind blows it around. It's absolutely gorgeous and very serene. The only exception is one level near the end, which is absolutely necessary to the story they tell but is also very very scary - you might find it hard to believe how scared one can get for a tiny flower petal [or group of them], but man. Much scarier than hordes of zombies, for sure.

Wednesday, September 22, 2010

Law Enforcement

Howdy all. Just wanted to post a quick link, but also some thoughts. I found this account of a reporter's experience in the LAPD deadly force video simulator very interesting. The simulator sounds very interesting, though he didn't answer some details I would have loved to know - it's apparently a thing with real actors, weapons with laser blanks rather than bullets, etc. More interesting was the perspective the reporter was able to give on what it's like to be law enforcement in that sort of situation. I don't really want to speak specifically of any of the recent cases in the media, as I am not researched enough to comment on them.

What I do want to say is this: Being in law enforcement [and civil service, etc] is a hard job. Thank you to those who can do it, and to those who do it well. It can be hard for many people, myself included, to have empathy for those in that position as the viewpoints and situations involved are so very different from our experience; I hope that I never hold a gun, much less fire it. To those who are entrusted to do that every day, I salute you for having the strength to do your jobs.

Ok, now that I said my deep thoughts on the subject, I had one other peripheral thought about this: If you ever see a traffic cop managing stuff at a light that's gone dead, or anyone in that sort of position, take a moment to thank them. Far too often it's easy to be impatient with the person directing traffic when it's not their fault the light died, a wreck happened, etc. I had a long chat with a traffic cop once after they spent a while directing traffic at Chester / Cordova [after a wreck]; she was very good at directing traffic, keeping things at least flowing, and I took a moment when the traffic had died down to thank her - I had needed to cross and she was very clear in both letting me know she was aware and when to actually cross, at the same time dealing with a driver who had decided that clearly the detour around that particular block didn't apply to them. We spoke for a little bit, and she told me that the situation with that driver was pretty normal, and that they got a lot of anger and impatience while doing that job! People arguing about the street being blocked off, angry they had to detour, and so on. I was glad that I got the chance to talk a little, as it was a perspective I hadn't seen before; more importantly, it reminded me that even a traffic cop deserves some appreciation for the job they're doing and not just impatience at the situation one usually encounters them in.