You are not logged in.

#26 2022-10-29 21:09:15

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Computer wont boot

So the FS is ~195MB bigger than the partition.
When you restored the partitions after trying to grow the root partition, did you restore the *exact* previous sizes?

Try to use one of the alternative superblocks, https://wiki.archlinux.org/title/File_recovery#e2fsck

dumpe2fs -h /dev/sda3
fsck.ext4 -n -b #superblock position here#

Offline

#27 2022-10-29 21:11:25

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

seth wrote:

So the FS is ~195MB bigger than the partition.
When you restored the partitions after trying to grow the root partition, did you restore the *exact* previous sizes?

Try to use one of the alternative superblocks, https://wiki.archlinux.org/title/File_recovery#e2fsck

dumpe2fs -h /dev/sda3
fsck.ext4 -n -b #superblock position here#

All I said when restoring it was just 1000GB, because it didn’t tell me the exact size it was before…

Offline

#28 2022-10-29 21:17:22

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

Also, how do I actually determine the superblock position?
(also, the filesystem state also said clean with errors. what.)

Offline

#29 2022-10-29 21:39:22

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Computer wont boot

The error is that the FS is configure to be bigger than the actual partition - if you're super lucky, that's all.
You can list the alternative suprtblocks w/ "dumpe2fs -h /dev/sda3" - I noted the command and linked the wiki entry detailing on it…

Offline

#30 2022-10-29 21:42:00

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

seth wrote:

The error is that the FS is configure to be bigger than the actual partition - if you're super lucky, that's all.
You can list the alternative suprtblocks w/ "dumpe2fs -h /dev/sda3" - I noted the command and linked the wiki entry detailing on it…

I already did the command, i just dont know where it is…

Offline

#31 2022-10-29 23:27:13

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

No, seriously, I did the command but I don’t know how to find the superblocks…

Offline

#32 2022-10-30 00:11:46

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Computer wont boot

Kxed wrote:

No, seriously, I did the command but I don’t know how to find the superblocks…

Post the output if you're not sure how to interpret it.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#33 2022-10-30 00:17:06

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

cfr wrote:
Kxed wrote:

No, seriously, I did the command but I don’t know how to find the superblocks…

Post the output if you're not sure how to interpret it.

Ok, I will. Sorry for posting another one of these…
https://share.icloud.com/photos/03bW72g … pfQK_u_pjQ

Offline

#34 2022-10-30 00:40:02

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Computer wont boot

Sorry, I don't know how to use that output to locate the superblocks either. I would try this instead

dumpe2fs /dev/sda3 | grep superblock

The output with -h seemed to tell me everything but superblock locations, even though the manual page claims it will tell me only those.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#35 2022-10-30 06:30:58

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Computer wont boot

Either there're no backup superblocks or dumpe2fs (no longer) prints them (seems the latter since it doesn't here either)

mkfs.ext4 -n /dev/sda3

will also print the backup superblocks.
The "-n" is VERY!!! important, otherwise you'll create a new filesystem and your data is gone!

Do you already have a backup of the disk?
If you have a backup, you can just fsck /dev/sda3 and have it repair the filesystem. It was created on october 7th and last mounted and written to on october 29th, 15:12 - what was probably around the time of your last posts on the forum…

Offline

#36 2022-10-30 12:15:25

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

seth wrote:

Either there're no backup superblocks or dumpe2fs (no longer) prints them (seems the latter since it doesn't here either)

Do you already have a backup of the disk?
If you have a backup, you can just fsck /dev/sda3 and have it repair the filesystem. It was created on october 7th and last mounted and written to on october 29th, 15:12 - what was probably around the time of your last posts on the forum…

I’m not sure if I do have a backup. I don’t know how to check if I do either. I remember one on the other disk, but I’m not sure…

Offline

#37 2022-10-30 12:18:54

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Computer wont boot

The idea would be to have you make an image of sda3 *now* before you manipulate it, so if the manipulation makes things worse, you can at least return to the current status quo.

Offline

#38 2022-10-30 13:07:19

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

Unfortunately, there’s no more space on the other hard drive. Should I do it anyway?

Offline

#39 2022-10-30 13:23:38

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Computer wont boot

Only you can answer that question, depending on how problematic data loss on sda3 would be for you (in comparism to waiting to get a new backup drive first)
From the overall situation I don't think having fsck clean the FS will result in a disaster BUT: idk that for sure either.

Offline

#40 2022-10-30 17:51:36

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Computer wont boot

seth wrote:

Either there're no backup superblocks or dumpe2fs (no longer) prints them (seems the latter since it doesn't here either)

dumpe2fs prints them if I don't use -h.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#41 2022-10-30 19:33:17

seth
Member
Registered: 2012-09-03
Posts: 51,017

Offline

#42 2022-11-18 23:25:06

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

Alrighty, the second hard drive has arrived. I will check if it’s a fraud tomorrow and then, if it’s real and fast, use it on the computer to copy everything to. I will update you on the situation later.

Edit: LMAOOOOO IT WAS AN ENCLOSURE, HOW COULD I BE SO DUMB

Last edited by Kxed (2022-11-22 13:52:28)

Offline

#43 2022-12-06 02:28:08

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

https://share.icloud.com/photos/0ebWMD0 … VOTCjC0h5w Does this mean that it was fixed?
Edit: i checked fdisk again and the end of the drive didnt change… how do i find where my partition originally ended?

Last edited by Kxed (2022-12-06 02:33:11)

Offline

#44 2022-12-06 07:32:17

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Computer wont boot

Post an updated output of "lsblk -f", testdisk should™ be able to recover previous partitions.
In doubt post its findings as well.

Offline

#45 2022-12-06 13:26:32

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

Here’s the output of lsblk -f: https://share.icloud.com/photos/04a1AdQ … ocogB9BrJg
And the output of the testdisk file structure checker.   https://share.icloud.com/photos/032WNEt … NHKECKjncA Maybe i found the correct disk size now?

Offline

#46 2022-12-06 13:49:18

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

Since i think i found the correct partition end, does fdisk delete data when you delete and remake a partition to make more space?

Offline

#47 2022-12-06 14:20:45

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Computer wont boot

The partitions weren't mouted when you ran lsblk.

Does the testdisk result differ from the current layout (fdisk -l /dev/sda)

Please avoid posting photos of your monitor - if you've working internet

fdisk -l | curl -F 'file=@-' 0x0.st

will upload the output to a pastebin service.

Edit: fdisk writes the partition table - it does in and by itself not touch your filesystem.
Those would be later errors.

Last edited by seth (2022-12-06 14:22:39)

Offline

#48 2022-12-06 15:07:25

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

seth wrote:

Does the testdisk result differ from the current layout? (fdisk -l /dev/sda)

Yes actually, it does! http://0x0.st/oDoX.txt

Offline

#49 2022-12-06 15:15:57

Kxed
Member
From: Tennessee
Registered: 2022-10-06
Posts: 78

Re: Computer wont boot

Alrighty, so I set the drive end to the one shown in testdisk, but i still cant boot into arch! What else is going on here?

Last edited by Kxed (2022-12-06 15:16:17)

Offline

#50 2022-12-06 15:18:56

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Computer wont boot

Something went wrong on the 0x0.st post

What errors do you get for the failing boot and what does fsck now report?

Offline

Board footer

Powered by FluxBB