My linux go to in emergency mode

i deleted @cache and @tmp subvolumes by mistake..
so after my linux not booting and go to emergency mode and exit this mode..
and after i boot live usb and open garuda-chroot gui so it is error sows me..

grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
==> Mounting (Garuda_Linux) [/dev/nvme0n1p4]
--> mount: [/mnt]
--> mount: [/mnt/boot/efi]
--> mount: [/mnt/home]
--> mount: [/mnt/root]
--> mount: [/mnt/srv]
--> mount: [/mnt/var/cache]
mount: /mnt/var/cache: mount(2) system call failed: No such file or directory.
dmesg(1) may have more information after failed mount system call.

--> mount: [/mnt/var/log]
--> mount: [/mnt/var/tmp]
mount: /mnt/var/tmp: mount(2) system call failed: No such file or directory.
dmesg(1) may have more information after failed mount system call.

[[email protected] /]#

when i boot my linux after deleted subvolumes (@cache and @tmp), i am in emergency mode :-

You are in emergency mode. After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or "exit'
to boot into default mode.
Give root password for maintenance
(or press Control-D to continue):

when i boot linux into recovery mode :-

[FAILED] Failed to mount /var/cache.
See 'systemctl status var-cache.mount for details.
[DEPEND] Dependency failed for Local File Systems.
[ OK ] Mounted /var/log.
[FAILED] Failed to mount /var/tmp.
See 'systemctl status var-tmp.mount for details.

and when i check status about cache and tmp subvolume :-

--> systemctl status var-cache.mount

[[email protected] PATEL 1# systemctl status var-cache.mount
/var/cache
x var-cache.mount
Loaded: loaded (/etc/fstab; generated)
Active: failed (Result: exit-code) since Mon 2823-01-09 21:12:57 IST; 41s ago
Where: /var/cache
What: /dev/disk/by-uuid/6ee562e9-337d-4f61-a470-16e6a18879d2
Docs: man: fstab(5)
man:systemd-fstab-generator (8)
CPU: 1ms
Jan 89 21:12:57 VISHALRAJESHBHAI PATEL systemd[1]: Mounting /var/cache...
Jan 89 21:12:57 VISHALRAJESHBHAI PATEL mount [589]: mount: /var/cache: mount (2) system call failed: No such file or directory.
Jan 09 21:12:57 VISHALRAJESHBHAI PATEL mount[589]:
dmesg(1) may have more information after failed mount system call.
Jan 09 21:12:57 VISHALRAJESHBHAI PATEL systemd[1]: var-cache.mount: Mount process exited, code=exited, status-32/n/a
Jan 89 21:12:57 VISHALRAJESHBHAI PATEL systemd[1]: var-cache.mount: Failed with result 'exit-code'.
Jan 89 21:12:57 VISHALRAJESHBHAI PATEL systemd[1]: Failed to mount /var/cache.
[[email protected] PATEL ~]#

--> systemctl status var-temp.mount

[[email protected] JESHBHAI PATEL 1# systemctl status var-tmp.mount
x var-tmp.mount /var/tmp
Loaded: loaded (/etc/fstab; generated)
Active: failed (Result: exit-code) since Mon 2823-01-09 21:12:57 IST; 1min 21s ago
Where: /var/tmp
What:
Docs: man: fstab (5)
/dev/disk/by-uuid/6ee562e9-337d-4f61-a478-16e6a18879d2
man: systemd-fstab-generator (8)
CPU: 1ms
Jan 89 21:12:57 VISHALRAJESHBHAI PATEL systemd[1]: Mounting /var/tmp...
Jan 89 21:12:57 VISHALRAJESHBHAI PATEL mount [512]: mount: /var/tmp: mount (2) system call failed: No such file or directory.
Jan 09 21:12:57 VISHALRAJESHBHAI PATEL mount[512]:
dmesg(1) may have more information after failed mount system call.
Jan 89 21:12:57 VISHALRAJESHBHAI PATEL systemd[1]: var-tmp.mount: Mount process exited. code=exited. status=32/n/a
Jan 89 21:12:57 VISHALRAJESHBHAI PATEL systemd[1]: var-tmp.mount: Failed with result 'exit-code'
Jan 89 21:12:57 VISHALRAJESHBHAI PATEL systemd[1]: Failed to mount /var/tmp.
[[email protected] JESHBHAI PATEL ~]#

PLEASE ASSIST ME AND SUPPORT ME
THANK YOU

Use last working snapshot.

3 Likes

but i have not any snapshots because i was deleted for some free space

any other solution

There is no guarantee this is going to fix your system, but do this in a live session:

mount /dev/disk/by-uuid/6ee562e9-337d-4f61-a470-16e6a18879d2 /mnt
btrfs subvolume create /mnt/@tmp
btrfs subvolume create /mnt/@cache
4 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.