Installing Arch on Flash drive
I want to install Arch on a flash drive 256 gb memory. It's my first time installing Arch. It's just for practice. Any advices or suggestions?. It's really worth to install it on a flash ?
About this post
- Posted
- Archived
- Score
- 5 · 100% up
- Kind
- Text
- ID
- ehpc6c
9 comments
It is almost as simple as regular install. One important step is to try minimizing writes to it, this means no swap, no journaling and preferably disabling history and cache in browser.
I have a 32gb drive that survived 5-6 installs, many pacman updates and it still works well.
https://wiki.archlinux.org/index.php/Install_Arch_Linux_on_a_USB_key#Installation_tweaks
Also, add
noatimeto /etc/fstab to not write file access times.Thanks
F2FSis a fantastic thing. The idea is that it does many of the things an SSD controller does, but on the host so you can still get those benefits on a flash media that doesn't have such a controller. Like a flash drive, or eMMC, SD card, etc.don't, you'll make your pendrive hurt
Why? Edit: Because of the limited writes on flash I suppose...
I've run Arch, Fedora and other distros as full installs to USB flash drives on a long term basis with no failures at all. I've done no tweaks to limit writes. Do it! Invaluable as a full feature rescue tool, as well as showing Arch running on friends computers. I would suggest you use USB 3 drives connected to USB 3 ports. Pretty surprising performance! I use Sandisk Ultra CZ48 and Extreme models.
I've since started using Qemu/kvm + libvirt for most of that.
http://valleycat.org/linux/arch-usb.html