run code in terminal ls -l /dev/disk/by-uuid , then copy the uuid of your windows drive (letters like 054A71...
modify the rules file (file path as follow)
add ENV{ID_FS_UUID}=="your uuid", ENV{UDISKS_IGNORE}="1" to the end of file. (replace your uuid with your real uuid)
Or more simply
excute step 1, then run echo ENV{ID_FS_UUID}=="your uuid", ENV{UDISKS_IGNORE}="1" >> /etc/udev/rules.d/80-udisks2.rules(again, replace your uuid with your real uuid, and especially run this in root account)
original Q&A -->https://bbs.deepin.org/zh/post/235475
repeat:
Q: as follow, how to hide windows disk/drive
A:
run code in terminal
ls -l /dev/disk/by-uuid
, then copy the uuid of your windows drive (letters like054A71...
modify the rules file (file path as follow)
add
ENV{ID_FS_UUID}=="your uuid", ENV{UDISKS_IGNORE}="1"
to the end of file. (replaceyour uuid
with your real uuid)Or more simply
echo ENV{ID_FS_UUID}=="your uuid", ENV{UDISKS_IGNORE}="1" >> /etc/udev/rules.d/80-udisks2.rules
(again, replaceyour uuid
with your real uuid, and especially run this in root account)