LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 02-20-2008, 04:05 AM   #1
pawan
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
Unhappy RHEL 4 Partition Table corrupted


Hello Friends
I was making a bootable usbpen drive for installing RHEL5.
I made a blunder by typing a command
dd if=diskboot.img of=/de/sda (I should have typed sdc1 instead of sda)

Now My production server is in mess now.
When I give
fdisk -l
It shows following

Disk /dev/sda:220.2 GB, 220219834368 bytes
255 heads,63 sectors/track,26773 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks ID System
/dev/sda1 ? 188019 188051 253319 e4 Speedstor
Partition 1 does not end on cylinder boundary
/dev/sda2 ? 62656 186401 993984023 98 Unknown
Partition 2 does not end on cylinder boundary
/dev/sda3 ? 105611 225119 959953209 7d Unknown
Partition 3 does not end on cylinder boundary
/dev/sda4 ? 331 849 4161536 0 Empty
Partition 4 does not end on cylinder boundary

Partition table entries are not in disk order
_________________________________________________________


Pl help how to retrive the situation.
I have a RAID in my server.
Pl email me the solution.
Pawan

Last edited by pawan; 02-20-2008 at 04:30 AM.
 
Old 02-20-2008, 05:50 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Why anyone would use a production server for this??? Why one would be running as root for this is also very questionable.

Restore from backup, no backup then you learned a very valuable lesson.

No I will not email you any solution, post here read here.

You might be lucky, try booting from a LiveCD version of say Scientific Linux or CentOS 5 and maybe use parted/gparted to recover the partition table, but this just might be a waste of time depending on what type of RAID you are speaking of. Hardware or software RAID??? RAID0, 1, 4 or 5??

You will have to a least know the starting points for each partition used (at least the very first one).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I (re)install a partition table on a corrupted SATA disk? Kamoflauge Linux - General 11 05-22-2008 06:31 AM
partition table corrupted ravi_chobey Linux - Hardware 2 12-28-2007 03:11 AM
Partition table appears to be corrupted havok1977 Linux - Hardware 2 03-13-2006 12:29 PM
NTFS partition/file table spontaneously corrupted lm317t Linux - Software 3 01-05-2006 09:11 AM
partition table corrupted narxist Linux - Software 2 06-04-2001 04:33 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration