Skip navigation.

Ubuntu - after things say 'bang'...

, , , , , , ,

There come moments that you would tear your hair out when working with computers. Hardly two weeks before Ubuntu would launch its newest 'Karmic' release a technical problem occurred in our region, suddenly cutting the Internet and power. The combination and rapid sequence of events caused hard drive and caching failures. Bang! My two RAID-chained hard drives couldn't initialize Ubuntu's GRUB anymore. After having restored that using the LiveCD from my 'Jaunty 9.04' I found out that the DeskTop didn't show its panel, sound came mono and loud only and there were other tiny inflictions like a total loss of access-speeds. It looked worse than Vista. What was going on? That the Internet was down plays an important role to explain this! Whatever the case I had to work and needed my OS.
A reinstallation appeared inevitable. From this there is a lesson to be learned...

Reinstalling Ubuntu is easy if you have done it a few times. It doesn't take between 11 hours (!), 50, resp. 37 minutes for an upgrade to new Windows 7 (depending your type of computer) which a BBC reporter experienced after several failing attempts. I decided to not touch the suddenly "defect" partition with all my current data that was not backed-up yet, but use the occasion to clean up the family-partition of which a data backup was available. Using the LiveCD and the Partition Editor (Gparted) I decided to go for a trial of the new EXT4 filesystem that I also should use when Karmic became available. So I emptied the 'family' part and repartioned 60 Gb of my primary hard drive to carry an EXT4 filesystem and left another 60 empty for later. Next I regularly installed Ubuntu 9.04 on EXT4, which went without any hassle and took little over 12 minutes. But the Internet still failed, so updating appeared impossible. Yet this part worked for now in a primitive, limited mode and I could get to my ill-fated second hard drive in the RAID chain that held the defunct installation with my data. In the GRUB2 this reflected by a rather peculiar entry at its bottom, summing up the /Home folders! As if I could ever start them? The sudden slowness reminded me of Windows! If you now think deep, you'll realize that this could have something to do with the failing Internet connection. Remember Windows, often hanging when the Internet became interrupted? Something apparently needed that connection and prevented me to achieve a regular, normal initialization of Ubuntu. Nothing else I could do to find out but wait until the Internet went up again. That took almost a day.

The fresh Ubuntu now took all my attention. As usual I refused the urgent automatic updates to finalize the install-procedure. First I made sure to have the NVidia driver on board for my graphics card, triggering the call to install this 'non-free' item by changing 'Visual Effects' in 'Appearance' to 'Extra', what couldn't be delivered without it . Nextly I made sure that Synaptic Package Manager got pointed to my fast, favorite repository-server and had all program-repositories open. I reloaded Synaptic, which is pretty essential to get the latest updates. Then I turned to the Update Manager in System-> Administration, to see what I really needed to install to conclude this installation. About 20 minutes later a new Kernel and all other necessities were ready to go. I did not restart still. First I added 'Sun Java(TM) Runtime Environment (JRE) 6' and 'Ubuntu restricted extras' to it, using Synaptic. No need to manually modify the 'sources.list' and add extra entries for them. I now had Java (a.o. YouTube) and MP3 (and more) up as well.

The standard 2 channel stereo and very loud pulse sound server for my 5.1 stereo system needs permission to be used! Wow! This is often forgotten, contributing to the avalanche of Google search-items about Pulse Sound. So, I went to 'System-> Administration-> Users and Groups' to select 'Manage Groups' and set 'Properties' for Pulse, Pulse Access and Pulse RT at work for me. Then in 'Preferences-> Sound' I selected my device and the Master channel to be controlled with my keyboard. In the top-panel I used 'Volume-> Control' for preferences to use certain channels, a.o. 'Tone' to get Bass and Treble working as well. I now used the Terminal for

