Showing posts with label Mac. Show all posts
Showing posts with label Mac. Show all posts

Wednesday, October 24, 2012

Resolve a “Couldn’t modify partition map because file system verification failed.” Error in Mac OS X

Partition Failed error

If you have attempted to partition a drive from Mac OS X and received a “Partition failed” message with the error “Couldn’t modify partition map because file system verification failed.” you can fix the problem with the file system check command line utility. To do this properly, you’ll need to boot into Single User Mode as well:
  1. Reboot the Mac into Single User Mode by holding Command+S during boot
  2. At the command prompt, type:
  3. /sbin/fsck -fy
  4. When fsck is complete, type “exit” or “reboot” to reboot
  5. Boot the Mac as usual, verify the disk again in Disk Utility, and partition as usual
Boot the Mac as usual and relaunch Disk Utility to verify the disk. Go ahead and partition the drive as usual, this time without any such error message.

Friday, September 23, 2011

Mac OS Lion: New Wi-Fi Diagnostics tool & Troubleshooting Solutions

Inside Mac OS X 10.7 Lion: New Wi-Fi Diagnostics tool
http://www.appleinsider.com/articles/11/03/15/inside_mac_os_x_1

WiFi Dropping in OS X Lion? Here are Some Wireless Troubleshooting Solutions
http://osxdaily.com/2011/07/22/wifi-dropping-in-os-x-lion-fixes

Monday, February 21, 2011

Mac OS X 下使用 SSD固态硬盘优化设置手册

本文是把SSD固态硬盘作为第二硬盘装载的,采用光驱位硬盘托架安装。

把 MBP 拆开,SuperDrive 取下,把原来的硬盘取出,放入光驱位硬盘托架,把 SSD 接在原来的硬盘所接的 SATA 口,然后把硬盘托架安装回原来光驱的位置。这种搭配是为了保证用 SSD 做系统盘 (挂载在 / 上) 时系统能正确的让硬盘休眠。当然,如果你比较奢侈地买两块 SSD,也可以让他们组成 RAID0,这样性能就更夸张了。

给在 SSD固体硬盘所在卷分区安装系统,只需要分一个区。新的系统会把原来那块硬盘也列出来。

这时修改 /etc/fstab,加入: /dev/disk1s2 /Users/用户名/Downloads hfs rw
上面的用户名是你的系统登录用户名字,自己替换一下!

这个做法是把原来那块硬盘挂载在我自己这个用户的 Downloads 目录,这样所有下载的内容都会放在这块比较大的硬盘上 (当然有用的我以后会转移到 SSD 上),考虑到 Downloads 主要起的就是一个临时的缓冲作用,这样还是比较方便的。然后重启机器,就能发现这块硬盘只被挂载在上述目录下了。

除了下载内容,我还在这个目录放以下内容:

VMware Fusion 的虚拟机文件,这是从别的机器复制过来的,直接放在这个卷的 /Virtual Machines 目录下,然后在 VMware Fusion 里打开就行了。需要注意的是以后 VMware 里创建新虚拟机的时候也得记住选择目录,别放在自己的 $HOME/Documents 下面了。

iTunes 媒体库,这个可以在 iTunes 的 Preferences -> Advanced -> iTunes Media folder location 选择。我是先在这里选好了,然后从原来的机器里导入以前的 iTunes 数据。

其他下载软件的默认下载位置,包括 uTorrent, Transmission 和 aMule。

下面是一些优化步骤:

用 noatime 方式挂载系统盘,这样可以减少不必要的 I/O 次数,虽然 SSD 做这些操作非常快速,但考虑到最后访问时间这个属性其实很少用到,大家关心的一般都是最后修改时间和创建时间,所以完全可以关闭这个属性,这在 Unix/Linux 下是非常常见的文件系统优化选项。一个简单的方法是,修改 /etc/fstab,加入:

/dev/disk0s2 / hfs rw,noatime
重启后,系统盘的挂载就带上 noatime 选项了:

