Home arrow Wiki arrow Recover deleted partitions using fdisk
Main Menu
Home
Help Docs
Newbies
Corporates
Gnu/Linux Distros
Programming
Databases
Links
Search
Regular
News
Interviews
Aaj Ka Tip
Aaj Ka Command
Community
Blogs
Wiki
Forums
Services
Free Software

Recover deleted partitions using fdisk Print E-mail

This is to recover partitions which have been deleted accidentaly by using fdisk in Linux.

This can be done before rebooting your machine.

You just need to ahve a snapshot of the partition table,something like this I had before doing the same

Disk /dev/sda: 40.0 GB, 40000000000 bytes

255 heads, 63 sectors/track, 4863 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/sda1 * 1 1020 8193118+ 83 Linux

/dev/sda2 1021 1275 2048287+ 82 Linux swap

/dev/sda3 1276 4863 28820610 5 Extended

/dev/sda5 1276 1884 4891761 83 Linux

/dev/sda6 1885 2432 4401778+ 83 Linux

/dev/sda7 2433 4439 16121196 83 Linux

 

Just re-create the partition table asn save and exit.

You might require to mark the active partition as active and also re-install the boot loader.

Also the same can be done by saving the MBR using the "dd" utility.Lookout for the same TIP in our Aaj ka tip section.

< Previous   Next >



gnulinuxclub
Join Us
About Us
Contact Us
Support Us
Acknowlegdement
Login(only for dev.)

Royalty Free Images

O'Reilly User Group discount!




Powered By GIMP GIMP
Contact Webmaster Copyleft 2011 gnulinuxclub.org