[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

[Advertise on 4chan]


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1534131679746.jpg (31 KB, 962x539)
31 KB
31 KB JPG
>Third party software on Linux is recommended to be installed in /opt
>/opt is a part of the root partition. The root partition is recommended to be no larger than 20GB

Why is Linux advice so retarded? Where do you people ACTUALLY install programs?
>>
>>82031767
Just install Windows or buy a Mac. If you have career aspirations you need to get as far away from Linux as possible.
Seriously, you are causing yourself so much stress, and for what?
>>
>>82031791
I need to use Linux for work

But tell me, why is such contradictory advice propagated? Where do you actually install?
>>
>>82031791
Based
>>
>>82031767
>the root partition is recommended to be no larger than 20GB
what??
>>
you can make the root partition as large as you want. personally I allocate 470 gib for / and 6 gib for swap.
>>
>>82031814
>Where do you actually install?
/usr/local
the fuck does it mean third party though? literally all the packages in every distro are third party and the just go in /usr/*
>>
>>82031814
/opt does not mean it's in the root partition. what the fuck do you think a root partition is? i don't think you get it. 20 GB? pulling numbers out of your ass?
>>
>>82031840
Just google it

>>82031853
Well well google and the official docs tell me that the HOME partition should be the big one and root should be small. WHICH IS IT
>>
>>82031909
What are YOU talking about? Root is / and opt is a part of /
>>
>>82031943
following that logic home is part of / too
>>
>>82031767
It's people repeating out of date stuff. The only thing I create a separate partition for is /home so that is not touched if I have to wipe out and reinstall. Everything else goes on root and I don't care if software gets installed in bin, usr/bin, usr/local/bin, or /opt.
Mounting stuff as separate partitions was something we had to care about before disk capacities were measured in gigabytes.
>>
>>82031943
>root is / and opt is a part of /
So is /home, everything except swap is part of the /
Just put /home on the root partition, that's what every distro does by default.
>>
>>82031912
official docs are correct. I'm just lazy and can't be arsed to micromanage my storage so I keep everything in root.
>>
>>82031767
Ignore "modern" Linux filesystem structure, /opt shouldn't exist and third-party software goes on /usr/local
>>
>>82031969
No no no no no no install guides will tell you to make a new HOME partition separate from ROOT

>>82031986
I'll have to do that which is OPPOSITE of what most internet guides say. How big is your /home partition?
>>
>>82032018
I agree opt shouldn't exist, do you have computer from the last century that you have a separate usr partition?
>>
the choice of /usr/local or /opt is a story in itself.
>>
>>82031986
afaik that wasn't about disk size. I think unix needed it for reliability reasons
>>
>>82032031
The problem is that most internet sources will then say to install applications on /opt, which would be a part of a teeny tiny root partition
>>
>>82031912
IF you want to have a separate home partition. Most nowadays most people just put / and /home on the same partition. It's what every distro does by default.
>>
>>82032038
funnily, /opt has found a reason to exist on macOS. it's now designated as the spot for Apple silicon binaries (while the old /usr/local is for Intel).
>>
>>82032074
Most apps are not installed in /opt. That's an exception, rather than a rule.
>>
>>82032074
make it as large as you need then? what's the issue?
>>
>>82032099
That's so weird.
>>
>>82031791
I literally started learning Linux for career, because it's pretty much required knowledge for backend development. I installed it on my secondary laptop and it's not that bad. Fuck off iPajeet.
>>
>>82032140
well, not official binaries. I mean homebrew or ports (maybe more). everything apple does is naturally in the usual spots.
>>
Putting everything in one massive partition master race here.
Zero fucks given even if it means 0.003% less performance it's not worth the trouble of having one partition fill up when the SSD still has plenty of free space.
>>
this isn't related, but could someone help me remember the name of the distro that completely reorganises the filesystem and makes it more windows-like
>>
>>82032121
Should clarify, official docs want a tiny root partition and a big home partition, but that doesn't make sense if you're installing most apps on root

Any rate I've learned my lesson, thanks to this (and other issues) I will now treat stackoverflow answers / internet guides on Linux with a microscopic grain of salt
>>
>>82032074
I seriously don't know what guides you are reading. Every distro I know of uses the same partition for / and /home.
>>
Why the fuck would you separate your home partition? My /nix is 250GB and constantly growing, it'd be stupid to separate things. Just encrypt everything there's no noticeable loss whatsoever
>>
>>82032171
see
>>82031912
>>
>>82032160
you're in the tiny minority that needs a root partition larger than 20gb so I'd say they are pretty accurate for the rest of us still.
>>
>>82031767
what the fuck is /opt

ive never heard about this
>>
>>82031912
What "official docs"?
>>
>>82032160
Good idea, and make sure to check what year those answers and guides are from. Sounds to me like you followed some very outdated guides.
>>
File: unix_file_system.png (16 KB, 616x338)
16 KB
16 KB PNG
Some people believe always being different is progress even to the point of being detrimental.
>>
>>82032042
You're braindead, partitions aren't directly tied to the Linux directory structure, and internet guides just give you a general setup, not necessarily one that works for any specialized situations.

You can make /opt mount onto its own partition if you want to, don't be a retard that just blindly follows guides or your system will eternally be fucked by outdated information or setups that just aren't usable in your situation.
>>
File: smug anime girl 2193.png (64 KB, 296x224)
64 KB
64 KB PNG
>>82031767
>he actually installs programs!

Lol. Just use apt-get or pacman. It Just Werks.
>>
>>82032285
>apt-get
The command "apt" will be old enough to drive before people stop saying "apt-get"
>>
>>82032327
all linux users KNOW is apt-get and lie
>>
>>82032058
Yeah I don't get where he's getting this idea about partitions helping with disk size. It's about security more than anything: data corruption can only impact the partition it happens in, runaway processes can't crash the system by overfilling root (typically this is why /var was used as a separate partition), partitions can be mounted/created with different parameters/file systems, and it separates user data from system data so upgrades and changes can be isolated.

Plus there's a level of flexibility, where you can have multiple partitions that fulfill the same role but you can swap them around if needed.
>>
File: 1611087499695.jpg (3.54 MB, 5616x3744)
3.54 MB
3.54 MB JPG
>>82031767
Install Mint or Manjaro and just go with the defaults and everything will just werk.
>>
>>82032405
>data corruption can only impact the partition it happens in,
Unless it's a physical problem, the other partitions are mounted at the time, or literally fucking anything happens

about the only reason to do it is to use wildly different file systems for legacy/compatibility reasons (e.g. zfs/ext/whatever on one, ntfs/fat on the other) or if you plan on fucking around with your OS a lot and don't want to be afraid of nuking it lest you lose your porn and only have one drive.
>>
/usr/local. /usr in a different partition than /, and I do not install any retarded distro that symlinks /[s]bin to /usr/[s]bin nor I have an useless /opt.
/home, /usr, and /var are not part of the OS so they are not in the OS partition. /boot neither, but for different reasons.
>>
>>82032042
>>82031767
sudo -i
mv /opt/ /home/
ln -s /home/opt/ /opt
CTRL-d

or just install your shit to ~/.local
you're welcome you disfunctional retard
>>
>>82032475
>unless it's physical
This isn't what partitioning is meant to solve. If your journal fucks up on partition X then it doesn't impact partition Y, or if a logger isn't properly clearing logs then it will only fill /var rather than /. Physical problems are solved by physical redundancy, not logical isolation.
>or they're mounted at the same time
>or literally fucking anything happens
Astounding insight, you actually don't know anything about partitions or how they work.
>only reason to do it is wildly different filesystems or if you're fucking around with the OS
t. hobbyist
There are plenty of reasons to do it, especially on server-side or multi-user systems in order to separate out permissions and to harden the system.
>>
>>82032158
You're probably thinking of GoboLinux, it's got /Programs, /Users, /System, etc. like Windows.
>>
>>82032649
if the drive is mounted it can be used, including by malware, and if your logs are filling up your entire drive you're a retard who has configured it poorly.

I'll be honest, I partition my laptop, but because
>plan on fucking around with your OS a lot and don't want to be afraid of nuking it lest you lose your porn and only have one drive

>server-side
you should have a RAID and you don't manually partition individual drives in that kind of setup, and yool 2012 you should be letting your vm software handle storage allocation, not manually partitioning the raid itself anyway

>multi-user
every mainline OS and dristro has user quotas now
>>
>>82031791
installed windows. now i cant even find /opt???
>>
>>82032099
interesting
>>
File: image0.jpg (548 KB, 1242x1230)
548 KB
548 KB JPG
>>82031814
There's nothing wrong with being disabled anon. Just dont be mean to others because they don't use the same toys as you do
>>
There's no real standard unfortunately. However you can find most things by following it through $PATH.
Just find out
ls -al $(which <program>)
Then follow it until it hits the install dir
>>
>>82032702
>you don't manually partition RAID
You still partition RAID, especially hardware RAID. The disks still need to be setup, just because they're redundant doesn't mean they suddenly defy how operating systems work.
If you're using LLVM for software RAID then you don't outright partition but you use the logical volumes, which mimic partitioning within the LVM.
>let the VM handle it
Bare metal moment. Even with VMs though you'll still be dealing with VMDK which is effectively abstracted partitions; you'll have multiple VMDKs for that isolation instead of multiple partitions.
>muh configuration
Have fun encountering your first bug when working with other people. I'd rather put var on a partition than trust that nobody will ever make a mistake in setting up logging or verifying user uploads.
>malware
Yet another thing that partitioning isn't intended to protect you from. Malware can't be stopped with any partition scheme and can even harm unmounted partitions.
>>
>>82032699
that was it, thanks very much
>>
>>82031943
mount /dev/something /opt
>>
>>82031791
Your gaming and twitch streaming is not having "career aspirations", anon
>>
>>82031889
It means outside of the package manager numbnuts. If it comes from your repos its first party
>>
>/opt is a part of the root partition
I suspect this is a troll
>>
>>82031912
mine is 20G cause i'm using an old laptop with 120g drive. My PC is set to 30G
>>
>>82031767
>>82031814
>>82032042
>>82031912
>>82032074
Your problem is that you don't have experience with Linux yet. When you do, you'll be able to have independent thoughts on the matter.

You can install non-package manager software whenever you want. I think most people do it in a dot directory under $HOME. Guides aren't the end-all be-all; a good thing about Linux is that you can decide these things for yourself.
>>
>>82033733
>gaming and streaming is the only thing windows is good for
are you stupid?
>>
>>82034202
>something distributed by a third party is first party
k
>>
>>82031767
you can bind a folder from you "home" partition to /opt for a quick fix
>>82032580
This also works but because its a symlink the program may act weird
>>
>btrfs
>>
>>82031767
>The root partition is recommended to be no larger than 20GB
>i googled it
you cant buy intelligence
>>
>>82035852
Name one other thing
>>
>>82031767
>/opt is part of the root partition
You can make any directory it's own partition, anon. Literally everything is part of the root partition by default.
>>
>>82031791
>If you have career aspirations you need to get as far away from Linux as possible.
If you aren't aware of the countless career opportunities that require you to be good with Linux, then all that tells me is you are a child who has no business being part of such a discussion.
>>
Its 2021, stupid frog!
Just use btrfs subvolume and youll never need to think about partition size ever again



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.