LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2006, 11:34 AM   #1
stickyc
LQ Newbie
 
Registered: May 2005
Posts: 9

Rep: Reputation: 0
How to undo an fdisk? "No volume groups found"


I was trying to repurpose a USB external disk with my Fedora FC4 machine. After setting up a partition table with fdisk, it said that I needed to reboot to apply the partition table (that should have set off the red sirens). After rebooting, I get the "No volume groups found" error and a kernel panic. I'm guessing I accidentally did an fdisk on /dev/hdc instead of /dev/sdc. Running fdisk now from a rescue CD reports /dev/hdc has type 83 partition, I seem to remember it was type 8e before (LVM?). The tiny bit of good news is that the partition should be the identical size as before, so I would think that all the data would still be intact...

Is there a way to re-do the partition table so I can see my old data again?

[update] I took a look at the HD with TestDisk - TestDisk reports there is a 100mb root partition and the rest of the disk is type 8e. Fedora's rescue CD still reports the one large type 83 partition...

Last edited by stickyc; 12-03-2006 at 11:53 AM.
 
Old 12-03-2006, 12:55 PM   #2
chadl
Member
 
Registered: Sep 2005
Location: US
Distribution: Gentoo AMD64 Testing
Posts: 129

Rep: Reputation: 16
As long as you did not run any programs to create a file system (ie mkfs) you should be able to restore everything by running fdisk again, and changing the partition table back to the way that it was. However, this does require that you know what the layout of your disk was before, as the old partition table has been overwritten.

fdisk does not touch your data, it only edits the part of the disk that tells your system what the layout of your disk is. Running mkfs is what actually changes the data portion of the disk.
 
Old 12-03-2006, 01:02 PM   #3
stickyc
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the info... So I guess the next question is, do I just make the one big partition as fdisk sees it as an 83 and set it to 83? Or to I go with what TestDisk saw as the smaller boot partition then the large type 8e? This was a stock Fedora FC4 install.
 
  


Reply

Tags
fdisk, fedora, recovery



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
Error: "cannot set groups" by using "su -", pls help nelsonyuen Linux - General 14 07-31-2010 12:24 PM
lilo says, "L 01 01 01" and fdisk says, "Unable to seek on /dev/hda1" clausawits Linux - General 3 12-31-2007 09:33 PM
Gnome, Shortcut for "headphones" instead of "volume" Bollie Linux - General 2 06-07-2007 09:19 PM
"Successful install" results in "Boot device not found" slackr007 Linux - Newbie 2 05-31-2005 08:02 PM
KDE undo "store window settings" uselpa Slackware 0 01-01-2005 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:43 PM.

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