Grub gone after power outage while coping files

ok I think I was able to format it. Got everything removed learned a lot.

╭─garuda@garuda in /🔒 as 🧙 took 2ms
[🔴] × sudo mkfs.fat -F32 -n EFI /dev/nvme1n1p1
mkfs.fat 4.2 (2021-01-31)

╭─garuda@garuda in /🔒 as 🧙 took 1s
╰─λ ls /dev/nvme1n1p1
brw-rw---- 259,1 root 26 Jan 08:56  /dev/nvme1n1p1

Ok. Start from scratch with the tutorial paying attention to the partition names.

holdon im freaking out. Did I just format my garuda drive?

╭─garuda@garuda in ~ as :mage:
╰─λ sudo umount /boot/efi
umount: /boot/efi: not mounted.

I think I just whipped my 2tb linux drive.

No, your Linux is on /dev/nvme0n1 not /dev/nvme1n1

im not mad, im just freaking out, my 1.8tb drive is formated. Is all the information gone?

no my 1.8tb drive was my linux i have a 1.8tb fat 32 partition… Is it even possible to recover now?

╭─garuda@garuda in ~ as :mage: took 21ms
[:red_circle:] × lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 16.8M 1 loop /run/miso/sfs/livefs
loop1 7:1 0 357.7M 1 loop /run/miso/sfs/mhwdfs
loop2 7:2 0 3.4G 1 loop /run/miso/sfs/desktopfs
loop3 7:3 0 725.8M 1 loop /run/miso/sfs/rootfs
sda 8:0 1 232.9G 0 disk
├─sda1 8:1 1 232.8G 0 part
│ └─ventoy 254:0 0 4.6G 1 dm /run/miso/bootmnt
└─sda2 8:2 1 32M 0 part
sdb 8:16 1 0B 0 disk
zram0 253:0 0 15.3G 0 disk [SWAP]
nvme1n1 259:0 0 1.8T 0 disk
└─nvme1n1p1 259:1 0 1.8T 0 part /run/media/garuda/EFI
nvme0n1 259:2 0 953.9G 0 disk
├─nvme0n1p1 259:3 0 260M 0 part
├─nvme0n1p2 259:4 0 16M 0 part
├─nvme0n1p3 259:5 0 468.8G 0 part /run/media/garuda/82A25B9DA25B950F
├─nvme0n1p4 259:6 0 469.6G 0 part /run/media/garuda/FF79-B04D
├─nvme0n1p5 259:7 0 14.2G 0 part

again I am not mad but please tell me is there any hope of getting that data back?

Yes there are tools that can recover date.
Take your time.
Tomorrow you can continue.

I need to know where to start. Honestly what are the chances ?

Sorry I have to go now.
There are chances.
Give a look here for now.
https://wiki.archlinux.org/title/File_recovery#List_of_utilities

Ok everything I see says the data is gone. I know some of it was backed up. Sigh. I really grateful for you help. I should just gone to bed.

It may be possible to recover data using testdisk.

https://www.cgsecurity.org/testdisk_doc/

3 Likes

Formatted a 1.8tb nvme ssd to fat32. Does anyone know if it is possible to recover any of the data? All replies welcome. Someone please talk to me and just be honest. TY.

I am pretty sure everything was backed up but not really sure. Ill leave the drive empty for a week and then decided if I want to try to figure out recovery.

If you are super lucky you might be able to fix the drive by restoring the old partition table from a saved backup. Read the testdisk documentation carefully before attempting a recovery. I’ve recovered partition tables and data numerous times in the past using testdisk. However, I’ve never had to attempt a recovery from what was originally a BTRFS formatted drive. If the drive was BTRFS formatted that may make recovery more difficult.

I always format my storage drives in ext4, as there is a far wider choice of recovery software that works with that file system.

Good luck to you.

2 Likes

Thanks but I never backed up the partition just copied files manually randomly. LOL I honestly don’t know if there is anything worth saving. Wish I had my terminal recent command history. I think most things that are irreplaceable are saved.

Depending on the file system format, a backup of the file system geometry (partition table) is sometimes created when the drive is formatted and the partition(s) are created. If you are fortunate you might be able to restore from a redundant partition table (if one is available).