• linux 开机自动挂载ntfs盘


    1) 查看盘符UUID vellbibi@vell001:~$ sudo blkid [sudo] password for vellbibi: /dev/sda1: UUID="bce9e4f7-2434-4610-a51d-7aecc8e6fa44" TYPE="ext4" /dev/sda2: LABEL="Win7" UUID="C892801992800DDE" TYPE="ntfs" /dev/sda3: UUID="c202ee3c-ba20-327a-9ce5-e0750f8656f8" LABEL="MAC" TYPE="hfsplus" /dev/sdb1: LABEL="Files" UUID="000429BD0000C73E" TYPE="ntfs" /dev/sr0: UUID="2845-07D2" TYPE="vfat" 2) 编辑/etc/fstab文件 在/etc/fstab文件里, 第一列为设备号或该设备的卷标 第二列为挂载点 第三列为文件系统 第四列为文件系统参数 第五列为是否可以用demp命令备份。0:不备份,1:备份,2:备份,但比1重要性小。设置了该参数后,Linux中使用dump命令备份系统的时候就可以备份相应设置的挂载点了。 第六列为是否在系统启动的时候,用fsck检验分区。因为有些挂载点是不需要检验的,比如:虚拟内存swap、/proc等。0:不检验,1:要检验,2要检验,但比1晚检验,一般根目录设置为1,其他设置为2就可以了。 我的fstab文件内容: # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda1 during installation UUID=bce9e4f7-2434-4610-a51d-7aecc8e6fa44 / ext4 errors=remount-ro 0 1 UUID=000429BD0000C73E ~/files/ ntfs defaults,uid=1000 0 0 其中 uid是我的用户id,可以用id命令查询 vellbibi@vell001:~$ id uid=1000(vellbibi) gid=1000(vellbibi) 组=1000(vellbibi),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),124(sambashare)
  • 相关阅读:
    rabbitmq队列
    什么是RPC
    图解rabbitmq
    rabbitmq的面试题
    nginx介绍
    nginx正向代理和反向代理
    负载均衡 分布式 集群
    Nginx的负载均衡
    缓存雪崩 穿透 击穿
    Python Day32:UDP协议、UDP与TCP协议的区别、以及其服务端、客户端标准代码
  • 原文地址:https://www.cnblogs.com/VellBibi/p/3339719.html
Copyright © 2020-2023  润新知