Can't see "home" partition in "other locations"

With your settings, I wouldn't expect that you find your "Home" in "Other locations". Your home is mounted when your system boots. You can access it straight via the "Home" (and Document, Music, Pictures...) link in Nautilus, the file explorer. It is not an "Other location", it's part or your File System, even if installed on two different partitions.


Coming from a Windows background, you probably wouldn't know this, but Ubuntu (or any Linux system) uses partitions in a different way than Windows does, which is why you're not seeing both the partitions you created.

As you know, in Windows, when you mount a partition it shows up as a drive (C:, D:, or so on), and all the drives are listed under My Computer. Each drive has its own entirely separate hierarchy of files. But Linux uses a different model. In Linux, as far as the operating system is concerned, there is only one hierarchy, which is more or less effectively stored in the kernel's memory. Partitions get mounted by attaching them at certain points in this hierarchy, namely mount points, and when that happens, the contents of the newly mounted partition appear as directories and files under that mount point.

You can think of it as though partitions in Linux provide backing storage for parts of the filesystem.

Here's an example that, while not being 100% accurate, should help you understand how it works. Suppose your two partitions have these contents:

Partition 1:
  bin/
  home/
  usr/
Partition 2:
  larry/
  moe/
  curly/

When the Linux kernel starts up, you can imagine that it starts with an empty "mental model" of the filesystem. ("In the beginning, there was /.")

/

Then it mounts a partition at the mount point /; let's say that is partition 1. After mounting, the filesystem has these three directories:

/bin/
/home/
/usr/

Then it mounts partition 2 at the mount point /home. After that, the filesystem has these six directories:

/bin/
/home/
/home/larry/
/home/moe/
/home/curly/
/usr/

The net effect of this is that everything under /home/curly is on partition 2, while everything else under / is on partition 1. So, when asked to access a file like, say, /home/curly/maharajah.txt, the kernel will note that this file is under partition 2's mount point /home and there are no other mount points "on the way" from /home to the path of the file, so it will put the file at curly/maharajah.txt on partition 2. A different file like /bin/ow, would be placed on partition 1 because it is under partition 1's mount point but not under any other partition's mount point.

But all of this managing mount points is invisible to you, as the user of the computer. In normal day-to-day usage you don't typically care which directories are on which partitions; when you make a file, all you think about is the path /home/curly/maharajah.txt and you let the kernel worry about which partition to actually put that file on. So, unlike in Windows, partitions are meant to be invisible during normal use, and you work with the illusion that there is only one big filesystem that contains everything on the system. Some file managers, like Nautilus apparently, help promote that illusion by not even showing you what partitions are mounted.

What this means for your specific situation is that you (probably) already have things set up the way you want. Your 50 GB partition is mounted on /, and your 410 GB partition is mounted on /home, and that means anything you create under /home will be placed on the 410 GB partition while everything else on the system will be placed on the 50 GB partition. (Well actually there are other "imaginary partitions" created by various Linux system components, but forget about that for now.) It's just that Nautilus is not making it very clear that both partitions are being used, and in fact being kind of misleading by showing the space usage for only partition 1 in the "other locations" screen.


GParted generally shows the actual mount point of the partition. If a partition is like some external storage device or which has nothing to do with the Ubuntu like in my case I have 3 partitions which doesn't include any system file of Ubuntu, it is mounted in /media/ directory which generally creates a mount point there like I have mount point like /media/kulfy/DE14D51314D4EF8F for my one of the partition. It was created automatically. And this partitions/storage devices can be accessed from Other Locations as well.

Your GParted shows that the mount point for /dev/sda2 is /home thus the partition is already mounted and /home as the mount point. So, there is no entry in Other Locations since it performs as an important part of the main installation. You can also run findmnt /dev/sda2 for more info.


Data partition

You can create another partition that you can view from "other locations" with gparted, when booted from another drive, for example an Ubuntu live/install USB pendrive.

Many people have a data partition for personal files (documents, pictures, video clips, music ...).

  • Start by backing up at least all the files, that you cannot afford to lose.

  • Unmount and shrink an existing partition, and create the data partition in the drive space, that became unallocated after shrinking.

  • This partition can have an NTFS file system and be shared with Windows, if there is dual boot. Otherwise, if only Linux, I would suggest an ext4 file system.

  • In both cases it is a good idea to have a line in the file /etc/fstab in order to mount the data partition automatically. Create a mountpoint in /media, for example /media/data and point to its UUID in /etc/fstab. This line can be at (or near) the end of the file.

    UUID=862210fd-a6fd-4fe3-913c-e18e1448ef36 /media/data    ext4    defaults 0       2
    

    Use your own UUID for the data partition, which you find via

    sudo blkid
    

    After next boot (or reboot), it will be mounted and available.

  • Make the data partition available without elevated permissions for user and group, but not for others.

    • Use chown and chmod if there is a linux ext4 file system. When mounted: run

      sudo chmod -R o-rwx /media/data/
      sudo chown -R "$USER" /media/tester/data
      

      It is straightforward to modify the ownership and permissions afterwards for an ext4 partition.

    • Add mount options in /etc/fstab if there is an NTFS file system, after default separated with commas, , for example like so:

      UUID=27BB443011BACEB5   /media/data ntfs  defaults,rw,nosuid,nodev,relatime,user,uid=1000,dmask=007,fmask=117,exec  0  2
      

    The ownership and permissions of an NTFS partition are set when mounted, and cannot be changed with chown and chmod. But you can unmount and mount again with other settings.

  • It is not necessary but may help to set the label data on this partition,

    sudo tune2fs -L data /dev/sdxn
    

    where /dev/sdxn is the device specification as seen by sudo blkid; Replace x with the device letter and n with the partition number of your real case.


One advantage with a data partition is that the system partition(s) will be smaller. It will be possible to backup the personal data and the system separately, which is convenient.