sudo gedit /etc/pulse/daemon.conf
to set default-sample-channels = 6 and have full 5+1 stereo sound on my boxes. That was a hassle, partly not necessary if you only use 2 channel stereo or a headphone. The final touch however was to avoid "flat volume". That is this usually very loud preset volume when Ubuntu starts and when you switch sound sources. It's 'traditionally' set to 80%, which is for common installations far too loud! Just return to your Terminal and use the Up-arrow key to return to the previously entered Code! That was (see before) the file: 'daemon.conf'. Now add at the bottom: flat-volumes = no and gone is the roaring sound, unless you have your Volume Control set too high... Last but not least I wanted the 'swappiness' down from 60% to 10%. Using swapping over the hard drive gives this retarded "Vista-effect" and if you have more than 1.5 Gb memory you could lower that value to get far more agility (speed). Just use the Terminal to change this: (just copy-paste)
sudo sysctl -w vm.swappiness=10
Finally I adjusted some settings of my keyboard. Having all set, I made my restart and it worked very fast and pleasant again. Cave: the movie deals with Karmic 9.10!
Url movie: http://www.youtube.com/watch?v=pXxk7V2JdEU

Evolution email has a not so much 'hidden' as well a little know feature under its File menu: Forget Passwords. This is important to know when you must enter passwords anew for multiple email accounts. My wife made a few mistakes, causing a mess for Evolution. This program started to repeatedly ask for passwords, although the correct ones were already given and stored. To reset that situation you use 'Forget Passwords' and give the correct sequence afterwards. Then this email program works well.

Finally my answer to the suddenly defunct situation. How could it happen that the GRUB started me into a malfunctioning OS? The DeskTop didn't appear in full, the Panel with menus didn't appear and when I started a program manually with a trick all went 'sooo sloow', it looked like good old Vista. It appeared to be caused by "DropBox" in an older version (!) that desperately searched for an Internet connection that wasn't available. The link to my DeskTop couldn't be established at startup. A 'time-out' loop occurred! A bug that was resolved in a later version, which I installed now. DropBox is in the repos. After installation you manually interrupt Network Connections for a moment to startup Dropbox a first time. When it asks to install its web-component, just restore the connection and have it run. I found this out today after a renewed breakdown of services. It is the reverse 'problem' as when installing DropBox for which you thus must briefly interrupt Internet access. There are possibly more programs that require Internet access and may run automatically after a start-up. This phenomenon warns us in a way for too enthusiastic "Cloud" computing. What can one do without Internet in such a case? Upon regaining the Internet however all previous problems were dissolved and everything worked as usual. I am curious to see if the new Ubuntu 9.10 'Karmic' is improved on some of these aspects.
I can hardly wait...

John

PS. For the 'wise guys and girls' amongst my readers, who would want to break startup speed records, a hint. If and only if your computer has an INTEL Quad processor allowing Multi-Threading (and you are sure you know this is true) you could go: /etc/init.d/rc and set 'concurrency = shell' (from 'none') to nibble a second or so off from your fast EXT4-startups. Below 8 seconds is possible for the upcoming 'Karma'. By comparison: new Windows 7 takes over 2 minutes. So don't get too nervous. My box takes 16 seconds from power-on to log-in screen.

Mel Brooks... Good to be...Ubuntu Karmic and Linux Women...

Comments

Deb Platt 22. October 2009, 01:34

Excellent article, although I'm sorry you were placed in a situation where you had to re-install. Also, I love the humorous images you use to illustrate this and other blog articles.

When I installed Ubuntu, I only set up one partition. Now I'm regretting that I didn't put my home directory in its own partition. As I understand it, that can make upgrades go more smoothly. So can I use gparted now to move my home directory into its own partition?

Dr. John v. Kampen 22. October 2009, 09:11

Yes, you can, but it requires some care!
I have written about this, but here is a more detailed source:
a) the normal way: http://www.psychocats.net/ubuntu/installseparatehome
b) another one: http://www.howtoplaza.com/how-to-install-ubuntu-904-on-a-manually-created-partition
c) and: http://www.funnestra.org/ubuntu/jaunty/

The basic principle remains the same but there is a caveat:
d) your way: https://help.ubuntu.com/community/Partitioning/Home/Moving

The trick sits in this gksu gedit /etc/fstab! Read (d) well on it.
Bear in mind that "BackInTime" can roll-back an backupped Home with ease as well. I prefer that way currently!

:wink:

