Can I get some help?

Hello, I shrinked the partition of Rocky Linux 9 for a Windows system. After that the Rocky Linux 9 went into emergency mode that I can’t even go into the system normally. Here I post two pictures of my systems, if you know how to solve the trouble please teach me. Thank you very much.

If you did the default Rocky install with root being an xfs file system and if it was the “/” file system you shrank then in all likely hood you’ve hosed the Rocky install. “xfs” file systems cannot be shrunk. Hope you have a backup.

It is even better than that – the default creates/uses three (or two) partitions.
First (optional) is for “ESP”, which Windows can share.
Second is for /boot – with XFS that does not shrink.
Third is for LVM volume group. The group has three volumes:

  • / – with XFS
  • /home – with XFS
  • swap

If some external tool did resize the partition for LVM, ignoring content,
then the state of the three volumes is quite unknown.


Therefore,

  • What exactly was there (partitions, volumes)?
  • What (which of them) was shrunken?
  • How, with what?

As already said, reinstall and restore of (user) data from backups is the best (and most likely only) approach.

1 Like

Perhaps if you can show how it looked before and after, and how did you shrink it - exact commands used.

Previously I didn’t know anything, until now I know little knowledges. But I do remember what I did when I installed the Rocky Linux system back then. Since I didn’t know anything about computer system or linux system, I should have followed the default guide that I chose the default options proceeding. That said it might be the “xfs” file systems. I don’t even really understand what a backup actually is. So I do not have a backup. Thanks for this message that next time I would have a backup for systems.

Hi jlehtone, at first I have two partitions for Kali Linux and Rocky Linux, now the Kali linux still not fixed due to I shut down computer with tons of software running, Rocky Linux was runing well untill I was asked for installing a Windows system for a interpreting job. I remember that I should have used the Rocky system self having disk partition tool to divide a part of the partition for Windows. How I did that. I may have unmounted (or mounted) the partition making it available for separating partition, and then the tool make the free space a separated partition, in final steps I made the separated partition into a void(if I use this word right) format that it can then be used for installing a Windows. I think I don’t have backups that I can’t restore my data. But I think the suggestion is good, next time if I encounter similar situations I may follow this way. And actually I do not have many personal files in that system, at the end if there be no other option I can reinstall Rocky or other linux.

Hi gerry, I can’t show how it looked before, the after has been in emergency mode, at that time everything ran normally, Rocky allowed the self having partition tool to divide another partition on itself. But the next time, when I opened Rocky, Rocky seemed have been broken. I did not use commands, I used self having software.

Was there any Data of importance on the system? If not, then is probably much easier & faster just to reinstall the OS’s. You then also have the Advantage of being able to get & install the current/newest version of Rocky as well as of Kali.

Besides that, if you need a Windoze installation, it is usually easier to either install that before any Linuxes, as the boot loader Grub which Linux uses can be set to automatically recognise Windoze as well, or better yet, you don’t have to install Windoze as a “bare-Metal” install. You can install Windoze as a VM within Linux, using the builtin Hypervisor QEMU/KVM, which is a type 1 Hypervisor like VMware ESXi or Hyper-V, & it performs very well.

Thanks for the information. There are not many important files in that Rocky. Yet there are files in the Kali that I want to keep. For the Kali, I think I would do that when I have time some more time later. I think the suggestion that reinstall Rocky is an easier and faster way is a very good suggestion. I’ve learn something from that. I might reinstall Rocky soon after I looked up some files how to reinstall a Rocky. As for windows installation, the Windoze has been installed due to a job request earlier on. I learned that it is better install Windoze before, then Linux. Thanks for this, you teach me this knowledge. If in the future, I need to do this, I will follow what you have taught me. For install Windoze as a VM, I know that, but also thanks for providing me that much information. Now I know more. After all, thank you. Thank you All who replied to me.

Backup is a copy of important files. That makes it possible to restore – copy file(s) back – from the backup, if the files are lost (due to hardware failure, file corruption, accidental delete or change, …).

One should obviously make backup copies frequently, or else the copy will not have the latest data.

One should also keep earlier backups. If you overwrite backup after mistake happens, then you lose the earlier good version of file that was in the earlier backup.

The backups should also be on separate device, perhaps even in different building/continent. If backups are in same drive as original files and that drive breaks, then you have no backup.

Yeah. Understand. Thank you.