I use fedora 39 workstation, today during dnf update, I see error about no disk space on disk, after this error I delete many files and reboot fedora, but after reboot fedora can not boot and stop on starting GDM service and Ctrl+alt+f1 to f12 does not work and I can not login to terminal and run dnf update again.
In grub I check other kernel too but nothing happen and I cannot use fedora.
You will need to boot to a running system (either installed or a live image to recover.
If booted to the installed system (which could probably be done by displaying the grub menu during boot and editing the crub commands) then we would need the output of df
and sudo du -hs /
to assist in finding the issues.
The grub menu is displayed by holding down the shift key while powering on until the menu is displayed. Once the menu is visible, to edit the command line press the e
key and on the line that begins with linux
add 3
to the end of that line then continue booting. It should give you a text login prompt where you can run commands to do the troubleshooting.
Arbitrarily deleting files may or may not be a good thing – Never good if they are system files, possibly good if they are user files that are no longer necessary.
The necessity is to identify where the file systems are full and properly recover space so you can move forward. Thedf
and du
commands I gave just above will assist in finding that information.
Sometimes essential files end up in lost+found directories after a disk-full episode because the directories couldn’t be updated. In such cases I usually replace the disk (for the reasons below) and do a fresh install.
Reasons:
- if some important document is later determined to be missing there is a chance that it can be found in lost+found.
- a disk full episode can push an older disk over the edge into failure, so it should be mounted as read-only until configuration and user data have been copied to the new disk.
Thanks,
I boot into command line by add 3 in grub, I see the system is full, I deleted some files but system is still full, I delete more but it is still full.
I use btrfs
Managing a “full” btrfs is not simple, see: btrfs filesystem-full problems.
Thanks,
All friends, to help me
I solved this issue by these command
1- boot in rescue mode
2- sudo brtfs fi show /
3- because I do not have free space on fedora disk, so I use USB disk for balance.
4 -btrfs device add /dev/sda /mnt
5- btrfs balance start /mnt
6- it take times , please wait until it finish.
7- reboot your Fedora to normal boot
8- during boot Fedora need usb disk for boot
9 - after boot
10- sudo btrfs fi show /
11- sudo btrfs device delete /dev/sda /mnt
12- after last command your Fedora boot without USB disk