N**********d 发帖数: 9292 | 1 df -h显示了很多分区
Filesystem Size Used Avail Use% Mounted on
rootfs 837M 620M 217M 75% /
/dev/root 837M 620M 217M 75% /
devtmpfs 948M 540K 947M 1% /dev
/tmp 948M 124K 948M 1% /tmp
shmfs 948M 6.9M 941M 1% /dev/shm
/dev/sda1 5.7G 568M 4.9G 11% /mnt/stateful_partition
/dev/sda1 5.7G 568M 4.9G 11% /var
/dev/sda1 5.7G 568M 4.9G 11% /home
/dev/sda1 5.7G 568M 4.9G 11% /usr/local
varrun 948M 44K 948M 1% /var/run
varlock 948M 0 948M 0% /var/lock
/media 948M 0 948M 0% /media
/home/.shadow/714d9f6ff9eb953796b5254b55835da11164008a/vault
5.7G 568M 4.9G 11% /home/.shadow/
714d9f6ff9eb953796b5254b55835da11164008a/mount
/home/.shadow/714d9f6ff9eb953796b5254b55835da11164008a/vault
5.7G 568M 4.9G 11% /home/chronos/user
但是/etc/fstab里面没有显示绝大多数是怎么挂载的
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of
storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <
dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/BOOT /boot ext2 noauto,noatime 1 2
/dev/ROOT / ext3 noatime 0 1
/dev/SWAP none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
其他还有什么地方能查各个目录怎么挂载的? | j*a 发帖数: 14423 | 2 "# /etc/fstab: static file system information."
non-static的挂只需要root权,有了想挂就挂。
你有什么concern吗?
【在 N**********d 的大作中提到】 : df -h显示了很多分区 : Filesystem Size Used Avail Use% Mounted on : rootfs 837M 620M 217M 75% / : /dev/root 837M 620M 217M 75% / : devtmpfs 948M 540K 947M 1% /dev : /tmp 948M 124K 948M 1% /tmp : shmfs 948M 6.9M 941M 1% /dev/shm : /dev/sda1 5.7G 568M 4.9G 11% /mnt/stateful_partition : /dev/sda1 5.7G 568M 4.9G 11% /var : /dev/sda1 5.7G 568M 4.9G 11% /home
| N**********d 发帖数: 9292 | 3 那比如说
这样的mount结果是这样
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=969764k,nr_inodes=242441,
mode=755)
none on /proc type proc (rw,nosuid,nodev,noexec,relatime)
none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/tmp on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
shmfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
/dev/sda1 on /mnt/stateful_partition type ext4 (rw,nosuid,nodev,noexec,
relatime,commit=600,barrier=1,data=ordered)
/dev/sda1 on /var type ext4 (rw,nosuid,nodev,noexec,relatime,commit=600,
barrier=1,data=ordered)
/dev/sda1 on /home type ext4 (rw,nosuid,nodev,noexec,relatime,commit=600,
barrier=1,data=ordered)
/dev/sda1 on /usr/local type ext4 (rw,nodev,relatime,commit=600,barrier=1,
data=ordered)
varrun on /var/run type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
varlock on /var/lock type tmpfs (rw,nosuid,nodev,noexec,relatime)
/media on /media type tmpfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /tmp/cgroup/cpu type cgroup (rw,relatime,cpu)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/home/.shadow/714d9f6ff9eb953796b5254b55835da11164008a/vault on /home/.
shadow/714d9f6ff9eb953796b5254b55835da11164008a/mount type ecryptfs (rw,
nosuid,nodev,noexec,relatime,ecryptfs_sig=769f276e933ad165,ecryptfs_fnek_sig
=1a0789cf51b7fbfb,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_
sigs)
/home/.shadow/714d9f6ff9eb953796b5254b55835da11164008a/vault on /home/
chronos/user type ecryptfs (rw,nosuid,nodev,noexec,relatime,ecryptfs_sig=
769f276e933ad165,ecryptfs_fnek_sig=1a0789cf51b7fbfb,ecryptfs_cipher=aes,
ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)
我想每次自动把最后一个改成exec而不是noexec,在哪里改呢?
【在 j*a 的大作中提到】 : "# /etc/fstab: static file system information." : non-static的挂只需要root权,有了想挂就挂。 : 你有什么concern吗?
| j*a 发帖数: 14423 | 4 貌似是ecryptfs挂的 看它们家的文档吧
http://ecryptfs.sourceforge.net/README,faq什么的
【在 N**********d 的大作中提到】 : 那比如说 : 这样的mount结果是这样 : rootfs on / type rootfs (rw) : /dev/root on / type ext2 (ro,relatime) : devtmpfs on /dev type devtmpfs (rw,relatime,size=969764k,nr_inodes=242441, : mode=755) : none on /proc type proc (rw,nosuid,nodev,noexec,relatime) : none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) : /tmp on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime) : debugfs on /sys/kernel/debug type debugfs (rw,relatime)
| N**********d 发帖数: 9292 | 5 好,谢谢啦
【在 j*a 的大作中提到】 : 貌似是ecryptfs挂的 看它们家的文档吧 : http://ecryptfs.sourceforge.net/README,faq什么的
|
|