BTRFS were is the root partition

Completely and utterly unrelated.

Moderators: raboof, MattKingUSA, khz

Post Reply
Gps
Established Member
Posts: 1136
Joined: Mon Mar 09, 2015 3:09 pm
Has thanked: 331 times
Been thanked: 112 times

BTRFS were is the root partition

Post by Gps »

I hope I can get a simple answer here.

Were is my root partition and how big is on my BTRFS formatted disk? (opensuse tumbleweed)

For days now I searching for this simple question, and I am becoming so annoyed I am tempted, to reinstall opensuse with ext4. :(

Off course I googled, but I only find answers to things I am not asking.

Code: Select all

sudo parted -l 
[sudo] wachtwoord voor root:  
Model: ATA WDC WD10EZEX-08W (scsi) 
Disk /dev/sda: 1000GB 
Sector size (logical/physical): 512B/4096B 
Partition Table: gpt 
Disk Flags:  

Number  Start   End     Size    File system  Name                          Flags 
 1      1049kB  556MB   555MB   ntfs         Basic data partition          hidden, diag 
 2      556MB   660MB   104MB   fat32        EFI system partition          boot, esp 
 3      660MB   676MB   16,8MB               Microsoft reserved partition  msftres 
 4      676MB   1000GB  1000GB  ntfs         Basic data partition          msftdata 


Model: ATA ST1000DM010-2EP1 (scsi) 
Disk /dev/sdb: 1000GB 
Sector size (logical/physical): 512B/4096B 
Partition Table: gpt 
Disk Flags:  

Number  Start   End     Size    File system     Name  Flags 
 1      1049kB  525MB   524MB   fat16                 boot, esp 
 2      525MB   27,0GB  26,5GB  ext4 
 3      27,9GB  998GB   970GB   xfs 
 4      998GB   1000GB  2148MB  linux-swap(v1)        swap 


Model: Samsung SSD 980 1TB (nvme) 
Disk /dev/nvme0n1: 1000GB 
Sector size (logical/physical): 512B/512B 
Partition Table: gpt 
Disk Flags:  

Number  Start   End     Size    File system  Name  Flags 
 1      1049kB  538MB   537MB   fat32              boot, esp 
 2      538MB   1000GB  1000GB  btrfs 

Very happy though with the new ssd, its very fast when installing stuff. Blink once and installation is done.
Gps
Established Member
Posts: 1136
Joined: Mon Mar 09, 2015 3:09 pm
Has thanked: 331 times
Been thanked: 112 times

Re: BTRFS were is the root partition

Post by Gps »

Posted this question on the openSUSE forum too, started a new topic with only 1 question.

How big is my root partition.

Fingers crossed I get an answer. I am in bad mood right now, because I lost count on how many pages I read about BTRFS but no answer to this simple question.
User avatar
Loki Harfagr
Established Member
Posts: 268
Joined: Thu Aug 02, 2018 1:28 pm
Has thanked: 151 times
Been thanked: 53 times

Re: BTRFS were is the root partition

Post by Loki Harfagr »

Did you try?

Code: Select all

df -hTl
Gps
Established Member
Posts: 1136
Joined: Mon Mar 09, 2015 3:09 pm
Has thanked: 331 times
Been thanked: 112 times

Re: BTRFS were is the root partition

Post by Gps »

Code: Select all

df -hTl
Filesystem     Type      Size  Used Avail Use% Mounted on
devtmpfs       devtmpfs  7.8G     0  7.8G   0% /dev
tmpfs          tmpfs     7.8G     0  7.8G   0% /dev/shm
tmpfs          tmpfs     3.2G  9.8M  3.1G   1% /run
/dev/nvme0n1p2 btrfs     932G  194G  738G  21% /
tmpfs          tmpfs     7.8G     0  7.8G   0% /tmp
/dev/nvme0n1p2 btrfs     932G  194G  738G  21% /.snapshots
/dev/nvme0n1p2 btrfs     932G  194G  738G  21% /boot/grub2/i386-pc
/dev/nvme0n1p2 btrfs     932G  194G  738G  21% /boot/grub2/x86_64-efi
/dev/nvme0n1p2 btrfs     932G  194G  738G  21% /home
/dev/nvme0n1p2 btrfs     932G  194G  738G  21% /opt
/dev/nvme0n1p2 btrfs     932G  194G  738G  21% /root
/dev/nvme0n1p2 btrfs     932G  194G  738G  21% /srv
/dev/nvme0n1p2 btrfs     932G  194G  738G  21% /usr/local
/dev/nvme0n1p2 btrfs     932G  194G  738G  21% /var
/dev/nvme0n1p1 vfat      511M  5.1M  506M   1% /boot/efi
tmpfs          tmpfs     1.6G   48K  1.6G   1% /run/user/1000
Waiting on openSUSE forum too, I am getting help.

On the bright side, because of btrfs, I could go back to after the install of tumbleweed.

It will not surprise many here, I already installed LMMS.

Edit: Thank you, I panicked to soon, there is a home and root partition on my ssd.

I need to do some reading about btrfs. I do not understand that 21 % nor the 932G, or should I say, why they are all the same.
User avatar
Loki Harfagr
Established Member
Posts: 268
Joined: Thu Aug 02, 2018 1:28 pm
Has thanked: 151 times
Been thanked: 53 times

Re: BTRFS were is the root partition

Post by Loki Harfagr »

Well, as you printed from 'df -hTl' result, don't panic, here are your root, home and root user's home, all on second slice of your NVME SSD:

Code: Select all

/dev/nvme0n1p2 btrfs     932G  194G  738G  21% /
/dev/nvme0n1p2 btrfs     932G  194G  738G  21% /home
/dev/nvme0n1p2 btrfs     932G  194G  738G  21% /root
I'd prolly be safer to use a separate partition (likely /dev/nvme0n1p3) for your /home and your root / but that's your decision ;)
User avatar
Largos
Established Member
Posts: 616
Joined: Mon Oct 05, 2020 12:21 pm
Has thanked: 70 times
Been thanked: 179 times

