Showing posts with label netbook. Show all posts
Showing posts with label netbook. Show all posts

Monday, August 9, 2010

Tweaking Lenovo IdeaPad S12

I bought Lenovo IdeaPad S12 for $400. This little laptop has 12.1" display, VIA Nano processor, 1GB memory and 160GB hard drive. It's shipped with Windows XP, but I want to install Windows 7 alongside XP, so as to have a dual-boot system.



Shrinking the Recovery Partition


I booted IdeaPad S12 with my own Linux Live CD. In Xterm, I typed the following command:



fdisk -l -u /dev/sda


I got the following output.



Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xee8a96be

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 217909247 108953600 7 HPFS/NTFS
/dev/sda2 217909248 281638911 31864832 f W95 Ext'd (LBA)
/dev/sda3 281638912 312581807 15471448 12 Compaq diagnostics
/dev/sda5 217911296 281638911 31863808 7 HPFS/NTFS


The last primary partition /dev/sda3 seems to be Lenovo's recovery partition. I was able to boot the recovery partition with the following GRUB commands:



root (hd0,2)
chainloader +1
boot


Once I boot into Lenovo's OneKey Recovery System, I can use OneKey AntiVirus to scan the laptop for virus or use OneKey Recovery to restore the laptop to the factory state. I rebooted the laptop with my Linux Live CD. Then, I used GParted to shrink /dev/sda3 and changed its partition number to /dev/sda4:


  1. Shrink /dev/sda3 to 6 GB.
  2. Duplicate /dev/sda3 to a new primary partition /dev/sda4.
  3. Remove the partition /dev/sda3.
  4. Change the type of the new partition /dev/sda4 to 12.


After that, my partition layout looks like this:



Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xee8a96be

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 217909247 108953600 7 HPFS/NTFS
/dev/sda2 217909248 281638911 31864832 f W95 Ext'd (LBA)
/dev/sda4 299997810 312576704 6289447+ 12 Compaq diagnostics
/dev/sda5 217911296 281638911 31863808 7 HPFS/NTFS


I restarted my laptop. I was able to boot Lenovo's OneKey Recovery System using the following GRUB commands.



root (hd0,3)
chainloader +1
boot


Moving Lenovo's pre-installed Windows XP to a logical partition


To reserve primary partitions for other crucial operating systems, I moved the Windows XP partition to the extended partition. This technique is explained in this post. Roughly speaking:



  1. Shrink the Windows XP partition (/dev/sda1) by half using GParted. Space is created between /dev/sda1 (Windows XP, type 7) and /dev/sda2 (extended, type f).
  2. Enlarge the extended partition (/dev/sda2) to the left. A space is created at the beginning of the extended partition.
  3. Make a copy of Windows XP partition in the space of the extended partition. The new partition will become /dev/sda6.
  4. Fix the partition numbers with fdisk (switching partition numbers of /dev/sda6 and /dev/sda5). Previously, /dev/sda6 came before /dev/sda5.
  5. Fix BOOT.INI of the new XP partition (/dev/sda5).
  6. Boot the new XP partition (/dev/sda5) in safe mode using GRUB or SYSLINUX. Change drive letters in the registry.
  7. Reboot Windows XP (/dev/sda5) normally and remove the old partition (/dev/sda1).


Starting Windows XP with SYSLINUX


Recently, I switched to SYSLINUX. I created a 100MB primary partition (/dev/sda1) formatted with FAT16. Then, in Linux, I installed SYSLINUX.


syslinux /dev/sda1

A new MBR had to be installed, too.


install-mbr /dev/sda -v --drive 0x80 --enable +14

I copied chain.c32 from the SYSLINUX package to the SYSLINUX partition (/dev/sda1). Then, I copied NTLDR, NTDETECT.COM and BOOT.INI to the SYSLINUX partition (/dev/sda1), too.


I created a text file named SYSLINUX.CFG with the following instruction.


TIMEOUT 30
DEFAULT chain.c32 ntldr=NTLDR

This will let you boot Windows XP in a logical partition.



Installing Programs on Windows XP


I removed the following programs from factory-installed Windows XP of Lenovo S12:


  • Symantec Norton Internet Security
  • Diskeeper
  • Veriface

Then, I installed the following software:


  • Avast Anti-virus
  • MyDefrag


Installing Windows 7 Home Premium


I created a new NTFS partition (/dev/sda2) using GParted. I set its bootable flag and hid all other FAT and NTFS partitions. Then, I installed Windows 7 Home Premium.


After that, I moved the Windows 7 partition into the extended partition as /dev/sda6. Then, I removed the original partition (/dev/sda2). I rebooted with Windows 7 installation DVD, clicked the Repair option and opened the Command Prompt. I typed the following commands to make the new Windows 7 partition bootable.


