UBUNTU LOG 5-31隐藏Ubuntu分区

首先,ubuntu的输入法简直棒。

由于需要双系统想隐藏Win分区

首先,查看相关解决方法,有人提出修改fstab.观察发现并没有比较“多余”的两个盘。如图
需要隐藏的盘

//备份
sudo cp /etc/fstab /etc/fstab_old
//查看
sudo 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/sda5 during installation
UUID=071460a4-6953-494e-8120-fef8d62b0ff4 /               ext4    errors=remount-ro 0       1
# /windows was on /dev/sda3 during installation
UUID=D22CFD1E2CFCFE73 /windows        ntfs    defaults,umask=007,gid=46 0       0
# swap was on /dev/sda6 during installation
UUID=0d9f40e7-cd89-44f9-ab71-786ba7a055f3 none            swap    sw              0       0

解决方案1失败,方案二探索

直接将该分区挂载处的权限改为0 0 0
重启测试中。
OK达到了保护分区的作用。。。

顺路更新源。

//备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list_old
deb 
//编辑
sudo gedit /etc/apt/sources.list

deb http://mirrors.163.com/ubuntu/ vivid main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ vivid-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ vivid-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ vivid main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ vivid-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ vivid-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ vivid-backports main restricted universe multiverse
##最后 sudo apt-get update
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值