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日星期三

2012年9月24日星期一

Samsung Q1 Touch Screen Calibration (Ubuntu)

Download Calibrate Touchscreen from Ubuntu apps store.

run Calibrate Touchscreen
 
--> Making the calibration permanent <--
  copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf'

Section "InputClass"
    Identifier    "calibration"
    MatchProduct    "Touchkit HID-USB Touchscreen"
    Option    "Calibration"    "92 3966 170 3915"
EndSection

Samsung NP-Q1 Ubuntu Linux sound problem

Reference : https://help.ubuntu.com/community/HdaIntelSoundHowto 
 
 
sudo nano /etc/modprobe.d/alsa-base.conf

Then paste the following line at the end of the file (change MODEL with 
the type of sound card's model, in our example it should be "acer" 
(without quotation marks)): 

options snd-hda-intel model=samsung

2012年9月6日星期四

unknow hard error c00000135

Blue screen with the message “STOP C0000135 unknown Hard Error”. 
Anti-virus deleted some essential files in windows system and caused this problem. Normally, the loss of advapi32.dll, Gdi32.dll, Kernel32.dll, or/and User32.dll will show this message. Try to copy the files from other computer to fix it.

Another case is the file c:\windows\system32\csrsrv.dll was detected by some antivirus but it is false positive. Please restore the file from virus vault or from other computer.
 

2012年8月17日星期五

WIN 7 Spooler always down! All Printers is missing & not working

Try this :
Check for the spooler whether it’s turn on in services
1. Start > Start Search > services.msc
2. If spooler is not on, turn it on.
If after turn on, it turn off automatically, proceed to step 3,
if can turn on go to step 4
3. Start > Start Search > C:\Windows\System32\spoolsv.exe (Right click > Properties)
4. Click on Security Tab > Advanced > Owner.
Take ownership of the file and give full permission to the file.
Once done, close everything and try to start the service again.
5. Start > Start Search > cmd (Run as Admin)
6. del /Q C:\WINDOWS\system32\spool\PRINTERS\*.* > Press Enter
7. Once done, try to start the spooler in Services

or create a batch file "reset1020.bat"
in Command Prompt
copy con reset1020.bat
del /Q C:\WINDOWS\system32\spool\PRINTERS\*.*
net stop spooler
net start spooler
^Z or F6

or use notepad & put all lines in the "reset1020.bat"
del /Q C:\WINDOWS\system32\spool\PRINTERS\*.*
net stop spooler
net start spooler

run reset1020.bat as administrator for fix the problem.

The problem is caused by the HP1020 or HP1080 Printer Driver. I had not find a solution for that until now!

2012年7月22日星期日

IBM / Lenovo Rescue Recovery Factory Restore Media

If you encounter this message. you can try this below:

“You can have only one copy of the Microsoft Windows operating system. The Product Recovery Media Creator will exit now.”

Open FactoryRecovery folder and look for service_done.ini. Copy this file in a different place just to have a backup file. After that, open the original one FactoryRecovery\service_done.ini and change the string done=1 to done=0.

After that , you can make the recovery media once more. Good luck!

2012年7月20日星期五

ddrescue

Command for ddrescue

using rescuecd
----------------------
ddrescue -b 4096 /dev/sda1 /mnt/windows

using ubuntu live cd
---------------------------
sudo -i
start update manage and enable univise
apt-get install gddrescue

ddrescue --no-split /dev/sda /dev/sdb --force

--force * sometimes will be needed to force it to write on the target drive. Use with care. It will erase all data on the target harddisk.

*** Remarks

/dev/sda is the source & bad drive
/dev/sdb is the new & empty drive

*** Some examples procedures

First you copy as much data as possible, without retrying or splitting sectors:
  • ddrescue --no-split /dev/hda1 imagefile logfile 
Now let it retry previous errors 3 times, using uncached reads:
  • ddrescue --direct --max-retries=3 /dev/hda1 imagefile logfile 
If that fails you can try again but retrimmed, so it tries to reread full sectors:
ddrescue --direct --retrim --max-retries=3 /dev/hda1 imagefile logfile

2012年6月27日星期三

Win7 can't access NAS(Linux Samba Share)

For Win7 Pro & Ultima, Vista


1. Open the Run command and type "secpol.msc".

2. Press "continue" when prompted by Vista.

3. Click on "Local Policies" --> "Security Options"

4. Navigate to the policy "Network Security: LAN Manager authentication level" and open it.

5. By default Windows Vista sets the policy to "NTVLM2 responses only". Change this to "LM and NTLM – use NTLMV2 session security if negotiated".

Once you’ve done this Windows Vista will be able to view network drives based on Samba servers and should fix any issues around using Samba as a Primary Domain Controller.


For Win7 Home Pre(Not yet tested)

In Registry add DWORD LmCompatibility and set it from 0 to 2
HKLM\SYSTEM\CurrentControlSet\Control\Lsa\LmCompatibility

SME Linux 7.X update error due to yum update repository errors since Centos 4.9 moved to vault

do a command in terminal.

yum --disablerepo=base --disablerepo=updates update

It will do a manual update & fix/patch the yum update problem.

2012年2月20日星期一

check the status of 'dd' in progress

watch -n 10 killall -USR1 dd

If you want to copy without stop on error , add conv=notrunc,noerror
for example:

dd if=/dev/hda of=/dev/sda bs=64k conv=notrunc,noerror

Linux DD Disk Copy, Clone, Backup to image file

Hard Disk Clone

The following command can copy all the content from /dev/sda to /dev/sdb:

dd if=/dev/sda of=/dev/sdb

The following command will create an image file "disk1.img" in your user's directory from /dev/sda:

dd if=/dev/sda of=~/disk1.img

Since you have created an image file, you can compress it with "gzip" or "bzip2":

gzip disk1.img #generates disk1.img.gz or

bzip2 disk1.img #generates disk1.img.bz2

You can save much storage space with compression. But it will take very long time.

Partition Clone

For example, if you want to create an image file from the first partition of /dev/sda, use "dd" like this:

dd if=/dev/sda1 of=~/disk2.img

Also, you can compress the image file:

gzip disk2.img

You can copy a partition to another partition completely. For example:

dd if=/dev/sda1 of=/dev/sdb5


Restoring from an Image File

Restore the whole hard disk from the image file "disk1.img":

dd if=disk1.img of=/dev/sda

Restore the first partition of /dev/sda from the image file "disk2.img":

dd if=disk2.img of=/dev/sda1

2012年2月18日星期六

Cannot start Microsoft Office Outlook, Unable to open the Outlook window.

Try this!

Start->run..then type the following -> "Outlook.exe /resetnavpane"

Outlook - 'Personal Folders' Not closed properly "The data file 'Personal Folders' was not closed properly

Try to repair your pst file.
Follow these steps:

1. Exit Outlook if it is running.
2. Double-click Scanpst.exe, located at C:\Program Files\Microsoft Office\OFFICE1X
3. In the "Enter the name of the file" you want to scan box, enter the name of the .pst or .ost file that you want to check, or click Browse to search for the file.
4. To specify the scan log options, click Options, and then click the option that you want.
5. Click Start.
6. If errors are found after the scan is complete, you will be prompted to start the repair process to fix the errors.
A backup file is created during the repair process. To change the default name or location of this backup file, in the Enter name of backup file box, enter a new name, or click Browse to look for the file that you want to use.

7. Click Repair.
8. Start Outlook by using the profile that contains the .pst file that you tried to repair.

Certificate error with Internet Explorer 9

The problem has been caused by the update of Windows 7 (KB2585542) If you uninstall this update the problem is fixed.