Rolf Jansen's January 2010 notes on configuring
Dual-boot of WindowsXP + CentOS 5.4 on HP Mini 311 Netbook

I bought the following netbook in Dec 2009 because (1) I was tired of hauling an ageing, full-sized "desktop replacement" laptop and its brick of an A/C adaptor around, (2) I had seen reports of successful OOTB (out-of-the-box) linux installs on it, (3) it had a native screen of 1366×768 instead of the more typical 1024×600 pixels, (4) it had 3 USB2.0 ports instead of the more typical 2, and (5) its keyboard felt relatively solid and is sufficiently large for my fingers.
FYI: do not expect the performance of a desktop replacement laptop out of this $400 notebook — it does not appear a whole lot faster than the top-of-the-line $2200 Sony Vaio PCG-GRZ660 from summer 2002 that it replaces, although the dual-core of the Atom N270 does reduce sluggishness in response under load. And the reduction in weight (and newer hardware) was what this was all about.


Step 1:
After first boot-up into the factory-installed Windows XP, and connecting to the internet (ASU wireless was detected without any problems) downloaded all available updates, including Norton anti-virus updates. Repeat until system is up to date (may involve several system restarts) Next, I installed the Secure Shell Client software ('ssh'/'sftp'), in case I need to connect to other computers from the dark side. Similarly, I copied over my favorite ASCII text editor program (MicroEmacs3.8, the old DOS executable still works – yay!).
Downloaded from the HP support web site the 'Disaster Recovery utility'. (under "Download drivers and software (and firmware)", enter product name/number, and enter the flavor of Windows. Save the binary to the C: drive. Insert a USB flash drive with a capacity of at least 256Mb, then double-click the downloaded binary file to format the USB flash drive and extract the disaster recovery files onto it. Restart computer, enter BIOS menu and change boot-order to first boot from external USB devices and only then from the internal hard drive, and test whether the flash drive is indeed bootable and enters the Disaster Recovery mode. If so, remove the flash drive and restart the computer to boot into Windows XP again.
Clean up any unneeded files from the C: drive using the appropriate disk maintenance utility, then defragment the C: drive. Next, using the back up drive option of the pre-installed 'Roxio BackOnTrack' software, create an exact image (full back-up) of the internal hard drive on the external 40Gb USB hard disk. It sucks that manufacturers don't provide a full set of Windows CD's anymore and make you sacrifice additional hardware for this fundamental step. When done, shutdown the notebook.

Step 2:
On another computer, download the GParted LiveCD ISO9660 image and burn it to a CDROM as an ISO image (not as a file!). Also start downloading the appropriate CentOS 5.4 DVD ISO image (32-bits netbook, so: 'i386').
Connect the external USB CD/DVD drive to the netbook, power up that drive and insert the GParted 0.4.6-1 LiveCD, then power up the netbook to boot from the LiveCD. Do not use versions 0.4.8-1–0.5.0-3 for this! On the intuitive graphical menu, select the active partition and use Resize/Move to shrink the existing NTFS partition from 160Gb down to ~20–24Gb or so, depending on how much free space (6–10Gb) you want to retain for Windows, and on what the graphical window during the defragmentation step above indicated for the highest unmovable portions of data. Leave Windows in the lower ~20Gb of sectors (/dev/sda1) of the hard disk (i.e., do not move it, only shrink it) and create a linux partition (/dev/sda2) that fills the remainder of the disk (~140Gb). Apply the changes made, then wait till GParted has finished doing its thing. Once done, quit, remove the CD from the drive and reboot the computer (keep fingers crossed).
During boot-up, Windows will detect something is changed (and therefore wrong) compared to its sense of the world, but it managed to recover from it (after, of course, another restart). If you shrink your partition so much as to globber some of the files that used to be beyond the bounds of the new partition, you may be less lucky than I was. In such case, hopefully, the Disaster Recovery flash drive and backup image can be used to restore Windows.
When Windows came/comes up OK, create a new backup image of the C: drive onto the external USB hard disk using 'Roxio BackOnTrack' (but keep the original ones as well). I was not able to use the back up drive option this time, since the software seemed to think that a backup image of the disk would require 96Gb (WTF?!) instead of ~14Gb, but the C: drive contents could be backed up. When done, "safely remove" the external USB hard disk.

Step 3:
After checking the MD5 checksum, burn the CentOS 5.4 DVD ISO image to DVD using 'k3b' and check that the DVD as written matches the binary image on disk. Connect the netbook to the internet via its wired ethernet jack. Install linux on the newly freed portion of the hard disk:

Step 4:
Post-installation/configuration (from 'software.notes').

Reboot the machine, and let it boot up into its default OS (for the time being, that is..), Windows XP, and check for any issues. If none encountered, restart and interupt the boot sequence to boot into the dual-processer ('xen') version of CentOS 5.4 and check for any issues.

One remaining issue is a very loud beep – the PC speaker is clearly not correctly configured in linux. Temporary workaround is to enter "Control Center" in KDE --> "Regional & Accessibility" --> "Accessibility". There, check "Use visible bell" and uncheck "Use system bell". Another, is that the "Broadcom 4312G" WLAN wireless card is not properly detected, let alone configured. Although solutions for newer kernels and different linux distributions have been reported, for the time being I'll be tethered to a wired ethernet port...



Last updated: Jan 11, 2010


Back to the top of this page.
In case of problems with or solution for problems on this page, contact: Rolf.Jansen@asu.edu , tel.: (+1) 480  727 7119