Bootable Linux USB stick: Difference between revisions

Line 129: Line 129:
* inacceptable: tiny sticks like Sandisk Ultra Fit become hot, degrade fast and are unreliable. Cheap sticks are usually just too slow.
* inacceptable: tiny sticks like Sandisk Ultra Fit become hot, degrade fast and are unreliable. Cheap sticks are usually just too slow.


The drawback of the "good" solution above is: from time to time (e.g. once every week), a knowledgeable person should
The drawback of the "good" solution above is: from time to time (e.g. once every week), a knowledgeable person may want to
# remove the microSD card from the USB3 adapter
# remove the microSD card from the USB3 adapter
# insert it into the SD adapter, and that into a SD slot - it is usually auto-mounted by the operating system
# insert it into the SD adapter, and that into a SD slot - it is usually auto-mounted by the operating system
# run the <code>fstrim -v /mount/point</code> command (this takes a few seconds)
# run the <code>fstrim -v /mount/point</code> command (this takes a few seconds)
# unmount the card, and revert steps 2. and 1.
# unmount the card, and revert steps 2. and 1.
This naturally begs the question whether it wouldn't be much smarter to not use an USB adapter for microSD cards, but rather just use the SD adapter in a SD slot right away. That would have advantages - the SD card vanishes in most SD slots which is better than an USB stick sticking out, <code>fstrim</code> works, and possibly the SD controller is faster than the USB3 controller (depending on the notebook model). However, we tried to boot a microSD card in a SD lot and found that it doesn't boot, whereas it does boot in an USB adapter. Thus, setup of a microSD card for booting in SD slot needs to be investigated.


=== TRIM ===
=== TRIM ===
1,330

edits