青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

逛奔的蝸牛

我不聰明,但我會(huì)很努力

   ::  :: 新隨筆 ::  ::  :: 管理 ::
From: http://macguru.biz/macosxreapair.html

Mac OS X Terminal repair routines

Back to Main Page

On any Mac OS X box, you can enter “single-user mode” by holding down command-S at startup. This gives you a root prompt and a read-only hard drive, from which you can commence your life of quiet desperation, er, troubleshooting.
Normally, you would do this to repair the drive

:# fsck -y

This is exactly equivalent to booting off the install CD and repairing your disk using Disk Utility. In Mac OS X, Disk Utility is a graphical frontend on top of fsck. It works just as well in single-user mode because the drive is mounted read-only, so there’s no chance of files being modified while the repair is running.
If fsck tells you that the file system was modified, reboot immediately

:# reboot

Repeat until fsck reports no errors. It is now safe to exit single-user mode and continue booting normally

:# exit

If you can not get to the login prompt, or your login window appears but shows no users and no username/password boxes, your NetInfo directory is probably corrupted. Reboot into single-user mode and trash it

:# cd /var/db/netinfo
# mv local.nidb local.nidb.corrupted
# reboot

Upon rebooting, Mac OS X will notice the missing NetInfo directory and will create a new blank one. This will not actually let you log in, however, since the new NetInfo directory contains no users. (Technically it contains a root user, but with login disabled.) Assuming you get to a login prompt, reboot once again into single-user mode and add a root password. This is trickier in 10.2 than it was in 10.1, but I believe this technique works in both (I’ve tested it personally in 10.2)

:# SystemStarter

Watch the status messages. When you see “Starting NetInfo”, hit CTRL+C to get back to a prompt, then type:


# passwd root
Password: (enter new password)
Verify password: (re-enter new password)
# reboot

Here you are essentially hacking your way into your own computer by changing the root password. (And if root was previously disabled, this has the side-effect of enabling it.) Rebooting should get you to a login prompt where you can log in as root and get to work recreating your other users or recovering your data or whatnot.

(It should be noted that the above method will also work on anyone else’s computer, but don’t do that. If this scares you, install Open Firmware Password Protection, which is essentially a BIOS password for Macs, and prevents booting into single-user mode without a password.)

Another fun thing you can do is force your Mac to always boot into single-user mode, without holding down any keys at startup

:# nvram boot-args="-s"
# reboot

Your computer should always boot into single-user mode from now on. To put it back to normal

:# nvram boot-args=""

Again, you can do this on anyone else’s Mac too, but don’t do that.

Also check out this article at Apple's web site: Apple built -in repair utilities for OS X


Even though Macs generally require much less maintenance than Window's machines, there are still a few easy things you can do to keep your Mac running in tip top shape.

Repair Permissions

Repairing permissions is one of the easiest and fastest maintenance tasks you can do on your Mac. You can start it easily at the click of a button, and let it run in the background while you continue to use your computer like normal.

Each file on your Macintosh has a set of permissions, which say who and what can read or write to that file. When you install new programs, or when a file is corrupted, these settings can be changed and messed up. Generally they won't do anything major like crash your computer, but they can cause it to slow down over time.

Luckily fixing the problem is very easy.

To repair your permissions you need to start Disk Utility, which is in the Utilities folder in your Applications folder.

Home > Applications > Utilities > Disk Utility

After you open the application, click on the First Aid tab, then select the partition where Mac OSX is installed, in my case it is the "Macintosh HD". You don't need to select the entire hard drive, just the partition with your OS on it. Next click on Repair Permissions to start the process. You don't need to verify the permissions first.

After you start the utility you'll see a bunch of text scroll by on the screen detailing what the application is doing, which files it's repairing, which ones are messed up, etc. After it's finished you can safely close the Disk Utility application.

Periodic Maintenance

My wife has the strange habit of cleaning and vacuuming the house at 1 or 2 in the morning sometimes. I don't understand this behavior, but at least she's not alone. Your Macintosh also cleans itself up at odd hours, namely between 2am and 5am each night. Mostly it's just deleting log files and cache's that it no longer needs, or backing up important files. But if your Mac is asleep or turned off, it won't be able to perform these tasks and those log and cache files will start to add up and waste space on your hard drive.

