mount

Linux磁盘

匿名 (未验证) 提交于 2019-12-02 21:56:30
监测磁盘空间 mount 命令提供如下四部分信息: 媒体的设备文件名 媒体挂载到虚拟目录的挂载点 文件系统类型 已挂载媒体的访问状态 mount -- 输出当前系统上挂载设备信息 mount - t vfat / dev / sdb1 / media / disk -- mount - t type device directory ح type 参数指定了磁盘被格式化的文件系统类型 -- 手动将 U 盘/ dev / sdb1 挂载到/ media / disk mount 命令的参数: - a 挂载/ etc / fstab 文件中指定的所有文件系统 - f ʹ mount 命令模拟挂载设备,但并不真的挂载 - F 和 - a 参数一起使用时,会同时挂载所有文件系统 - v 详细模式,将会说明挂载设备的每一步 - I 不启用任何/ sbin / mount . filesystem 下的文件系统帮助文件 - l 给 ext2 、 ext3 或 XFS 文件系统自动添加文件系统标签 - n 挂载设备,但不注册到/ etc / mtab 已挂载设备文件中 - p num 进行加密挂载时,从文件描述符 num 中获得密码短语 - s 忽略该文件系统不支持的挂载选项 - r 将设备挂载为只读的 - w 将设备挂载为可读写的(默认参数) - L label 将设备按指定的 label

linux 下配置NFS远程目录挂载

匿名 (未验证) 提交于 2019-12-02 21:56:30
一、服务端 1、检查nfs服务 rpm -qa|grep nfs rpm -qa|grep rpcbind 2、安装nfs yum -y install nfs-utils rpcbind 3、设置开机自动启动服务 chkconfig nfs on chkconfig rpcbind on 4、启动服务 service rpcbind start service nfs start 5、创建共享目录 mkdir /data/nfs-share chmod -R 777 /data/nfs-share 6、配置exports文件 vi /etc/exports 加入: /data/nfs-share 192.168.1.1(rw) 7、刷新配置立即生效 exportfs -a 8、查看mount目录  #此时可用showmount -e 服务端ip来查看可mount目录 showmount -e 192.168.1.1 二、客户端 1、创建共享目录 mkdir /data/share-file 2、挂载目录 mount 192.168.1.1:/data/nfs-share /data/share-file  #安装 nfs-utils 即可  yum install nfs-utils 3、卸载已挂载目录 umount /data/share-file 4、NFS挂载时出现

windows 与 Centos7 共享文件方法

匿名 (未验证) 提交于 2019-12-02 21:53:52
转自:https://www.cnblogs.com/zejin2008/p/7144514.html 先安装包依赖: yum -y install kernel-devel-$(uname -r) yum -y install net-tools perl gcc gcc-c++ 安装vm tool mount /dev/cdrom /home/tmp cp /home/tmp/VMwareTools-9.6.0-1294478.tar.gz /tmp cd /tmp tar -zxvf VMwareTools-9.6.0-1294478.tar.gz cd vmware-tools-distrib ./vmware-install.pl 按提示操作即可。 有/mnt/hgfs但没有共享文件的解决方法: mount -t vmhgfs .host:/ /mnt/hgfs Error: cannot mount filesystem: No such device 这时不能用mount工具挂载,而是得用vmhgfs-fuse,需要安装工具包 yum install open-vm-tools-devel -y 有的源的名字并不一定为open-vm-tools-devel(centos) ,而是open-vm-dkms(unbuntu) 执行:vmhgfs-fuse .host:/

Linux编程 8 (挂载mount,查看磁盘df du,搜索grep,压缩zgip,归档tar)

匿名 (未验证) 提交于 2019-12-02 21:53:52
一. 挂载存储媒体   linux文件系统将所有的磁盘都并入一个虚拟目录下,当使用新的存储媒体之前,需要把它放到虚拟目录下,这项工作称为挂载(mounting)    1.1 mount 命令     在linux上用来挂载媒体的命令叫做mount. 默认情况下,mount命令会输出当前系统上的挂载的设备列表。    1.2 umont     要除移可移动设备时,不能直接从系统上移除,应该先卸载。使用umont命令(以后在演示)。 二. 查看磁盘空间    在linux系统中,监测系统磁盘使用情况很重要。知道还有多少空间供程序使用。下面介绍磁盘管理常用的命令。    2.1 df 命令     使用df -h参数会输出系统磁盘空间信息,已易读形式显示,如下图所示:           2.2 du 命令     使用du -h命令将显示当前目录的磁盘使用情况,确定占用了多少存储空间,是否有超大文件。如下图所示,显示mysql 的数据目录磁盘占用情况。        三 数据处理    3.1 搜索数据 grep     在前面章节介绍ps 命令查看进程时有说过grep命令。下面演示在mysql错误日志文件中,找出含有Warning关键词的信息。如下图所示:            使用grep -c参数显示匹配数,下面匹配Warning关键词数有50个。如下图所示 :       