$ mount | grep " / "
/dev/disk0s2 on / (hfs, local, journaled, noatime)
禁用冬眠 (hibernate) 模式以节省空间。在 Mac 耗尽电池时,会进入“冬眠”模式,将内存中的所有内容写入磁盘,下次唤醒后从这些内容恢复状态。所以系统会在 /var/vm 维护一个和内存等大的 sleepimage 文件,考虑到 SSD 空间宝贵,而一般绝少会遇到耗尽电池的情况,可以禁用掉这个功能以节省空间:

$ sudo pmset -a hibernatemode 0
$ sudo rm /var/vm/sleepimage
减少临时文件的读写。

RAMDisk 是常见的性能优化手段,对于内存充足的机器,把频繁读写的内容放到一个用内存为存储的虚拟磁盘中,能大大加快速度。虽然 Macintosh Performance Guide 最近的一个研究表明 RAMDisk 并不能很大地提升如 Photoshop 这类软件操作的性能,至少投入产出比不是很经济,但至少用它来保存一些本来就可以随意丢弃的数据是个很好的思路。Mac OS X SSD Tweaks 提供了创建 RAMDisk 的脚本,他的做法是在系统启动时创建一个 256M 的 RAMDisk,挂载在 /private/tmp 上面。他还建议把 ~/Library/Caches 也放到 RAMDisk 里。最大的问题是,如果你长期不重启 (我一般的重启周期是 80 ~ 100 天),那有的临时文件,比如 ~/Library/Caches/com.apple.Safari/Webpage Previews/ 会增长到数百 M 甚至上 G。如果被它占满了 RAMDisk 的空间,那其他缓存数据就写不进去了。

考虑到 RAMDisk 是个比较有风险的优化手段,也可以用以下方法禁用掉 Safari 的 Webpage Previews 以减少临时文件读写。如果你像我一样从来不用 Safari 的“Top Sites”功能,一定会很讨厌它凭空占用大量的空间。

$ chmod 500 ~/Library/Caches/com.apple.Safari/Webpage Previews/
关闭 Spotlight 索引也是一个有用的优化手段,如果你像我这样从来不用 Spotlight 的话。

如果是MAC OS X的用户,可以参考一下上面的SSD固态硬盘优化的过程,虽然不做优化也可以用,但是这样做可以保证系统性能最佳,以及可以延长MLC SSD固态硬盘的寿命,所以如果你太算小白的话,还是可以动手试试的!

source: http://www.u2game.net/bbs/thread-29808-1-1.html

Sunday, February 20, 2011

Mac something ....

1. To find 'Showing Package Contents' 
cd /Applications to get there and cd ~ to return to your home folder
or
Applications folder, locate Twitter, right click, Show Package Contents

2. MacKeeper 0.9.7.1 http://soft.macx.cn/soft3944.htm
JDiskReport http://www.jgoodies.com/freeware/jdiskreport/index.html

3. *Mac OSX: Where has my hard drive space gone? http://ask.metafilter.com/109945/Mac-OSX-Where-has-my-hard-drive-space-gone
   *Cleaning Your Mac's Hard Drive http://guides.macrumors.com/Cleaning_Your_Mac%27s_Hard_Drive
   *Freeing Up Hard Disk Space http://guides.macrumors.com/Freeing_Up_Hard_Disk_Space
   *Free up Hard Disk space  http://creativebits.org/mac_os_x/free_up_hard_disk_space
   *How to Free Up 3GB of Hard Drive Space on Your Mac In 2 Minutes  http://macyay.com/free-up-3gb-of-space-in-2-minutes/
  *Running out of disk space on a Mac? http://www.askdavetaylor.com/running_out_of_disk_space_on_a_mac.html
  *How to Free Up Hard Disk Space with Squeeze  http://mac.appstorm.net/how-to/utilities-how-to/how-to-free-up-hard-disk-space-with-squeeze/
  *4 Easy Steps to Free Up Hard Drive Space on your Mac OS X Hard Drive  http://xentek.net/articles/452/free-up-hard-drive-space-on-your-mac/





