Tuesday, December 20, 2011

compact VM

so to wrap it up

inside of your virtual machine

1) pick the defragment tool of your choice and configure it to pack data as close together as possible - leaving large areas of free space

(I used http://www.oo-software.com/free/en O&O Defrag Free Edition - a very potent free defrag utility 8) )

2) zero the free space with http://technet.microsoft.com/en-us/sysinternals/bb897443 sdelete

sdelete -c C:\ (on C:\)

or whatever other drive



outside of the virtual machine - on your host

3) VBoxManage modifyhd Disk.vdi --compact


disk worked like a charm and gained me 9 GiB worth of additional harddrive space on my /home partition - and that was only one of those harddisks :D

Thanks ! :)

Thursday, September 1, 2011

ELF & CHMOD

create symbol link

ln -s -f libsource libnew

chmod (set permittion)

chmod 755 file

Tuesday, June 7, 2011

problem linux prapop is not in the sudoers file. This incident will be reported

su - echo 'prapop ALL=(ALL) ALL' >> /etc/sudoers

Thursday, June 2, 2011

hiren usb boot how to

To launch Hiren’s BootCD from USB flash drive, first of all, your BIOS settings should be configured in order to change the boot order of your computer to USB drive. If you are having problem on changing boot order in BIOS, please refer Change the Boot Order in BIOS document. Please note that some computers may not support booting from USB drive and the steps below only works for the versions of Hiren’s BootCD 9.7 or newer.

Step1: Formating USB Flash Drive

Please note that, all data on your usb flash drive will be lost. Before doing this step, don’t forget to backup your files on the usb flash drive.

1. Connect a 512 MB or above flash drive.
2. Download and run USB Disk Storage Format (34 KB). Follow the steps in the screenshots below:

Step2: Installing Grub4Dos to USB Flash Drive

Download grub4dos.zip (187 KB) to desktop. Follow the steps below:

1. Right click to the zip file and click 'Extract All...'

2. Click Next

3. Click Next to extract archive contents

4. Click Finish

Now open ‘grub4dos’ folder created on your desktop. Run ‘grubinst_gui.exe’ inside of grub4dos folder and follow the steps below:

1. Run grub4dos

2. Click 'Run' on if you face with a Security Warning window

3. If you are not sure which disk is your USB Flash Drive, select the drive with the same size with your USB flash drive.

4. Installation of grub4dos completed. Press Enter to close the window.

Step3: Copy Files to USB Flash Drive

1. Put Hiren’s BootCD (9.7 or newer) into the CD Drive.
2. Copy everything from CD to USB Flash Drive.
3. Copy grldr and menu.lst (from HBCD folder of the CD) to the usb drive’s root folder. Finally contents of your USB Flash Drive should look like as below:

Final View of USB Flash Drive Contents

set usb as harddisk

VBoxManage internalcommands createrawvmdk -filename c:\usb.vmdk -rawdisk \\.\PhysicalDrive1

15zi9s6 Boot your USB Drive in VirtualBox

Sunday, February 13, 2011

set path in linux

For bash shell:
export PATH=$PATH:/usr/sbin/:/usr/local/bin:/var/harddisk/asus/bin

export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/harddisk/asus/lib:/var/harddisk/lib