2012年10月30日星期二

frecovery files from MAC HFS+

Use foremost & Ubuntu 11.04

Download ubuntu & burn it into CD or DVD.

Boot the Ubuntu CD/DVD with pressing the option key when startup the MAC.

start the try ubuntu & not install

after ubuntu startup , start update manager

 select settings

select ubuntu software

click Community-maintained Open Source software (universe)

click reload

after finished reload click close

start terminal press CTRL-ALT-T

 key in

apt-get install foremost

after install finished then

plug in USBDISK for store the files that foremost recoverd

it might be mounted  for example /media/USBDISK


you can key in

man foremost to learn how to use it.

you need to change /media/USBDISK instead of your correct mount point

Example for recover some  photo jpg/jpeg & movie avi/mpg/mov

foremost -vd -t gif,jpg,avi,mpg,mov -i /dev/sda2 -o /media/USBDISK

Example for recover all files that foremost can recover

foremost  -vd -i /dev/sda2 -o /media/USBDISK

God bless you!











2012年10月20日星期六

ubuntu ssd alignment

1.Use Gparted to create the partition align with MiB. Insert 1 Mb in front of the partition.
2. start trim for SSD
sudo cp /etc/fstab /etc/fstab_backup
sudo gedit /etc/fstab

add noatime,nodiratime,discard,  in front of defaults.

something like that
#/ was on /dev/sda1 during installation
UUID=xxxxxxx-xxxxxx-xxxx  /           ext4     discard,noatime,nodiratime,defaults        0       2

or

 #/ was on /dev/sda1 during installation
UUID=xxxxxxx-xxxxxx-xxxx  /           ext4     discard,noatime,nodiratime,errors=remount-ro 0       1

move /tmp to tmpfs

add lines at the end of the /etc/fstab

tmpfs   /tmp       tmpfs   defaults,noatime,mode=1777   0  0
tmpfs   /var/spool tmpfs   defaults,noatime,mode=1777   0  0
tmpfs   /var/tmp   tmpfs   defaults,noatime,mode=1777   0  0

If you use notebook or desktop(not server). You can move log to tmpfs.
tmpfs   /var/log   tmpfs   defaults,noatime,mode=0755   0  0

restart or use 
sudo mount -oremount /

use about:config in firefox to move the cache to tmpfs

type in the URL in firefox
about:config

add
browser.cache.disk.parent_directory
set value to
/tmp

You can check via this command in URL
about:cache

2012年10月15日星期一

Grub2 boot up slow!

Please try if Grub 2 boot up slow.
Problem may be caused by grub2 and the boot partition being on different drives.(Sometime may be moved or copied to other drive.)

in terminal key in
sudo dpkg-reconfigure grub-pc

follow all the instruction on screen to install the Grub2 into boot drive MBR.
And change the hard disk priority in BIOS.

God bless you!

2012年10月10日星期三

How to Enable or Disable the Administrator A/C in Windows 7

User admin right user A/C to
Open a CMD to key in the command.

Enable
net user administrator /active:yes
Disable
net user administrator /active:no

2012年10月3日星期三