Disable NVME drive in Live session?

When you run into problems installing MX Linux XFCE
Message
Author
byterhythm
Posts: 12
Joined: Mon Jun 15, 2020 1:35 am

Disable NVME drive in Live session?

#1 Post 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.
AMD Ryzen 5 1600, Asus X370 ROG Strix, 16GB RAM, Adata SX8200 NVME,
Plextor M5S SSD, GeForce GTX 1660 Super, MX 19.2_ahs

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: Disable NVME drive in Live session?

#2 Post by JayM »

Unmount it in Thunar or gparted.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

User avatar
dolphin_oracle
Developer
Posts: 22123
Joined: Sun Dec 16, 2007 12:17 pm

Re: Disable NVME drive in Live session?

#3 Post by dolphin_oracle »

why do you need to remove the nvme drive?
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

byterhythm
Posts: 12
Joined: Mon Jun 15, 2020 1:35 am

Re: Disable NVME drive in Live session?

#4 Post 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.
AMD Ryzen 5 1600, Asus X370 ROG Strix, 16GB RAM, Adata SX8200 NVME,
Plextor M5S SSD, GeForce GTX 1660 Super, MX 19.2_ahs

User avatar
dolphin_oracle
Developer
Posts: 22123
Joined: Sun Dec 16, 2007 12:17 pm

Re: Disable NVME drive in Live session?

#5 Post 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.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

byterhythm
Posts: 12
Joined: Mon Jun 15, 2020 1:35 am

Re: Disable NVME drive in Live session?

#6 Post 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.
AMD Ryzen 5 1600, Asus X370 ROG Strix, 16GB RAM, Adata SX8200 NVME,
Plextor M5S SSD, GeForce GTX 1660 Super, MX 19.2_ahs

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: Disable NVME drive in Live session?

#7 Post 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.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

byterhythm
Posts: 12
Joined: Mon Jun 15, 2020 1:35 am

Re: Disable NVME drive in Live session?

#8 Post 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?
AMD Ryzen 5 1600, Asus X370 ROG Strix, 16GB RAM, Adata SX8200 NVME,
Plextor M5S SSD, GeForce GTX 1660 Super, MX 19.2_ahs

User avatar
dolphin_oracle
Developer
Posts: 22123
Joined: Sun Dec 16, 2007 12:17 pm

Re: Disable NVME drive in Live session?

#9 Post 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
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

byterhythm
Posts: 12
Joined: Mon Jun 15, 2020 1:35 am

Re: Disable NVME drive in Live session?

#10 Post 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.
AMD Ryzen 5 1600, Asus X370 ROG Strix, 16GB RAM, Adata SX8200 NVME,
Plextor M5S SSD, GeForce GTX 1660 Super, MX 19.2_ahs

Post Reply

Return to “Installation”