Hiding some hard drives?

I have recently switched to Bazzite from a competitor.

Bizzite has a nice interface, but one thing bugs me: the library management, in game mode, it sees all my disks.

  • some contain data from another OS, but Steam tells me I can format them by pressing Y… which is definitely something I don’t want to do.
  • some contain Steam Libraries from another OS, and they are automatically mounted as a Steam Library in Bazzite which is not what I want.

I came across this issue where the fix dramatically reduces the number of listed drives, including my other Steam Libraries, but I still can format drives that I don’t want to format by accident.

Is there a way to “blacklist” some hard drives so that they are completely ignored by Bazzite?

1 Like

I ended up creating a basic systemd script to disable some disks:

hidedisks.service

[Unit]
Description=Hide some disks at startup
[Service]
Type=simple
ExecStart=bash /home/bazzite/.hidedisks/hidedisks.sh
[Install]
WantedBy=multi-user.target 

hidedisks.sh

echo 1 > /sys/block/nvme0n1/device/device/remove 
echo 1 > /sys/block/nvme2n1/device/device/remove
echo 1 > /sys/block/sda/device/delete
echo 1 > /sys/block/sdb/device/delete
echo 1 > /sys/block/sdc/device/delete

Not very elegant… but it gets the job done and I feel much safer :smiley:

2 Likes