#[SOLVED] Resizing

121 messages · Page 1 of 1 (latest)

arctic flax
#

Hello, I've been avoiding this problem for a long time but its time finally came. I need to resize my /boot partition. I've been researching for like 1h about this, watching multiple videos but they either have some other configuration or dont do it on the boot folder. I am also scared because I dont want to break something. I have a dual boot machine. Arch is installed on one of my ssds. It was a 1TB ssd. I slpit it into 200 for Arch and the rest windows. I also have a linux swap that I dont use. What I want to do is: either from those 200 or from the swap to give /boot partition enough space. Idc, I would give him like 20gb just so I dont have to get this headache again...
I am willing to pay if this is something that would take a lot of time or very complicated :C

stark path
#

That's definitely a strange partition layout, so did you just use the EFI partition that was originally made by windows?

arctic flax
#

Is there any problem with that?

stark path
#

As it is only 100mb, it isn't big enough to be mounted at /boot without some tweaks, though I assume you've noticed that

#

Besides resizing, there are a few other things you can do to get around this

#

What bootloader are you using?

arctic flax
#

Grub

arctic flax
stark path
# arctic flax Grub

Because GRUB is able to boot from things outside of the EFI partition, you could just mount it somewhere else, like /efi, and have the kernel and initramfs be stored in your root partition instead

balmy shore
#

dw

#

it’ll be fine

stark path
#

First, delete all of the stuff inside /boot besides the EFI directory

#

Then, run umount /boot to unmount the partition, and mount --mkdir /dev/sdb2 /efi to remount it at the new mount point

arctic flax
#

okay

#

from this

#

Going to this

stark path
#

yeah, only keep the EFI directory in there

arctic flax
#

okay done

stark path
#

Now reinstall the linux and amd-ucode packages

#

And then reinstall GRUB with grub-install --efi-directory=/efi and grub-mkconfig -o /boot/grub/grub.cfg

arctic flax
#

Wait wait wait

#

reinstall linux??

#

Do I not need a flash drive?

stark path
#

It's just reinstalling the kernel

#

Reinstall those packages with pacman

arctic flax
#

Ohh okay

#

umm

#

god dammit

#

I see some fixes on the internet and idk if they are useful

stark path
#

Do you see the files in `/boot?

arctic flax
#

I see this

#

Looks good

#

I think

arctic flax
#

I was trying

#

do I need to be inside charoot?

stark path
#

No

#

Can you show lsblk?

#

I have to go for a bit, sorry

arctic flax
#

Noo, dont leave me WTF
I am scared my pc will stop working now

balmy shore
#

dwdw

stark path
#

hm

arctic flax
balmy shore
#

everything will be fine

arctic flax
#

proof?

balmy shore
#

all the ppl who suceed in a similar operation

arctic flax
#

I am not closing this pc now :)

stark path
#

Try logging into root with su - and running that command again

stark path
#

Try unmounting it and mounting it again

arctic flax
#

Something weird

#

happens here

#

How can it be mounted and unmounted at the same time??

stark path
#

No, unmount /efi, there isn't anything mounted at /boot

#

oh I see the issue

arctic flax
#

oh

#

I was going to post a ss of nothing working

#

lol

stark path
#

You did /ef1 instead of /efi

arctic flax
#

Oh

#

god dammit

#

How do I fix my mistake

#

going back and mounting in efi doesnt actually seem to work

#

oh wait

#

I think it does

boreal cloud
#

I've deleted the slur, will ask you don't use slurs, even when directed to yourself.

stark path
#
umount /ef1
rm -rf /ef1
mount --mkdir /dev/sdb2 /efi
#

And then run the GRUB commands again

arctic flax
#

Great Succes!!

#

:D

stark path
#

did you just react with a nerd emoji in response to being told to not say slurs? uh

arctic flax
#

Boom. This is how it was supposed to look, right? :D

stark path
#

yeah

arctic flax
#

Yuppi

stark path
#

you should be fine to reboot now

arctic flax
#

After rebooting, is finished?

stark path
#

You'll need to edit the fstab so the mount point is /efi instead of /boot

#

You would probably want to do that before rebooting, but as long as you reboot after editing it and before you update it should be fine

arctic flax
#

wait wait, how would do that?

#

You mean from this

#

To this

stark path
#

yep

arctic flax
#

Perfect

#

:D

#

Anything else? :D

stark path
#

That should be all

arctic flax
#

Perfect

#

Tho I am coffused

#

on how I got more size to update my system

stark path
#

You shouldn't need to anymore, if you mean the EFI partition

arctic flax
#

So I can uppdate my system now

stark path
#

You hopefully should be able to

arctic flax
#

Yaaay

stark path
#

👍

arctic flax
#

Over 1k thinggs were uppdated

#

lolol

#

Thank you so much! Anything I could help you with for your time invested in me?

stark path
#

You don't need to do anything for me

arctic flax
tardy marlinBOT
#

Me Derp received a thank you cookie!

arctic flax
#

++done

stark path
#

... solved

arctic flax
#

how was the command

white blazeBOT
#

#9742 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.

  • You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
  • You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".

Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you