Ask Your Question
1

Install programs to external drive

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

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

Comments

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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

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

Comments

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 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 35 times

Last updated: Oct 02