So, to get rid of them manually we just need to type a few commands into the terminal which is also in the utilities folder.

Home > Applications > Utilities > Terminal

Type the first line below and then press return. It will ask you for your password, which should be the password that you use to login with. You may see a bunch of lines of code scroll by, which is normal. After you are returned to the command prompt again as you see in the screenshot, type the other two lines, pressing return after each, and allow them to run.

sudo periodic daily
sudo periodic weekly
sudo period monthly

Prebinding

Forcing your Mac to update the prebinding will make it search through all of your application files and properly link them together, which can increase the overall speed of your computer, and how fast applications launch, etc.

Open the terminal if you don't still have it open, type the following line in the terminal and then press return.
sudo update_prebinding -root / -force

You'll see a lot of text scroll by in the terminal, which is again completely normal. Immediately reboot after it finishes and you are returned to the command prompt.

After you reboot you should notice a significant speed boost to your machine. Programs should start faster, you should be able to switch between them faster, etc.

Perform these steps any time you notice your computer going slower, and repair permissions every time you install a new program, especially something like an OS update from Apple.

Easy way out

To take the easy way out, you could also run a maintenance app likeOnyx and MacJanitor to perform these tasks at the press of a button.

posted on 2009-11-06 16:25 逛奔的蝸牛 閱讀(643) 評(píng)論(0)  編輯 收藏 引用 所屬分類: Mac
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            午夜在线精品| 亚洲免费一区二区| 欧美精品一区二区蜜臀亚洲| 亚洲影院色在线观看免费| 久久一区二区三区四区| 亚洲午夜一区二区| 亚洲高清av| 国内精品免费午夜毛片| 欧美一区二区国产| 欧美亚洲网站| 久久久蜜桃精品| 久久精品三级| 狠狠色丁香婷婷综合久久片| 久久久久五月天| 亚洲一级在线| 国产精品天美传媒入口| 欧美一区二区三区视频免费播放| 久久久久久久欧美精品| 国产在线一区二区三区四区 | 狂野欧美一区| 欧美激情一区二区三区在线| 亚洲人体一区| 国产精品v日韩精品| 亚洲黄色视屏| 久久国产天堂福利天堂| 91久久在线| 国产精品资源| 欧美精品二区三区四区免费看视频| 欧美成人性生活| 性欧美在线看片a免费观看| 国产一区二区三区日韩欧美| 久久综合九色九九| 午夜精品福利在线观看| 国产一区久久| 欧美视频精品在线观看| 美日韩精品免费| 久久精品国产亚洲精品| 欧美国产日韩精品| 免费在线观看成人av| 午夜精品三级视频福利| 日韩午夜三级在线| 亚洲精一区二区三区| 亚洲激情一区二区三区| 国产欧美精品日韩| 欧美三级电影精品| 亚洲免费视频在线观看| 一区二区日韩精品| 国产午夜精品全部视频播放| 欧美午夜精品| 国产精品综合视频| 国产精品爱啪在线线免费观看| 一区二区三区国产在线| 一二三四社区欧美黄| 欧美成人有码| 99精品免费| 亚洲欧美日韩国产中文 | 精品成人一区二区| 伊人精品成人久久综合软件| 亚洲大片精品永久免费| 亚洲国产另类精品专区| 国产九区一区在线| 欧美日韩一区二区国产| 欧美激情二区三区| 欧美婷婷久久| 欧美日韩国产区一| 国产精品成人v| 伊人狠狠色j香婷婷综合| 亚洲免费成人av| 亚洲综合首页| 久久久久国产精品一区| 欧美激情一区二区三区全黄| 亚洲电影免费观看高清完整版在线观看 | 欧美福利一区二区三区| 欧美日韩中文字幕综合视频| 国产欧美午夜| 夜夜爽99久久国产综合精品女不卡| 亚洲香蕉成视频在线观看 | 亚洲欧美日韩综合aⅴ视频| 欧美激情片在线观看| 亚洲电影欧美电影有声小说| 亚洲影视在线| 欧美高清一区二区| 麻豆91精品91久久久的内涵| 午夜亚洲福利| 国产精品久久久久久久app| 国产亚洲综合精品| 亚洲欧美日韩另类精品一区二区三区| 欧美二区不卡| 午夜日韩在线| 国产欧美日韩精品a在线观看| 在线综合+亚洲+欧美中文字幕| 欧美jizzhd精品欧美喷水| 亚洲国产精品一区| 欧美亚洲专区| 国产视频不卡| 久久精品视频亚洲| 亚洲欧美国产日韩中文字幕| 国产精品日韩欧美综合| 亚洲欧美日韩精品综合在线观看| 免费观看一区| 亚洲国产精品v| 欧美一区二区免费| 久久国产精品99久久久久久老狼| 国产精品亚洲一区二区三区在线| 午夜一区二区三区不卡视频| 亚洲一区中文| 久久爱www.| 亚洲大黄网站| 一区二区国产日产| 美女被久久久| 翔田千里一区二区| 久久国产精品久久w女人spa| 性欧美xxxx视频在线观看| 欧美电影电视剧在线观看| 亚洲黄一区二区三区| 亚洲精品乱码| 国产欧美成人| 亚洲国产高清自拍| 国产自产女人91一区在线观看| 欧美a级在线| 国产欧美精品一区二区三区介绍| 美女视频网站黄色亚洲| 欧美日韩在线播放一区| 久久国产视频网站| 欧美日韩另类一区| 久久综合激情| 欧美成人高清视频| 国产伪娘ts一区| 一本一本久久a久久精品综合麻豆| 国产一区二区精品| 亚洲影院污污.| 午夜精品一区二区三区电影天堂 | 欧美黄色一区| 久久亚洲午夜电影| 国产精品一二三| 99国产精品99久久久久久粉嫩| 亚洲国产精品尤物yw在线观看| 亚洲自拍三区| 欧美性开放视频| 99国产精品视频免费观看一公开| 亚洲乱码国产乱码精品精可以看| 久久综合九色综合网站| 免费成人高清在线视频| 一区精品久久| 免费中文字幕日韩欧美| 久久成人精品无人区| 国产一区二区三区四区五区美女| 亚洲一级黄色片| 久久精品国产一区二区电影 | 亚洲精品美女久久7777777| 黄色资源网久久资源365| 午夜在线视频一区二区区别 | 欧美在线电影| 国产亚洲午夜| 亚洲欧美一区二区三区极速播放 | 欧美中文字幕在线| 久热成人在线视频| 性欧美18~19sex高清播放| 亚洲欧洲在线一区| 红桃视频国产精品| 国产精品乱人伦一区二区| 欧美精品在线极品| 欧美不卡在线| 久久全国免费视频| 久久成人一区二区| 香蕉久久一区二区不卡无毒影院 | 亚洲欧美影音先锋| 夜夜爽99久久国产综合精品女不卡| 亚洲国产高清在线| 亚洲国产精品999| 亚洲国产三级| 一区二区三区高清在线| 亚洲精品小视频在线观看| 亚洲日本va午夜在线影院| 136国产福利精品导航网址| 狠狠色综合色区| 亚洲高清三级视频| 99国产精品国产精品久久| 一区二区三区欧美在线| 亚洲欧美一区二区在线观看| 久久久www免费人成黑人精品| 久久手机免费观看| 欧美成人激情在线| 99热在这里有精品免费| 亚洲一区日韩| 久久三级视频| 国产精品黄页免费高清在线观看| 国产欧美精品日韩区二区麻豆天美| 国内在线观看一区二区三区| 亚洲九九九在线观看| 欧美中文字幕精品| 欧美激情按摩| 先锋影音国产精品| 欧美黄色日本| 久久精品国产成人| 欧美精品日韩三级| 国产亚洲综合精品| 99精品久久| 欧美阿v一级看视频| 亚洲欧美成人在线|