Trying to use SD-card as a Boot-device

I’ve setup the boot-pool to run from a USB-stick and trying to change it to SD-card, since it would be a sleeker design. Only one SSD on my old HP-laptop which is supposed to be used as storage only.

Installation doesn’t recognize the SD-Card, but TrueNAS does.

Keep getting this message when trying to attach the SD-Card to boot-pool.

Error: Traceback (most receand can’t find solution.nt call last): File “/usr/lib/python3/dist-packages/middlewared/job.py”, line 515, in run await self.future File “/usr/lib/python3/dist-packages/middlewared/job.py”, line 560, in __run_body rv = await self.method(*args) ^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/lib/python3/dist-packages/middlewared/schema/processor.py”, line 174, in nf return await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/lib/python3/dist-packages/middlewared/schema/processor.py”, line 48, in nf res = await f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/lib/python3/dist-packages/middlewared/plugins/boot.py”, line 119, in attach await self.middleware.call(‘boot.format’, dev, format_opts) File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 1005, in call return await self._call( ^^^^^^^^^^^^^^^^^ File “/usr/lib/python3/dist-packages/middlewared/main.py”, line 720, in _call return await methodobj(*prepared_call.args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/lib/python3/dist-packages/middlewared/schema/processor.py”, line 174, in nf return await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/lib/python3/dist-packages/middlewared/plugins/boot_/format.py”, line 24, in format raise CallError(job.error) middlewared.service_exception.CallError: [EFAULT] (sqlite3.IntegrityError) UNIQUE constraint failed: storage_disk.disk_identifier [SQL: INSERT INTO storage_disk (disk_identifier, disk_name, disk_subsystem, disk_number, disk_serial, disk_lunid, disk_size, disk_description, disk_transfermode, disk_hddstandby, disk_advpowermgmt, disk_togglesmart, disk_smartoptions, disk_expiretime, disk_passwd, disk_model, disk_rotationrate, disk_type, disk_bus) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] [parameters: (‘’, ‘mmcblk0’, ‘mmc’, 45824, ‘0x038c286b’, None, 15931539456, ‘’, ‘Auto’, ‘Always On’, ‘Disabled’, 1, ‘’, None, ‘’, None, None, ‘SSD’, ‘UNKNOWN’)]

Any idea where to look for the issue?

Welcome to TrueNAS and the forums!

In someways, SD-Cards are not suitable for use as TrueNAS boot pools. This is because TrueNAS has active boot pools. The result is that a lower quality SD-Card could wear out quickly, like within a year.

Further, you mention “HP-laptop”. My HP Probook laptop does not support booting off it’s SD-Card. I work around that, by using the internal drives’ “/boot” partition. Then using “/” on the SD-Card, so I can use the SD-Card as an alternate OS for recovery of the main OS on the internal drives.

But, that maybe too complicated to setup for some people.

So I recommend you check and see if your laptop will even boot off the SD-Card.

I have nothing useful to provide but I am curious on what you’re trying to accomplish assuming you get your boot drive issues working.

Trying to solve this captcha, obviously:

3 Likes

There are high endurance SD cards on the market, if you really use SDcards I would use something like this. High-Endurance microSD Karte für professionelle Sicherheitskameras, Dash-Kameras, Body-Kameras - Kingston Technology