Unix Advanced [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Unix Advanced [Electronic resources] - نسخه متنی

Chris Herborth

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید


"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">








  • Checking Your File System


    Normally you should be able to trust that your OS's file system will keep your data safe, but what about circumstances beyond your control? Maybe your power went out and you couldn't shut down the machine properly, for example.

    You're going to need to be able to check your file systems for errors. Windows and Mac OS X both have operating-system-specific tools for checking the file system (although Mac OS X's is called fsck behind the scenes). Please refer to your operating system documentation for more information.

    To check your file system with fsck



    1.

    Switch to single-user mode (see "To switch to single-user mode," earlier in the chapter).

    This will let fsck do its job without your having to worry about other users poking around while it's working.

    2.

    mount

    Using the mount command without any arguments prints a list of the mounted file systems and the devices they reside on (Figure 3.24).

    Figure 3.24. The mount command lists your devices and where they're mounted in the file system.

    3.

    fsck filesystem

    Use the fsck command to check the specified file system. You can specify a file system by giving its device (the cryptic /dev path) or by giving its mount point (such as /tmp).



    • / 115