LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 08-20-2021, 04:08 AM   #1
vucni45
Member
 
Registered: Aug 2021
Posts: 38

Rep: Reputation: Disabled
see file system space


hi,
How is correct to see file system space in btrfs?
btrfs fi show /
Label: none uuid: 1e8488cf-bb5c-4f4c-86c6-b74e99c03bca
Total devices 1 FS bytes used 4.47GiB
devid 1 size 18.97GiB used 7.02GiB path /dev/sda2

or
linux-l9l8:~ # df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 19G 4.7G 13G 27% /

used space is 7.02GiB or 4.7G?
 
Old 08-20-2021, 08:02 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
This should answer your question: https://www.geeksforgeeks.org/df-com...with-examples/

Per the link, the normal output (without the "-h" argument) is

Quote:
Filesystem 1K-blocks Used Available Use% Mounted on
 
Old 08-21-2021, 01:56 AM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Using only df might leave one mislead. A more appropriate reference is on opensuse.org:
Code:
# inxi -Sy
System:    Host: ta205 Kernel: 5.3.18-lp152.78-default x86_64 bits: 64
  Console: tty pts/0 (vt 2) Distro: openSUSE Leap 15.2 
# df -h /
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        47G  9.3G   37G  21% /
# btrfs filesystem df -h /
Data, single: total=12.01GiB, used=8.98GiB
System, single: total=32.00MiB, used=16.00KiB
Metadata, single: total=776.00MiB, used=237.19MiB
GlobalReserve, single: total=24.44MiB, used=0.00B
# btrfs fi df -h /
Data, single: total=12.01GiB, used=8.98GiB
System, single: total=32.00MiB, used=16.00KiB
Metadata, single: total=776.00MiB, used=237.34MiB
GlobalReserve, single: total=24.44MiB, used=0.00B
# parted -l
Model: ATA SanDisk SDSSDA12 (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: pmbr_boot

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  9437kB  8389kB                        bios_grub
 2      9437kB  50.0GB  50.0GB  btrfs                 legacy_boot
 3      50.0GB  118GB   67.8GB  ext4
 4      118GB   120GB   2148MB  linux-swap(v1)        swap

Last edited by mrmazda; 08-21-2021 at 02:07 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard drive Ubuntu can see but that my system doesn't see at boot anymore HannemanThrashKing Linux - Hardware 12 06-19-2021 10:01 PM
Grub see windows as sdb1 file system see it as sdb2 arranskye Linux - Newbie 50 02-11-2021 05:56 AM
[SOLVED] Move file names with space to other directory with different file name with space pradeepdee6 Linux - Newbie 9 08-08-2012 09:19 AM
[SOLVED] Starting File System .. Starting File System .. Starting File System .. Starting File rmknox Linux - Newbie 3 08-15-2010 11:30 PM
Division of Logical Memory Space in to User Space and Kernel Space shreshtha Linux - Newbie 2 01-14-2010 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 04:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration