V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
fuxkcsdn
V2EX  ›  问与答

Debian 7修改/etc/fstab文件并重启后依然无效

  •  
  •   fuxkcsdn · 2013-06-05 16:58:54 +08:00 · 4758 次点击
    这是一个创建于 4193 天前的主题,其中的信息可能已经有所发展或是发生改变。
    原本是想让/dev/md0 mount时加上acl特性,但是编辑了/etc/fstab文件,重启了却没效果,反正/dev/sda1 /boot这个分区加载了acl特性...但看了下/etc/fstab文件,没有啊...
    是bug??还是debian 7不再是用/etc/fstab文件来控制了??
    ===================================================
    root@server:~# mount
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=1008265,mode=755)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=807860k,mode=755)
    /dev/disk/by-uuid/1051f9f7-7d31-40dd-bff6-7afe23d3f82d on / type ext4 (rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
    tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
    tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=33554432k)
    /dev/sda1 on /boot type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
    /dev/md0 on /mnt/data type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
    /dev/sda6 on /usr type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
    /dev/sda5 on /var type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
    root@server:~# cat /etc/fstab
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    # / was on /dev/sda2 during installation
    UUID=1051f9f7-7d31-40dd-bff6-7afe23d3f82d / ext4 errors=remount-ro 0 1
    # /boot was on /dev/sda1 during installation
    UUID=6a42b83e-5504-499a-bd71-fd0f1ced84e7 /boot ext3 defaults 0 2
    # /mnt/data was on /dev/md0 during installation
    UUID=473f6c7c-f02a-4d1a-b98b-7692707da83e /mnt/data ext4 defaults,acl 0 2
    # /usr was on /dev/sda6 during installation
    UUID=c98a5517-c421-4bdb-90ac-2bbe8b4cc235 /usr ext4 defaults 0 2
    # /var was on /dev/sda5 during installation
    UUID=4faf5564-f595-4293-bec2-d5b33e8bce5b /var ext4 defaults 0 2
    # swap was on /dev/sda3 during installation
    UUID=91492f7a-7922-4e7b-a6c0-61afe5be4682 none swap sw 0 0
    # swap was on /dev/sdb3 during installation
    UUID=7ccb1ae1-3ae3-40c0-af91-cf6d55e159d5 none swap sw 0 0
    /dev/sdd1 /media/usb0 auto rw,user,noauto 0 0
    ===================================================
    1 条回复    1970-01-01 08:00:00 +08:00
    fuxkcsdn
        1
    fuxkcsdn  
    OP
       2013-06-06 15:08:48 +08:00
    嗯...好吧...原来Debian 7的default mount选项里就已经包含acl了...
    怪不得我想说为什么每个分区都可以用setfacl来设置,以前没有添加acl选项的是无法用这命令设置权限的...
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3357 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 11:57 · PVG 19:57 · LAX 03:57 · JFK 06:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.