There is actually a way to do that. You can edit the fstab in the /etc directory .
First of all you must open the terminal. Then you must type 'sudo blkid'. This will list all the UUIDs and other details of the disks available. Now you gotta note these following for the windows partition:
- UUID
- PARTUUID
- DISK LABEL
- PARTLABEL
- THE DEVICE/PARTITION NAME ( /dev/sdXY )
The requirements actually depends on the name your fstab is written in.
A general fstab entry follows :
fstab pic
The all fields are separated by spaces.
The first field will require the data we collected earlier.
Run 'sudo nano /etc/fstab' and remove the line that contains the entry of the Windows partition. You can identify that line by the data we collected earlier. It can be any one of these : UUID or PARTUUID or LABEL or PARTLABEL or DEVICE NAME.
Now save that file and exit nano. Next it is recommended to run 'systemctl daemon-reload' . Now reboot your system. And now whenever you try to mount the widows drive , you will encounter this that the drive is not described in fstab.
/etc/fstab
but it seems like you're asking if you can make Ubuntu not realize that the drive exists. The only way I know how to do that is to physically disconnect the disk. But this should not be necessary. Ubuntu won't alter anything on an unrelated disk unless you tell it to – Nmath Nov 12 '20 at 16:59