Partitioning a USB flash drive for installation.
Hi, I'm trying to install arch on a 16GB USB flash drive. However, I'm not quite sure how to partition the flash drive and I can't find anything on the Arch wiki on how many partitions I should create and what type I should set them to. Any ideas ?
About this post
- Posted
- Archived
- Score
- 1 · 100% up
- Kind
- Text
- ID
- 1cssw6
4 comments
If you don't need any fancy stuff, I suggest using a single partition for /, formatted with ext4. Don't forget to check if "usb" is in your mkinitcpio hooks-array and use UUIDs for your fstab.
A single ext4 partition should be enough to install. Other than that, it might also help to read the Arch Wiki on Solid State Drives and apply those in fstab to increase the lifespan of your flash drive. Also, having swap in your flash drive probably isn't a good idea either. And if you really wanted you could put /tmp into a tmpfs to increase performance as well.
I was actually wondering the same. I used a 32 Gb flash drive set up through Linux Live CD to set up my system, and I want to install Arch on the flash drive itself now for use on my Windows 64 bit machine, school PCs, etc, but I have no idea on how to parition it. I used the partition sizes here for my laptop, but that wouldn't work too well. I don't believe a /swap partition is necessary, but I don't know about the others. /home would definitely be too small on my key, if /root is 25 G.
While we're here, do you guys recommend a /var and/or /tmp partition?
I wouldn't recommend that you use a journaling file system as this might reduce the lifespan of the flash drive. If you plan to run it on systems with enough RAM, you also don't need a swap partition (as this might also reduce the lifespan of the drive). A good place to start with a non-journaling file system would be ext2.