How can I mount vmdk in 10.7?

吃可爱长大的小学妹 提交于 2019-12-02 19:39:50
I'm using OSX Lion and want to mount a VMDK-File which I've created on my VMWare Fusion 4.0.2. Is it possible?! I asked Google, it means I should mount the VMDK with an app under '/Library/Application Support/VMware Fusion/VMDKMounter.app', but this app isn't there. So I installed MacFuse (and later OSXFuse) like suggested, but there is still no VMDKMounter. Any suggestions? Zee You need a copy of Fusion 3.1.3 and Pacifist 2.6.4, download them from: http://downloads.vmware.com/d/info/desktop_end_user_computing/vmware_fusion/3_0 http://www.charlessoft.com Drag the Pacifist application to your

vue源码学习2

旧巷老猫 提交于 2019-12-02 19:06:26
一、直接用 <script> 引入vue.js 直接下载并用 <script> 标签引入, Vue 会被注册为一个全局变量。 <div id="app"></div> <script src="vue.js"></script> <script> var vm = new Vue({ el: '#app', data: {}, components: {}, created: function() {}, methods: { xxx: function() { } } }) </script> // vue.js (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = global || self, global.Vue = factory()); }(this, function () { 'use strict'; function Vue (options) { this._init(options); } return Vue; }));

cannot create a shared-volume mount via 'emptyDir' on single node kubernetes (on centos), but this works with multi-node k8s installation

风流意气都作罢 提交于 2019-12-02 18:42:55
问题 TL;DR - The solution to the problem, thanks to Paul If you have the problem described below, the easiest way to solve it is to execute the following command before running the Recipe to boot single node k8s: sudo chcon -Rt svirt_sandbox_file_t /var/lib/kubelet Original Problem Description I am trying to put together a k8s environment based on this recipe > https://github.com/kubernetes/kubernetes/blob/release-1.1/docs/getting-started-guides/docker.md for the purpose of integration testing our

How to register FUSE filesystem type with mount(8) and fstab?

有些话、适合烂在心里 提交于 2019-12-02 17:04:40
I've written a small FUSE-based filesystem and now the only part's missing is that I want to register it with fstab(5) to auto-mount it on system startup and/or manually mount it with just mount /srv/virtual-db . How can I achieve this? I know, I can just run /usr/bin/vdbfs.py /srv/virtual-db from some init script, but that's not exactly pretty. I'm sorry because this may be not exactly a programming question, but it's highly related, as the packaging and deployment is still the programmer's job. In general, one "registers" a new mount filesystem type by creating an executable mount.fstype . $

Mounting a NVME disk on AWS EC2

一曲冷凌霜 提交于 2019-12-02 16:46:59
So I created i3.large with NVME disk on each nodes, here was my process : lsblk -> nvme0n1 (check if nvme isn't yet mounted) sudo mkfs.ext4 -E nodiscard /dev/nvme0n1 sudo mount -o discard /dev/nvme0n1 /mnt/my-data /dev/nvme0n1 /mnt/my-data ext4 defaults,nofail,discard 0 2 sudo mount -a (check if everything is OK) sudo reboot So all of this works, I can connect back to the instance. I have 500 Go on my new partition. But after I stop and restart the EC2 machines, some of them randomly became inaccessible (AWS warning only 1/2 test status checked) When I watch the logs of why it is inaccessible

Linux: Which process is causing “device busy” when doing umount? [closed]

混江龙づ霸主 提交于 2019-12-02 14:48:31
Linux: Which process is causing "device busy" when doing umount? MarkusQ Look at the lsof command (list open files) -- it can tell you which processes are holding what open. Sometimes it's tricky but often something as simple as sudo lsof | grep (your device name here) could do it for you. Just in case... sometimes happens that you are calling umount from the terminal, and your current directory belongs to the mounted filesystem. Ben You should use the fuser command. Eg. fuser /dev/cdrom will return the pid(s) of the process using /dev/cdrom . If you are trying to unmount, you can kill theses