You are not logged in.

#1 2020-03-20 17:04:06

felix_thunderbolt
Member
Registered: 2020-01-01
Posts: 6

[SOLVED] Symlinked /opt to /home/opt for space, now I cannot install…

I need to install quartus-free for the college, it is a heavy package (over 16GB) and I do not have that much space in my / partition.

But my /home partition has approx. 200GB of free space.

Since it installs in /opt, I rm'd my /opt, created the directory /home/felix/opt and symlinked it to /opt.

Now I have space for quartus-free at /opt.

But at installing, I get the following error from pacman:

error: failed to commit transaction (conflicting files)
quartus-free: /opt exists in filesystem
Errors occurred, no packages were upgraded.

How can I suppress this error?

Last edited by felix_thunderbolt (2020-03-20 17:15:50)

Offline

#2 2020-03-20 17:05:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Symlinked /opt to /home/opt for space, now I cannot install…

You want mounts or bind mounts, don't replace pacman-managed dirs with symlinks.

Offline

#3 2020-03-20 17:07:44

felix_thunderbolt
Member
Registered: 2020-01-01
Posts: 6

Re: [SOLVED] Symlinked /opt to /home/opt for space, now I cannot install…

Scimmia wrote:

You want mounts or bind mounts, don't replace pacman-managed dirs with symlinks.

How can I bind mount /home/opt to /opt?
Isn't binding a plan9 thing?

Offline

#4 2020-03-20 17:09:39

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,657
Website

Re: [SOLVED] Symlinked /opt to /home/opt for space, now I cannot install…

See http://allanmcrae.com/2014/12/pacman-4-2-released (section titled "Directory Symlink Handling").

Also, 'man mount | less -p Bind'

Last edited by WorMzy (2020-03-20 17:10:55)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2020-03-20 17:10:02

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Symlinked /opt to /home/opt for space, now I cannot install…

You read the mount man page. Don't forget to add it to fstab.

Offline

#6 2020-03-20 17:12:55

felix_thunderbolt
Member
Registered: 2020-01-01
Posts: 6

Re: [SOLVED] Symlinked /opt to /home/opt for space, now I cannot install…

I did

mount --bind /home/felix/opt /opt

And worked.
Now I just have to put it in /fstab.

Thanks for the replies.

Last edited by felix_thunderbolt (2020-03-20 17:15:26)

Offline

Board footer

Powered by FluxBB