#[SOLVED]Help with increasing boot partition to be able to upgrade my linux
221 messages · Page 1 of 1 (latest)
what partitions do you have
efi or bios
efi
@warm nova can you name every partition you have for arch
on the ssd i run linux on, i have one partition named "/" and on the ssd i run windows on i have one partition named "/boot" where i have grub installed
i dont know if you mean something else
right now im booted in linux yes
well, basically windows is installed on ssd1 which is where the boot partition that holds grub bootloader is
and can boot just from that one ssd
and on ssd2 its only linux
right so
@warm nova windows probably has its own boot partition so why dont we just use that
what do you mean by that?
do you have a partition called windows boot manager
lsblk -f
nvme0n1 259:1 0 931.5G 0 disk
├─nvme0n1p1 259:4 0 100M 0 part /boot
├─nvme0n1p2 259:5 0 16M 0 part
├─nvme0n1p3 259:6 0 930.8G 0 part /windows
└─nvme0n1p4 259:7 0 604M 0 part
nvme0n1
│
├─nvme0n1p1
│ vfat FAT32 2ACB-79B0 3.4M 96% /boot
├─nvme0n1p2
│
├─nvme0n1p3
│ ntfs A4FECC4BFECC1786 41.7G 96% /windows
└─nvme0n1p4
ntfs DCDCA428DCA3FAC2
thats the windows ssd
its the second part i just edited
lsblk -f | grep -i "windows boot"
format is a bit off
is there any output
nvme1n1
├─nvme1n1p1 ext4 /
└─nvme1n1p2 ntfs
nvme0n1
├─nvme0n1p1 vfat /boot
├─nvme0n1p2
├─nvme0n1p3 ntfs /windows
└─nvme0n1p4 ntfs
and there are 23 "loop" idk if you care about those
ignore that
ok so heres the thing
youve been lied to
and your boot partition doesnt need to be any bigger than 1 MiB
What do I need to do then?
however you shouldnt mount it to /boot
so uhh
open a terminal
do the following
actually wait
one quick thing
can you ls /mnt for me
and tell me if theres any output
nothing
folder empty
yeah also empty
mv /boot/* /mnt/ umount /boot mv /mnt/* /boot
then uh
can you do this
ls -R /boot | curl --data-binary @- https://paste.rs
okay done
output https://paste.rs/GmH
almost done
rmdir /boot/System*
ls -A /mnt/ /boot/.*
then can you send the output of that
/boot/.:
EFI initramfs-linux-fallback.img 'System Volume Information'
grub initramfs-linux.img vmlinuz-linux
/boot/..:
bin etc lib mnt RECOVERDIR sbin swapfile usr
boot home lib64 opt root snap sys var
dev install-script.sh lost+found proc run srv tmp windows
/mnt/:
soo i run this now?
okay done
well ig 4
mv /boot/EFI /mnt mount /boot mv /mnt/EFI /boot
what text editor do you use
notepadqq
k then
oh wait actually
fuck it
rm /etc/fstab && touch /etc/fstab
that should be it
try rebooting to make sure everything works ok
youre probably fine
No but I have a second pc I can make any USB you tell me to
I mean that's what I used to install it, are there alternatives?
i would prefer you just use the arch iso bc its pretty easy to use but if the terminal scares you we can use any other linux iso
No it's okay, so I'll just make a arch Linux USB with etcher real quick?
yeah sure
Okay ready
@warm nova boot into it first of all
best option is copy to ram but feel free to try the first one
doesnt really matter
Uhh for starters I boot in the install medium, right?
right
second option best & first option is fine
dont choose anything else
Okay I'm in
I chose first
wonder why it says copy to ram
anyway
connect to internet
if you use wifi
then
I use Ethernet so should be fine I think
yeah
mount root partition to /mnt
uh
then arch-chroot /mnt
then mount /dev/nvme0n1p1 /mnt
find -name normal.mod and send output
When you say root you mean "mount / /mnt"?
no, it should be /dev/nvm…
nvme1n1p1
yeah
it gets mounted to / normally
and / is known as root
hence it is called the root partition
anyway
follow the rest
weird
mount --mkdir /dev/nvme0n1p1 /boot/efi
grub-install --target=x86_64-efi --efi-directory=/boot/efi
@warm nova try this
First command gives me unrecognized option --mkdir
that's weird
maybe you typed it in wrong
just replace it with this
mkdir /boot/efi mount /dev/nvme0n1p1 /boot/efi
Hmm can't find in /etc/fstab
!! /boot/efi
typed that command wrong
but this does it again but fixed
Okay so now I continue installing grub?
yeah grub-install --target=x86_64-efi --efi-directory=/boot/efi
then exit and reboot
cross your fingers
wait no
if you havent rebooted yet
I haven't pressed enter yet
stay in chroot
on the grub-install?
Yes haha
do that
then grub-mkconfig -o /boot/grub/grub.cfg
then exit and reboot
and that will probably work
Thank you, it Works I'll just have to add windows to grub bootloader
https://wiki.archlinux.org/title/Grub#Detecting_other_operating_systems
ping if you need help, should be pretty straightforward
good luck
And now I managed to update my arch Linux installation
Thank you for all your help.
you just got $\\LaTeX$’d received a thank you cookie!
yw
[SOLVED]Help with increasing boot partition to be able to upgrade my linux
Um hey, sorry for pinging, from installation media it doesn't even detect windows and when I try from arch Linux although it does detect it(I mean grub-mkconfig says found windows entry) when I try to boot grub it says no such device
Unknown file system
hm can you boot windows directly
also can you show the full error
picture or not idc
Yes, Windows work fine
@warm nova can you mount everything (esp goes to /mnt/boot/efi or /boot/efi if in chroot)
and then run grub-mkc…
When you say everything? I'm in root and / is my Linux and /mnt the 100mb efi partition
wdym in root, chroot?
Yes
mount /dev/nvme0n1p1 /boot/efi
then uh
grub-mkc…
and tell me if it has any errors as well as if it mentions windows
@warm nova now try rebooting into linux
you probably won't have windows in grub still but you can at least find it
Aaa again normal.mod, not found, let me do the same thing we did before to fix grub at least
sounds good
dont bother with mkdir this time
Okay grub works now, only linux
perfect so uh
boot into linux and
actually wait
boot into windows
open disk editor thingy
and send a screenshot
can you do that
@warm nova
Okay one moment
interesting
uh
boot into linux
sudo -s mount /dev/nvme0n1p1 /mnt grub-mkconfig -o /boot/grub/grub.cfg
That's weird
Grub is broken again now
But there is a boot option named arch which is grub? Weird
It found it
Basically it works just fine but for some reason I need to select arch which I didn't have before, and grub which I had before doesn't work
But I don't care about the name, just a bit odd, thank you for your help and sorry for the delay
i can help you fix that
btw you can remove grub entirely and boot into arch the same way youd boot into your usb
while windows boots by default without a boot loader menu, as it did before
or vice versa
boot into windows the same way you do with your usb
and then arch boots by default
Basically I had it always boot to grub, and then it would have selected the last one I booted and I could just select which ever I wanted
Same with now, it's just that it's named arch and grub isn't working, which idk why or what the difference even is