Re: BTRFS were is the root partition

Post by Largos »

@Gps All the ones with 21% are btrfs subvolumes on the same partition, which is 932G in total and is 21% full overall. The subvolumes use any of the space there is on the partition they are on. I use btrfs on ubuntu and there are two subvolumes root and home. The home subvolume ("@home") contains everything in the /home folder. The root subvolume ("@") contains everything except what is in the home subvolume. The opensuse has more subvolumes but without seeing myself, should/could be functionally the same.

I can see what is in each subvolume by finding out the partition UUID with the "blkid" command and then

Code: Select all

mount /dev/disk/by-uuid/DISK UUID /mnt
This then shows the contents of subvolumes in the /mnt folder. Opensuse might have different/better ways of doing this.

The best part of btrfs is you can do incremental backups of subvolumes (snapshots). I think Opensuse uses snapper, which is very good. I use that to create regular snapshots which enable me to have an "undo button" for if I bork my system doing something silly.
Gps
Established Member
Posts: 1136
Joined: Mon Mar 09, 2015 3:09 pm
Has thanked: 331 times
Been thanked: 112 times

Re: BTRFS were is the root partition

Post by Gps »

Thank you, after a slight panic attack, I am starting to see the light again.

Opensuse forum confirmed nothing wrong with the install.
BTRFS (better FS :lol: ) was causing my panic and confusion.

There is something going on were the partitions do not have a fixed size, as we are used too.
The file tree is different.

Somebody on the openSUSE forum called the subvolumes ghost partitions.

Most Ubuntu commands work on openSUSE too. I have fixed steam issues with "Ubuntu" solutions.

Were it differs is with installing stuff. No apt get but zypper something. :)

Updating tumbleweed, type in the console: sudo zypper dup. :)
Gps
Established Member
Posts: 1136
Joined: Mon Mar 09, 2015 3:09 pm
Has thanked: 331 times
Been thanked: 112 times

Re: BTRFS were is the root partition

Post by Gps »

All of this because I had a warning my root partition was low on space.

The cause probably being, installing a lot of programs (and compiling programs), and running a virtual machine which used the root partition.

Should all be fixed, just installed win 10 in the new virtual machine. (to run an online game)
Now it uses a partition outside of the root, even on another hard disk.

Now finally back to reading up on pipewire. I remember were I got stuck, because of that other issue.

I needed to install two things. Not pipewire it self, because that is already installed.

I had started a topic on the opensuse forums, now I can finish it.
Post Reply