C:
bcdedit /store C:\Boot\BCD /enum
bcdedit /store C:\Boot\BCD /set {bootmgr} device partition=C:
bcdedit /store C:\Boot\BCD /set {default} device partition=C:
bcdedit /store C:\Boot\BCD /set {default} osdevice partition=C:

Then, I added the following entry to SYSLINUX.CFG.


LABEL win7
KERNEL chain.c32
APPEND hd0 6

To make sure that SYSLINUX can boot Windows 7, I typed the following command at the boot: prompt.


chain.c32 hd0 6

Now I am able to boot Windows 7 from a logical partition.



Booting Windows 7 with Software SLIC emulation


There are many ways to emulate SLIC so that Windows 7 can be activated. In my case, I've set up a boot sequence like this.


MBR -> SYSLINUX -> GRUB -> Windows 7

GRUB was patched for the loadslic command which is crucial for Windows activation. The SYSLINUX command to invoke GRUB is like this.


chain.c32 grub=stage2 grubcfg=(hd0,0)/win7.cfg

Then, I created a file WIN7.CFG with the following contents.


hiddenmenu
timeout 0
default 0

title Windows 7 Home Premium
loadslic (hd0,0)/lenovocb-01.bin
chainloader (hd0,5)+1

Wednesday, October 21, 2009

Linux: Tweaking Moblin 2.0 on Toshiba NB205

I installed Moblin 2.0 on my Toshiba NB205 netbook. Since Moblin is a Linux distro targeted for netbooks and still in early development, it doesn't yet have many applications I hoped for. Thus, I need to customize Moblin and compile or install application packages on Moblin. This post chronicles my on-going customization of Moblin.




  1. Setting Up Internet Connection


    Moblin has a simple interface to set up a network connection. Just click the top right corner of the screen and a network manager will appear. I noticed Moblin has a problem keeping a reliable wireless connection. The network manager is too simple to set up a complex wireless connection. For example, you cannot assign WEB keys other than the first one.



    Moblin Network Manager

  2. Adding PATH line to /root/.bashrc


    One of the first things I did was to launch a Terminal and explore the Moblin inside. I became root using the su command but couldn't run many commands because those commands were not found in the PATH. So I had to insert a PATH line into /root/.bashrc:


    # .bashrc

    PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'



  3. Installing Software Packages on Moblin


    The default Moblin installation has just enough applications to browse the Internet, read e-mail, enjoy your movies and pictures, twitter and IM with your friends, and manage your schedule. Well, I guess that's probably enough for everyone's daily netbook use. But I noticed that Moblin was missing a word processor and spreadsheet. My favorite is OpenOffice.org, but I couldn't find it in Moblin's package repository. So I installed AbiWord and Gnumeric instead. First, I started the Application Manager.


    Moblin Settings

    I opened the System menu and selected “Refresh package lists&rdquo just to be sure. Then, I chose &ldquoAll packages&rdquo from the left pane and selected from the package list on the right: Abiword, AdobeReader_enu, and Gnumeric. Then, I clicked the Apply button.


    Moblin_Add_Software

    Moblin check the dependencies and shows you a confirmation dialog. When I clicked the Install button, Moblin downloaded and installed the applications.


    Moblin_Downloading_Software

    Now the Office section of Applications area has new icons for Abiword, Gnumeric and Adobe Reader.


    Moblin Office

Sunday, October 4, 2009

Setting Up Linux on Toshiba Mini NB205

I am setting up Linux on my Toshiba Mini NB205. If you use a user-friendly Linux distro, such as Pardus Linux, difficult tasks like driver installation and X.org setup are easily done with the help of Linux installer. However, I found it hard to set up my Debian system on Toshiba NB205 which I had previously run from my USB flash drive.



Running pcimodules


I booted my Linux BootCD with kernel 2.6.25.15 and issued the command “pcimodules”



r8169
i2c-i801
ahci
ata_generic
ata_piix
pata_acpi
intel-rng
iTCO-wdt
ehci-hcd
uhci-hcd
snd-hda-intel
intel-agp


With Linux kernel 2.6.18.8, pcimodules displayed the following results:


snd-hda-intel
uhci-hcd
ehci-hcd
intel-rng
generic
piix
ahci
i2c-i801


Creating initrd Image


Based on this information, I created a folder containing the following files:


bin/dash
bin/mount
etc/modprobe.d
lib/ld-linux.so.2
lib/libblkid.so.1
lib/libc.so.6
lib/libdevmapper.so.1.02.1
lib/libdl.so.2
lib/libpthread.so.0
lib/libselinux.so.1
lib/libsepol.so.1
lib/libuuid.so.1
lib/modules/2.6.18.8/kernel/drivers/ide/ide-disk.ko
lib/modules/2.6.18.8/kernel/drivers/ide/pci/piix.ko
lib/modules/2.6.18.8/kernel/drivers/scsi/ahci.ko
lib/modules/2.6.18.8/kernel/drivers/scsi/libata.ko
lib/modules/2.6.18.8/kernel/drivers/scsi/scsi_mod.ko
lib/modules/2.6.18.8/kernel/drivers/scsi/sd_mod.ko
lib/modules/2.6.18.8/kernel/fs/jfs/jfs.ko
lib/modules/2.6.18.8/kernel/fs/nls/nls_base.ko
lib/modules/2.6.18.8/kernel/fs/nls/nls_utf8.ko
lib/modules/2.6.18.8/modules.dep
sbin/modprobe
sbin/pivot_root
usr/sbin/chroot

Then, inside this folder, I created etc folder and saved a file called init with the following contents.


#!/bin/dash
modprobe piix &&
modprobe ide-disk &&
modprobe ahci &&
modprobe sd_mod &&
mount -n -t jfs -o ro,iocharset=utf8 /dev/sda1 /mnt
cd /mnt
pivot_root . initrd
exec chroot . /sbin/init 5 dev/console 2>&1

Then, I ran the following commands inside the folder:


mkdir dev mnt tmp
cd dev; MAKEDEV std hda sda consoleonly

I created a cramfs image of this folder. Now I could boot into Linux with the following GRUB commands:


kernel (hd0,5)/26188.bin vga=0x314 video=vesa:mtrr
initrd (hd0,5)/initrd.bin

I succeeded in booting into Linux

Thursday, August 27, 2009

Notes on Toshiba Mini NB205

I recently bought a netbook made by Toshiba. Its model is NB205 black. So far I love this stylish notebook. It is light so it doesn't weigh heavily on my shoulder when I carry it in my backpack to school. It has a very long battery life (almost 8 hours) and it's surprisingly powerful enough. I'll keep notes about Toshiba Mini NB205 on this post. I will update it with useful information about Toshiba NB205.


Toshiba Mini Netbook NB205

Notes on Toshia NB205 Hardware



IDE/SATA Driver for Windows XP and Vista


I tried to install Windows XP and Vista on my Toshiba netbook. XP/Vista installer crashed many times unless I loaded Intel AHCI driver in the beginning of the installation. The netbook's 160GB hard drive is connected to Intel 82801GBM Serial ATA controller inside the netbook. I downloaded the text-mode driver (f6flpy3289.zip) from Intel support site. I unpacked driver package onto a USB floppy. The needed files are as follows:

iaahci.cat
iaahci.inf
iastor.cat
iastor.inf
iastor.sys
license.txt
readme.txt
txtsetup.oem

Then, I connected the USB floppy to my netbook before booting with XP/Vista installation CD/DVD in my USB DVD-ROM. I pressed F6 right after the XP installation started. A few minutes later, I was asked to choose the right driver from a list of drivers. Only one choice works; that's Intel(R) ICH7M/MDH SATA AHCI Controller.


After Windows XP is successfully installed, install the Intel Matrix Storage Manager (IATA89CD.exe.)



Other Drivers


The Toshiba support site offers many drivers and software for Toshiba Mini NB205. Download the following drivers when reinstalling Windows XP.




Applets for Toshiba NB205


TouchPad Driver


I downloaded Alps TouchPad Driver 7.4.2002 for Vista from SoftPedia. I extracted Vi32 folder from the package using 7zip and installed the driver by running DPinst.exe.



Chicony Camera Assistant Software for Toshiba


I downloaded the camera software from Toshiba. This software also works on Windows Vista and Windows 7.



HDD Protection Software for Windows XP/Vista/7


Toshiba Mini NB205 has a vibration sensor for safe-guarding the hard drive. HDD protection software uses a reading from the vibration sensor and temporarily put the drive in halt when significant vibration is detected. If you reinstall XP on Toshiba NB205, download the HDD protection software from Toshiba and install it. The software also installs the driver for HDD vibration sensor.



Toshiba NB205 Has SLIC 2.1 for Windows 7


Using SLIC Dump ToolKit V2.3, I learned that Toshiba Mini NB205 contains SLIC 2.1 in its BIOS ACPI table. That means an OEM version of Windows 7 can be installed on NB205 and activated with the right OEM certificate and key.


SLIC Dump Toolkit V2.0

Related Links


About This Blog

KBlog logo This blog seeks to provide a collection of interesting pictures found on the Web. Thanks for visiting the blog and posting your comments.

© Contents by KBlog

© Blogger template by Emporium Digital 2008

Followers

Total Pageviews

Powered By Blogger