Article 531HY how to properly add a drive as /home to Ubuntu fork?

how to properly add a drive as /home to Ubuntu fork?

by
lleb
from LinuxQuestions.org on (#531HY)
I just installed Pop!_OS (Ubuntu Fork) on to my SSD, during install I just unplugged my HDD (SATA) drive. Now I want to add that drive to /etc/fstab.

It has been many years since I did this, what is the correct way to add that drive using UUID (I think that is the correct name)?

Code: df -Th
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 16G 0 16G 0% /dev
tmpfs tmpfs 3.2G 2.4M 3.2G 1% /run
/dev/mapper/data-root ext4 220G 7.0G 202G 4% /
tmpfs tmpfs 16G 175M 16G 2% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/sda1 vfat 498M 208M 290M 42% /boot/efi
/dev/sda2 vfat 4.0G 2.4G 1.7G 60% /recovery
tmpfs tmpfs 3.2G 76K 3.2G 1% /run/user/1000Code:# fdisk -l
Disk /dev/sda: 232.91 GiB, 250059350016 bytes, 488397168 sectors
Disk model: Samsung SSD 850
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0C1CC56F-4C18-4B42-8A51-EB2C29190F45

Device Start End Sectors Size Type
/dev/sda1 4096 1023998 1019903 498M EFI System
/dev/sda2 1024000 9412606 8388607 4G Microsoft basic data
/dev/sda3 9412608 480004462 470591855 224.4G Linux filesystem
/dev/sda4 480004464 488393070 8388607 4G Linux swap

Disk /dev/sdb: 4.56 TiB, 5000981078016 bytes, 9767541168 sectors
Disk model: TOSHIBA HDWE150
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: F087E637-C873-47D8-874C-6059EE7EA127

Device Start End Sectors Size Type
/dev/sdb1 2048 9767540735 9767538688 4.6T Linux filesystem

Disk /dev/mapper/cryptdata: 224.39 GiB, 240926252544 bytes, 470559087 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/data-root: 224.39 GiB, 240925016064 bytes, 470556672 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/cryptswap: 3.102 GiB, 4294442496 bytes, 8387583 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes/dev/sdb is my /home from my old Fedora 27 install.

Thank you in advance.latest?d=yIl2AUoC8zA latest?i=0StPMLa-znM:K8AzCMuUU7k:F7zBnMy latest?i=0StPMLa-znM:K8AzCMuUU7k:V_sGLiP latest?d=qj6IDK7rITs latest?i=0StPMLa-znM:K8AzCMuUU7k:gIN9vFw0StPMLa-znM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments