Re: gpart can retire now
On Sun, 27 Jun 2010 15:37:31 -0800, Greg Madden wrote:
>> quick scan
>
> An old fashioned, but still reliable method , cli: not gui
> ...
> I have recovered deleted partitions this way ,never had to do a whole
> hard drive.
>
> I found this that has more detail:
> http://www.faqs.org/docs/Linux-mini/Partition-Rescue.html
which says,
,-----
| Write this back on paper (or do “/sbin/fdisk -l | lpr” and
| “/sbin/fdisk -u -l | lpr” to print it) and save it in a safe
| place for future use.
`-----
But actually, there is a much better cli way:
To backup the current disk partition setting, use the following command:
sfdisk -d /dev/$HD | tee partition.$HD.info
Most importantly, partitions can be recreated by this simple command:
# recreate partition
sfdisk --no-reread /dev/$HD < partition.$HD.info
Then reboot ASAP.
Ref:
http://xpt.sourceforge.net/techdocs/nix/disk/general/disk01-
PartitionTools/index.html#cmd_sfdisk
Once my Linux partition was recovered, I used this method to recreate my
whole partitions.
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
Reply to: