Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tools:btrfs [2023/07/02 16:45] – created darrontools:btrfs [2024/01/16 15:09] (current) – [Setup] darron
Line 1: Line 1:
-====BTRFS====+====B-TREE FS====
  
-B-TREE filesystem for Linux+BTRFS for Linux
  
 ===Install=== ===Install===
Line 40: Line 40:
 Number  Start (sector)    End (sector)  Size       Code  Name Number  Start (sector)    End (sector)  Size       Code  Name
               2048         2099199   1024.0 MiB  8300  Linux filesystem               2048         2099199   1024.0 MiB  8300  Linux filesystem
 +</code>
 +
 +Format partition
 +
 +<code>
 +mkfs.btrfs -f /dev/sda1
 +btrfs-progs v5.10.1
 +See http://btrfs.wiki.kernel.org for more information.
 +
 +Label:              (null)
 +UUID:               4ec8fe62-e6a2-432d-8fec-7eaf1e4bed19
 +Node size:          16384
 +Sector size:        4096
 +Filesystem size:    1.00GiB
 +Block group profiles:
 +  Data:             single            8.00MiB
 +  Metadata:         DUP              51.19MiB
 +  System:           DUP               8.00MiB
 +SSD detected:       no
 +Incompat features:  extref, skinny-metadata
 +Runtime features:
 +Checksum:           crc32c
 +Number of devices:  1
 +Devices:
 +   ID        SIZE  PATH
 +    1     1.00GiB  /dev/sda1
 +</code>
 +
 +Mount partition
 +
 +<code>
 +mkdir /mnt/1
 +mount /dev/sda1 /mnt/1
 +df -h /mnt/1
 +Filesystem      Size  Used Avail Use% Mounted on
 +/dev/sda1       1.0G  3.5M  905M   1% /mnt/1
 +</code>
 +
 +dmesg
 +<code>
 +BTRFS: device fsid 4ec8fe62-e6a2-432d-8fec-7eaf1e4bed19 devid 1 transid 5 /dev/sda1 scanned by mkfs.btrfs (768)
 +BTRFS info (device sda1): using crc32c (crc32c-generic) checksum algorithm
 +BTRFS info (device sda1): disk space caching is enabled
 +BTRFS info (device sda1): checking UUID tree
 +</code>
 +
 +fstab
 +
 +<code>
 +UUID=f6eb5f98-032e-4634-b726-24f356c17af8 /opt btrfs noatime,nodiratime 0 0
 +</code>
 +
 +<code>
 +mount -a
 +systemctl daemon-reload
 </code> </code>