mount

mount -t nfs vs cifs

邮差的信 提交于 2019-12-06 04:20:21
问题 I had a requirement to mount a NFS. After several trial and errors, I could mount a NFS file system from NAS on my Linux system. We were also evaluating if cifs can be used when NFS does not work. man pages were too confusing and could not find any lucid explanation on web. My question is - if NFS is a problem can mount -t cifs be used in place ? Is cifs always available as replacement for nfs. 回答1: CIFS is not always available (but often is). When it works, NFS works better for unixy clients

Oracle 数据库启动与关闭

风格不统一 提交于 2019-12-06 02:43:52
只有具备sysdba和sysoper 系统 特权的用户才能启动和关闭 数据库 。 在启动数据库之前应该启动监听程序,否则就不能利用命令方式来管理数据库,包括启动和关闭数据库。 虽然数据库正常运行,但如果没有启动监听程序,客户端就不能连接到数据库。 在oracle用户下: 启动监听程序 lsnrctl start 关闭监听程序lsnrctl stop 查询监听程序状态lsnrctl status startup 支持参数 STARTUP options | upgrade_options options为:[FORCE] [RESTRICT] [PFILE=filename] [QUIET] [ MOUNT [dbname] | [ OPEN [open_options] [dbname] ] | NOMOUNT ], NOMOUNT、MOUNT、OPEN为startup的三个阶段,不能在命令中同时存在。其中,open_options为:READ {ONLY | WRITE [RECOVER]} | RECOVER。 upgrade_options为:[PFILE=filename] {UPGRADE | DOWNGRADE} [QUIET] Oracle 数据库 的完整启动过程包含以下3个步骤: 简单地说,就是: 启动实例 --> 加载数据库 --> 打开数据库 . -------

bindfs - Doesn't work for folder inside “/proc”

为君一笑 提交于 2019-12-06 02:30:46
Bindfs doesn't work for folder inside "/proc"... [root@some_host some_folder]# bindfs --map=root/<MY_USER> "/proc/<SOME_PID>/<SOME_FOLDER>" "/home/<MY_USER>/<SOME_FOLDER>" Failed to resolve source directory `/proc/<SOME_PID>/<SOME_FOLDER>': No such file or directory [root@some_host some_folder]# ls "/proc/<SOME_PID>/<SOME_FOLDER>" some_file Why? Thanks! UPDATE: Example with Docker container... I ended up finding out that for some reason this command... sudo bindfs --map=root/eduardo "/proc/$(docker inspect --format {{.State.Pid}} 255d)/root" "/home/eduardo/Data/Temp/20180329.1/root" ... make

can mount unencrypted obb but with encrypted error 21

本小妞迷上赌 提交于 2019-12-06 00:05:16
This is not related with kitkat bug, i'm testing in 4.4.2 I can mount without problems the obb file, the problem is when try to do the same with encrypted obb. I'm using jobb in windows like this: jobb -d my_folder -o exp.obb -k pwd -pn com.example.name -pv 1 The only thing i changed to load encrypted obb file is this: stgMgr.mountObb(mObbPath, null, new mOnObbStateChangeListener) stgMgr.mountObb(mObbPath, pwd, new mOnObbStateChangeListener) it's not a permissions problem. So, why i cant mount the encrypted obb file? i read this Using encrypted OBB files in Android but don't understand the

linux磁盘管理

喜欢而已 提交于 2019-12-05 22:58:48
一些基础 硬盘接口类型 ide 早期家庭电脑 scsi 早期服务器 sata 目前家庭电脑 sas 目前服务器 raid卡--阵列卡 网卡绑定 ABI 应用程序与OS之间的底层接口 API 应用程序调用第三方库的接口 Windows 磁盘分区方式,不同的方式,BIOS的设置是不同的 硬盘分区格式为MBR格式,启动模式应该为Legacy; 硬盘分区格式为GUID(GPT)格式,启动模式应该为UEFI BIOS+MBR 以前的方式,分区最大支持2T 与UEFI+GPT 是目前最新的方式,硬盘支持容量特别大 硬盘寻址方式与空间大小:由于CHS寻址方式的寻址空间在大概8GB以内,所以在磁盘容量小于大概8GB 时,可以使用CHS寻址方式或是LBA寻址方式;在磁盘容量大于大概8GB时,则 只能使用LBA寻址方式 设备在Linux的命名方式 : SCSI, SATA, SAS, IDE,USB: /dev/sd ? 设备都以/dev/sd开头 虚拟磁盘:/dev/vd 、/dev/xvd ? 不同磁盘标识:a-z,aa,ab… /dev/sda, /dev/sdb, ... ? 第一块磁盘就是a ,第二块就是b..... 同一设备上的不同分区:1,2, ... /dev/sda1, /dev/sda5 第一个分区就是1,第二个分区就是2.... 分区类型 MBR:(只支持2T的硬盘分区) 主分区

3 Ways to Force Unmount in Linux Showing “device is busy”

