format disk
#mkfs.filesystem /dev/device partition
ex mkfs.vfat /dev/sdb1
mkfs.exfat /dev/sdb1 (may need exfat-utils or exfat-fuse packages)
fsck.exfat /dev/sdb1 (partition)
mount
#mount -t vfat /dev/partition /mount/point
#mount.cifs -o username="user",password="pwssword" //ip/dir /home/username/dir
#mount.cifs -o username=username //ip/dir /home/username/dir #umask=filepermissions,uid=ownergroupid,gid=ownerid
force umount
#umount -l /dev/partition
command line give drive label
FAT32:
#mlabel -i /dev/sdxN ::"my_label"
or:
#fatlabel /dev/sdxN my_label
NTFS:
#ntfslabel /dev/sdxN my_label
exFAT:
#exfatlabel /dev/sdxN my_label
ext2/3/4:
#e2label /dev/sdxN my_label
BTRFS:
#btrfs filesystem label /dev/sdxN my_label
show label
#lsblk -o label,name,mountpoint,size,uuid
mount ISO file
#sudo mount -o loop,dmode=0555,mode=0444,ro /file.iso /mount_point
#sudo mount -o loop,dmode=0555,mode=0444,ro /home/jack/movie/ISO/SANCTUM.iso /home/jack/iso
#sudo umount -l /home/jack/iso
檔案權限
檔案權限的最大值 設定值 結果 代表的使用權限
666 002 664 rw-rw-r--
666 022 644 rw-r--r--
666 037 640 rw-r-----
666 077 600 rw-------
目錄權限的最大值
設定值 結果 代表的使用權限
777 002 775 rwxrwxr-x
777 022 755 rwxr-xr-x
777 037 740 rwxr-----
777 077 700 rwx------