mount

VMware Workstation and Device/Credential Guard are not compatible

孤街浪徒 提交于 2019-12-02 13:51:01
I have been running VMware for the last year no problems, today I opened it up to start one of my VM and get an error message, see screen shot. I did follow the link and went through the steps, on step 4 I need to mount a volume using "mountvol". when I try to mount a volume using mountvol X: \\?\Volume{5593b5bd-0000-0000-0000-c0f373000000}\ it keeps saying The directory is not empty. I even created a partition with 2GB and still the same message. My Questions: How can I mount the volume that is not empty even though it is? Why did this Device/Credential Guard auto enable itself and how can I

Force unmount of NFS-mounted directory [closed]

徘徊边缘 提交于 2019-12-02 13:47:33
I have an NFS-mounted directory on a Linux machine that has hung. I've tried to force an unmount, but it doesn't seem to work: $ umount -f /mnt/data $ umount2: Device or resource busy $ umount: /mnt/data: device is busy If I type " mount ", it appears that the directory is no longer mounted, but it hangs if I do " ls /mnt/data ", and if I try to remove the mountpoint, I get: $ rmdir /mnt/data rmdir: /mnt/data: Device or resource busy Is there anything I can do other than reboot the machine? tessein You might try a lazy unmount: umount -l Daniel Papasian If the NFS server disappeared and you

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 08:43:30
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 code base which provisions containers in a k8s cluster. For copy/paste convenience, I am including all

Linux之文件系统管理

痴心易碎 提交于 2019-12-02 08:39:46
分区和文件系统 1. 什么是分区: ·· 分区就是对磁盘进行的一种格式化,然后才能使用硬盘保存各种信息,硬盘通常最多可以分成四个实际分区。其中 主分区 最多四个,最少一个, 扩展分区 最多一个,最少0个。 也就是说,主分区加上扩展分区 最多只能有四个 。 那么扩展分区是什么呢?其实扩展分区是用来划分 逻辑分区 的,因为有时候四个分区可能不能满足我们,但是又受限于当前工业水平的限制,最多只有四个分区,所以就可以在四个分区中,选择一个作为扩展分区,专门用来分逻辑分区。使得用户在表面上看来,磁盘被分为多个分区。 分区的好处其实就是索引数据的时候更加快速。因为不用再全盘搜索了,变相的提升了速度 2. 什么是文件系统 文件系统就是:操作系统在存储设备上面组织数据的方法。这个就相当于一种对磁盘的高级格式化,将每一个分区按照自己的操作系统能识别的方式来组织数据。每一种操作系统都有自己的文件系统。比如Windows最开始是fat16,fat32,到现在的NTFS文件系统。Linux由最开始的ext2,ext3,到现在的ext4。 只有将磁盘分区,并且对分区进行格式化之后,操作系统才能写入磁盘,并且操作数据。 3. 常用文件系统结构 ◆硬盘是默认无分区和格式化的。需要安装操作系统的时候做这些操作 ◆移动硬盘是NTFS格式的文件系统,所以苹果系统通常只能读取,Linux通常不能识别,读不出来 ◆USB

LocalDateTime

