LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-21-2004, 12:32 AM   #1
allenpanther
LQ Newbie
 
Registered: Jan 2004
Posts: 6

Rep: Reputation: 0
I wounded my system with fdisk...


I decided to try and increase the size of one of my partitions, and deleted a couple that I don't use that were next to it in preparation to expanding it somehow. hdb6 was full, and hdb7 and hdb8 were empty, so I killed the latter two with fdisk. Unfortunately I didn't think far enough ahead, and now the ( rather important ) hdb9 is hdb7 and my system just keeps blinking at me in dumb amazement that I could be so short-sighted.

I actually boot off of hdc2, but it doesn't get there...although it appears to be trying very hard.

Is there a simple way for me to restore the old partition table, or ( preferably ) explain the new layout to hdc2? I have floppy boot disc, but don't really know how to use it wisely, and I understand that the RedHat9 install CD1 has a repair function...?

Thanks....(..?)

Allen
 
Old 02-21-2004, 12:34 AM   #2
allenpanther
LQ Newbie
 
Registered: Jan 2004
Posts: 6

Original Poster
Rep: Reputation: 0
typo in posting...I boot off of hdc using GRUB.
 
Old 02-21-2004, 05:37 AM   #3
Rick485
Member
 
Registered: Sep 2003
Location: Arizona
Distribution: Kubuntu 8.04
Posts: 202

Rep: Reputation: 30
If you deleted hdb7 and hdb8 then what was hdb9 would now be hdb7. You already realize that. If you want hdb7 to once again be hdb9 then you will need to recreate the two partitions that you removed. On my computer, I normally have one copy of Linux on hda and two more copies of Linux on hdb. If at least one copy is working I can use it to access other partitions or even create new ones.

I also have Partion Magic on my computer and it boots up before choosing which operating system to use. It can easily create, remove or resize partitions. I have made the same mistake you did and was able to easily solve it with Partition Magic. I will assume that you do not have that installed.

The next possible solution would be to use something like fdisk, cfdisk or Disk Druid to recreate the missing partitions. Installation programs for Linux usually have you use those at some point. If you have Windows installed it could even be used to create two partions to fill that space. You could later change them to something different than what Windows would format them as.

Another option is to use an extra computer with LInux and temporarily transplant the harddrive to the it to do the repair work. If you do that, you might possibly need to temporarily change a jumper on the harddrive. I am familiar with jumper settings.

It would probably also be possible to use a live distro which is on a CD to boot your computer and edit what Linux thinks is which partition. I am not sure if the /etc/fstab file is all that would need to be edited. Perhaps some file for GRUB would need to be edited. I do not know how to edit GRUB the bootloader.

Was hdb7 and hdb8 not being used for anything by Linux? What was hdb9 being used for? Are you just trying to save the data on that partition or are you trying to make that copy of Linux work again. If you are only trying to save the data you could install another copy of Linux while leaving that partition untouched. Afterwards, you could edit your fstab file to mount the partition. If it then doesn't think you have the correct permissions to access the data, that is easy to sove.

I am surprised that your harddrive is hdc. That means that you have it mounted in the master position of your 2nd IDE cable. Where is your CD-ROM drive? Is anything on hdb? Not that that really matters for what you are trying to do. Perhaps your boot disk could be edited so that it would work. I know how to edit Windows 2000 boot disks but do not know how to edit a Linux boot disk. There are several possibilities solutions.
 
Old 02-21-2004, 05:42 AM   #4
Rick485
Member
 
Registered: Sep 2003
Location: Arizona
Distribution: Kubuntu 8.04
Posts: 202

Rep: Reputation: 30
You also mentioned the repair feature on the Red Hat 9 installation CD. I forgot to mention that I have never tried that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
Fdisk?! erfg1 Linux - Newbie 1 03-12-2005 11:30 AM
using fdisk jonn Linux - Newbie 2 08-03-2004 04:10 PM
fstab can't find a file system fdisk can rharvey@cox Linux - Hardware 1 06-02-2004 09:36 PM
can't fdisk tweak13 Linux - Newbie 4 04-02-2003 02:02 AM

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

All times are GMT -5. The time now is 08:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration