LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-13-2004, 07:17 PM   #1
Warrioruw
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Rep: Reputation: 0
Question Can I Recover /boot partition?


Hi,

I have Redhat 9. Few days ago, I accidently deleted /boot partition from dual OS WinXP. I tried linux rescue, no luck, since it only did /mnt/sysimage.
So all I got after reboot is the GRUB command line interface.

Is there a way to reinstall the lost data on /boot partition, without wiping out other linux partition?

Here is the original harddisk partition:

primary bootable HPFS - NTFS
primary Linux Ext3 [/boot]
primary Linux Ext3 [/]
logical Linux swap2

please help!
 
Old 11-13-2004, 10:24 PM   #2
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
I assume that your /boot partition is properly formatted (i.e. ext2/ext3)

Boot a knoppix bootdisk, mount your partitions in the way you usually would, e.g.

Code:
# assuming you have only a root partition and boot partition
# mount root (/) partition
mount /dev/hdxy /mnt/hdxy
# mount boot partition in proper place:
mount /dev/hduv /mnt/hdxy/boot
chroot /mnt/hdxy
# find out what the kernel rpm is called
rpm -q kernel
rpm --reinstall kernel-foo.rpm
# (something like the above)
Repeat last two lines for the grub package. I think that's all that resides in /boot, so after doing a grub install from the grub shell (unless grub is still installed and properly set up), everything should be back to normal (sign out, unmount, take knoppix out and reboot).

HTH,

Samsara
 
Old 11-14-2004, 02:18 AM   #3
Warrioruw
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Reply

The lost /boot partition is shown "unallocated", so I presume it is not formatted. How to format it? Is that ok to have bootable CD instead of floppy disk? (I don't have floppy drive)
 
Old 11-14-2004, 11:09 AM   #4
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
Use qtparted to create, e.g. an ext2 filesystem in that partition.

Regards,

Samsara
 
Old 08-10-2005, 01:58 AM   #5
villusion
LQ Newbie
 
Registered: Aug 2005
Location: Green Bay, WI
Posts: 10

Rep: Reputation: 0
Ok, what if I accidentally created a swap out of my my hda2 drive..How do I get it back???

I tried using r-linux, but it created a bunch of $Inode files on my winodws system, how do I convert that back?

Sample Files


-David
villusion@new.rr.com

 
  


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
Recover Partition??? HELP!!!! villusion Linux - Hardware 7 10-11-2005 05:34 PM
Recover partition table djib Linux - Software 2 05-14-2005 08:07 AM
Recover the partition table yogeshwar_s Linux - Hardware 1 09-22-2004 03:02 AM
recover extended partition (RH9) bueno_a Red Hat 3 01-29-2004 11:27 AM
Recover a lost partition!!!!! Caveman Linux - Newbie 4 09-26-2003 02:10 PM

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

All times are GMT -5. The time now is 02:11 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