You are not logged in.

#1 2017-05-05 14:12:31

Carlovan
Member
Registered: 2017-05-04
Posts: 2

Problems with a failed pastition resize

Yesterday I decided to shrink my Arch partition, so I created a bootable GParted Live USB perndrive, saved my important data on an HDD and booted up GParted.
I resized the partition inside GParted and applied. All went well until the computer suddenly shut down (I guess it tried to go sleep or something but didn't work well...).
But the worst thing is that it rebooted into my main installation and started an fsck which tried (without success) to repair errors. I rebooted into GParted and resized the partition again and this time it went well.
My Arch installation kinda works (I can log in the shell, I can run programs and there are all (I think) my files) but some system files went away. For example the folder /etc/pacman.d disappeared.

I tried to reinstall all base and base-devel packages with the --force parameter, but it's still not working well.. At boot it reachs the "Grafilcal Interface" target and then stops...

Can someone help me?
Thanks all

Offline

#2 2017-05-05 14:17:22

frostschutz
Member
Registered: 2013-11-15
Posts: 1,658

Re: Problems with a failed pastition resize

By resize, do you mean only the end of the partition was moved, or the start of the partition as well? those are very different beasts.

> But the worst thing is that it rebooted into my main installation and started an fsck which tried (without success) to repair errors.

Usually it's game over at this point. k in fsck stands for kill, and c stands for crunch big_smile

Offline

#3 2017-05-05 14:20:33

Carlovan
Member
Registered: 2017-05-04
Posts: 2

Re: Problems with a failed pastition resize

I changed only the end of the partition.

> k in fsck stands for kill, and c stands for crunch big_smile

I thought 'ck' stands for 'check'... sad

Offline

#4 2017-05-05 20:05:50

GenkiSky
Member
From: This account is henceforth dis
Registered: 2017-04-04
Posts: 82

Re: Problems with a failed pastition resize

I'm not totally familiar with parted, but I presume it only changes the partition table. Did you also resize the filesystem itself? If not, you would need to use something like resize2fs (for ext2/ext3/ext4) to resize the actual filesystem, to supplement adjusting the partition table.

Last edited by GenkiSky (2017-05-05 20:06:35)

Offline

#5 2017-05-05 20:35:59

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Problems with a failed pastition resize

GenkiSky wrote:

I'm not totally familiar with parted, but I presume it only changes the partition table. Did you also resize the filesystem itself? If not, you would need to use something like resize2fs (for ext2/ext3/ext4) to resize the actual filesystem, to supplement adjusting the partition table.

Recent parted no longer touches the filesystem but such filesystem resizing capability remains in libparted, which is used by GParted, which also resizes the filesystem AFAIK (haven't used it for a LOOONG time and probably will never use it again) and is what the OP used to resize the partition.

Also the OP explicitly mentioned that the system got haywire _during_ the first resize attempt so...

Last edited by tom.ty89 (2017-05-05 20:37:51)

Offline

#6 2017-05-06 01:03:30

GenkiSky
Member
From: This account is henceforth dis
Registered: 2017-04-04
Posts: 82

Re: Problems with a failed pastition resize

tom.ty89 wrote:

Recent parted no longer touches the filesystem but such filesystem resizing capability remains in libparted, which is used by GParted, which also resizes the filesystem AFAIK (haven't used it for a LOOONG time and probably will never use it again) and is what the OP used to resize the partition.

Oh I see, thanks for clearing that up.

tom.ty89 wrote:

Also the OP explicitly mentioned that the system got haywire _during_ the first resize attempt so...

True. I had interpreted OP as saying that the resize finished successfully, but then the computer rebooted before he finished but due to an orthogonal issue. shrugs

Offline

Board footer

Powered by FluxBB