주 메뉴 열기

wwiki β

바뀜

Btrfs

1,313 바이트 추가됨, 2023년 6월 18일 (일) 11:54
resize
== snapshot ==
원본 subvolume의 내용을 갖고 있는 subvolume이다.
 
== command ==
 
=== filesystem ===
 
==== show ====
파일시스템 리스트
$ sudo btrfs filesystem show
 
==== resize ====
# btrfs filesystem resize [devid:][+/-]<newsize>[kKmMgGtTpPeE]|[devid:]max <path>
Resize a filesystem. Resize a mounted filesystem identified by ''path''. A particular device can be resized by specifying a ''devid''.
 
If ''max'' is passed, the filesystem will occupy all available space on the device respecting ''devid'' (remember, devid 1 by default).
 
==== check ====
# btrfs check --repair /dev/<device_name>
Btrfs 파일 시스템을 복구하는 방법 중 하나로 명령을 사용할 수 있습니다. 하지만 <code>--repair</code> 옵션을 사용하면 특정 문제를 해결하지 못할 경우 파일 시스템을 더 손상시킬 수 있습니다. btrbk을 사용하여 백업할 수 있습니다.
 
=== subvolume ===
 
==== list ====
# btrfs subvolume list [options] <path>
 
$ sudo btrfs subvolume list /home
List subvolumes and snapshots in the filesystem.
 
==== usage ====
# btrfs filesystem usage [options] <path> [<path>..]
 
$ sudo btrfs filesystem usage /home
Show detailed information about internal filesystem usage .
 
==== show ====
# btrfs subvolume show [options] <path>
Show more information about the subvolume (UUIDs, generations, times, snapshots)
== 마운트 ==
$ sudo nano /etc/[[fstab]]
UUID=xxxx / btrfs defaults,compress=lzo 0 0
$ mount -o compress=lzo /dev/sdb path [[분류:Linux파일]][[분류:File system리눅스]]
편집
2,431