It started so innocently. I was going to record an episode of CNET.com’s The Real Deal about Ubuntu. So I decided to install Ubuntu on the company ThinkPad as a dual boot with Windows. Know going into this story, the laptop in question has a piece of screen capture software on it we use for making videos. Not that it couldn’t be reinstalled.
So the installation goes fine, and I intentionally let Ubuntu choose all the settings. My point was to replicate how easy Ubuntu is to install for the average user. I boot into Ubuntu, start surfing the web, all is well.
Then I reboot to check the Windows partition. Grub loads up several boot options including the Windows XP partition. I choose that and in the next moment my stomach falls to the floor. A file called hal.dll has been corrupted and needs to replaced. Oh that’s just dandy. I reboot again and get the same result, so offf to the Web.
After a bit of searching I find that the Hal.dll problem comes up quite often when folks install dual boot systems on a pre-existing Windows machine. Seems Windows does not like to be the second partition. The solution however, is fairly simple. Whew. I just need to alter the boot.ini file to have a number 2 instead of a number 1, so that Windows can understand it is now on the second partition. No problem right? Wrong.
Turns out Linux has issues reading an NTFS partition. I try messing with fstab and cannot get the Ubuntu to browse the files. Finally I try cgoing to the command line. Frankly, if I’d been too afraid of the comman dline I would have never got this fixed. I learn that to mount a drive one must create a folder for it either in the mnt or media directories. (I suppose you could make it anywhere, you’re just pointing to it). I create the directory and can mount the drive from the command line. However, when I try to browse it from the GUI, I get nothing. I’m told I do not have permission to do that. Back to the command line and I whip out a sudo command. A little something I picked up on awhile back. Sudo is what you need at the command line in order to run a command as root. Apparently in Ubuntu they wisely keep you out of root as much as possible. Good for them. I cd to the windows directory I created and find the boot.ini file. Then I throw down a sudo gedeit boot.ini. Ah-ha, there’s the little sucker int he text editor now. I just need to change those two (1)s into (2)s. No problem. Except the save button is greyed out. I try to save as which lets me try but fails.
At this point I decide to track down a Windows XP boot disk and try to launch off that and edit from within Windows. Not a single boot disk off the Interent works for me. So I get one fromt eh CNET labs. It works but I need the admin password. Turns out I don’t have the admin password. Even though I’m the admin. See, this is a work computer so there’s a super secret admin password only IT knows about. That kinda sucks because I don’t want to go to IT and explain all this. Besides, they won’t fix it, they’ll just blwo out the hard drive and reinstall Windows. At least that’s what I’d o in their situation. So back to Ubuntu.
I’ve given up on fstab by the way as I’ve gotten enamoured with trying different command switches on the mount command. That leads me to learn the umount command of course as I need to unmount every time I want to try a new combination of mount switches. No luck. I cannot get the darn thing to write to NTFS.
Most of what I’ve read implies that you can write to NTFS as long as you have the 2.4 kernel or later. But there’s also ntfsprogs. This little package of utilities promises to let you read and write to an NTFS partition with mroe success. Not COMPLETE success mind you, but more. SO I download the tar and unpackage it but it cannot run. ./ configure does not work. Well I realize I’m running ubuntu so that didn’t work. I need to use Synaptics right? But when I look in Synaptics I don’t see ntfsprogs available. So I surf around some more and find a .deb of 1.12.1 of ntfsprogs. Not the most current package but it’s a deb right? But I still can’t see how to install it with synaptics. So I try installing it the Windows way by double clicking on it. It opens and give me an install dialogue, but no it’s run into a FUSE library that doesn’t have a satisfactory dependency. Well darn. I download that lib and when I install it, it says it’s unsatisfied with the libc dependency. When I install THAT it says a later version is already installed. Damn. I obviously am not doing this right.
So back to the drawing board. I prowl around on the Ubuntu site and discover ntfsprogs should be available in the universe area. Hmm. I eventually go back to synaptics and look at the repositories. I ran into the term repositories somewhere on the web. Turns out not all the repositories are turned on by default. I turn on all the binary repositories and voila! What do I find but ntfsprogs 1.12.1? Gloriousness. Synaptics installs it and all is looking fabulous.
I happily launch terminal and try the ntfsmount command. Doesn’t work. Says the drive is dirty. Happily there is a force switch I can turn on at the command line. I do and it forces itself to try to mount the Windows partition. Alas it still fails. It needs fusemount or something and it just can’t find it. Taking what I’ve learned I turn to synaptics again. I search for fuse and find a package of fuse utilities that among other things, appears to contain fusermount. It installs in beautiful synaptic fashion.
I go back to the command line and try out ntfsmount again. Hurrah! I CD over to the windows partition and sudo gedit boot.ini. Hurray! The save buttonis NOT I repeat NOT greyed out. I let out a yelp. I change those (1)s to (2)s and save. The text editor warns me that it can’t save a backup of that file and am I really sure I want to do this. I say caution to the wind text editor, do your worst. t saves and I reopen in gedit and it looks to have taken just fine.
Now comes the real test. Restart. I choose Windows XP at the Grub screen and I get the most beautiful site since I left my wife this morning. A Windows logo. never thought I’d think that but I did.
Then the sky blue screen of death says it’s checking the drive for integrity. I can understand that. It goes about its checking and I turn to my other laptop to check mail. At one point I turn back to see it’s checking the indecx and is 92 percent done. However when I turn back I see it’s booting into Ubuntu. My heart skips a beat! Just the autoboot, it must have restarted itself. I power down and reboot, and choose Windows XP. I get the nice slightly darker than sky blue screen of login and life. I login and there’s the desktop. I run the screen capture program. It works! I surf the Web. It works! It’s amazing.
I immediately search for how to change boot order in grub, reboot into Ubuntu and change a default number to the Windows partition. Now I can safely give this laptop to otheres int he department to do screen captures on. And nobody will have to worry that Ubuntu is bootable. And we now have a dual boot laptop ofr other videos that may require it. Huzzah!
The rela moral of this story however, is that, while obviously not a Linux master by any stretch, even with my knowledge I found it quite frustrating to learn how to install programs in Ubuntu. And most people won’t find the command line as exhilerating as I did. Judgement? UBuntu’s good. very fgood. In fact if you get it set up right, it may be good enough for people who don’t need to intsall programs much. Or at least not install odd programs. Liek Linux has been for years, it’s getting better on the desktop, but is not quite all the way there.
August 30th, 2006 at 7:56 am
Wow, I had some of the same issues that you mentioned when I dual booted my primary XP machine a while ago (before Dapper Drake came out). However, I had not had or heard of the file corruption issue. By the way, am I the only who saw the irony of the file name that was corrupted? Anyway, the one thing I found funny is that if you plan to use Ubuntu (or I guess any Linux) you have to go to the command line for certain things. It’s not a bad thing, just frustrating when you aren’t used to it. I hadn’t done any Unix/Linux command line in years. And I never understood why the two repositories that seem to hold most of the “good” stuff is commented out. My biggest issue was getting audio/video to work and, at the time, update Firefox. Lot of forum stalking. And I never did get Windows to boot up first. Even after all of the stuff I went through, I still can’t wait to get laptop to run or Dual boot Ubuntu from. Glad all worked out for you. Incidently, should you need to delete your Linux partition for some reason, you can get rid of Grub by booting up an XP disk and run Fixmbr. You’ve probably seen that one, but I had to hunt a little before I found it.
August 31st, 2006 at 1:01 pm
I know this may be more than what an average user would want to do. BUT, if I’ve got a machine and am wanting to add Linux in a dual boot fashion, I use Partition Magic to create the partition and then install Linux. The problem with that is the user needs to have a copy of Partition Magic, which isn’t free. (There are free partition editors, but, I just don’t think they work as well as Partition Magic.) The user also needs to know how to use the program and know how to not mess up their partition tables.
I am not a huge fan of Ubuntu, I don’t have anything against it, I just prefer Fedora because of RPM & YUM. I also prefer Fedora because of Fedora Forum.org, I have gotten more help from them in the past than I ever did in the Ubuntu forums. I also have a friend who can help me out with Fedora when I have a problem, so that helps a lot as well.
October 30th, 2006 at 6:07 am
I fixed this issue simply by popping in the Windows CD, running recovery mode, and typing fixboot (or i think it was that)- not fixmbr- that will wipe ubuntus boot .
May 27th, 2007 at 1:39 am
Wow, surprised that you had such a hard time.
Linux isnt ready for notebooks because of all the unique parts that get tested for windows and not linux.
The only problem I had installing Ubuntu was partitioning space to keep windows and install ubuntu on a separate partiton.
I eventually used partition magic and every works incredibly well.
I have a NTFS partiton for windows and EXT3 for Ubuntu and huge FAT32 that both can use.
Everything works great.
The only thing that doesnt work is my exteral tv card.
This being said I was lucky because apparently for most people the biggest problem with Linux is its support for WIFI.
Mine works great though ;)
Im using a Toshiba A70, the notebook itself is buggy as hell but installing linux on it is was so easy.
January 12th, 2008 at 2:22 pm
Thanks, the same hal.dll problem happened to me on Ubuntu 7.10. Your tip about boot.ini saved my day.