You are not logged in.
Man, I just think that I screwed up my system. After trying to shrink my windows partition (I’m on dual boot) in order to free up some space and increase my arch’s one, i got stuck in that emergency mode when trying to boot up my arch system.
The one thing that I think is worth mentioning is that I did use a third-party application on windows in order to do the shrinking, once the native disk management didn’t allow me to shrink as much as I wanted.
Any thoughts on what has happened and if it has any solution?
Thanks!
Last edited by pvpmartins (2022-04-10 03:55:40)
Offline
Can you still boot windows?
Did you also grow the linux partition (notably leftwards, moving the beginning of the partition)?
You would also have had to move the filesystem, https://wiki.archlinux.org/title/Fdisk# … partitions
Testdisk can probably locate the filesystem header in this case (if you cannot reconstruct the previous partition table)
Offline
Yes, I can... My disk currently looks like this:
https://i.imgur.com/QOxDg1D.png
Mod Edit - Replaced oversized image with link.
CoC - Pasting pictures and code
Last edited by Slithery (2022-04-10 18:30:42)
Offline
So there's 50GB of unallocated space ahead of the Ext4 partition, I assume you did NOT try to move the linux partition?
There're less than 3GB used on the Ext4 partition, is your linux installatation very rudimentary and would meet that (no desktop environment etcetc, stuff that would easily eat up far more space - also a more or less empty $HOME)?
Offline
No, I think you got it wrong. There're less than 3GB of unused space. On that system I even use KDE as my desktop environment.
Offline
What does it say before going into Emergency Mode?
Online
this what appears right before the emergency mode: https://i.imgur.com/j4xi24J.jpg
Last edited by pvpmartins (2022-04-11 03:04:23)
Offline
You simply fail the /windows10 mount from your fstab because you resized that partition and it got a new UUID - comment/fix that in your fstab (eg. from a live distro or the install iso)
Offline
Ok. So I want first to resize my Arch root partition(nvme0n1p3). But I'm not able to add up the remaining 50.3GiB as cfdisk gives me that message:
https://i.imgur.com/A3oQ0Y1.jpg
https://i.imgur.com/0q8oq4a.jpg
Then I would generate a new UUID. Or am I doing things in a wrong order?
Offline
The windows partition /has/ a new UUID - that's why the mount during the boot fails.
You cannot grow a partition to the left this way and it's a sketchy process anyway: https://wiki.archlinux.org/title/Fdisk# … partitions
Pay close attention to the warning there!
Offline
Don't understand that direction sense about partitions. So I can't grow anything to the left, just to the right? And then... The Arch partition has to be moved to the extreme right of the disk following the empty space?
Well, that sounds kinda complicated. Would you recommend me to just erase my arch partition and installed it again using all the space left? I don't have too many important things on that system anyways...
Offline
[ Start | … | partition to grow | empty space | … | end ]
[ Start | … | empty space | partition to grow | … | end ]
The first case (growing to the right) is trivial.
The second (the empty space is on the left, towards the begining of the disk - your case) is technically impossible. What you have to do is to move the entire partition to the start of the empty space and then grow it.
The moving part is so hazardous that the more simple fronting tools either don't dare to implement it or actively try to protect their users.
It *is* possible and if there's nothing valuable on THE DISK AT ALL (not only the partition - if you fuck this up you can overwrite anything on THE DISK!) you may try (nb that the wiki example moves sectors to the RIGHT)
Otherwise the smarter approach is to just change the partition table (move the partition, but not the content) and re-install the system, yes.
Offline