Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Search | About

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