seethru Posted December 31, 2003 Share Posted December 31, 2003 I'm running freebsd, and my drive which holds ALL of my data, besides programs and the actual os, has had it's partition table wiped.....basically the machine, after having this drive mounted, rebooted itself and since then I have not been able to re-mount the drive......I'm hoping there is a way for me to recover my data, because thats 59gb that I really can't afford to lose. Someone out there know anyway to re-write a partition table safely? Link to comment Share on other sites More sharing options...
kjordan2001 Posted December 31, 2003 Share Posted December 31, 2003 You "should" be able just to recreate the partitions with your favorite partitioning software (make sure they're the same size as they were before) and hopefully if your data isn't corrupted, it should be alright as long as you don't try and format the partition. Link to comment Share on other sites More sharing options...
Danrarbc Posted December 31, 2003 Share Posted December 31, 2003 Partition Magic even has an undelete function that'll restore it without having to remember the exact size that partition was. Link to comment Share on other sites More sharing options...
mr_daemon Posted December 31, 2003 Share Posted December 31, 2003 Partition Magic even has an undelete function that'll restore it without having to remember the exact size that partition was. Never works. And can I read BSD filesystems? I'd support KJordan's advice... Link to comment Share on other sites More sharing options...
kjordan2001 Posted December 31, 2003 Share Posted December 31, 2003 Never works.And can I read BSD filesystems? I'd support KJordan's advice... I think Partition Magic can do BSD stuff, although I haven't used it in forever, don't like it too much. The way I said is actually the way you can free resize NTFS too. You defragment and find how much space it needs, and you can delete the current partition and recreate a new smaller one. This works because the data is within the partition, so it should work for you as long as you remember the size you had. Link to comment Share on other sites More sharing options...
Danrarbc Posted December 31, 2003 Share Posted December 31, 2003 ::opens up D: drive (/mnt/docs in Linux):: ::sees 10GB of data he restored using said function:: Worked for me. Then again it was FAT. Guess I have to see if it'll work with other formats. (I'm pretty sure the program doesn't support BSD filesystems) Yes, KJordan's adivce is the most likely to work if you know exactly how things were set up. Edit: It seems the undelete function only works on NTFS/FAT Link to comment Share on other sites More sharing options...
neowin_hipster Posted December 31, 2003 Share Posted December 31, 2003 well cat /dev/hda > pr0n.mpg seriously, how do you know its only the partition tables and not a drive failure. There are tools for data recovery, such as sector editors and the likes. If this partition fixer thingymabob doesn't work then you might wanna try that. qtparted - front end for gnuparted is pretty good. Link to comment Share on other sites More sharing options...
seethru Posted December 31, 2003 Author Share Posted December 31, 2003 ok, well the entire drive was partitioned in one partition.....so you're all saying that if I just run fdisk and tell it to partition it all under the ufs filesystem that my files should still be there? Link to comment Share on other sites More sharing options...
seethru Posted December 31, 2003 Author Share Posted December 31, 2003 that didn't fix the problem, I still can't mount it....great. Link to comment Share on other sites More sharing options...
seethru Posted December 31, 2003 Author Share Posted December 31, 2003 there it goes, mounted....but lost some of the files :\ Link to comment Share on other sites More sharing options...
Danrarbc Posted December 31, 2003 Share Posted December 31, 2003 Look on the bright side, better than losing every file :) Link to comment Share on other sites More sharing options...
seethru Posted December 31, 2003 Author Share Posted December 31, 2003 sure is.....except some of the files I can SEE are failing when I'm trying to back them up.........this is starting to sound more and more like the hard drive failed than anything else.......as I'm trying to transfer them over the ftp some of them say i/o error.............which really sucks obviously heh Link to comment Share on other sites More sharing options...
Tek Posted December 31, 2003 Share Posted December 31, 2003 What kind of hard drive is it? Are you using DMA? If you are, turn if off. If you're not, turn it on. Play with some settings, see what happens. Link to comment Share on other sites More sharing options...
Recommended Posts