Archive for the 'Windows' Category

Simple dual-boot OSX and WindowsXP on Lenovo IdeaPad

DSC_7339

If you want OS X running on your Lenovo S10 then a retail copy of Snow Leopard and the Snow Leopard Enabler are clearly the way to go. So far pretty much everything seems to work except sleep and ethernet (though I’ve not tried the latter) on my S10-2. Crucially, sound does work. The web cam even works in PhotoBooth if you crank up iChat first and tick the menu option to show video effects first.

I previously had a triple-boot thing with OS X, Windows XP Home Edition and Ubuntu Netbook Remix going on, but I realised there wasn’t much I wanted to do in Linux that I couldn’t do in OS X or Windows - so I decided to simplify it a bit and make the machine a bit more elegant. Instead of a text menu I would have a machine that would boot into OS X without delay unless I told it I wanted to go into Windows - as I will be using OS X almost all the time.

An easy, elegant way to switch between Windows and OS X is to use Apple’s Darwin bootloader - but when I wiped the disk and reinstalled both operating systems I found that the OS X bootloader couldn’t see Windows, only OS X. Configuring the Darwin bootloader seems to be a dark art, and there’s not much info on the web. But I discovered that the order you install them in seems to matter. Here’s how I got it working.

1) Wipe the whole hard drive clean. Do this by booting off your OS X install USB stick, use Disk Utility to partition the disk in 2 parts. I have a 250GB hard drive in my IdeaPad. I made the 1st partition 160GB OS X, HFS+ MacOS Journalled, using Master Boot Record. I left the rest of the disk blank and I did not install OS X at this point.

2) I booted off a WindowsXP Home Edition install CD and made a 15GB NTFS partition in the free space and installed Windows on it. (I found that making FAT32 partitions in Apple Disk Utility seemed to give me disk errors when it came to installing Windows, even if I made it NTFS later, so it’s best to get the Windows installer to make the Windows partition.)

3) I then booted off the OS X install USB stick again and installed OS X on the OS X / Mac-formatted 160GB partition.

4) When you reboot the machine will go into OS X unless you press F8 on startup - just after the Lenovo splash screen and just before the Apple logo.

choose os x

And you get two logos - cursor left or right to choose the OS you want to boot from.

choose windows

Next I plan to use some of the spare space to make a FAT32 disk I can use to swap data between OS X and Windows. And maybe leave a sliver free for Linux in the future…

Triple-boot OS X, WindowsXP and Linux on a Lenovo Ideapad S10-2

The aim: to get my Lenovo IdeaPad S10-2 netbook to allow me to boot into Mac OS X, Windows XP or Ubuntu Netbook Remix as and when I need each OS - and to get a nice clean Windows install at the time, free of all the crud that comes with a factory-installed OS.

Ingredients

The easy way to do this would be with a USB DVD writer. I couldn’t get one (not one that worked, any way) but I did have an old DVD ROM drive and a USB IDE caddy/enclosure gizmo. I also used:

  • 2 blank DVDs
  • 2 blank CD ROMs
  • A G4 PowerBook to burn the discs on - any computer with a DVD burner will do
  • A 4GB memory stick
  • an ethernet cable
  • A copy of MSIWindOSX
  • A few files you’ll find mentioned on this web page - stick them on a USB stick
  • A nice, cheap, large new 3.5″ SATA drive (optional - if you want to keep the original WindowsXP drive). I got a 250gb one off Amazon for around 30 quid.

First up - you need to prepare about 4 discs you’ll need. Do this with your working normal XP machine.

Download MSIWindOSX.iso off the interweb - of course I didn’t do this as this would be very naughty. Do (or rather don’t) burn it onto a DVD. It’s just under 4GB (which is why I needed a 4GB USB stick).

Then copy all the drivers in the DRIVERS folder on your IdeaPad’s D: drive onto another DVD-ROM. They don’t quite fit on a CD-ROM.

Next make a live CD of your Linux of choice - I chose Ubuntu Netbook Remix.

Last, but not least, you need to make a WindowsXP Home Edition install disc. This is fun. Well, okay, it’s not fun. It takes ages and will have you screaming at Lenovo for not supplying a Windows disc with the IdeaPad. Basically I followed this method:
http://forums.lenovo.com/t5/IdeaPad-S-series-Netbooks/Guide-Create-Recovery-Media-for-an-Ideapad-S10/
and this method (bearing in mind you need to include Service Pack 3 as well):
http://www.howtohaven.com/system/createwindowssetupdisk.shtml

But that’s not enough. If you make a disc this way, it should boot but it won’t find the hard drive as it’ll be missing the drivers needed to see a SATA hard drive. There are two ways round this: you can fiddle with the BIOS settings and change the SATA controller to compatibility mode and change it back again when you’ve got the right drivers installed. I didn’t fancy this so I used a bit of free software called nLite to tweak the XP installer I made to include SATA drivers. There should be some info here. I think this is totally legal as I have paid for a WindowsXP licence, the licence sticker is on the machine I’m installing it on - it’s just that Lenovo are too cheap to supply a disc so you have to make your own.

As I didn’t have a USB DVD writer, rather than burning the disc on the IdeaPad, I made an ISO image which I put on a USB memory stick and burnt the image using Disk Utility on my PowerBook G4.

Okay. Survived that? Now back up everything you want to keep off your IdeaPad. Go to bed, wake up the next day and do it again because you will have missed something.

Method

I tested my discs in my USB DVD reader to check they booted - press F12 at startup when you see the Lenovo splash screen and choose the USB disc as the boot device. If they boot - good news. Don’t install anything. At this point I replaced the 160GB hard drive with a cheap 250GB from Amazon - it was marketed as being for a Playstation3 I think and was only about 30 quid.

replacing the hard drive on a Lenovo Ideapad S10-2

Unscrew the large panel underneath, remove the single screw holding the hard drive in, and pull to the left using the plastic flap. Unscrew the drive from its caddy, replace and re-insert.

Phew! Time for a cup of tea.

Mac OS X

Then I put (or rather I didn’t) the MSIWindOSX boot disc in the USB DVD-ROM drive, plugged it in, turned the IdeaPad on and pressed F12 at the Lenovo splash screen and chose the USB disc drive from the boot menu.

DSC_7068

I more-or-less followed these instructions:
http://www.netbooktech.com/2008/10/13/guide-to-installing-os-x-on-lenovo-ideapad-s10/
but some things were different…

First of all before installing OS X I used Disk Utility on the install disc to make a 40GB MacOS Journalled partition on the drive. I left the rest blank - the plan is later to make a roughly 150GB NTFS partition for WindowsXP and a 40ish GB partition for Linux. The idea is to make the NTFS partition the largest one as I plan to use this as a data volume, hoping that both OS X and Linux will be able to mount it. I also used the Advanced option in DiskUtility to choose a Windows style bootloader. Not sure if this was required, it just seemed like a good idea.

Bienvenue a OS X

I didn’t have the problem mentioned on NetbookTech about getting stuck in a loop - I said I didn’t have a Mac to transfer information from and it all went ok. I followed the instructions on getting WiFi working and that worked ok. I tried to do a system update but rather than updating from 10.5.4 to 10.5.5 I was offered a 10.5.8 combo update. This KILLED the OS X install and I had to start again - so don’t update to 10.5.8!

There’s no audio, but there is a workaround for this, though it does need Developer Tools installing which you’ll need to get off an install disc or download.

When I’m cleaning Windows…

making Windows partition

To get Windows installed, I repeated the process, booting off the Windows CD I’d made. I used the installer to make a 150GB NTFS partition to put XP on, and left the rest blank. When installed, I copied all those files that were in the DRIVERS folder on your original D: drive back onto the C: drive and installed them to get the WiFi, graphics card, sound card etc working properly.

Now that's what I call a clean Windows install!

There’s a nice clean Windows install! Next - time to get some Linux cooking.

Ubuntu: brown is the colour!

Installing Ubuntu Netbook Remix

Last of all I booted from my Ubuntu Netbook Remix CD and installed this flavour of Linux on the remaining unformatted drive space. As mentioned before, you need to use the ethernet cable to connect to the internet to get the restricted Broadcom driver in order to get WiFi to work.

Here’s what I ended up with, the choice of WindowsXP, Ubuntu or OS X at startup:

choices, so many choices

UPDATE: After installing Ubuntu, OS X doesn’t want to boot. Lots of scrolling text then stuck on a pale blue screen of death. Ho hum. Will try to re-install OS X!

UPDATE TO THE UPDATE: Yay! I got it working again. Re-installing OS X didn’t work, so I replaced the GRUB2 bootloader that comes with Ubuntu 9.10 with legacy old-skool GRUB. There’s a guide here. Legacy GRUB is much simpler to manually configure and get OS X booting OK.

During the process of retro-grading GRUB I made a note of what my partitons were numbered (yours will probably be different):
disk = /dev/sda
sda1 = HFS+ (Mac OS X)
sda2 = NTFS (WindowsXP)
sda5 = Linux
sda6 = Linux swap

Then when legacy GRUB was working I added these lines to menu.lst in /boot/grub. Note that your root settings will probably be different depending on your partition scheme and also I had to reduce the partition numbers by 1 - the WindowsXP partition hd0,1 is actually sda2 and the OS X partition hd0,0 is actually sda1 - confused me when it all went wrong the first time!

title WindowsXP
root (hd0,1)
makeactive
chainloader +1


title Mac OS X
root (hd0,0)
makeactive
chainloader +1

I left the automagic kernals stuff to look after booting into Ubuntu, and didn’t add a line for that. (Well I did actually - it didn’t work, so I took it out. I found it easier to configure GRUB for OS X than for Linux!)

The other thing I would have done differently in hindsight is to create a 4th common data partition for music, photos and videos in FAT32 format - I think this would be more easily accessed for reading and writing by all 3 operating systems. OS X doesn’t want to write to the NTFS WindowsXP partition - it can read it just fine, though. Ubuntu doesn’t have many qualms about writing to NTFS disks but then I have had problems with this when I was using WUBI, so maybe OS X’s caution is wise.

Next I’ll try and get audio working using Audieee. And annoyingly, I noticed the Ideapad’s built-in web cam works in iChat but not in PhotoBooth (I’d rather it were the other way round).

Having installed OS X I am slightly left wondering why I did it. Like climbing a mountain and saying “well the view’s quite nice but was it really worth the bother…?” It was an interesting challenge and quite exciting to see the OS X Finder on my IdeaPad but I am struggling a bit to think of a Mac-only application that makes it worthwhile. Most of the software I use is already free and cross-platform. Possibly iPhoto (which I don’t have!) - but then Cheese in Ubuntu is fine and it has the benefit of actually seeing my webcam. Would an iPhone development kit work on it? OS X also makes networking my Lenovo Ideapad with my other Macs much easier. But that’s about it…

Why is Windows WiFi so slow?

A friend of mine has just bought a netbook - a Samsung… I tell everyone I love my Lenovo and they buy Samsungs anyway - and he noticed how slow its wireless networking was compared to his MacBook.

I fired up my Lenovo Ideapad S10-2 and my ancient G4 PowerBook and I found the same thing too.
I used broadbandspeedchecker.co.uk and did each test twice. My friend and I both have 02 broadband and I’m guessing we have the same router.

Lenovo Windows Netbook - 1.66GHz Atom - via 802.11g wifi running WindowsXP
5872 kbps download
788 kbps upload

Old Powerbook G4 - OS X - 1.66GHz PowerPC - via 802.11g wifi
11144 down
793 up

Lenovo Netbook - WinXP via ethernet
13936 down
772 up

But here is the really interesting thing…

Lenovo Netbook running Ubuntu Netbook Remix off a USB stick:
Download speed 11950 Kbps
Upload speed 927 Kbps

So with the same hardware, the Lenovo netbook’s wireless networking appears to be twice as fast under Linux - and Linux running off a USB stick to boot. I tried fiddling with the Broadcom settings in WinXP but it didn’t make any difference to the reported speeds. Very, very odd. Maybe a virus checker or firewall is slowing WinXP down?

Why Your Neighbour’s WiFi security is so poor

I think I might now know why there are so many unsecured wireless computer networks around.

I could never understand this, it seems so stupid to leave your network wide open. Security is easy enough to set up with MacOS X, a snip with a Nintendo DS - I even managed it using command line tools on a cut-down version of Linux.

Then I tried to get 3 different Windows XP laptops to talk to my wireless network; I entered my SpeedTouch 570 router’s SSID, I carefully added the WEP key, I used ipconfig /all at the Windows command line to get the MAC address of each wireless card so I could add them to the router’s permitted list of MAC addresses. Nothing. Each time the only way I could get the Windows XP machines to see my network was to disable WEP entirely - hence why I now see why many people might think ’soddit, I’ll turn the security measures off’.

In the meantime, I did discover that partially dropping security might help - by default my router only allows computers with the correct SSID to connect; turning off that basic security measure seems to have helped. But why should Windows XP force me to drop my security? Even a toy like a Nintendo DS can manage it.