Weblogs: Gadgets and Stuff
Being a gadget freak and a Web freak, I tend to keep a close eye on emerging gadgets that either fit in your pocket, surf the web with, or conveniently both.
Gadgets and Stuff links
- User-Experience Design based on Paper-Wheels
- Engadget: Origami refolded: here's what we know
- CNet: Microsoft whispers Origami details
- MS Origami
- Blether: GP2X Review
- Nokia 770 Internet Tablet
- A History of Apple's Lisa, 1979-1986
- Nokia Launches Linux Based 770 Net Appliance
- Nokia 770 Linux Tablet
- The Birth of the Pilot
- GP2X console goes on sale
- X41 Tablet - First Impressions
- ThinkPad X41 Tablet: a first look
- Apple to add Trusted Computing to the new kernel?
- Birth of the Lisa
Thursday, November 01, 2012
Ubuntu 12.04: Solving slow boot times on Toshiba NB300 Netbook
I picked up a Toshiba NB300-108 for just under £70 on an ebay auction a few weeks ago, and decided to clean install Ubuntu 12.04. True to form Ubuntu installed flawlessly. But, there was one annoying problem. It took about 5 to 7 minutes to boot.
It’s taken a couple of days of hacking around, trashing Ubuntu and re-installing it, but I’ve gotten to the bottom of the issue. Most of the 5 minute boot sequence seems to be the laptop just sitting there waiting for something to happen, there’s only a tiny amount of disk activity going on.
The first step is to figure out why the boot process is so slow. So in a Terminal, run dmesg which displays a timestamped log of each subsystem initialising. The timestamp counts the number of seconds from power on. Looking through this list I saw a huge leap in seconds (about 350 seconds), and that line said:
[ 352.885250] ADDRCONF(NETDEV_UP): eth0:
link is not ready
Turns out Ubuntu can’t quite deal with the Ethernet card (possibly a Realtek network module). Opening the “Connection Information” in the Network menu (top right icon of up-and-down arrows) identifies the network card driver as r8169.
The solution turns out to delay the initialisation of the Ethernet card, removing it from the boot sequence and adding it to the rc.d initialisation. Here’s how to do that:
First we blacklist the card from the early boot initialisation steps (all on one line):
echo "blacklist r8169" |
sudo tee /etc/modprobe.d/blacklist-ethernet.conf
Second step is initialising it by editing /etc/rc.local and adding in modprobe r8169 just before the exit 0 line:
modprobe r8169
exit 0
Thirdly we need to rebuild the boot image to take into account the newly added blacklist item, so run the following:
sudo dpkg-reconfigure linux-image-$(uname -r)
Once that is done, reboot the laptop.
For me that reduced the boot time to 38 seconds, so a reduction of about 90%. There’s still a couple more seconds to be saved by disabling the ipv6 and parallel port support, but that’s for a rainy day.
Related links
- UbuntuForums: [SOLVED] Ubuntu 12.04 boots for more then 60s
- UbuntuForums: Possible to blacklist lp module? Causing 3 minute boot delay!
Older Posts:
- [29/03/2011] Web Development on a Mac just makes sense
- [19/10/2010] Samsung N210 Netbook
- [28/01/2010] Apple reclaims leadership in tablet computing
- [14/03/2009] From Ubuntu to Xubuntu
- [08/06/2008] Ubuntu after a month
- [27/04/2008] Make or break with Ubuntu
- [23/04/2007] Sinclair Spectrum 25 years old
- [21/04/2007] Installing Windows 2000 on a Lifebook 2130
- [21/04/2007] The £25 Lifebook challenge
- [29/01/2005] Jumping on the Mac Mini bandwagon
- [21/07/2003] Sony Clie: Wireless Networking PDA
- [04/07/2003] Xbox Independance Day
- [08/05/2003] AlphaSmart Dana - the next Z88?
- [14/01/2003] Hunting for a sub-notebook
- [07/11/2002] Microsoft Tablet PC
- [03/10/2002] Grown up Zaurus
[ Weblog | Categories and feeds | 2011 | 2010 | 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 ]