13.2. Mount partition

简介:

13.2.1. Mount

sudo mount /dev/sdb1 /mnt/mount1
			

支持UTF-8

mount -o iocharset=utf8 /dev/sda5 /mnt/usb
			

禁止文件与目录的访问时间

mount -o noatime,nodiratime /dev/drbd0  /mnt
			

13.2.2. Umount

umount - unmount file systems

sudo umount /mnt/mount1
			

13.2.3. bind directory

mount --bind /foo /home/neo/foo
			

挂载目录将不能被删除,但目录下文件可以删除

# rm -rf /home/neo/foo
rm: cannot remove directory '/home/neo/foo': Device or resource busy
			

/etc/fstab

/foo /home/neo/foo    none    bind    0 0
			




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
21天前
RHEL分区LVM和StandardPartition的区别
本文介绍RHEL分区时选择LVM和StandardPartition的区别。
118 0
|
21天前
|
人工智能 自然语言处理 监控
分区Partition介绍及应用
本文详细介绍分区Partition的概念及使用场景,具体如何使用。
|
21天前
|
算法 C++ 容器
【C++算法】is_partitioned、partition_copy和partition_point
【C++算法】is_partitioned、partition_copy和partition_point
使用parted创建大分区时 mkpart Warning: The resulting partition is not properly aligned for best performance.
fdisk不能创建大于2T的分区,创建大分区得用parted,我在用parted创建分区时遇到下面的警告提示
175 0
|
算法
每个 Partition
每个 Partition
76 0
FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
/******************************************************************************** * FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. * 说明: * 系统更新的时候遇到这个错误,记录一下处理步骤,其原因是我自己把其umount了 * 导致的问题。
6118 0

热门文章

最新文章