LEGACY INFORMATION - Installing Solaris Express x86 on a Sony VGN-SZ4XWN/C laptop
The information in this section is old and outdated. Sun was bought by Oracle, who kill off OpenSolaris. But the information has been retained, in case it is useful to someone.
For many years I have been a user of first SunOs, then Solaris, which are produced by Sun Microsystems. Solaris used to be very expensive and only run on Sun hardware, but more recently Sun have made Solaris free, and it runs both on Sun SPARC hardware as well as x86 based PC hardware (both 32-bit and 64-bit).
Needing a laptop, I decided to splash out and buy the expensive, but high spec Sony VAIO VGN-SZ4XWN/C. At the time this was purchased (mid 2007), it was one of the highest spec laptops available, and cost me #1620 (UK pounds) - around $3200 at the time. Despite being the newest computer I owned, with a dual-core 2 GHz CPU and 2 GB of RAM, its performance was not too good, which I put down to two problems
- The laptop shipped with Microsoft Vista
- Sony included a load of junk/trial software.
Getting Solaris Express on DVD or via downloadSolaris Express Developer Edition can be downloaded from the Sun web site, or currently (December 2007), Sun will send you a copy in the post for nothing - not even carriage costs. If you either want to download it, or get Sun to send you a copy, just visit the Solaris Express web page.
Installing Solaris ExpressThere are two stages to this:
- Shrink the Vista Partition so there is some unallocated disk space to install Solaris.
- Insert the Solaris DVD and let it convert the unallocated disk space to a Solaris partition, then let the installer install Solaris in that partition.
The hard part - Shrink the Vista Partition so there is some unallocated disk space to install Solaris.The hardest part of this was getting Vista to give up some disk space so Solaris could be installed. The Solaris installation was quite easy once it had some space As shipped from Sony, this laptop has two partitions:
- A Recovery partition of about 10 GB, which is used to get out of trouble if the disk gets messed up.
- The rest of the drive (about 110 GB) is used by Vista
Windows Vista has a tool to shrink the partition size, which one can get at by:
- Left click Control Panel.
- Left click System and Maintenance.
- Left click Administration tasks.
- Left click Computer Management.
- Right click Computer Storage and Disk Management in the Computer manager and select Shrink Volume
Given I had more than 70 GB free, I assumed Vista would allow me to shrink it down to about half its size. Unfortunately, that is not true. Vista would allow me to shrink the volume by only 17 GB, and wished to keep the extra 53 GB to itself! I initially suspected the disk was fragmented and do Vista could not shrink it for this reason. Trying to defragment the disk using the tools in Vista did not help.
After asking on newsgroups, and various sources, it became apparent this is a known bug in Vista. There are numerous things which prevent the volume being shrunk much, but include:
- Vista has a paging file which can't be moved
- Vista keeps space for system restoration.
- Vista keeps has MTF files (Google on it), which Vista disk defragmentor can't defragment
- Vista has a hibernation file
- Disable the page file, then delete the page file.
- Disable hibernation (Hibernation needs an admin prompt to issue the command powercfg -h off)
- Disable System Restore
- Defragment the disk with a 3rd party tool. I used the 30-day trail of Perfect Disk. It has the option to defrag during the boot process, which was necessary.