我的梦境 提交于 2019-12-02 06:30:28
@Component public class DateUtil { public final static String EMPTY_SRING = ""; public final static String DEFAULT_PATTERN = "yyyy-MM-dd HH:mm:ss"; public final static long DATE_TIME = 1000 * 24 * 60 * 60; public final static long HOUR_TIME = 1000 * 60 * 60; public final static long MINUTE_TIME = 1000 * 60; public LocalDateTime parseDate(String timeStr) { // return new LocalDateTimeStringConverter().fromString(timeStr); DateTimeFormatter pattern = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); //严格按照ISO yyyy-MM-dd验证,03写成3都不行 return LocalDateTime.parse(timeStr, pattern); } public String

/etc/fstab 文件解释

爱⌒轻易说出口 提交于 2019-12-02 00:17:26
/etc/fstab 文件解释 文件fstab包含了你的电脑上的存储设备及其文件系统的信息。它是决定一个硬盘(分区)被怎样使用或者说整合到整个系统中的唯一文件。 这个文件的全路径是/etc/fstab。它只是一个文本文件,你能够用你喜欢的编辑器打开它,但是必须是root用户才能编辑它。同时fsck、mount、umount的等命令都利用该程序。 具体来说:用fstab可以自动挂载各种文件系统格式的硬盘、分区、可移动设备和远程设备等。对于Windows与arch双操作系统用户,用fstab挂载FAT格式和NTFS格式的分区,可以在Linux中共享windows系统下的资源。 fstab文件示例 现在让我们看一下一个典型的fstab文件: # <file system><dir><type><options><dump><pass> none /dev/pts devpts defaults 0 0 none /dev/shm tmpfs defaults 0 0 /dev/cdrom /media/cd iso9660 ro,user,noauto,unhide 0 0 /dev/dvd /media/dvd udf ro,user,noauto,unhide 0 0 /dev/fd0 /media/fl auto user,noauto 0 0 /dev/hda1 swap

Linux下自动加载访问ntfs分区

删除回忆录丶 提交于 2019-12-02 00:16:18
ntfs-3g是一个用于读写NTFS分区的用户态文件系统(FUSE)。 优点是支持NTFS的完美读写,安装/配置简单,而且已经进入Fedora Extras。 缺点是因为是用户态文件系统,所以大量IO有明显的CPU资源占用。 步骤: 1、安装fuse, http://fuse.sourceforge.net/ ,不要安装最新版本,最新版中fuse被编入了系统内核中,不再作为模块加载,这样会使的ntfs-3g无法使用。本人下载的是fuse-2.7.3.tar.gz,解压后编译安装:./configure make make install 2、安装ntfs-3g, http://www.ntfs-3g.org/ ,本人下载的是ntfs-3g-2009.4.4.tgz,同上面的方法解压后编译安装。 3、到这一步ntfs-3g已经安装完成了,可以通过如下命令加载ntfs分区:mount -t ntfs-3g /dev/sda1 /mnt/disk 尝试挂载本地ntfs,在/etc/fstab中加入类似: /dev/hda1 /mnt/winc ntfs-3g defaults 0 0 4、让系统自动加载ntfs移动硬盘分区:按照上面的方法完成ntfs-3g的安装之后,系统并不会自动加载移动硬盘的ntfs分区,原因是系统将分区格式识别为ntfs,而不是这里的ntfs-3g

centos7的服务管理systemctl

。_饼干妹妹 提交于 2019-12-01 20:18:00
Linux Systemctl是一个系统管理守护进程、工具和库的集合,用于取代System V、service和chkconfig命令,初始进程主要负责控制systemd系统和服务管理器。通过Systemctl –help可以看到该命令主要分为:查询或发送控制命令给systemd服务,管理单元服务的命令,服务文件的相关命令,任务、环境、快照相关命令,systemd服务的配置重载,系统开机关机相关的命令。 1.启动、重启、停止、重载服务以及检查服务(如 httpd.service)状态 systemctl start httpd.service systemctl restart httpd.service systemctl stop httpd.service systemctl reload httpd.service systemctl status httpd.service 注意:当我们使用systemctl的start,restart,stop和reload命令时,终端不会输出任何内容,只有status命令可以打印输出。 2. 如何激活服务并在开机时启用或禁用服务(即系统启动时自动启动mysql.service服务) systemctl is-active mysql.service systemctl enable mysql.service systemctl

Mounting a single file from a Docker data volume in a Docker

只愿长相守 提交于 2019-12-01 17:22:18
I'm trying to mount a single file from a Docker volume in a container when using "docker run". I've been able to mount an entire volume as a directory, e.g: docker run -v my_volume:/root/volume my_container I've also mounted single files from the physical machine, e.g: docker run -v /usr/local/bin/docker:/usr/local/bin/docker Is there a way? Is there a way always destination path/file doesn't exist in the container , if you've created a named volume and a bind to its directory (similar to deprecated volumes_from) docker run -v /var/lib/docker/volumes/my_volume/_data/MY_FILE.txt:/destination

linux mount命令的用法详细解析

青春壹個敷衍的年華 提交于 2019-12-01 17:04:49
挂接命令(mount) 首先,介绍一下挂接(mount)命令的使用方法,mount命令参数非常多,这里主要讲一下今天我们要用到的。 命令格式:mount [-t vfstype] [-o options] device dir 其中: 1.-t vfstype 指定文件系统的类型,通常不必指定。mount 会自动选择正确的类型。常用类型有: 光盘或光盘镜像:iso9660 DOS fat16文件系统:msdos Windows 9x fat32文件系统:vfat Windows NT ntfs文件系统:ntfs Mount Windows文件网络共享:smbfs UNIX(LINUX) 文件网络共享:nfs 2.-o options 主要用来描述设备或档案的挂接方式。常用的参数有: loop:用来把一个文件当成硬盘分区挂接上系统 ro:采用只读方式挂接设备 rw:采用读写方式挂接设备 iocharset:指定访问文件系统所用字符集 3.device 要挂接(mount)的设备。 4.dir设备在系统上的挂接点(mount point)。 挂接光盘镜像文件 1、从光盘制作光盘镜像文件。将光盘放入光驱,执行下面的命令。 #cp /dev/cdrom /home/sunky/mydisk.iso 或 #dd if=/dev/cdrom of=/home/sunky/mydisk.iso