You are not logged in.

#1 2023-05-01 14:07:43

sosed
Member
Registered: 2021-09-14
Posts: 10

did mkfs.ext4 on device not partition

Hi. I did a mistake and run mkfs.ext4 on
/dev/sda rather on the partitions, how to undo this ?
It now throw error when i try to create partitions using fdisk

Last edited by sosed (2023-05-01 14:25:18)

Offline

#2 2023-05-01 16:59:01

ua4000
Member
Registered: 2015-10-14
Posts: 430

Re: did mkfs.ext4 on device not partition

To be sure, this is not a data rescue question ?

a) you don't need partitions in all cases, e.g. if you use the disk only as data volume, you can put the ext4 directly on the disk like you did.
b) fdisk has some options to wipe existing file-system or partition-table signatures: https://man.archlinux.org/man/fdisk.8
c) or start from here: https://wiki.archlinux.org/title/Securely_wipe_disk

Offline

Board footer

Powered by FluxBB