求助/.snapshots中文件无法删除(已解決),导致无法进入KDE,snapper显示快照已删除!

又是手贱惹得事。安装了 Tumbleweed 版本的 openSUSE。过年很多天没更新,昨天就 sudo zypper dup 一下,有一个多 G 更新,花了很长时间才下载完。(在此之前我看了下根分区还有 3G 左右空间)安装时提示有些包里某些文件重名,就选择忽略,后来发现有很多这种情况,就强制取消更新。没想到进不了图形界面了。开始以为是系统安装没完成,系统组件被破坏,而且有新的 kernel,就手贱用了 grub-mkconfig -o 之类的命令更新 grub。结果遇见了 grub rescue。悲剧的 UEFI 找不到 normal.mod。直到找到
__http://www.awaysoft.com/taor/%E4%BF%AE%E5%A4%8Dfedora-20-uefi-%E5%BC%95%E5%AF%BC.html
介绍如何在 UEFI 下修复 grub 才算是进入系统。

问题是先前的问题还是没解决,这其中使用了若干种 livecd 想拷贝 normal.mod 进 /boot/grub2,提示 no space。想到会不会又是 snapper 快照惹的事,df 一下,根分区还剩 1G 左右,好不容易删除了 snapper list 列出的快照,发现 /.snapshots 里还有三个文件夹,./8,./9,./16,可是 snapper list 却不显示。启动进图像界面却提示 call to lnusertemp failed (temporary directories full?).cheeck your installation ,而在 tty 中 root 用户执行 startx,则在图形界面窗口提示 kstartupconfig4 does not exist or fails. the error code is 11,cheeck your installation 。而普通用户执行 sudo startx 可以进去 icewm 桌面。

我怀疑是不是还是根分区空间不够,想删除 /.snapshots 里的三个文件夹:./8,./9,./16。可是怎么都删不掉,提示什么 read-only file system.

求助各位有知道怎么解决的吗???(硬盘无法拆下来)


按照 gmg137__ 所說,用 btrfs 命令可以很好的管理快照,
sudo btrfs subvolume list
列出所有卷,
sudo btrfs subvolume delete /.snapshots/8/snapshot
刪除相應快照。

只是還是進不去桌面,錯誤提示相同,看來不是快照佔用空間引起的!!

Xorg.0.log (26.6 KB)

.xsession-errors 文件死活上传不了,贴码吧!

hostname: 未知的名称或服务
xauth:  file /home/qingyu1/.serverauth.1711 does not exist

X.Org X Server 1.16.2
Release Date: 2014-11-10
X Protocol Version 11, Revision 0
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux qingyu-THINKCARBON.site 3.18.1-1-desktop #1 SMP PREEMPT Wed Dec 17 18:20:30 UTC 2014 (5f2f35e) x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.18.1-1-desktop root=UUID=163164cd-3a29-4956-bc61-f5e54583561a ro splash=silent quiet showopts
Build Date: 26 November 2014  11:18:33AM
 
Current version of pixman: 0.32.6
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/qingyu1/.local/share/xorg/Xorg.0.log", Time: Sat Mar  7 19:39:20 2015
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
/usr/bin/startkde: 行 67:  1767 段错误               /usr/bin/kde4-migrate
startkde: ERROR: Could not locate lnusertemp in 
/usr/bin/startkde: 行 254: : 未找到命令
startkde: Call to lnusertemp failed (temporary directories full?). Check your installation.
FreeType: couldn't open face /home/qingyu1/.fonts/AdobeFangsongStd-Regular.otf: 1
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
xinit: connection to X server lost
waiting for X server to shut down (EE) Server terminated successfully (0). Closing log file.

/.snapshots 下的东西是用 root 都删不掉的,要用

su
snapper delete 编号

snapper list 列出的我都刪掉了,但是 /.snapshots 下還有幾個編號的文件夾,不知道怎麼回事沒有列出來(之前是列出來過),所以現在我刪不掉!!

除了第一次切换 Tumbleweed 源时需要 dup 升级,之后都应该使用 zypper up 来升级就可以了。
关于.snapshot 文件夹下的几个残留快照,很可能是创建失败的快照。想删除的话直接用 btrfs 应该就可以。先用 btrfs 列出该分区中包含的快照和子卷,然后照着路径用 btrfs 删除就行了

我一直是用 sudo zypper dup 升級的,另一台電腦沒出現問題。不知道 dup 與 up 對 Tumbleweed 有什麽區別。

按照你的方法,快照已刪除。又學習到一種好方法,比 snapper 強大多了。
我用 sudo btrfs subvolume list 列出所有卷,直接用 sudo btrfs subvolume delete /.snapshots/8/snapshot 就好了。但是快照刪除后,根分區已經有 4G 空餘了,可還是出現開始說的問題,進入不了 KDE,還是一樣的提示。另外吐槽一下 openSUSE 的救援模式,選擇了根本進不去,不斷重啟。

1 个赞

你不是 dup 没成功么,怎么能进?下载过程中断没事,安装过程中断有些依赖关系就被破坏了。你还得去 dup。

开始 dup 没成功,进不了 KDE,提示我之前说的错误,我怀疑是 snapper 快照占用空间惹的祸。因为以前碰到过这种情况。还没想要删除快照,结果我把 grub 破坏了,接着把快照搞坏了。于是就出现两个编号的快照无法删除。

修复好 grub,删除快照后,又是进入 tty1。拯救无效后我就只能下载一个最新的 Tumbleweed,在原有系统上升级,没想到 ok 了。

有个问题就是在 UEFI 下我应该怎样更新 grub 系统引导?以前的那个 grub2-install 我是不敢用了。