5.

Saturday, December 11, 2010

Mac - How to rename a filename

Method 1,
    -->In Finder, open the folder with your file in it.
    -->See all those pretty icons? Don’t click on them. Find the icon for your file. Click once on that icon then click and hold the mouse button down on the filename below it.
    -->After about a second of holding down the mouse button the text will become editable and you can type over the filename. Be careful you don’t change the extension because bad things will happen!

Method 2,
You can also just select the icon (click once) and then hit the Enter key. That’ll make the file name editable as well.

Mac - How to 'Show' Desktop and Shortcut?

1. fn+F11. to see desktop
or

2. Exposé

Mac OS X offers a simple way to see what's on your desktop when you have a lot of windows open. It’s called Exposé, and here’s how you can use it. Press the F9 key and Exposé instantly creates thumbnails of the open windows and displays them neatly on your screen. Click the window you want, and Exposé brings it to the front, switching automatically to the appropriate application.
You can press the F10 key to create thumbnails of the open windows of your current application. Or F11 to move all open windows to the side, so you can see the files on your desktop.

Thursday, December 9, 2010

Best Media Player for Mac OSX

Best Media Player for Mac OSX

No 1. Movist (5 Stars *****)
http://code.google.com/p/movist/downloads/list

No 2,  mplayerx (not mplayer) (4 Stars ****)
http://code.google.com/p/mplayerx/downloads/list

Saturday, September 4, 2010

How To Check Mac OSX Version

Step 1: Find Your Mac OS X Version

The first step in securing your Mac is to know what OS version is installed. Although portions of this document are applicable for older Mac OS X versions, this was written with Mac OS X 10.5 and 10.6 in mind. Use the following steps to find your Mac OS X version.
  1. From the Apple menu, select About This Mac.
  2. The version number will appear in the window.

How to upgrade the MacBook Air (MBA) to Snow Leopard (Mac OSX 10.6.xx)

I have to say that my experience upgrading both my Macs to Snow Leopard has been mixed. It was easy as clicking the Install button on the iMac, it was a nightmare on the Macbook Air.
First I used the Remote CD installation process, started the Macbook Air, mounted the remote CD from the iMac and proceeded to run the “Install Mac OSX.app”. After agreeing to the license agreement the installation utility told me that the disk did not have enough free space. Despite the fact that the disk had 21Gb of free space!
After some digging I found out that PGP Whole Disk Encryption is not compatible with Snow Leopard, and PGP advised users to decrypt the disk before upgrading.
So I decrypted the disk and restarted the Installation process, only to find out a new error! Damn.
The install app now told me that the Machintosh HD, the only disk, in my Macbook Air, was not a bootable disk and could not install to it. I did some more web searching and some people reported the error to related to the partition format, not being GUID.
Disk Utility in Snow Leopard
I checked with Disk Util and it was indeed GUID. So using Disk Util I added a new partition with 1Gb, using the free space, this procedure rewrote the new partition table to disk and after I was able to finally install Snow Leopard.
When Snow Leopard was installed I used Disk Util again to delete the 1Gb partition and recover the disk space.
If Disk Utility gives you disk verification errors, you need to repair those before resizing your partitions. If you repair the disk multiple times and it still gives you the same errors then you should run the Remote Install Mac OS X application on another Mac. If you only have a Windows as a second computer check this the “How to use Remote Disc” article on Apple’s support site.
Boot your MacBook Air directly into the Snow Leopard CD. Just start the Air and hold the option key until you see the list of disks you have to boot from. If the Remote Install Mac OS X application is running on your other computer the Snow Leopard will show up here.
Remote Install Mac OS X

source: http://bigdiver.wordpress.com/2009/09/08/upgrading-the-macbook-air-to-snow-leopard-mac-osx-10-6/