• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
code_edu
TO BE THE TOP 2 AT EDU CODE .
博客园    首页    新随笔    联系   管理    订阅  订阅

对linux的增强

一、优化LINUX篇

(一) sudo apt-get install preload  

(二) sudo apt-get autoclean

(三)cat /proc/sys/vm/swappiness

(四)/etc/syset1.conf 添加 vm.swappiness=10 (己删)

(五)/etc/initramfs-tools/conf.d 没改

多核支持在系统监视器里可以看到有支撑。

(六)/etc fstab 添加

# Move /tmp to RAM
tmpfs /tmp tmpfs defaults,noexec,nosuid 0 0 (己删)

(七)/etc rc.local添加

 rfkill block bluetooth(己删)

 

二、MOUNT篇

(1) lsblk

(2) sudo fdisk -l

(3) mount | column -t

 (4)最后添加的语句是:

# add WinD NTFS to RW
UUID=.......... /media/1.0TB-HDD ntfs defaults,user,rw,iocharset=utf8,umask=000,nls=utf8 0 3  (..........要换成UUID)
# add WIN10 NTFS to RW
UUID=.......... /media/Windows_10 ntfs defaults,user,rw,iocharset=utf8,umask=000,nls=utf8 0 4

(5)补课篇:

blkid

sudo fuser -m -u /deev/sd? (?为硬盘分区号)

kill ? (?为阻止mount执行的进程号)

sudo mkdir -p /mnt/windows  自动挂载windows分区

 

 

REF:

(1) https://wiki.archlinux.org/index.php/Persistent_block_device_naming#by-uuid

(2) https://wiki.archlinux.org/index.php/NTFS-3G_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)

(3)http://www.cnblogs.com/jiu0821/p/6489249.html

(4)http://www.linuxidc.com/Linux/2016-08/134666.htm

 

posted @ 2017-07-30 14:35  code_edu  阅读(74)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3