Deleted partitions on in use disk
oops.
Can I recover the partitions before I reboot and my box won't boot anymore :) |
Yes, if you write the exactly same partition table back everything will be as before. You can use testdisk to get clues where the partitions were.
|
Thanks, that looks like a nice tool, I'm loading it on all my boxen now.
|
Quote:
Execute: Code:
fdisk -l /dev/sda Only if fdisk cannot see your partition anymore, then you should use testdisk. . |
Not 100% sure, but methinks fdisk -l /dev/sda tries to read the partition table from drive, while plain fdisk -l reads it from /proc ... and may succeed even when the first command fails.
|
Quote:
PS. Running TestDisk from the recovered hard disk drive may be not a good idea. |
For next time, use gpart
http://repository.slacky.eu/slackwar.../system/gpart/ It helped me to recover partition tables deleted a year earlier (obviously the filesystem was partially damaged, but partition tables was consistently restored) |
For next time, use gpart
http://repository.slacky.eu/slackwar.../system/gpart/ It helped me to recover partition tables deleted a year earlier (obviously the filesystem was partially damaged, but partition tables was consistently restored) |
All times are GMT -5. The time now is 04:20 AM. |