2025-03-30, 06:16 PM
Code:
sudo fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WD_BLACK SN770 2TB
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: 73D2422D-ADE2-40BB-8CE9-6ADA82319565
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1230847 1228800 600M EFI System
/dev/nvme0n1p2 1230848 3327999 2097152 1G Linux filesystem
/dev/nvme0n1p4 1215576064 3907028991 2691452928 1.3T Linux filesystem
/dev/nvme0n1p5 412928000 803553279 390625280 186.3G Linux filesystem
Partition table entries are not in disk order.
Code:
cat /proc/mounts | grep nvme0n1
/dev/nvme0n1p5 / btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@ 0 0
/dev/nvme0n1p5 /var/snap/firefox/common/host-hunspell btrfs ro,noexec,noatime,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@ 0 0
/dev/nvme0n1p5 /home btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@home 0 0
/dev/nvme0n1p1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
/dev/nvme0n1p4 /media/chris/Data btrfs rw,nosuid,nodev,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/ 0 0
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p5 during installation
UUID=9fafc060-69f6-47b7-b3b0-77699c286279 / btrfs defaults,subvol=@ 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=9D85-4BC8 /boot/efi vfat umask=0077 0 1
# /home was on /dev/nvme0n1p5 during installation
UUID=9fafc060-69f6-47b7-b3b0-77699c286279 /home btrfs defaults,subvol=@home 0 2
Looking at the existing fstab, I was confused about the "subvol" parameter for other partitions and didn't know how to use it or find details about it. I see in the above output that for the partition I'm trying to mount /dev/nvme0n1p4, the values "subvol=/" and "subvolid=5" are listed. Can/should I do something like:
Code:
/dev/nvme0n1p4 /media/Data btrfs defaults,subvolid=5 0 2
