Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-13-2004, 06:17 PM   #1
LQ Newbie
Registered: Nov 2004
Posts: 3

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


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, 09:24 PM   #2
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.

# 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).


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

Original Poster
Rep: Reputation: 0

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, 10:09 AM   #4
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.


Old 08-10-2005, 12:58 AM   #5
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




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

All times are GMT -5. The time now is 02:26 PM.

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