Oracle Solaris Studio 12.2 on Solaris 11

Related Web Portal:
Oracle Solaris Studio
Although not officially certified on Solaris 11 Release platform, we can definitely use the Solaris Studio as a tarball.

I don’t apply extra patches, only using following packages mentioned here….
Installing Oracle Solaris Studio 12.2 (tarfile) on Solaris 11 Express

the launch is all ok, I wrote a small script to invoke the binary, as I dont actually like to add those binaries to $PATH,
for I have GNU compiler sets in the $PATH…

Some small issues which related to Netbeans (v 6.9)
1. editor on GUI doesnt have good font settings,  all saw-toothed by default.
2. add Java to the netbeans cannot be detected by default, for JAVA_HOME not known.

Fix… to change netbeans conf. and restart the IDE.

VirtualBox doesnt work with kernel-2.6.41.fc15

My Env:

launching VirtualBox failed since it needs to re-compile driver:

check the logs and see the err:

Double check that Fedora Kernel 2.6.41 not provides this header again.
not like in 2.6.40(also called 3.1 and 3.0 in mainline kernel.)

Still working on a workaround….
an obvious w/r is to rollback to 2.6.40 kernel.

Thu Dec 8 23:19:43 CST 2011
seems it’s a reported issue…
upgrade to 4.1.6 and change scripts:



Following links may also help:
Default Fedora 15 kernel asm/amd_iommu.h missing; bad kernel upgrade!
VirtualBox 4.1.6 on Fedora 15 with Kernel module compilation error

Recover from root partition lost

I ran into troubles on my Dell box, which hosting Fedora( ) and WinXP Dual OS.

My OS partition table looks like the following(After recovery)


Actually I dont especially partition for /home or /tmp,  it’s directed to the root partition.
***I think it a not smart design in Fedora using /etc/mtab
***Which may cause duplicated mount.
***If you dont like it ,just change mtab solution.

[Please Dont Copy following Steps, danger! ]

1. umount /dev/sda7
It’s good that /home umounted.

2. re-run the cmd1 , umount several times. with option ‘-l’, which may dismount root partition.

3. os in bad state although running applications keep working, but /dev/sda is no visible now.

4. fdisk or df not work.

5. reboot and try above codes…and finally…. system down.

[Time to Rescue]

1. reboot nodes doesn’t work, grub seems ok .
/boot is not affected, but cannot boot, incidentally turn to debug dracut shell.

2. use cmd fsck.ext4 and e2fsck  seems not have obvious problems.
mount all my Linux partitions one-by-one, found the problem that my root partition lost.

3. seems I find the root cause that partition table is not in good condition.
cannot find /root.
But all other partitions are work fine.

4. After a while I decide to continue.
I’ve a iso image of “Fedora-15-i686-Live-XFCE.iso” on my Windows partition.
It’s prepared for the first installation from iso.

5. so use this iso for a live linux rescue env.
editing the grub command
(my /boot is not affected, so grub still works, even if it fail, I have grub4dos ready. )

6. boot the LiveCD,  mount the disk partitions and check. seems all ok except the root partition.
TestDisk is a well-known free tool that can help repair the partition table and find the lost partitions…..
It’s however fine my LiveOS can connect internet and download TestDisk binary….
Use TestDisk Analyze to find the partition table, write back to Disk…
<Caution: the write back operation is not safe, backup current table if necessary>

7. reboot OS but ‘m still blocked on GRUB page, so I had to turned back to LiveOS as in step5

8. from my notes, noticed that the disk sequence has already changed…
for example, the /dev/sda5 windows partition is now marked as /dev/sda3
/boot which was /dev/sda8 is now /dev/sda5

need to change following files, replace the changed disk id:

for example change (hd0,8)->(hd0,4) on my env. for /boot
change /dev/sda05 mount point in fstab to /dev/sda03
those records in fstab using UUID is not necessary. if the uuid of disk partition is not changed.
<use cmd blkid to verify>

9. since the boot partition id changed and last reboot blocked on the grub page.
need to re-install grub

10. reboot  and OS can correctly restart… all partitions found.
using e2fsck to check and verify.

Fri Dec  9 10:36:22 CST 2011

Another issue after the partition table recover.

My Oracle DB cannot startup

To Fix:

so, umount all bind mount point on tmpfs, and remount with a larger size.