LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-25-2013, 06:30 AM   #1
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Rep: Reputation: Disabled
In dual boot partition cant boot into linux after formatting the windows partition.


Earlier i had dual booted linux(Centos) along with Windows 7... Something wasn't working well in windows 7 so i formatted windows 7 but now the problem is it doesn't boot into the Linux partition though it can be seen via disk management in windows 7 as healthy primary partition.

Now what do i have to do to make the Linux partition boot-able or at least use that space which has been occupied my Linux? and i have very important documents too.

Last edited by SarahGurung; 08-25-2013 at 06:33 AM.
 
Old 08-25-2013, 07:01 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871
If you have very important documents you should have made a backup before doing any system critical task. I assume that you actually mean that you have re-installed Windows 7, not just formatted the partition. In that case the Windows installation routine has replaced the bootloader with its own. This an issue that is easy to fix, but before doing anything, boot from a Linux Live-CD/DVD and backup your important data.
After that, just chroot into your Linux system and reinstall the bootloader.
 
Old 08-25-2013, 07:24 AM   #3
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
wow thanks a million...yup i re-installed windows 7...i don't have the live cd right now so will do it tomorrow but please do help me if i come across any issues tomorrow.

And how do i reinstall the bootloader in Linux?
 
Old 08-25-2013, 08:10 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,481

Rep: Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111
Quote:
And how do i reinstall the bootloader in Linux?
I've not used CentOS but, I am sure that if you pay attention during the installation you will see an option like 'device for bootloader installation' which is where you make your selection. On a standard BIOS computer with mbr, it should be /dev/sda. Since we don't have any specific info on your computer that is just a guess. If it fails during install, it is a simple fix after.
 
Old 08-25-2013, 08:15 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871
Download SuperGrubDisk to boot your Linux system, after that a simple
Code:
grub-install /dev/sda
update-grub
as root should fix your issues.
 
Old 08-26-2013, 01:30 AM   #6
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
should it be sda or hda?
 
Old 08-26-2013, 06:21 AM   #7
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
TobiSGD,i did as told by u but it did nothing and the first command said the following:
Code:
Probing devices to guess drives:This may take a long time.
dev/mapper/..../dev-0 does not have any corresponding BIOS drive.
And the second command update-grub wasn't available.I could however back up some of the data.

So would be really thankful if you could tell me what could be possible wrong and what should i do? or is it that i need to do hda instead of sda?
 
Old 08-26-2013, 06:43 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871
If you have to use sda or hda depends on the version of CentOS you use, CentOS 5.x will most likely use hda, CentOS 6.x sda. I am not using Grub, so I can't really help with error messages from that, sorry.
 
Old 08-26-2013, 10:34 PM   #9
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
Well the version of live cd is centos 6 whereas the version of centos that i was running in the laptop was centos 5.x.

So Mr. TobiSGD which should i use? hda or sda ?
 
Old 08-27-2013, 08:06 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871
I actually don't know. At this point I would use SuperGrubDisk to boot into your installed system and try it again with hda, this way you will not have a possible interference with the newer kernel from the Live-CD.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovery Partition Access / Dual Boot Linux & Windows DShuck Linux - General 11 07-18-2013 04:36 PM
Dual boot, Linux partition formatted but not booting into Windows. chandan766 Linux - Newbie 5 08-11-2011 08:42 PM
Dual boot: Can a virus on windows bring down my linux partition as well? xri Linux - Security 2 09-06-2007 08:29 PM
How to recover XP after formatting Linux partition from windows me4linux Linux - General 10 02-27-2007 07:26 AM
Windows scandisk caused loss of shared partition with linux on dual boot machine iqbala Linux - Newbie 7 12-27-2006 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:06 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
Open Source Consulting | Domain Registration