Friday, March 17, 2006

Bleeding on the Bleeding-Edge :(

The unthinkable happened today -- My hard drive crashed! The machine stopped booting with scary looking messages I don't recall ever seeing. I looked desperately, among the randomness for a message of relief - Kernel panicked, but not even that message was to be found.

It all started soo innocently. I updated my Xgl portage tree - just like any other morning, and went about compiling the update packages. Now my machine is known to be quite buggy and reboot, especially during disk or processor intensive tasks. Overtime I've learned to live with it, blaming it on bad hardware (after all Linux is stable right!). But the random reboots were only a mere annoyance, thanks to reiser-fs the journaled filesystem, I never met with any sort of corruption -- that is until today.

The gruelling path to recovery


I booted off a taprobane Livecd, and went about fscking the root partition. The exact command was:


reiserfsck /dev/hda3


After checking for over an hour, it came up with a long report that basically said, my partition was severely corrupted! It adviced me to re-run the command with the --rebuild-tree option, but the man page had some alarming text about this option:


--rebuild-tree
This option rebuilds the entire filesystem tree using leaf nodes
found on the device. Normally you only need this option if the
reiserfsck --check reports "Running with --rebuild-tree is
required". You are strongly encouraged to make a backup copy of
the whole partition before attempting the --rebuild-tree option.
Once reiserfsck --rebuild-tree is started it must finish its
work (and you should not interrupt it), otherwise the filesystem
will be left in the unmountable state to avoid subsequent data
corruptions.


So instead I decided to use the more safe --fix-fixable option which basically said to fix anything fixable. Well that wasn't enough and I did ended up running --rebuild-tree after all.

Luckily my /home partition and the smaller /boot passed with good heath after fscking them :) All seemed well now, so I rebooted as I eagerly expected things to work. It turned out I was still far from recovery.

At first I could see the kernel boot and load drivers. I immediately noticed now the sound driver was giving an error, but that didn't seem too important to worry bout. Then came the following message:


Your system seems to be missing critical device files
in /dev ! Although you may be running udev or devfs,
the root partition is missing these required files !
...


But I did see a login prompt, but supprisingly it never prompted me for the password! I couldn't login :(. So I rebooted again, this time with the Gentoo Xgl CD. Copied all the /dev files from the live cd onto the /dev directory on the hard drive.

That's when I noticed the lost+found directory. I've rarely seen this directory on a reiserfs partition (its quite common on an ext[23] partition). Surprise surprise.. there were over 3-4 dozen of files that had been recovered with the inode numbers -- pretty useless without the file names. Suddenly it occurred to me -- I might have to reinstall Gentoo, something that could take a week or more.

Gentoo to the rescue


I rebooted to get the same message and the same login problem. I rebooted again and chrooted into the root partiton. I first ran revdep-rebuild -p to check reverse dependencies but that only came up with xterm as being broken. Trying to emerge xterm revealed another problem : the gentoo package database was inconsistent, but it told me the exact command to execute.


/usr/lib/portage/bin/fix-db.py


That came up with a list of packages that came up as corrupted. So I unmerged (removed) some and re-merged others and rebooted the system. Still had no luck, so back to the livecd. Again I chrooted to the root(/) partition and started looking at the logs which revealed more kernel drivers that have failed (acpi for example). Looks like I'll need to recompile a kernel. But that still didn't explain the login problem. Looking through the log files, one revealed the problem.

#tail -100 /var/log/auth.log
agetty[2933]: tty1: can't exec /bin/login: No such file or directory


Sure enough, /bin/login was infact missing. A bit of esearching hinted pam-login was responsible for that file, so emerging it at rebooting fixed it. Phew, a sigh of relief as X-windows booted to enlightenment(e17).

I still have to recompile the kernel and stay on the lookout for other (possibly) broken packages, atleast I've save on a couple of days/weeks starting from scratch!

I guess you can't live on the bleeding edge without bleeding a little (or a lot in this case) sometimes :)

4 comments:

jasontheodd said...

Waiting to see what Novell does with Open Suse, since the made xgl one would assume they would have big and bright plans for it.
Tried getting it into SuSE 10.1 but didn't seem very stable. Alas, I guess I get to keep firing up the Kororaa Live disc and spinning the cube....that never gets old.

Bud said...

Yes this project is in full swing development. ATM Gentoo is the best way to experience it since you get the latest version as of yesterday :) Yes sometimes the system becomes unstable but overall it has got to a point of being usable for ordinary work.

And yes I too am hooked on the 3D cube and arranging my apps accordingly. The expose (F12) is also great.. just what I've been waiting for..after seeing MacosX

Weight Watcher said...

A typical dictionary definition of hypnosis states that it is: a state that resembles sleep but that is induced by suggestion. However, anyone who has tried hypnosis (and any self respecting hypnotist) will tell you that this is a very simplistic view of the subject!
A much better description comes from the Free Online Dictionary which states that hypnosis is: an artificially induced state of consciousness, characterised by heightened suggestibility and receptivity to direction. So what does this mean and how can it be used to your advantage?

Well, the subject of hypnosis has been discussed and pondered since the late 1700s. Many explanations and theories have come and gone though science, however, has yet to supply a valid and well-established definition of how it actually happens. It's fairly unlikely that the scientific community will arrive at a definitive explanation for hypnosis in the near future either, as the untapped resources of our 'mostly' uncharted mind still remain something of a mystery.
However, the general characteristics of hypnosis are well documented. It is a trance state characterized by extreme suggestibility, deep relaxation and heightened imaginative functioning. It's not really like sleep at all, because the subject is alert the whole time. It is most often compared to daydreaming, or the feeling you get when you watch a movie or read a captivating book. You are fully conscious, but you tune out most of the outside world. Your focus is concentrated intensely on the mental processes you are experiencing - if movies didn't provide such disassociation with everyday life and put a person in a very receptive state then they would not be as popular (nor would TV advertising be as effective!). Have you ever stated that a film wasn't great because you just couldn't 'get into it'???
This works very simply; while daydream or watching a movie, an imaginary world becomes almost real to you because it fully engages your emotional responses. Such mental pursuits will on most occasions cause real emotional responses such as fear, sadness or happiness (have you ever cried at a sad movie, felt excited by a future event not yet taken place or shivered at the thought of your worst fear?).
It is widely accepted that these states are all forms of self-hypnosis. If you take this view you can easily see that you go into and out of mild hypnotic states on a daily basis - when driving home from work, washing the dishes, or even listening to a boring conversation. Although these situations produce a mental state that is very receptive to suggestion the most powerful time for self-change occurs in the trance state brought on by intentional relaxation and focusing exercises. This deep hypnosis is often compared to the relaxed mental state between wakefulness and sleep.
In this mental state, people feel uninhibited and relaxed and they release all worries and doubts that normally occupy their mind. A similar experience occurs while you are daydreaming or watching the TV. You become so involved in the onscreen antics

Personal Development said...

Visualization is a tool that has been used for thousands of years by initiates of all the metaphysical schools. Today, it is incorporated into top athlete's daily routines and is used in business affairs frequently. It's use is wide-spread among highly successful people, either consciously or unconsciously, aware of its create power. So if it has stood the test of time and is still being used by high achievers we must come to the conclusion that it works! But has it ever worked for you?

If you answered 'yes' to the above question then you know how powerful this technique can be. If, on the other hand, you gave the more likely answer 'no' then take heart for I am about to reveal to you a sure fire way of reaching your objectives through this mostly misunderstood art.

The trouble with visualization is simple - its in its name!

When studying and contemplating the art of visualization most people have the impression that they must create visual images and make them real or life-like. Many people, in fact the majority, find this almost impossible to do. Even if they can formulate a solid picture of their objective they find it extremely difficult to sustain the image for any length of time. Either the image fades, changes or other intruding thoughts intervene.

This type of visualization is almost impossible to sustain and luckily it is not at all necessary. Why? Because it is in the subconscious mind that your visualization needs to be placed and there is good news. The subconscious mind does not know the difference between an imaginary event and a real one. Your visual image only needs to be a strong visually as any other imagined event. However, that is only half the story.

