#[SOLVED] Switching to secondary SSD which has arch installed

89 messages · Page 1 of 1 (latest)

sleek ether
#

Hi, I use a laptop which had arch installed on it but I want Windows as well cuz certain applications didn't support linux so I decided I'd instal l the two OSes on two separate drives. I am not much of a hardware person, so I gave my laptop to a shop and he put in a new SSD and installed Windows 10 on it for me. Now, starting my laptop boots to Windows. I thought I'd be able to switch to the drive with linux on it by changing the boot order, but the boot order only shows the windows' os manager, cd/dvd, usb, etc, the old SSD doesn't show up.

Is there any way I could switch to the secondary drive with arch on it? I don't mind doing a fresh install too since I don't have any data on the secondary drive.

#

Also, I had forgotten to enable os-prober in the grub config before installing the new SSD but I am not sure that's relevant since I am unable to access grub anyway.

bitter vigil
#

It doesn't seem like Windows has its own EFI partition, did it somehow use the Linux one? If so, it probably wiped it or something and you need to recreate the contents, or make a separate one

#

Also - I don't know about you, but on my motherboard, "EFI bootloader entires" are separate from the list of devices you can boot from

sleek ether
#

also sorry for the late reply, i was looking for my usb

#

how do i fix this now?

bitter vigil
#

Do you want to continue using the same EFI partition for both windows and archlinux?

#

Also, don't use /boot/efi - it's deprecated

#

Use /boot instead

sleek ether
sleek ether
austere irisBOT
#

Miałkotnik :3 received a thank you cookie!

bitter vigil
#
cd /mnt/boot/efi && rm -rf *.img grub EFI/GRUB EFI/arch EFI/grub-install vmlinuz*
#
umount -R /mnt/boot/efi
#

and do lsblk -f

sleek ether
bitter vigil
#

-f is the force flag, you can not use if if you don't want to, but rm might complain

#

if you did rm -rf and it wiped everything, you must've done something wrong

#

we're just removing all the linux boot files on your current EFI partition here

#

and actually it's optional since you probably want another EFI partition for that anyway

bitter vigil
# bitter vigil and do `lsblk -f`

i also want to see the output of this because it seems like you have a few potential candidates for a new EFI partition so you can avoid shrinking your root partition entirely

sleek ether
#

made a thread bout it here too

bitter vigil
#

well it looks like you weren't cautious enough and the timeshift thingy actually pointed to your current linux installation

sleek ether
#

ran the command without the force flag and it looks like it worked fine

bitter vigil
#

good

sleek ether
#

i'll unmount it

bitter vigil
#

from your windows screenshot i saw 512 MB of unallocated space on your linux disk

#

does it show up when running cfdisk /dev/nvme0n1?

sleek ether
bitter vigil
#

do you want to use it as your new EFI?

#

also - moving the EFI partition to your windows disk would probably require reinstalling windows

sleek ether
sleek ether
bitter vigil
#

okay

bitter vigil
#

okay

#

just keep in mind that windows might break when you ever swap disks or something

#

it's windows so you never know

#

so now create the new partition

sleek ether
#

but yea i am aware windows is a bit of a bitch

sleek ether
bitter vigil
#

yes

#

format it as FAT32

sleek ether
#

yep, done

bitter vigil
#

do you know what to do next

sleek ether
#

mount everything and then generate fstab?

bitter vigil
#

yes

#

make sure to overwrite it

#

and mount it as /mnt/boot

sleek ether
#

just to make sure, i don't need to format the home partition again, right?

#

i'd assume that will wipe the existing data/packages

bitter vigil
#

no need for that

#

you don't format anything except the /boot partition you just created anyway

sleek ether
#

sorry to bother you again but i couldn't enable network manager while in chroot

sleek ether
#

do i need to re-install any packages?

sleek ether
bitter vigil
sleek ether
bitter vigil
#

well

#

that usually means it succeded

#

also i don't see why you needed to re-enable it

sleek ether
bitter vigil
#

did you remember to reinstall the kernel, microcode, grub, (possibly) regenerate initramfs and regenerate grub's config?

sleek ether
#

for a stupid reason now that i thibk about it

sleek ether
bitter vigil
#

you are trying to enable NetworkManager in your USB which doesn't make any sense

sleek ether
#

but the command doesn't return anything when i do in chroot, either

#

should i assume that it worked cuz chroot is ignoring the status command

bitter vigil
#

i don't think it'll give you a confirmation like "created symlink blah blah service blah blah"

#

because i assume you already had it enabled

#

and for some reason you're doing it again

sleek ether
#

makes sense, i just didn't think it would still be enabled after messing with the partitions and everything

bitter vigil
sleek ether
#

anywho, i configured grub and arch is now back up and running again. thanks for all your help and answering my questions, really appreciate it! @bitter vigil

austere irisBOT
#

Miałkotnik :3 received a thank you cookie!