感情迁移 提交于 2019-12-05 22:32:16
3 Ways to Force Unmount in Linux Showing “device is busy” Updated August 8, 2019 By Bobbin Zachariah LINUX HOWTO , TROUBLESHOOTING When you do an NFS mount, it sometimes shows "device is busy” status, in such case we need to perform force unmount in a graceful way. There are different ways and options we can try out if normal nfs unmount fails. Scenario In our scenario, we have created /var/linoxide directory for the mount. When we try to umount the remote partition, we have an error message. Good to read on NFS Mount Options in Linux . You can all the mounted folders with the df command # df

Linux 磁盘的分区、格式化、检验与挂载

旧街凉风 提交于 2019-12-05 17:07:18
Linux下,对磁盘的管理需要经过以下步骤: 1.观察磁盘分区状态,(MBR分区/GPT分区) 命令:lsblk,列出所有磁盘列表;blkid,列出装置的UUID等参数;parted列出磁盘的分区表类型与分区信息 parted device_name print(查看MBR分区/GPT分区); 2.磁盘分区,(gdisk->GPT分区,fdisk->MBR分区) 命令:gdisk/fdisk 装置名称,当更新了分区表后,要用partprobe -s 跟新核心内容。 <小插曲>:( emergency mode )在初期安装linux时,创建了一个/mydata的挂载点,/mydata挂载到/dev/sda5分区下,在学习gdisk/fdisk时,把/dev/sda5分区umount并删除sda5分区,系统reboot后无法正常启动。原因在于自动挂载相关的配置/etc/fstab没有删除(vi /etc/fstab) 3.磁盘格式化, 命令:mkfs.xfs(xfs文件系统)mkfs.xfs /dev/sda5 命令:mkfs.ext4(ext4文件系统)mkfs.ext4 /dev/sda5 4.文件系统检验,(特殊情况下是使用) 命令:xfs_repair处理xfs文件系统,xfs_repair /etc/sda5 命令:fsck.ext4处理ext4文件系统,fsck.ext4

Linux磁盘,文件系统管理

假装没事ソ 提交于 2019-12-05 17:06:44
创建分区,文件系统,挂载的相关思路: 1.先以lsblk或blkid找到相关磁盘。 2.以parted或gdisk查找磁盘内部分区表类型。 3.使用fdisk或gdisk进行分区操作,分区完成后使用 cat /proc/partitions查看内核分区数据,partprobe -s或partx -a进行更新。 4.使用mkfs或mke2fs建立对应的文件系统,ext系列可使用mke2fs格式化,使用tune2fs观察修改文件系统信息,xfs可使用mkfs格式化,xfs_admin管理,xfs_info查看相关信息。 5.使用mount挂载相关设备分区 一.对磁盘进行分区 MBR分区表分区 1.首先以lsblk找到当前系统的相关磁盘/dev/sda 2.查看当前磁盘分区表类型,找到Partition Table为MBR分区表 3.使用fdisk对磁盘进行分区 PS:使用n增加一个10G新的逻辑分区10,并使用p打印分区表,确定创建成功后wq写入并离开。若使用t选项可以改变system id,比如swap,linux lvm… 1)n选项 2)p选项 3)wq写入离开 4.分区完成后使用partprobe -s或partx -a 更新/proc/partitions内核分区数据,确定其写入。 GPT分区表分区 1.查看当前磁盘分区表类型,找到Partition Table为GPT分区表

Unable to mount files in Docker

淺唱寂寞╮ 提交于 2019-12-05 11:46:09
Error description I'm unable to mount files in Vagrant or Docker, so it seems like it's an issue caused by some kind of a permission error. My OS is Ubuntu 18.04 LTS (Bionic Beaver) , I'm not running any access control modules like SELinux as far as I'm aware. The Vagrant-related discussion of the error is found in another question: Unable to mount files in Vagrant Troubleshooting Docker I'm unable to mount files into a Docker container with docker-compose, I'm trying to build: https://github.com/fredrikaverpil/saltstack-docker I set my volumes in the docker-compose file to: volumes: - ${PWD}

Docker 数据管理--Docker 数据卷

耗尽温柔 提交于 2019-12-05 11:10:57
数据卷 是一个可供一个或多个容器使用的特殊目录,它绕过 UFS,可以提供很多有用的特性: 数据卷 可以在容器之间共享和重用 对 数据卷 的修改会立马生效 对 数据卷 的更新,不会影响镜像 数据卷 默认会一直存在,即使容器被删除 注意:数据卷 的使用,类似于 Linux 下对目录或文件进行 mount,镜像中的被指定为挂载点的目录中的文件会隐藏掉,能显示看的是挂载的 数据卷。 选择 -v 还是 -–mount 参数 Docker 新用户应该选择 --mount 参数,经验丰富的 Docker 使用者对 -v 或者 --volume 已经很熟悉了,但是推荐使用 --mount 参数。 创建一个数据卷 $ docker volume create my-vol 查看所有的 数据卷 $ docker volume ls local my-vol 在主机里使用以下命令可以查看指定 数据卷 的信息 $ docker volume inspect my-vol [ { "Driver": "local", "Labels": {}, "Mountpoint": "/var/lib/docker/volumes/my-vol/_data", "Name": "my-vol", "Options": {}, "Scope": "local" }] 启动一个挂载数据卷的容器 在用 docker run