Arch tabanlı dağıtımlarda snapshot rollback gönderisinden tartışılmaya devam ediliyor:
Öncelikle elinize sağlık harika bir rehber olmuş.
GarudaOS kullanıyordum ve sistemi bir şekilde çökerttim. Öyle olunca bende manual Arch kurulumu yapmak istedim ve başarıyla sistemi kurdum. 4 Partition oluşturdum nvme0n1p4 ü volgroup0 olarak alıp mantıksal iki hacme böldüm LVM olarak btrfs doya sisteminde oluşturdum.
Snapper işini bir şekilde başaramıyorum dediğinz adımları izleyip fstab ın içine verdiğiniz komutları yerleştirdim fakat sistemim yine çöktü yeniden aynı kurulumu yapıp pc yi aynı noktaya getirdim.
bir kaç çıktımı paylaşsam belki yardım olmanız mümkün mü acaba.
Asıl mesele tam olarak nedir nerde kopuyor onu bile anlamıyorum.
Sistem Özellikleri;
OS: Arch Linux x86_64
Host: Nitro AN515-58 V2.14
Kernel: 6.6.63-1-lts
Uptime: 28 mins
Packages: 1432 (pacman), 12 (flatpak)
Shell: fish 3.7.1
Resolution: 2560x1440
DE: GNOME 47.2
WM: Mutter
WM Theme: Adwaita
Theme: Adwaita [GTK2/3]
Icons: breeze-dark [GTK2/3]
Terminal: kgx
CPU: 12th Gen Intel i5-12500H (16) @ 4.500GHz
GPU: Intel Alder Lake-P GT2 [Iris Xe Graphics]
GPU: NVIDIA GeForce RTX 3050 Ti Mobile
Memory: 3625MiB / 15699MiB
Aşağıda analiz için aldığım çıktılar var. İnceleme adına yardımcı olur düşüncesiyle;
# 1. Sistemdeki tüm diskleri ve bölümleri listele
lsblk
# 2. Tüm disklerin yapılandırmasını ve bölümleri göster
sudo fdisk -l
# 3. Disklerin UUID’lerini, dosya sistemi türlerini ve diğer bilgilerini göster
sudo blkid
# 4. Fstab dosyasını kontrol et (dosya sistemi montaj bilgileri)
cat /etc/fstab
# 5. Sistemde şu anda montaj yapılmış olan tüm dosya sistemlerini listeler
mount
# 6. Btrfs dosya sisteminin sağlığını yalnızca okuma modunda kontrol et
sudo btrfs check --readonly /dev/mapper/volgroup0-lv_root
sudo btrfs check --readonly /dev/mapper/volgroup0-lv_home
Sırasıyla Çıktılar;
chrome@archlinux ~ [127]> lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 1G 0 part
├─nvme0n1p2 259:2 0 1G 0 part /boot
├─nvme0n1p3 259:3 0 4G 0 part [SWAP]
└─nvme0n1p4 259:4 0 470.9G 0 part
└─volgroup0 254:0 0 470.9G 0 crypt
├─volgroup0-lv_root 254:1 0 50G 0 lvm /
└─volgroup0-lv_home 254:2 0 419G 0 lvm /home
sistemi tekrar çökertmekten çekiniyorum
2 haftada 3 kere kurulum yaptım
Aşağıda ki
subvolume list /
in içindeki@snapper
i sildim (İlk denemede başarısız olunca).
chrome@archlinux /h/.snapshots> sudo btrfs subvolume list /
ID 256 gen 595 top level 5 path var/lib/portables
ID 257 gen 595 top level 5 path var/lib/machines
Aşağıda ki
subvolume list /home
ü kesinlikle hiçbir şekilde root ile dahi silemedim.
chrome@archlinux /h/.snapshots> sudo btrfs subvolume list /home
ID 256 gen 1038 top level 5 path .snapshots
ID 257 gen 1011 top level 256 path .snapshots/1/snapshot
chrome@archlinux ~> sudo snapper create
IO Error (.snapshots is not a btrfs subvolume).
chrome@archlinux ~ [1]> sudo fdisk -l
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: Micron_3400_MTFDKBA512TFH
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
Disk identifier: 7475DF5C-A558-417E-829B-9AF3206DDDFE
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 2099199 2097152 1G Linux filesyste
/dev/nvme0n1p2 2099200 4196351 2097152 1G Linux filesyste
/dev/nvme0n1p3 4196352 12584959 8388608 4G Linux swap
/dev/nvme0n1p4 12584960 1000214527 987629568 470.9G Linux LVM
Disk /dev/mapper/volgroup0: 470.92 GiB, 505649561600 bytes, 987596800 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/volgroup0-lv_root: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/volgroup0-lv_home: 419 GiB, 449897824256 bytes, 878706688 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
chrome@archlinux ~> sudo blkid
/dev/mapper/volgroup0-lv_root: UUID="e1035b3b-030c-4615-8050-e657840af869" UUID_SUB="84495978-488a-4317-8d4b-64d661e85101" BLOCK_SIZE="4096" TYPE="btrfs"
/dev/nvme0n1p3: UUID="75f96aab-9c32-4136-b67c-452bc3af199f" TYPE="swap" PARTUUID="e293dd3d-1202-482e-9c70-a088b1295ac7"
/dev/nvme0n1p1: UUID="F04C-7D95" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="c5e846ea-1692-4e64-82a9-aae03977ef46"
/dev/nvme0n1p4: UUID="5347007a-f218-4593-b133-dbf30b69d324" TYPE="crypto_LUKS" PARTUUID="7482e54e-7381-4dab-b7aa-4778c7e43f3b"
/dev/nvme0n1p2: UUID="2639a25d-a395-47a8-a102-f633003552c0" UUID_SUB="bf37c197-95e9-4dec-8f3c-4a1116441413" BLOCK_SIZE="4096" TYPE="btrfs" PARTUUID="5a269450-94f9-42d3-aabc-7025e1337ed3"
/dev/mapper/volgroup0-lv_home: UUID="844e0442-4e47-473c-aa3c-ed135e631976" UUID_SUB="d1cccb87-5e6d-43b3-a9ae-5dd402323c42" BLOCK_SIZE="4096" TYPE="btrfs"
/dev/mapper/volgroup0: UUID="pw5oTx-NDKQ-1P2S-Xx38-cuK5-Hs8b-EGWOCV" TYPE="LVM2_member"
chrome@archlinux ~> cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/mapper/volgroup0-lv_root
UUID=e1035b3b-030c-4615-8050-e657840af869 / btrfs rw,relatime,ssd,space_cache=v2,subvol=/ 0 0
# /dev/nvme0n1p2
UUID=2639a25d-a395-47a8-a102-f633003552c0 /boot btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvol=/ 0 0
# /dev/mapper/volgroup0-lv_home
UUID=844e0442-4e47-473c-aa3c-ed135e631976 /home btrfs rw,relatime,ssd,space_cache=v2,subvol=/ 0 0
# /dev/nvme0n1p3
UUID=75f96aab-9c32-4136-b67c-452bc3af199f none swap defaults 0 0
chrome@archlinux ~> mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=8022192k,nr_inodes=2005548,mode=755,inode64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
/dev/mapper/volgroup0-lv_root on / type btrfs (rw,relatime,ssd,space_cache=v2,subvolid=5,subvol=/)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=38,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=6342)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,pagesize=2M)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/credentials/systemd-journald.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-udev-load-credentials.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/credentials/systemd-tmpfiles-setup-dev-early.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-sysctl.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-tmpfiles-setup-dev.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
/dev/mapper/volgroup0-lv_home on /home type btrfs (rw,relatime,ssd,space_cache=v2,subvolid=5,subvol=/)
/dev/nvme0n1p2 on /boot type btrfs (rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,size=8037916k,nr_inodes=1048576,inode64)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/credentials/systemd-tmpfiles-setup.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-vconsole-setup.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1607580k,nr_inodes=401895,mode=700,uid=1000,gid=984,inode64)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=984)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=984)
chrome@archlinux ~> sudo btrfs check --readonly /dev/mapper/volgroup0-lv_root
Opening filesystem to check...
ERROR: /dev/mapper/volgroup0-lv_root is currently mounted, use --force if you really intend to check the filesystem
chrome@archlinux ~ [1]> sudo btrfs check --force --readonly /dev/mapper/volgroup0-lv_root
Opening filesystem to check...
WARNING: filesystem mounted, continuing because of --force
Checking filesystem on /dev/mapper/volgroup0-lv_root
UUID: e1035b3b-030c-4615-8050-e657840af869
[1/8] checking log skipped (none written)
[2/8] checking root items
[3/8] checking extents
[4/8] checking free space tree
[5/8] checking fs roots
[6/8] checking only csums items (without verifying data)
[7/8] checking root refs
[8/8] checking quota groups skipped (not enabled on this FS)
found 44407025664 bytes used, no error found
total csum bytes: 42632208
total tree bytes: 554434560
total fs tree bytes: 476430336
total extent tree bytes: 29605888
btree space waste bytes: 84847184
file data blocks allocated: 53471965184
referenced 43808559104
chrome@archlinux ~> sudo btrfs check --force --readonly /dev/mapper/volgroup0-lv_home
Opening filesystem to check...
WARNING: filesystem mounted, continuing because of --force
Checking filesystem on /dev/mapper/volgroup0-lv_home
UUID: 844e0442-4e47-473c-aa3c-ed135e631976
[1/8] checking log
[2/8] checking root items
[3/8] checking extents
[4/8] checking free space tree
[5/8] checking fs roots
[6/8] checking only csums items (without verifying data)
[7/8] checking root refs
[8/8] checking quota groups skipped (not enabled on this FS)
found 13735399424 bytes used, no error found
total csum bytes: 11972292
total tree bytes: 62078976
total fs tree bytes: 45613056
total extent tree bytes: 3309568
btree space waste bytes: 9083561
file data blocks allocated: 15358312448
referenced 13630717952
Yanlış yere yorumluyorsam yeni konu açabilirim. Şimdiden sağolun.
Son düzenleyen: @nxjoseph 2024-11-30T07:52:38Z