Category Archives: General

CentOS 7.2 VM hangs on startup

Host :  Windows 10
Guest : CentOS 7.2 64x
Tool : Oracle VirtualBox 5.2

Problem:

For an unknown reason, your VM won’t startup and hangs on boot. You have tried like me many VBoxManage commands, transform raw to vdi, file access rights, … but you’re still on this screen:

CentOS hangs here

 

Solution :

When your machine gives you the boot choice, press “e” to enter the grub configuration. Look for “rhgb” parameter in the kernel boot commands and delete it.

2017-06-26_1049

This command should be in the line starting with “linux16”.

Add the command “systemd.unit=multi-user.target” at the end of this line.

Press Ctrl+x to start the VM and maybe everything will work fine.

Download links for the latest offline Flash Player Installer

Latest Update (05 April 2016) – Flash Player 21

Tired of searching, here the direct download links of the offline Flash Player Installer :

Found after some search here:

https://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#main-pars_header

ANT could not find home… variables

Ant lost, could not find home

I was tring to compile scoop using the “ant package” command when I ran into the following error:

Error:

Could not find or load main class org.apache.tools.ant.launch.Launcher

Debug:

ant –execdebug

exec “/usr/lib/jvm/jdk1.7.0_79//bin/java” -classpath “/usr/bin/build-classpath: error: JVM_LIBDIR /usr/lib/jvm-exports/jdk1.7.0_79 does not exist or is not a directory:/usr/bin/build-classpath: error: JVM_LIBDIR /usr/lib/jvm-exports/jdk1.7.0_79 does not exist or is not a directory:/usr/lib/jvm/jdk1.7.0_79//lib/tools.jar” -Dant.home=”/usr/share/ant” -Dant.library.dir=”/usr/share/ant/lib” org.apache.tools.ant.launch.Launcher -cp “”
Error: Could not find or load main class org.apache.tools.ant.launch.Launcher

Quick fix:

Missing directory, create an empty one.

             mkdir /usr/lib/jvm-exports/jdk1.7.0_79

CentOS hangs on startup after yum update

CentOS

Usually it will hang after Starting certmonger: [OK]

Startup the hanging machine (H1)
From another machine do:

> ssh H1
> su
> mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak

Now restart H1.

You can have more explanations by doing a “tail -n 200 /var/logXorg.0.log” on the hanging machine.

Get my blog content back!

It seems that data devil is playing around my lap-top. After my disk crash, my WordPress blog was suspended suddenly, with no previous alert! All I saw is

seuforia.wordpress.com is no longer available.
this blog has been archived or suspended for violation of our Terms of Services.
For questions or concerns, contact WordPress.com Support.

Furthermore, my account was suspended too and I can’t login to my dashboard. So I started reading the annoying terms of services. I thought that happened because of photos in my blog; I admit that I have some pictures taken from the net. Then, I read the Suspended blogs support page, and I was about to let down the whole thing thinking that all my posts were lost, because wordpress support, says

If  a blog has been suspended for violating our terms, its domain/URL and content will not be returned.

I don’t know why when I read this line, I heard Mario’s Game Over sound in my head 😀

All I could do is just send a message throught that contact form to wordpress support bagging them to send me back my content. Hopefully they answered me in about three business days saying

Blog Suspended by error

WordPress Support Answer

Ouch! Hopefully it was just a mistake. Once I’ve got my access back, I exported the whole content as an XML file (free export version). I think it’s time for me to install a backup solution on my lap.

Rescue your damaged hard drive for free

Last week, windows XP started throwing some disk errors and some blue screens on my data drive which is a 200GB NTFS partition from a 500GB toshiba hard drive. I thought that by executing CHKDSK and recovering damaged blocks this error will go away. So it took about 72 hours (yeah that’s correct… seventy two hours) for disk verification, but no error was reported.
I started a disk defragmentation. Meanwhile , a windows blu screen occured! I restarted the computer and the Data drive was empty. Hopefully, I did a backup before.

I googled for existing solutions “damaged hard drive rescue”, and I found some commercial solutions. I tried Stellar Phoenix but something went wrong with it after disk analysis (which was correct and I was able to see my files but it took about 12 hours for 178GB). So I let down.

I also tried the SysDev product, but demo version allows you only to recover 64kb. Somehow, “the godmother” told me about a product based on Sysdev work: R.saver. This russion product from R.Lab worked like charm, but you should know some russian to use it or just tweak 😀 . Analyse process took about 2 hours and file recognition about 3 hours for 200GB.

Damaged HD rescue

R.Lab

The process analyzes all clusters on your disk and recreates the entry point for every found file using IntelliRaw technic; Fetched files are classified by type then under IntelliRaw tree item. You can even search files if you can’t find them directly where you used to find them when your disk was safe; Those files are arranged under [Parent Unknown] directory…

 

Here is the product description in English (google translate from Russian):

Free software for recovering data from healthy drives.Has a simple and convenient interface. Produces restoring data from different versions of the corrupted file systems NTFS, FAT, and exFAT, recover deleted files and data from formatted. R.saver under Windows also allows access in read the sections with file systems: HFS, HFS +, HFSX, Ext2 , Ext3, Ext4, ReiserFS, JFS, XFS, UFS, UFS2, NWFS, ISO9660 and UDF.