On Wednesday 30 March 2005 18:33, Stefan Sander wrote:
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?
sfdisk -d /dev/hda > /mnt/floppy/hda.part NB good idea to save it to a different disk drive.. PaulH -- Paul Hewlett (Linux #359543) Tel: +27 21 852 8812 Cel: +27 72 719 2725 Fax: +27 86 672 0563 --