Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Separate /opt

Post Reply
User avatar
mino68
Forum Novice
Forum  Novice
Posts: 4
Joined: Tue May 14, 2019 8:57 am

Separate /opt

#1

Post by mino68 » Tue May 14, 2019 10:28 am

Hi.
Is it possible to add separate /opt when installing fresh MX18 Xfce?

User avatar
Adrian
Forum Veteran
Forum Veteran
Posts: 9990
Joined: Wed Jul 12, 2006 1:42 am

Re: Separate /opt

#2

Post by Adrian » Tue May 14, 2019 10:33 am

A separate partition? Why?

Installer doesn't allow for that, but you can always set up a partition manually and add the entry in /etc/fstab

User avatar
mino68
Forum Novice
Forum  Novice
Posts: 4
Joined: Tue May 14, 2019 8:57 am

Re: Separate /opt

#3

Post by mino68 » Tue May 14, 2019 11:11 am

Thank You. I am migrating and HDD is so formatted.

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 11888
Joined: Sun Dec 16, 2007 1:17 pm

Re: Separate /opt

#4

Post by dolphin_oracle » Tue May 14, 2019 11:14 am

mino68 wrote:
Tue May 14, 2019 11:11 am
Thank You. I am migrating and HDD is so formatted.
you will probably need to copy the firefox and thunderbird folders from the /opt on the default root filesystem to the new /opt. Or else the will show as not found, but still show as installed. forcing a reinstall of firefox and thunderbird would also work, I think.

I believe those are the only 2 apps that ship in /opt.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-18.3
lenovo s21e - antiX-19 beta 2 (live-USB)
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
mino68
Forum Novice
Forum  Novice
Posts: 4
Joined: Tue May 14, 2019 8:57 am

Re: Separate /opt

#5

Post by mino68 » Tue May 14, 2019 11:36 am

There's no problem. Problem is how to merge two separate partitions / and /opt into one.
Image

skidoo
Forum Guide
Forum Guide
Posts: 1442
Joined: Tue Sep 22, 2015 6:56 pm

Re: Separate /opt

#6

Post by skidoo » Tue May 14, 2019 12:44 pm

" to merge the content from two separate partitions / and /opt "

Code: Select all

sudo mkdir /opt_new
cp -a /opt/. /opt_new/
After verifying that the content has been copied correctly, you can unmount /opt
then remove the /opt mountpoint assignment ( which you had previously added in /etc/fstab ? )
and, mv (rename) the new opt directory

Code: Select all

sudo mv /opt_new /opt

User avatar
mino68
Forum Novice
Forum  Novice
Posts: 4
Joined: Tue May 14, 2019 8:57 am

Re: Separate /opt

#7

Post by mino68 » Tue May 14, 2019 2:40 pm

/ is 82% full and copy /opt into root will be out of bounds. I think I do need backup /home and reformat everything with new sizes and mount points.
Thanks to everybody.

Post Reply

Return to “General”