Ask Your Question

Install programs to external drive

asked 2018-10-02 17:44:11 -0500

victoroa gravatar image

I have a Fedora 28 intallation on my laptop which has limited storage (less than 22GB). How may I install new programs to an external partition on a usb flash drive without creating a live usb?

edit retag flag offensive close merge delete


Do you want to install all programs to an external drive or just a few? If the answer is all, @ed209's answer may work. If just a few, you may instead put /opt on an external partition.

genodeftest gravatar imagegenodeftest ( 2018-10-03 15:54:40 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-02 19:10:53 -0500

ed209 gravatar image

Mostly of the Fedora installation resides in /usr . /var comes second in occupation.
You could format your external device as ext4, copy as root everything that resides in /usr there and then mount it as /usr (and perhaps /var as well, if using two partitions). You should change your fstab accordingly in order to mount your new /usr partition at every reboot.

edit flag offensive delete link more


This is quite error-prone because you must make sure to keep all permissions, e.g. file owner, file access permissions and SELinux labels. I recommend not doing this.

genodeftest gravatar imagegenodeftest ( 2018-10-03 15:55:39 -0500 )edit

Question Tools


Asked: 2018-10-02 17:44:11 -0500

Seen: 66 times

Last updated: Oct 02 '18