Friday, January 30, 2009

WUBI - Ubuntu won't boot; missing root.disk

Did this ever happen to you? It sucks right? You simply wished 'you should have installed natively (the old way)'.

So your Ubuntu won't boot because root.disk is missing, then you check out c:\ubuntu\disks, it's not there. (And probably, disks directory is not even accessible or is missing too.) o_O

So what happened? Your NTFS filesytem got corrupted because on many reasons -- primarily, you might had a power interruption.

Is it lost then? I'm not sure but let's hope it didn't. You can try to recover root.disk by following this steps:
1. Run command prompt as Administrator -- needless to say, 'Enter your password'.

2. Run Check Disk by typing: chkdsk c: /f (change C: to your local disk drive)
NOTE: There's a big change that a message will show.
Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N)
Just type Y and restart you PC immediately.

3. After it finished checking (and possibly, repairing) your disk, make sure to show your hidden files.

4. Look for your (onced missing) root.disk under c:\found.000 directory and put it back to c:\ubuntu\disks\.
NOTE: Your swap.disk could also be inside found.000.

Now, try to reboot your Windows and choose Ubuntu then hope that the recovered file is intact and not corrupted. ;)

Friday, January 9, 2009

NSIS: How to make a required Section?

I really don't know if I should post this on my blog. It's something that almost (and I mean almost) everyone that use NSIS knows.

But, believe me, I have been looking for this how-to for years! -- literally!

Section "my_required_installs" SEC01
SectionIn RO
SectionEnd

Who would have thought that it would be all that simple?

And how in the world could I have missed the documentation on NSIS?

Now, I can update my KonsolScript Editor installer. :P

Monday, January 5, 2009

How to insert web pictures on OpenOffice?

Has anyone of had problems inserting picture you copied from the internet? I had. And it took me a couple of hours figuring how to do it the MS Word way. The odd thing is that I've been using OOo for more than 2 years and it's only now that I met this problem.

Here's the solution to that:
1 . After copying an image from the internet, paste it in OpenOffice Writer.
2 . Click Edit and select Links.

3. Select all the image links then choose Break Link.

3. You will be asked if you really want to remove the link. Choose Yes.

That's 4 steps to paste image from the internet. 4-steps of pain it the ass. You want it to be as simple as Ctrl + V? Then sign the "petition" created last November 2004 -- and that's 4 years of waiting in agony for OOo developers to implement it.

It's really ridiculous to provide alternative to MS Office then make the access-to-functionality very differently.