怎样能实现不让deepin识别windows的分区
Tofloor
poster avatar
zstone109
deepin
2020-11-05 04:49
Author

 电脑是X86平台inter处理器。安装了两块硬盘,BIOS用的是UEFI启动,第一块硬盘是sata3接口安装的是deepin,第二块硬盘是m2 nvme接口装的是windows10操作系统。

我想实现在deepin系统里面不识别windows10的操作系统和分区里面的文件。最理想的需求在deepin系统里面检测不到有第二块硬盘的存在,而且NTFS、FAT32这种类型的优盘插deepin系统上面最好是检测不到有这个硬件设备或者是识别不了。

思路是卸载掉deepin系统里面的ntfs-3g工具,但是提示没有权限。不知道怎么开启或者切换到root下,

或者另外一种思路卸载掉deepin系统里面的M2的驱动应该也可以实现。

只是有思路,但是不会操作。请大神给予详细的指导,之前之接触过windows的系统,对deepin一点都不懂[礼物]

Reply Favorite View the author
All Replies
a***1@163.com
deepin
2020-11-05 05:09
#1

用90-hide_parts.rules来屏蔽分区不就完事咯

Reply View the author
wei_pan
deepin
2020-11-05 05:38
#2

文件夹设置里面有,可以设置不去读取Windows分区

Reply View the author
Ziggy
deepin
2020-11-05 05:38
#3

deepin-diskmanager装一下这个看看能不能隐藏分区

Reply View the author
灵兮之
deepin
2020-11-05 05:59
#4

查询分区UUID:
lsblk -f

新建:90-hide_parts.rules
sudo dedit /etc/udev/rules.d/90-hide_parts.rules

添加内容:
ENV{ID_FS_UUID}=="XXXX", ENV{UDISKS_IGNORE}="1"

把XXXX换成要隐藏的分区uuid,保存重启生效


可以隐藏deepin系统下win的硬盘,至于插上优盘屏蔽的那就只能动USB口的驱动了



Reply View the author
强迫症晚期患者
deepin
2020-11-06 17:22
#5

最直接的方法就是修改/etc/fstab。这样的话就不会开机自动挂载了,变相的隐藏。

Reply View the author
Shinglee
deepin
2020-11-06 18:22
#6

不想看到Windows的分区

df -hTP
查看哪些是ntfs的挂载点
sudo cp -af /etc/fstab /etc/fstab_bak
sudo vim /etc/fstab

删除刚刚找到ntfs挂载点所在的整行


不想自动挂载U盘(未测试过,不一定有效)
sudo cp -af /etc/filesystems /etc/filesystems_bak
sudo vim /etc/filesystems
删除里面 vfat,ntfs

Reply View the author
qq1156257674
deepin
2020-11-06 22:44
#7

我还巴不得能识别win盘呢,dp下做的文件存到win盘下,两个系统可以共用文档了,多好。

Reply View the author
wtz
deepin
2021-03-06 02:47
#8
qq1156257674

我还巴不得能识别win盘呢,dp下做的文件存到win盘下,两个系统可以共用文档了,多好。

正所谓众口难调,萝卜白菜各有所爱。

Reply View the author