zoukankan      html  css  js  c++  java
  • Linux入门之常用命令(12) mount

    查看Linux所有设备

    cd  /dev

    ls -l sd*  //分区

    查看Linux磁盘

    fdisk -lu

    挂载

    一般挂载至/mnt /media

    mount /dev/sda5   /mnt/thinkiii

    挂载时遇到一个问题

    Error mounting /dev/sdb3 ...
    status 14: The disk contains an unclean file system (0, 0).
    Metadata kept in Windows cache, refused to mount.
    Failed to mount '/dev/sdb3': Operation not permitted
    The NTFS partition is in an unsafe state. Please resume and shutdown
    Windows fully (no hibernation or fast restarting), or mount the volume
    read-only with the 'ro' mount option.

    一般该问题的原因是由于windows关闭不正常导致,解决方案如下:

    通过nftsfix命令修复该磁盘

    $ sudo ntfsfix /dev/sdb3
    Mounting volume... The disk contains an unclean file system (0, 0).
    Metadata kept in Windows cache, refused to mount.
    FAILED
    Attempting to correct errors...
    Processing $MFT and $MFTMirr...
    Reading $MFT... OK
    Reading $MFTMirr... OK
    Comparing $MFTMirr to $MFT... OK
    Processing of $MFT and $MFTMirr completed successfully.
    Setting required flags on partition... OK
    Going to empty the journal ($LogFile)... OK
    Checking the alternate boot sector... OK
    NTFS volume version is 3.1.
    NTFS partition /dev/sdb3 was processed successfully.
  • 相关阅读:
    锚点
    autoLayout
    基础动画
    核心动画
    get和post的区别
    block的定义及使用
    传值-自定义构造函数传值
    字符串
    字典与可变字典
    RabbitMQ的可视化界面进行操作
  • 原文地址:https://www.cnblogs.com/Dhouse/p/6601403.html
Copyright © 2011-2022 走看看