parted: rescue

1 
1 2.4.9 rescue
1 ------------
1 
1  -- Command: rescue START END
1      Rescue a lost partition that used to be located approximately
1      between START and END.  If such a partition is found, Parted will
1      ask you if you want to create a partition for it.  This is useful
1      if you accidently deleted a partition with parted's rm command, for
1      example.
1 
1      Example:
1 
1           (parted) print
1           Disk geometry for /dev/hdc: 0.000-8063.507 megabytes
1           Disk label type: msdos
1           Minor    Start       End     Type      Filesystem  Flags
1           1          0.031   8056.032  primary   ext3
1           (parted) rm
1           Partition number? 1
1           (parted) print
1           Disk geometry for /dev/hdc: 0.000-8063.507 megabytes
1           Disk label type: msdos
1           Minor    Start       End     Type      Filesystem  Flags
1 
1      OUCH! We deleted our ext3 partition!!!  Parted comes to the
1      rescue...
1 
1           (parted) rescue
1           Start? 0
1           End? 8056
1           Information: A ext3 primary partition was found at 0.031MB ->
1           8056.030MB.  Do you want to add it to the partition table?
1           Yes/No/Cancel? y
1           (parted) print
1           Disk geometry for /dev/hdc: 0.000-8063.507 megabytes
1           Disk label type: msdos
1           Minor    Start       End     Type      Filesystem  Flags
1           1          0.031   8056.032  primary   ext3
1 
1      It's back!  :)
1