You are not logged in.

#1 2022-04-10 03:54:43

pvpmartins
Member
Registered: 2022-02-06
Posts: 46

Stuck in emergency mode after resizing windows volume.

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

#2 2022-04-10 07:01:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,704

Re: Stuck in emergency mode after resizing windows volume.

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

#3 2022-04-10 17:51:24

pvpmartins
Member
Registered: 2022-02-06
Posts: 46

Re: Stuck in emergency mode after resizing windows volume.

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

#4 2022-04-10 19:53:48

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,704

Re: Stuck in emergency mode after resizing windows volume.

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

#5 2022-04-11 00:53:38

pvpmartins
Member
Registered: 2022-02-06
Posts: 46

Re: Stuck in emergency mode after resizing windows volume.

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

#6 2022-04-11 01:23:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Stuck in emergency mode after resizing windows volume.

What does it say before going into Emergency Mode?

Offline

#7 2022-04-11 02:20:09

pvpmartins
Member
Registered: 2022-02-06
Posts: 46

Re: Stuck in emergency mode after resizing windows volume.

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

#8 2022-04-11 06:24:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,704

Re: Stuck in emergency mode after resizing windows volume.

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

#9 2022-04-15 18:42:22

pvpmartins
Member
Registered: 2022-02-06
Posts: 46

Re: Stuck in emergency mode after resizing windows volume.

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

#10 2022-04-15 20:17:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,704

Re: Stuck in emergency mode after resizing windows volume.

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

#11 2022-04-16 00:15:13

pvpmartins
Member
Registered: 2022-02-06
Posts: 46

Re: Stuck in emergency mode after resizing windows volume.

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

#12 2022-04-16 06:26:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,704

Re: Stuck in emergency mode after resizing windows volume.

[ 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

Board footer

Powered by FluxBB