---
title: "用mount –bind 将数据挂载到其它目录"
id: "3034"
type: "post"
slug: "%e7%94%a8mount-bind-%e5%b0%86%e6%95%b0%e6%8d%ae%e6%8c%82%e8%bd%bd%e5%88%b0%e5%85%b6%e5%ae%83%e7%9b%ae%e5%bd%95"
published_at: "2020-05-22T05:51:53+00:00"
modified_at: "2020-05-22T05:51:53+00:00"
url: "https://seq.ink/all/3034.html"
markdown_url: "https://seq.ink/all/3034.html.md"
excerpt: "1、mount –bind 是将一个目录中的内容挂载到另一个目录上，用法是 mount --bind olddir newdir 2、mount –bind开启启动 echo 'olddir newdir none ..."
taxonomy_category:
  - "ALL"
---

1、mount –bind 是将一个目录中的内容挂载到另一个目录上，用法是  
 `mount --bind olddir newdir`  
 2、mount –bind开启启动  
 `echo 'olddir newdir none bind 0 0' >> /etc/fstab`  
 3、无需重启静默生效  
 `mount -a`
