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