If all you had to do was just imagine stuff and your world automatically changed to reflect your imaginings this world would be full of chaos (not to mention all those creepy crawly bug-eyed monsters!). Therefore, there are a few more steps to complete before the visualization is passed to the subconscious for manifestation.

Let's try a little experiment. Remember a scene from your past that has a lot of good feelings around it. Any good memory will do, like the first time you heard the words "I love you" from your partner, an amazingly spectacular sunset, a great holiday event or your last birthday. Pick one and remember it. How clear is the image? Can you remember any sounds? What way did you feel? Is there any sense of touch, taste or smell? Identify how your memory works. Is it mostly visual, auditory, kinaesthetic or of a feeling nature?

Now we are going to create an imagined event in our lives that has the same strength and potency as that image. So relax and let's go.

Imagine something that you do everyday, something that you did yesterday, today and will do tomorrow. Let us take the example of waking up tomorrow morning. Don't try to add or take anything away, just think about it and analyse the scene. Is it dark or light? Are you lying next to someone in bed? Do you still feel tired? Has the alarm clock sounded? Are you irritable that you have to get up or full of joy at the dawn of a new day?

You will find that the imagined event is very similar to the memory with probably one key difference - your point of perspective. Is the memory behind you and the future event in front of you? Is one to the left and one to the right? Maybe they are both in front of you or the future seems to move in a clockwise direction. Whatever the perspective the thing to notice is that they are very similar in appearance.

Now imagine doing your future event a week from now, then a month from now, then six months from now. Where are those images placed? Are they moving further away, going clockwise, from left to right? This is your time-line and using it is important in visualization as you will see later.

Ok, let's imagine something that is very unlikely to happen and see where it differs from the last image.

Imagine you are sitting somewhere familiar which is extremely comfortable and relaxing to you. Now imagine that a person you know well comes up to where you are and says "hello". Imagine them telling you that they want to show you a new trick. All of a sudden they have three juggling balls. They throw them in the air and begin to juggle with ease. Then they begin to whistle one of your favourite tunes. You suddenly realize that there is a strong smell of flowers in the room and notice a vase of them just behind the juggler. Imagine laughing loudly at the scene and feeling joyful at the experience. Then the person juggling leans forward stands on leg and puts the other leg outstretched behind them. All the while still juggling and whistling. Then they begin to hop on their leg as a small bird flies over to perch on their head. Once you have the imagined event and stayed with it a few moments just let it fade.

Ok open your eyes. What was the difference between the two images? Can you spot any? Did you use more, less or roughly the same senses in your fantasy event as you did in the future one? Did you see them from different angles? Was the picture bigger in one than the other? Was the sound clearer, the feelings more acute or the smell stronger? Take some time and go back to each scene in your mind. How does the future event differ from the fantasy one? Are you looking at both from a different vantage point? Do you see yourself in the image of one but not the other? Analyse the scenes and see where they differ.

Have you identified how the future event differs from the fantasy one? If you have then its time to make visualization work for you! Take a goal that you have been working on or would like to achieve. Nothing too far-fetched at this point please! Pick something that is possible but at the moment seems a little impractical. Once you have it form a mental image of what it would be like to have, be or do that thing or be in that experience. Remember to form it the same way you do a memory. Give it the same strength visually, in sound, feeling, taste and touch - use your mind in its natural state. All you have to do is imagine the scene.

Ok how does it differ from the scene of waking in the morning? Can you identify the differences in perspective, sound, taste, touch, feelings and what you hear?

Now there will be one other key thing that differs in the images- it is very simple but often overlooked. You know that the future event is going to happen! This is reflected in the way we experience the image. So what we are going to do is fool your subconscious mind into thinking your goal is definitely going to happen by manipulating your goal image!

Once you know what the differences are in each image begin to change the goal image so that it is seen the same way as the future event in your imagination. Place the visualized scene in exactly the same position with the same perspective as your future event.

Place it in the correct position on your time-line. You may already begin to feel that the goal is more possible. Visualise in this way everyday and you will condition your subconscious mind to manifest the experiences necessary to make your goal attainment certain.

One more thing to remember: During the day think about your goal often. This reinforces the visualization and will begin to dispel doubt from your mind. personal-development.info