> This isn't part of linux question but I don't know > where to ask hopefully you want to answer my > question.
> I have a box that accidentally I have damaged the > partition. Is there any slugger know about recover > the old partition since I haven't create anything > since then. I'm assuming you mean that you've zonged the partition table accidentally. Don't panic. You can get everything back; you basically go into the fdisk program and set one partition from block 1 to the end. You then save that partition table and exit fdisk. You then exit and mount that partition. Then take careful note of the actual size of the partition as reported by fsck. Then go back into fdisk and set the partition size to what it should actually be and make a new partition just above that that stretches out to the end of the disk. Save that partition table and exit fdisk and remount the second one. Repeat this process until you've got all your partitions back. Figure out which partition is which; find out which is /, which is /var, which is swap etc because you'll have to re-set that up. If you can find the old /etc/fstab that should give you the mapping of partitions onto Linux filesystems although probably won't help with the sizes of the partitions themselves. By the time you've finished you will know a hell of a lot about fdisk, fsck and bytes, kilobytes and megabytes. For a more thorough writeup of the procedure visit http://www.tldp.org/HOWTO/Partition/recovering.html This procedure works; I've done it myself took me the best part of a day but boy did I feel like a god when it got fixed. I also had cool looking pages of scribbled notepaper full of calculations with numbers like 479199232 and stuff. One thing I did which proved very helpful was write down how many bytes an fdisk cylinder gave me. In my situation the partition table had been zonged by a parallel install of a later version of Redhat on a different disk and a misunderstanding by the installer caused the install program to write to the partition table of both disks. Have a lot of fun, Stuart. http://personals.yahoo.com.au - Yahoo! Personals New people, new possibilities. FREE for a limited time. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
