Expanding on what @cscs wrote:
TL;DR
- Windows uses multiple disks or partitions under multiple drive letters
- Linux uses the Linux Filesystem Hierarchy Standard and has only one filesystem (
/
- that can reside on multiple partitions, not disks like Windows and any partition can be mounted anywhere.-
/boot
contains all the bootloader files (GRUB, kernel files, …) -
/bin
,/sbin
: contains user binaries ands
ystem binaries (akasudo
binaries) respectively -
/etc
contains system configuration files. -
/home
contains user data and user config files (E.G. if you have one user who sets their resolution to HD whereas you have a UHD screen that’s where this is set) -
/root
contains the home directory for the root user. -
/lib
contains shared libraries that the essential binaries in/bin
and/sbin
need to be able to run and where kernel modules are stored. -
/usr
contains the UNIX system resources and is intended to be a read-only directory that stores files that aren’t required to boot the system. In general, when you install additional software from your distribution, its binaries, libraries and supporting files go here in their corresponding/usr/bin
,/usr/sbin
or/usr/lib
directories. -
/opt
: contains “optional” software. In general, this is where games install themselves..
If you would want to move/opt
to your HDD, just:- create a new partition on your HDD twice the size of your current
/opt
- Boot from a USB drive
- Copy all files from the old
/opt
to the new/opt
- Add a mount for the new
/opt
to your/etc/fstab
- shut down
- Remove USB stick
- Boot and test
- If OK, boot again with the USB stick
- Delete the old
/opt
(as you copied, remember and if anything went wrong with yourfstab
, you can just take out the line you added and be back where you started - Reboot again.
- create a new partition on your HDD twice the size of your current
-
The long version:
- Most people run
/
on their SSD and/home
on their HDD, just like you do. - You can move any directory on any partition by using an extra mount in your
fstab
. For more information readman mount
.
E.G. I have both/
and/home
on my SSD, but my Music and Videos are on the HDD) - Read the full FHS standard (V3.0 at the time of this writing) here and why this is the long version as that’s 43 pages…