Cant see nvme0n1 during installer

Hi guys,

I’ve just got a new PC, which has come with the m2 ssd on board.

I can see this disk from the live installer environment, but it is not a selectable option during the linstaller process.

Am wondering if it’s just not set to expose /dev/nvme* devices…

Screenshot of fdisk and linstaller attached.


Tnx for reporting this…I will try to solve the problem and I’ll report the result here.

Perhaps the problem is to trim enable (for ssd’s) somewhere in kernel loading ?

Unfortunately I do not have any ssd to reproduce the problem…

Hmm, given I can see the disk, partition it using fdisk, and format it (all from outside the installer) I’m not sure that its anything to do with TRIM or the kernel.

Is there any way to run linstaller in some sort of debug mode, or is strace my best bet?

Or, is there a way to complete the install without using linstaller (ie, can I dd an image over my ssd or something similar?)

Keen to get this working so I can get out of the live environment :slight_smile:

So, I’m about 99% sure my problem is in /usr/share/linstaller/linstaller/core/libmodules/partdisks/

It seems from:

84 def is_disk(dsk):
85 “”" Checks if dsk is a disk. Returns True if so.
87 It does perform checks only on the string passed, so it may not
88 be accurate. “”"
90 if not dsk[-1] in ("-",“1”,“2”,“3”,“4”,“5”,“6”,“7”,“8”,“9”,“0”):
91 # Is a disk
92 return True
93 else:
94 return False

That it’s looking in /proc/partitions for disks with a device name excluding devices with numbers (as these are normally partitions).

In my case, the device is nvme0n1 (and partitions then become nvme0n1p1 etc), and I suspect this is why the disk is not showing up during the install.

Python really isn’t my native tongue :slight_smile: so I’ll see if I can come up with a dirty hack to get around this, but I’d love any python gurus out there to weigh in :slight_smile:


OK, so removing “1” from line 90 allows the disk to be detected, but once I create the first partition (which results in a nvme0n1p1), the installer mounts this partition, and we’re unable to progress.

So, I guess I need to find a way to exclude devices including numbers, except for nvme0n* devices…

This procedure is highly experimental and risky! disconnect all of your hard disks witch contain maybe important data, except SSD!

  1. Boot live TRIOS
  2. Open as root /etc/apt/sources.list.d/trios.list, add test component at the end of each deb line, and save list
  3. apt update && apt purge linstaller-* && apt install live-installer-3
  4. open Menu/system/Install (operating system) and start new installer

VirtualBox_TRIOS-SSD_03_12_2016_00_21_26.png VirtualBox_TRIOS-SSD_03_12_2016_00_24_52.png VirtualBox_TRIOS-SSD_03_12_2016_00_25_27.png VirtualBox_TRIOS-SSD_03_12_2016_00_27_17.png VirtualBox_TRIOS-SSD_03_12_2016_00_27_37.png

Only manual partitioning is enabled…there are more steps after installation, in next post.

Partitioning is little strange…“edit partitions” button in main window is starting Gparted. Instead, you must double click on selected partitions to open/edit partition in installer module.
Installation takes a lot more time…about 15-20 minutes, but half of this time is automatic update of installed sistem
VirtualBox_TRIOS-SSD_03_12_2016_00_49_19.png VirtualBox_TRIOS-SSD_03_12_2016_00_48_52.png VirtualBox_TRIOS-SSD_03_12_2016_00_48_27.png VirtualBox_TRIOS-SSD_03_12_2016_00_47_51.png VirtualBox_TRIOS-SSD_03_12_2016_00_47_36.png VirtualBox_TRIOS-SSD_03_12_2016_00_47_19.png VirtualBox_TRIOS-SSD_03_12_2016_00_45_54.png VirtualBox_TRIOS-SSD_03_12_2016_00_44_26.png

Hi Dragan,

Thanks for that.

Have followed the instructions above, but it appears the install of live-installer-3 didn’t deploy menu entries.

After running manually from a terminal, installer seems to see the disk OK, but I don’t seem to be able to create an encrypted VG (probably just need to work out how to do it in the new installer).

I’ll have a bit more of a play today, and report back.

I take it from this that linstaller is being deprecated?

Makes sense seeing that it appears to no longer be under development…

FYI, if people want to test with ssd in virtualbox, as of virtualbox 5.1, you can add an nvme controller, but it requires the virtualbox extension pack.

Finally, I’ve got a dodgy hack that allows me to install Trios via linstaller with the nvme controller (see comments 5 and 6 above for the python library that needs editing), but as I said, python is not my native tongue, so I won’t paste the workaround here as I’m sure you guys will come up with something far tidier.

Not for now…it seems that every installer have some drawbacks, and need comprehensive testing.
This is only ugly hack to enable installation to SSD :slight_smile:
Anyway, next TRIOS release, Kata (testing) will almost certainly come with Calamares instaler.

For those that are interested, my “dirty hack” consisted of:

Update /usr/share/linstaller/linstaller/core/libmodules/partdisks/ and change this:

90 if not dsk[-1] in ("-",“1”,“2”,“3”,“4”,“5”,“6”,“7”,“8”,“9”,“0”):
91 # Is a disk
92 return True

To :

90 if dsk == ‘nvme0n1’:
91 return True
92 elif not dsk[-1] in ("-",“1”,“2”,“3”,“4”,“5”,“6”,“7”,“8”,“9”,“0”):
93 # Is a disk

Again, this is a very dirty hack, and a python dev could do a lot better, but this got me up and running :slight_smile:

Thanks again for the help guys.