this post was submitted on 22 Apr 2025
55 points (96.6% liked)

Linux

53490 readers
1075 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

How did you partition your disk before installing Linux? Do you regret how you set it up?

I'm looking for some real users experiences about this and I'm trying to find the best approach for my setup.

Thank you for sharing!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 2 days ago (1 children)

I enjoy the way OpenSuse Tumbleweed set it up:

Laptop:

NAME                                   MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
nvme0n1                                259:0    0 476.9G  0 disk  
├─nvme0n1p1                            259:1    0     1G  0 part  /boot/efi
└─nvme0n1p2                            259:2    0 475.9G  0 part  
  └─cr_nvme-eui.044a5011215f41f7-part2 254:0    0 475.9G  0 crypt 
    ├─system-root                      254:1    0   168G  0 lvm   /var
    │                                                             /usr/local
    │                                                             /srv
    │                                                             /root
    │                                                             /opt
    │                                                             /boot/grub2/x86_64-efi
    │                                                             /boot/grub2/i386-pc
    │                                                             /.snapshots
    │                                                             /
    ├─system-swap                      254:2    0     2G  0 lvm   [SWAP]
    └─system-home                      254:3    0 305.9G  0 lvm   /home
$ sudo fdisk -l
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: UMIS RPIRJ512VME2OWD
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

Device           Start        End   Sectors   Size Type
/dev/nvme0n1p1    2048    2099199   2097152     1G EFI System
/dev/nvme0n1p2 2099200 1000215182 998115983 475.9G Linux LVM

Desktop:

NAME              MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
nvme0n1           259:0    0 931.5G  0 disk  
├─nvme0n1p1       259:1    0   512M  0 part  /boot/efi
└─nvme0n1p2       259:2    0   931G  0 part  
  └─cr-auto-1     254:1    0   931G  0 crypt 
    ├─system-root 254:2    0   610G  0 lvm   /var
    │                                        /usr/local
    │                                        /root
    │                                        /srv
    │                                        /opt
    │                                        /boot/grub2/x86_64-efi
    │                                        /boot/grub2/i386-pc
    │                                        /.snapshots
    │                                        /
    ├─system-swap 254:3    0  62.5G  0 lvm   [SWAP]
    └─system-home 254:4    0   1.2T  0 lvm   /home
nvme1n1           259:3    0 931.5G  0 disk  
└─nvme1n1p1       259:4    0 931.5G  0 part  
  └─cr-auto-2     254:0    0 931.5G  0 crypt 
    └─system-home 254:4    0   1.2T  0 lvm   /home
$ sudo fdisk -l /dev/nvme?n1
Disk /dev/nvme0n1: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WD_BLACK SN850X 1000GB                  
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

Device           Start        End    Sectors  Size Type
/dev/nvme0n1p1    2048    1050623    1048576  512M EFI System
/dev/nvme0n1p2 1050624 1953525134 1952474511  931G Linux LVM


Disk /dev/nvme1n1: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WD_BLACK SN850X 1000GB                  
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

Device         Start        End    Sectors   Size Type
/dev/nvme1n1p1  2048 1953525134 1953523087 931.5G Linux LVM
[–] [email protected] 1 points 1 day ago (1 children)

what command did you use to get that tree view, I thought it was a df flag but its not.

[–] [email protected] 2 points 1 day ago (1 children)

Oh I didn't notice I didn't include the command (twice!).

It's lsblk without any arguments.

[–] [email protected] 2 points 1 day ago (1 children)

Thank you. Odd it doesnt show network attached storage (I was going to use this method to show my partitions but I have like 3 NFS drives I use for personal, med, and long term storage)

[–] [email protected] 1 points 1 day ago

Oh yeah, because it stands for list block devices