On Wednesday 30 March 2005 17:22, Paul Hewlett wrote:
On Wednesday 30 March 2005 15:42, Dan Am wrote:
Hi Folks,
I erased the partition table of a running machine. Shame on me. Machine is still running though. There _must_ be a way to get theinformation from the running kernel. As fdisk states: "The kernel still uses the old table" I tried /proc/partitions, but can't seem to get the cylinders right. At the moment I am copying 120GB data over ethernet, which is kind of tedious. Anyone ever recover from this ?
Regards Dan
/proc/partitions /proc/diskstats
may give u enough info to recreate the partition.
use sfdisk to save the partition file in future in case u do this again :-)
Please can you give an example on using sfdisk to save the partition table? Regards Stefan