Saturday, April 9, 2016

How I backup/clone all drives of my Macbook Pro

I'm running OS X Lion v10.7 on Macbook Pro 13 inch late 2011. I have installed 3 operating systems on it such as Mac OS X Lion, Windows 7, and Ubuntu 15.04. To avoid problems in the future such as disk failure, I have backup my drive as following:

1. Mac OS X Lion is my primary OS and I use Carbon Copy Cloner to clone the partition to external hard disk drive so I can boot OS X from the external HDD any time to restore the partition.

2. To backup and restore Windows 7, I must do it from within OS X using Winclone app version 4.x.

3. For Ubuntu, I used Clonezilla to backup/restore the partition it was installed on to/from image files. I installed Clonezilla Live on a USB drive so that I can boot into Clonezilla from that USB by not depending on any operating systems. According to Clonezilla's official website, I made the bootable USB on Ubuntu using Tuxboot program. There are 2 methods to make a Clonezilla live USB by Tuxboot, online (downloading) and offline (ISO file). I used the online method in which Tuxboot downloaded the latest Clonezilla live for me and wrote it to my USB drive.

I think I should use only Clonezilla to backup/restore all partitions of my Macbook Pro.


Installing Ubuntu on Macbook Pro using bootable USB stick

I'm using Macbook Pro 13 inch late 2011 and I have just installed Ubuntu 15.04 on it successfully using a bootable USB stick. I followed this post http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx to make a bootable USB stick. When restarting machine, I hold option key until I see an option to boot from the USB drive. Surprisingly, it worked only for Ubuntu 15.04 ISO file I downloaded from Ubuntu's web site. For other previous versions such as 10.04 and 11.10, the USB drive is not bootable at all (it didn't show up boot menu).

Note that if you have an external hard drive and want to put Ubuntu Live on that partition to make it bootable, it wouldn't work. You can only do it with the entire USB drive.


Related Articles:
http://myt8chnote.blogspot.com/2016/04/problems-with-ubuntu-1504-on-macbook.html

Thursday, April 7, 2016

A workaround for setting up Windows 7 on Macbook Pro without optical drive

I want to make an update on the post i wrote here http://myt8chnote.blogspot.com/2016/04/installing-windows-7-on-macbook-pro.html After rebooting several time, the Windows partition was corrupted and then i also tried to do it the same way again many times but it no longer worked. I have just found a workaround for that.

As my Macbook Pro only boot from the USB drive that has OSX on it, I used Carbon Copy Clone to clone or backup my OSX partition to the external hard drive so if anything happens, I can use it to restore the main OSX partition.

I also have Windows installed along side the OS X. I downloaded the Winclone image file of Windows 7 from thepiratebay.se web site and use Winclone app on Mac OS X to restore the image file to another partition then the partition is bootable too.

NOTE: resizing partition might corrupt your Windows 7 installed even if the partition is not the one you installed Windows on.

Monday, April 4, 2016

How to prevent partition from mounting automatically on OS X Lion

You might have another OS installed a long side OS X and don't want to mount it when starting OS X to avoid modifying it accidentally which can corrupt the OS. To prevent the partition from mounting automatically, you can do as followings:

See which volume you don't want to be mounted automatically from the output of the command below.
> diskutil list

From the following command, note the Volume Name and Type (Bundle) attributes.
> diskutil info /Volumes/<Win7>
   Device Identifier:        disk0s6
   Device Node:              /dev/disk0s6
   Part of Whole:            disk0
   Device / Media Name:      BOOTCAM

   Volume Name:              Win7
   Escaped with Unicode:     Win7

   Mounted:                  Yes
   Mount Point:              /Volumes/Win7
   Escaped with Unicode:     /Volumes/Win7

   File System Personality:  Tuxera NTFS
   Type (Bundle):            fusefs_txantfs
   Name (User Visible):      Windows NT Filesystem (Tuxera NTFS)

Create or edit /etc/fstab file
> sudo nano /etc/fstab
LABEL=Win7      none    fusefs_txantfs  ro,noauto       0       0

Then, reboot machine. That's it.




Problems I solved:
At first, I put ntfs instead of fusefs_txantfs in /etc/fstab file then it didn't work. I changed it to fusefs_txantfs and it worked.




Sunday, March 27, 2016

How did I stop my macbook pro from overheating

I'm using 13-inch Macbook Pro late 2011 so it's about 4 years old now. I noticed that my Macbook get very hot quickly after using it for about 1 or 2 hours. Note that I didn't use any strange applications. There were just a few tabs of Chrome open and I didn't even watch videos. In particularly, I checked the Activity Monitor and the CPU usage is never above 30%. But, it's very hot on the back case cover and very warm at the palm-rest area and keyboard. It doesn't burn my hands but it's not comfortable to type. I can't keep my hands on the palm-rest area for more than 10 or 15 minutes. The heat first came from the top left area of the macbook pro near the charging cord. Then, it spread to everywhere such as the bottom, the keyboard and the palm-rest area. I have tried many ways to fix it.

First, I turned off WiFi and used Ethernet instead but it didn't help. Then, I used it for hours without charging because I thought there might be the problem with the charger but it wasn't. I used keyboard cover so i thought it also contribute to the heat so i removed it and the heat just decreased a few degrees. I then downloaded smcFanControl app to make the fan run faster even when normal usage but it still didn't help. I heard that reapplying thermal paste would help cool down my macbook dramatically and then I did it but still no luck. I also run Hardware Test but they were all fine. Resetting System Management Control (SMC) didn't help either.

One day I went to a coffee shop and use my Macbook for hours without feeling hot at all. It was hot a bit at the bottom case but the keyboard and palm-rest area are ok. Whenever i use it at my house, it get hot quickly. Then, i noticed that the difference between my house and the coffee shop is temperature. I don't usually use air conditioning so temperature in my room is about 35 degree celsius and it hurt my macbook pro. Then, I turned on air conditioning in my room and used my macbook pro for hours and the keyboard and palm-rest area are cool. They're very comfortable for typing. The temperature was 25 degree celsius. Therefore, Macbook Pro should be used in cold area, i guess. But, using macbook pro with air conditioning on is very expensive and it's not a solution so i kept searching.

A few days later, I started debugging the problem again. I wanted to know if leaving the back case cover off would help so I let stand on its right (see the image below) and remove the base case off without turning off my macbook pro. I waited for about 15 minutes and it cooled down and it was very comfortable to type. This may be because there was enough air flow in to help cool down the logic board faster as the heat came from the CPU. After that i wanted to know if it still help when i let it stand like that but the back case is off and it was still cold so i assumed there was bigger gap between the logic board and the back case cover while it was standing on it's right side and allowed more air flow.



To create a gap between the logic board and the back case cover, i put pieces of paper in the case on the battery and CD ROM. See the image below. Bingo, it did the trick. I call this a workaround, not a solution. I will find anything safer than paper to put in there though paper seems fine to me.




Summary

There are three things I've done:
1. Put pieces of paper to make a gap between the back case cover and the logic board so that there is more air flow to cool down the temperature in the case faster. Or you don't need to put the papers but you can remove the optical drive instead. The later is not as very efficient as the former but the overall temperature in the case is better so it won't hurt the logic board much.
2. Use smcFanConrol app. I make the fan spin 4000 rpm. I heard that using smcFanControl will do damage to your fan but i think it's ok for me as my macbook is 4 years old now and i would rather replacing fan than logic board. However, there is no proof yet. In particularly, you can quit the app if you're in the room with air conditioning.
3. The two steps above will help reduce the heat dramatically but you still feel a little bit warm. You should also use PalmGuard to the heat almost completely.



Tuesday, October 6, 2015

Got error "Your bootable USB drive could not be created." while creating Windows 7 bootable USB in Boot Cam Assistant

To install Windows 7 on Macbook Pro, you need Boot Cam Assistent app. It's built in OS X. Note that I'm using Macbook Pro 13'' Late 2011 and Max OS X Mountain Lion 10.8. I'm using Boot Cam Assistant to create a bootable Windows installation USB so I don't need Windows Installation DVD.

Note that before starting Boot Cam Assistant, I enabled the option to create install USB in Boot Cam Assistant (BCA) as following:
- Go to Finder -> Applications -> Utilities
- Right click on Boot Cam Assistant.app and select Show Package Contents
- Make a backup copy of Info.plist file then open it and change the key PreUSBBootSupportedModels to USBBootSupportedModels and save

However, when I clicked on the Create button in the last step, it said "Your bootable USB drive could not be created. An error occurred while copying the Windows installation files.".  Here are what I tried to fix the issue:

1. Unmount the Windows installation ISO file. I might clicked on it once and It was mounted. I tried to unmount it from both Finder and Disk Utility and the use Boot Cam Assistant to create it again but no luck. I've noted that the people on the net who got their problems solved using this way got the error message immediately after they click on the Create button. For me, the message showed up about 10 minutes after clicking on the Create button.

2. Someone said it might be the problem with the ISO file. They solved it by using Disk Utility to generate a new one from the current ISO file. They run the command:
hdiutil makehybrid -iso -joliet -o new_win7.iso /Volumes/DATA/Softwares/OS/Windows/Windows_7_Sp1_Ultimate_x64.iso
Unfortunately, it still didn't help.

3. I tried to use Windows USB/DVD Download Tool (https://www.microsoft.com/en-us/download/windows-usb-dvd-download-tool#installation) to create a bootable USB instead. It's Windows program so I run Windows 8 as guest OS in VirtualBox and then used the tool to create a bootable USB. But, the tool couldn't create it successfully. It had another error. It told me to check my USB drive and the Windows installation ISO file. Damn!

4. And then I tried to install Windows using the ISO file in VirtualBox, it failed while it was trying to copy the installation files. It said some files were corrupted. Hence, I thought it might be the problem with that file so I downloaded two other different ISO files (from piratebay website) and used them with Boot Cam Assistant. I got the same error for the second ISO file but I successfully created the bootable USB using the third ISO file. I don't know why and I don't care.