I have Ubuntu 22.04 and a computer with 2 physical drives. Each drive has a single primary partition. If I start the computer and open a terminal, it opens to the boot partition, so it would looks something like:
bob@mycomputer:~$
Is there a way I can use cd to switch to a folder on the other partition on the other physical drive? I was trying to find some information about this, and I read something about possibly having to mount the other partition in /etc/fstab and treat it as a mounted partition? Is that how you do it, or is there some way to directly change to the other partition?
I discovered that it was automatically mounting it, but it was in:
and not in
The right way to find out mountpoints is to run the
mounts
command or inspect into/proc/mounts
, not listing directories.Example of the command
mounts
Example of
/proc/mounts
/proc/mounts
is more machine-readable, andmounts
is more human-readable.