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

逛奔的蝸牛

我不聰明,但我會很努力

   ::  :: 新隨筆 ::  ::  :: 管理 ::
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) 評論(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>
            亚洲一区二区毛片| 久久一区亚洲| 欧美精品三级在线观看| 欧美一级黄色录像| 亚洲欧美日本精品| 一区二区日本视频| 9久re热视频在线精品| 欧美在线亚洲一区| 国产婷婷精品| 欧美精品久久久久久久免费观看| 亚洲欧美激情精品一区二区| 日韩视频永久免费| 亚洲一区二区在线| 久久天天综合| 久久精品亚洲一区二区| 美女精品一区| 国产精品草莓在线免费观看| 国产精品乱子乱xxxx| 国内精品99| 亚洲国产成人精品久久久国产成人一区| 在线看国产一区| 99在线精品视频在线观看| 在线视频日韩| 蜜臀av性久久久久蜜臀aⅴ| 亚洲大片免费看| 99国产精品99久久久久久| 欧美华人在线视频| 欧美自拍偷拍午夜视频| 老鸭窝毛片一区二区三区 | 欧美高清在线视频| 欧美日韩一区二区精品| 日韩视频三区| 国产一区久久久| 国产综合色产| 亚洲图片在区色| 亚洲级视频在线观看免费1级| 亚洲国产导航| 欧美在线免费看| 国产精品xxxxx| 一区二区三区久久| 蜜臀久久99精品久久久久久9| 一区二区三区四区精品| 欧美va天堂| 欧美在线短视频| 国产在线成人| 国产精品每日更新在线播放网址| 欧美激情片在线观看| 亚洲欧洲另类| 这里只有精品电影| 影音先锋在线一区| 欧美mv日韩mv国产网站| 蜜桃av综合| 麻豆精品精华液| 99视频+国产日韩欧美| 亚洲久久在线| 欧美视频手机在线| 亚洲午夜久久久| 老色鬼精品视频在线观看播放| 国产女同一区二区| 欧美日韩精品在线| 国产精品99久久久久久人| 亚洲国产影院| 激情伊人五月天久久综合| 欧美在线视频一区二区三区| 久久激情一区| 亚洲一区三区视频在线观看| 欧美绝品在线观看成人午夜影视| 亚洲午夜激情网页| 另类亚洲自拍| 午夜老司机精品| 亚洲综合丁香| 中文亚洲欧美| 欧美日韩国产精品一区| 国产精品裸体一区二区三区| 亚洲成色www久久网站| 久久视频在线视频| 另类综合日韩欧美亚洲| 欧美一区三区二区在线观看| 亚洲国产精品黑人久久久| 国产农村妇女毛片精品久久麻豆| 女人天堂亚洲aⅴ在线观看| 欧美性猛片xxxx免费看久爱| 亚洲日韩中文字幕在线播放| 一区二区三区欧美日韩| 欧美日韩国产一区二区三区| 亚洲精品日本| 欧美人体xx| 亚洲一区二区三区精品动漫| 香蕉成人伊视频在线观看 | 亚洲天堂av图片| 性色av一区二区三区红粉影视| 亚洲视频一区在线| 国产麻豆日韩| 免费亚洲电影在线观看| 99国产麻豆精品| 亚洲三级影院| 国产精品一区二区在线观看网站 | 国产日韩精品在线| 麻豆av一区二区三区久久| 欧美视频成人| 免费看精品久久片| 亚洲欧洲99久久| 日韩视频中午一区| 午夜影院日韩| 正在播放亚洲一区| 久久精品欧美日韩精品| 亚洲三级免费电影| 国产精品永久免费视频| 久久久久国产精品厨房| 亚洲高清资源| 国内精品伊人久久久久av影院 | 欧美大片在线观看一区| 亚洲午夜av电影| 亚洲靠逼com| 亚洲国语精品自产拍在线观看| 久久精品国产亚洲a| 性久久久久久久久| 亚洲国产精品电影| 午夜精品久久久久影视| 亚洲影院在线观看| 亚洲精品视频在线观看网站| 欧美大片在线影院| 欧美激情在线有限公司| 免费91麻豆精品国产自产在线观看| 在线亚洲免费视频| 一本色道久久综合精品竹菊| 亚洲精品老司机| 一区二区三区久久久| 亚洲自拍电影| 久色婷婷小香蕉久久| 欧美精品电影| 国产香蕉97碰碰久久人人| 国产精品久久久久久久久免费樱桃 | 欧美福利一区二区三区| 亚洲视频在线观看一区| 欧美肥婆在线| 免费看亚洲片| 亚洲欧美另类久久久精品2019| 欧美亚洲一区二区在线观看| 免费看成人av| 国产视频一区三区| 亚洲靠逼com| 久久人91精品久久久久久不卡| 美日韩丰满少妇在线观看| 亚洲激情啪啪| 在线亚洲精品| 亚洲第一精品福利| 日韩视频在线观看| 欧美午夜精品久久久| 欧美日韩视频在线观看一区二区三区 | 亚洲第一精品在线| 亚洲欧美999| 99国内精品久久| 欧美日韩伊人| 亚洲综合久久久久| 9人人澡人人爽人人精品| 欧美日韩国产色视频| 久久人人看视频| 亚洲电影有码| 亚洲高清激情| 欧美另类综合| 亚洲天堂av电影| 久久国产综合精品| 极品日韩久久| 亚洲激情午夜| 国产精品久久久久久久久果冻传媒 | 亚洲国产精品久久久久婷婷884| 久久精品亚洲| 99爱精品视频| 亚洲影视在线播放| 欧美一级视频免费在线观看| 在线观看欧美亚洲| 日韩一区二区久久| 国产情人节一区| 欧美视频在线一区| 伊人成人开心激情综合网| 在线看欧美日韩| 99视频精品| 亚洲电影中文字幕| 亚洲一区精品电影| 亚洲最新色图| 久久综合激情| 性欧美暴力猛交另类hd| 麻豆国产va免费精品高清在线| 亚洲欧美中文在线视频| 蜜臀av国产精品久久久久| 欧美三级午夜理伦三级中视频| 免费观看成人| 狠久久av成人天堂| 女同一区二区| 在线观看日韩av电影| 亚洲电影免费观看高清完整版在线观看| 老司机aⅴ在线精品导航| 国产欧美一区二区精品性| 亚洲先锋成人| 欧美在线视频观看| 国外精品视频| 久久亚裔精品欧美| 欧美激情一区二区在线| 亚洲精品影视在线观看|