LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Data lost while building new filesystem on NTFS drive (https://www.linuxquestions.org/questions/linux-newbie-8/data-lost-while-building-new-filesystem-on-ntfs-drive-728463/)

Dipanjan Das 05-25-2009 09:32 PM

Data lost while building new filesystem on NTFS drive
 
Hello everybody
I use RHEL 5(Red Hat Enterpise Linux 5) at my place.But NTFS drives were not being mounted.When I tried to mount NTFS drives using the command: "mount -t ntfs /dev/sda5 /mnt" ,it couldn't recognise the filesystem.Later I issued the command; "mkfs -t vfat /dev/sda5" to convert the following drive to vfat.But it didn't warned me but erased all data.It contained valuable data.Can you tell me any way out to retrieve the lost data?

AwesomeMachine 05-25-2009 10:40 PM

When a partition is formatted, all the information that makes data into files and directories is rewritten. But it isn't wiped out. You can use an unformat utility to get the old file system back, or an ntfs recovery tool to get the data back. With a working drive it's pretty easy. However, unless you want to do file carving, there is no free way to get the data back.

okos 05-25-2009 10:59 PM

Test disk works really well for recovering files. The only issue is that the files will be renamed.
I used it to recover files on my usb drive.

Maybe give it a try?

Regarding mounting the ntfs partition you will need ntfs-3g
Here is some info regarding mounting ntfs partitions
http://www.linux-ntfs.org/doku.php?id=ntfs-en


All times are GMT -5. The time now is 11:57 PM.