Deb Platt 22. October 2009, 19:04

Thank you for the info.

Aadil 23. October 2009, 00:04

My entire "harddrive" is only 8Gig! :faint:.
I'll have to raid those links to seperate my /home out! p:.
An sd card of 8Gig should be enough! :whistle:.

Dr. John v. Kampen 23. October 2009, 19:20

Wait a minute, Aadil. My whole installation inclusive latest updates and mucho software of Ubuntu Karmic 9.10, just running (I'll write it about this next) takes.... 4.8 Gb. So you have a 'universe' of space left still. This isn't Windows, remember? But why would you make a separate /Home drive partition? Partition that is. /Home is a well-protected sub-directory ingenuously hooked up to the encrypted Filesystem. Now Ubuntu Karmic comes with Ubuntu One (a sort of DropBox - 2 Gb free for synced and shared data) you could use that for data storage as well (in the 'Cloud'). The step to Karmic appeared to me considerably less "cumbersome" than to 9.04 or 8.10. But read about my experiences that I'll describe in a next article.
:rolleyes:

Aadil 24. October 2009, 21:08

The way I work, testing different distro's and software. And using various incompatible platforms for various purposes, (Symbian on my phone for e.g.) means that I tend to use my own 'directory tree' for storing my stuff. So, most of my stuff is currently stored seperately on a flash-drive. Some of that stuff is used with all platforms that I use. Most of the platforms I use are either Linux based, or use a 'user storage' that resembles the Linux home directory. I'm currently considering moving my Ubuntu system to a flash drive and booting from that as it would be more flexible than trying to 'dual-boot' multiple systems.
Always remember that my 'real' job (the one that pays the rent) has no use for computers and that this is my hobby. So, a complete system faillier (is that spelt right?) is not a disaster, but merely an entertaining challenge! :lol:.
As frustrating as fiddling with computers can be, it's that very frustration that gives me hours of entertainment. One of the reasons I never liked Windows is because it generally either works or it doesn't. If it works, there's nothing for you to actually do, and if it doesn't, there's often not much you can do! p:.
Now think about this. I've pulled apart every flash drive I own within an hour of getting it out of it's package just to see what was inside. :left:. I've pulled apart my Acer, even though that voids the warranty, withing two days of getting it home. If I can't tinker with it, it's no fun. I personally think that warranties are there to discourage the end user from home upgrades. The manufacturer can make a lot of money by 'scaring' you into returning the item to him for improving it in some way, at a fee, rather than doing it yourself for free.
(warranties exist for valid reasons though but they don't deter me easily)

Dr. John v. Kampen 24. October 2009, 21:42

Yes, I see what you mean. Failure is what you meant and indeed it just arouses my curiosity as well. And I agree about proprietary software that's not open. With Linux you can virtually change everything except the Kernel (for me). The main issue being that 60% of the end-users (the MS users) don't want to tinker, but have it tinkered for them, whether that be 'spaghetti'-solutions or not. That that costs more than tinkering and learning yourself from failures I find downright 'stupid'. But it is the easy way some think this world runs (still).
Warranties are good for the first 100 hours of usage. When a computer (and many other household tools) keeps working it will do so the next 4.000 hours (the 'bathtub' period) as a rule of thumb. But those first 100 hours are critical indeed. That is the scary period for manufacturers. All the rest is to sooth the minds...
Homer: Doh!

Aadil 24. October 2009, 22:31

Thanks for that spelling correction. :yes:.
I knew it was wrong and tried several alternative spellings like 'failiar' and 'failior' but I just couldn't get the right one. :lol:.

Dr. John v. Kampen 24. October 2009, 22:51

You could add this as a bookmark to get to the bottom of this, Aadil...
:yes:

Aadil 31. October 2009, 08:51

All I need do is to activate Ubuntu's speech to text feature. p:.
But that's being a bit too lazy! :lol:.

Dr. John v. Kampen 4. November 2009, 21:47

Speech to text works, a bit the way Dr. Stephen Hawking 'speaks', which makes it attractive in a way.
:yes:

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

January 2010
M T W T F S S
December 2009February 2010
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31