Page 1 of 1
Disable NVME drive in Live session?
Posted: Sun Nov 15, 2020 10:49 pm
by byterhythm
Hi, I wanted to know if there is a way to disable a drive in the Live session so that the installer and gparted will not detect the drive.
I'm just asking because it is tedious to physically remove a NVME drive and there is no option to disable it in bios.
Re: Disable NVME drive in Live session?
Posted: Sun Nov 15, 2020 10:51 pm
by JayM
Unmount it in Thunar or gparted.
Re: Disable NVME drive in Live session?
Posted: Sun Nov 15, 2020 10:51 pm
by dolphin_oracle
why do you need to remove the nvme drive?
Re: Disable NVME drive in Live session?
Posted: Sun Nov 15, 2020 10:58 pm
by byterhythm
JayM wrote: Sun Nov 15, 2020 10:51 pm
Unmount it in Thunar or gparted.
Thanks. I'll try that.
dolphin_oracle wrote: Sun Nov 15, 2020 10:51 pm
why do you need to remove the nvme drive?
It has my Windows installation and I don't want to mess it up like I did before.
Re: Disable NVME drive in Live session?
Posted: Sun Nov 15, 2020 10:59 pm
by dolphin_oracle
byterhythm wrote: Sun Nov 15, 2020 10:58 pm
JayM wrote: Sun Nov 15, 2020 10:51 pm
Unmount it in Thunar or gparted.
Thanks. I'll try that.
dolphin_oracle wrote: Sun Nov 15, 2020 10:51 pm
why do you need to remove the nvme drive?
It has my Windows installation and I don't want to mess it up like I did before.
10-4 gotcha. quick tip...if the partitions on your windows drive are labeled, those labels will show up in the installer custom install partition selection boxes.
Re: Disable NVME drive in Live session?
Posted: Sun Nov 15, 2020 11:07 pm
by byterhythm
dolphin_oracle wrote: Sun Nov 15, 2020 10:59 pm
10-4 gotcha. quick tip...if the partitions on your windows drive are labeled, those labels will show up in the installer custom install partition selection boxes.
Thanks for the tip. I got confused with the ESP partition when I first installed MX and it installed the boot loader in the NVME drive.
Re: Disable NVME drive in Live session?
Posted: Sun Nov 15, 2020 11:31 pm
by JayM
byterhythm wrote: Sun Nov 15, 2020 10:58 pm
JayM wrote: Sun Nov 15, 2020 10:51 pm
Unmount it in Thunar or gparted.
Thanks. I'll try that.
This will only hide it in the actual live session, not in the installer, fyi.
Re: Disable NVME drive in Live session?
Posted: Mon Nov 16, 2020 7:20 am
by byterhythm
If I delete the files
Code: Select all
/dev/nvme0n1
/dev/nvme0n1p1
/dev/nvme0n1p2
Will that have the effect of disabling the drive?
Re: Disable NVME drive in Live session?
Posted: Mon Nov 16, 2020 8:27 am
by dolphin_oracle
byterhythm wrote: Mon Nov 16, 2020 7:20 am
If I delete the files
Code: Select all
/dev/nvme0n1
/dev/nvme0n1p1
/dev/nvme0n1p2
Will that have the effect of disabling the drive?
I have never tried such a thing, but its generally frowned upon to remove things from /dev manually.
you could try doing a udev poweroff on the device. That might work.
Code: Select all
udisksctl power-off -b /dev/whatever
Re: Disable NVME drive in Live session?
Posted: Tue Nov 17, 2020 7:21 am
by byterhythm
dolphin_oracle wrote: Mon Nov 16, 2020 8:27 am
I have never tried such a thing, but its generally frowned upon to remove things from /dev manually.
you could try doing a udev poweroff on the device. That might work.
Code: Select all
udisksctl power-off -b /dev/whatever
I tried it but it's telling me that its not a usb device.
I eventually tried manually deleting the block device files in /dev/. I just wasnt sure what the outcome will be when I deleted them but that seemed to have completely disabled the device in the system. Gparted and the MX installer did not detect the drive.