LinuxQuestions.org
Help answer threads with 0 replies.
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 09-03-2009, 09:47 PM   #1
congo
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Rep: Reputation: 0
Overwritten /boot partition on Fedora 11


I was installing Fedora 11 from DVD to a machine with two SATA drives which has (or at least did have...) a dual boot installation of Windows XP. The second drive has a copy of the first drives installation of Windows XP. Fedora was installed on only the first drive. In the final portion of the install, I inadvertently overwrote the /boot partition on the Linux install while trying to back up the XP partition using dd to the second drive.

So, the question is how do I recover/reinstall the /boot partition data?

I haven't turned the machine off or rebooted it yet.

I'd really not like to reinstall Fedora again. What program/script populates the /boot partition?

Lloyd
 
Old 09-03-2009, 09:58 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,332

Rep: Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406
I assume you have a separate boot partition and want to use the Fedora bootloader to boot?? You can use the installation CD to install Grub bootloader files. If you want specific instructions on your computer, it would be best if you loaded the Fedora CD, opened a terminal/konsole and as root user, run command fdisk -l and post that partition information here. If you have a separate /boot partition, you will need the Grub files and the kernel placed there.
 
Old 09-04-2009, 02:54 AM   #3
congo
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Your assumption is correct. Here is the output from fdisk -l:

Disk /dev/sda: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa0da4ea0

Device Boot Start End Blocks Id System
/dev/sda1 1 1111 8924076 c W95 FAT32 (LBA)
/dev/sda2 1112 30401 235271925 7 HPFS/NTFS
/dev/sda3 * 30402 30427 204800 83 Linux
/dev/sda4 30428 48641 146303955 5 Extended
/dev/sda5 30428 48641 146302976 8e Linux LVM

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1549f232

Device Boot Start End Blocks Id System
/dev/sdb1 1 1111 8924076 c W95 FAT32 (LBA)
/dev/sdb2 * 1112 30401 235271925 7 HPFS/NTFS

Disk /dev/dm-0: 147.8 GB, 147832438784 bytes
255 heads, 63 sectors/track, 17972 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 1979 MB, 1979711488 bytes
255 heads, 63 sectors/track, 240 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

sda3 contains the munged /boot partition. From looking at it in Gparted, it looks like I need to first unmount and format it before I can do anything else. I assume that the format type would be ext3, that correct?

I can get a kernel from another Fedora 11 machine I have,


Further coaching would be helpful.


Thanks.
Lloyd
 
Old 09-04-2009, 12:03 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,332

Rep: Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406
I don't use Fedora or LVM and have never used a separate boot partition. I had a link explaining how to bookmarked but it's dead. Probably googling Grub boot partition will give you some info. You'll need the files you generall have in the /boot directory in your boot partition to start with. Good Luck.
 
  


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
HDD with single LVM partition, overwritten MBR, recovery needed San-Raal Linux - General 2 10-15-2008 04:58 AM
Master boot record of Fedora overwritten by Windows XP hotbacteria Linux - Newbie 5 10-16-2006 02:15 PM
Suse 9.3: Partition Table overwritten on multi-boot system ChillyWillie Linux - Hardware 4 08-24-2005 05:47 PM
overwritten partition jotap87 Linux - Software 3 06-16-2005 01:40 PM
Multiboot with /boot partition, kernel overwritten TiMiN8R Linux - Software 8 11-12-2004 03:10 PM

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

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