complete beginner so dont judge me but few days ago been trying to get more into linux so i installed arch. just today i deleted a separate partition on my disk and i couldnt access arch anymore, it wasnt showing on the bios. so i tried installing arch again using archinstall and it unmounted all the partitions on my disk.

is everything just gone now? i feel dumber and dumber as i write this because i just dont know what to do.

  • Gacrux@lemm.ee
    link
    fedilink
    arrow-up
    5
    ·
    9 months ago

    been a while since i done this so i might have gotten some parts wrong:

    1. get a thumbdrive/usb drive/whatever you call it
    2. install the arch iso on it. im assuming you still have another device you can boot to.
    3. plug in the usb into your broken device. turn it on. then boot into that usb. you probably did this while installing arch so im assuming you know how to do that.
    4. once in, mount your broken arch install by doing mount /dev/<whichever partition it was> /mnt. take note of the space between the partition and the /mnt.
    5. then do arch-chroot /mnt
    6. from there just install grub like normal (just do whatever you did to get grub working in the first place).
      • Gacrux@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        9 months ago

        the partition doesnt exist? what does lsblk say?

        if the partition really doesnt exist then you either deleted the partition or destroyed the partition table. either way, if you dont have important data on it then id recommend you just abandon the install, delete everything and make a new one. otherwise you could try your hand at some linux file recovery tools (windows ones are almost certainly a scam).

        • zephyr@lemmy.todayOP
          link
          fedilink
          arrow-up
          1
          ·
          9 months ago

          i guess they got deleted. it sucks because ive used windows for years, and all the data is just gone. i do think i can just start fresh though.

          • Moobythegoldensock@lemm.ee
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            9 months ago

            Sorry that happened to you. Best practice is to always back up anything important before messing around with partitions, and if the guide you were following didn’t warn you, shame on them.

            Have you tried typing “lsblk” on that Arch install disk? It might be able to find a partition you can try to mount to get some of the data off.

            You did decide to jump into the deep end with Arch, and hopefully this doesn’t turn you off linux. On the bright side, now you’ve done the worst you can do, so you can feel free to tinker risk-free at this point. The worst that can happen is you muck up the install again, have to delete all the partitions, and keep trying until it works.