recovering a 'ntfs' partition which got ruined by mkfs.ext4 command
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
recovering a 'ntfs' partition which got ruined by mkfs.ext4 command
I just ruined my /ntfs partition. I used the mkfs command and stopped it by ^C immidiately, but it was too late.
mkfs.ext4 /dev/sdb1
Is there a way to recover NTFS partition now ?
The partition </dev/sdb1> was 'ntfs' and mkfs.ext4 did not check if it was a ext4 or give any pre-check warning, just went ahead with making the ext4 fs on a ntfs partition.
I think you'll need data recovery tools as the fat will be gone
eg. GetDataBack
cheers
my intention is to get back the NTFS 'ditectory table' .. whole disk structure back. Recovery tools give you piece meal specific data at a time.
I mean I would want to reverse the damage. Some how, ntfs should read back itself and create back all the directory structure (assuming its somewhere there not lost )
You might want to id the partition as NTFS in fdisk. Then run "ntfsfix". This may mark it so that Windows runs chkdisk on it when it boots up. I don't know how much redundancy there is in the NTFS filesystem, or if too much was deleted for chkdisk to run.
Distribution: x86_64 Slack 13.37 current : +others
Posts: 459
Rep:
I once managed to slice up an ntfs partition with a BSD system and I used Test disk as found on the Parted magic live CD to restore the partition table,however yours. sounds like you have overwritten data on the partition, Ohhh
If there is a way or a tool you might find what you need on either Parted magic live CD or even better the UBCD... good luck.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.