Skip to content

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 ?

1 points4 comments
Open on Reddit
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.

3 points

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.

2 points

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?

2 points

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.

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.