Answer the question
In order to leave comments, you need to log in
Is it possible to completely hide one physical HDD from Ubuntu 16.04 LTS?
There was a need for two OS. I put the second Win7 OS (on a separate HDD), updated grub, everything is like clockwork here. Now it is necessary to make it so that when Ubuntu starts and fdisk is executed, it does not see the screw on which Windows is installed. !I didn't mount it, I didn't see it! Having gone through a lot of English-language reading matter, I found out that there is such an opportunity by creating my own rule for the udev daemon. In theory, everything is simple: we create our own rule in /etc/udev/rules.d/20-myudev.rules with the content:
SUBSYSTEM=="block", ATTRS{model}=="HDS722580VLAT20 ", OPTIONS:="ignore_device"we get the necessary values as a result of the execution:
udevadm info -a -n /dev/sdasave the file, restart udev and in theory everything should work. But the miracle did not happen ... After reading more, I came to another option:
SUBSYSTEM=="block", ATTRS{model}=="HDS722580VLAT20 ", ENV{UDISKS_IGNORE} = "1"but it didn't work either. As a result of testing:
udevadm testdev/sda1it turns out that my rule is read without errors:
version 229
This program is for debugging only, it does not run any program
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.
=== trie on-disk ===
tool version: 229
file size: 7064122 bytes
header size 80 bytes
strings 1764282 bytes
nodes 5299760 bytes
Load module index
timestamp of '/etc/systemd/network' changed
timestamp of '/lib/systemd/network' changed
Parsed configuration file /lib/systemd/network/99-default.link
Created link configuration context.
timestamp of '/etc/udev/rules.d' changed
Reading rules file: /etc/udev/rules.d/30-myudev.rules
Reading rules file: /lib/udev/rules.d/39-usbmuxd.rules
Reading rules file: /lib/udev/rules.d/40-crda.rules
rules contain 393216 bytes tokens (32768 * 12 bytes), 35796 bytes strings
26645 strings (221318 bytes), 23040 de-duplicated (189128 bytes), 3606 trie nodes used
sd-device: syspath '/sysdev/sda1' is not a subdirectory of /sys
unable to open device '/sysdev/sda1'
Unload module index
Unloaded link configuration context.
Answer the question
In order to leave comments, you need to log in
played from 16.04, the result is in the spoiler
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question