CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 6 - General Support
  recover centos 6.2 after installing windows8

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  mahdi
      mahdi
recover centos 6.2 after installing windows8
#1
Peeking in the Member Window
Joined: 2012/4/13
From
Posts: 12
hi
I install windows 8 after centos 6 but the centos cant boot up and i only access to windows 8.
how can I fix it for dual boot?
Posted on: 2012/4/25 7:57
Create PDF from Post Print
Top
  •  jlehtone
      jlehtone
Re: recover centos 6.2 after installing windows8
#2
Professional Board Member
Joined: 2007/12/11
From Finland
Posts: 1329
Posted on: 2012/4/25 9:47
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: recover centos 6.2 after installing windows8
#3
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
May just want to skip to the bottom of the article to the TipsAndTricks/ReinstallGRUB link.

Edit: I see you never got a proper welcome, so: Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/4/25 10:14
Create PDF from Post Print
Top
  •  mahdi
      mahdi
Re: recover centos 6.2 after installing windows8
#4
Peeking in the Member Window
Joined: 2012/4/13
From
Posts: 12
Hi "pschaff" and tanks.
I'm the beginier and cant fix it.
i run the "grub-install /dev/sda" in shell (live boot with DVD1 Centos) and I got an error.
how can fix it?
Posted on: 2012/4/30 9:04
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: recover centos 6.2 after installing windows8
#5
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Hard to say without knowing what error you got. Did you do the chroot first?
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/4/30 15:45
Create PDF from Post Print
Top
  •  mahdi
      mahdi
Re: recover centos 6.2 after installing windows8
#6
Peeking in the Member Window
Joined: 2012/4/13
From
Posts: 12
yes I do it, but it got an error.
I dont remember what was it but when enter this "grub-install /dev/sda" the error comes different whit other commands that I enter.
excuse me for my bad enghlish.
Posted on: 2012/5/1 5:34
Create PDF from Post Print
Top
  •  TrevorH
      TrevorH
Re: recover centos 6.2 after installing windows8
#7
Moderator
Joined: 2009/9/24
From Brighton, UK
Posts: 6361
No-one is going to be able to help you without knowing the exact commands that you issued and the exact error message(s) that you received. If you cannot remember them then you will need to repeat the process and write it all down and then post it.
_________________
Linux/VoIP Systems Administrator
Posted on: 2012/5/1 8:15
Create PDF from Post Print
Top
  •  mahdi
      mahdi
Re: recover centos 6.2 after installing windows8
#8
Peeking in the Member Window
Joined: 2012/4/13
From
Posts: 12
Hi
I try it again and this error appear :
/dev/sda1 does not have any corresponding BIOS drive
what can I do?
Posted on: 2012/5/3 21:11
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: recover centos 6.2 after installing windows8
#9
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Are you sure you want to install to /dev/sda1 and not to /dev/sda so it goes to the MBR? Might want to try
grub-install --recheck /dev/sda

If more help is needed then please enable networking in rescue mode and show the results of
fdisk -l
blkid | sort
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/5/3 21:44
Create PDF from Post Print
Top
  •  mahdi
      mahdi
Re: recover centos 6.2 after installing windows8
#10
Peeking in the Member Window
Joined: 2012/4/13
From
Posts: 12
thank " pschaff" again
It's worked and my Centose boots up, but it couse a problem.
Windows 8 dosent exist on boot menu and I not able to boot Windows 8 any way.
what can I do?
Posted on: 2012/5/4 2:25
Create PDF from Post Print
Top
  •  mahdi
      mahdi
Re: recover centos 6.2 after installing windows8
#11
Peeking in the Member Window
Joined: 2012/4/13
From
Posts: 12
Hi everyone.
after recovery Centos I got a big problem.
when I type command in rescue shell my external HDD was conected and I run this command "grub-install /dev/sdb1" several time and now the HDD dosent recognized in centos and known as unknown device. and this problem also happened to other partition on my internal drive.
Can I fix it?
My data lost? all of them?
Posted on: 2012/5/4 3:15
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: recover centos 6.2 after installing windows8
#12
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Quote:

mahdi wrote:
Windows 8 dosent exist on boot menu and I not able to boot Windows 8 any way.
what can I do?

Is there not an entry "Other"? If so, that is Windows. You may want to edit /boot/grub/grub.conf to use a more descriptive title.

If not see Grub Installation for CentOS 5 and 6.

If still confused, show the current contents of /boot/grub/grub.conf and provide more information about your system by running "./getinfo.sh disk" and showing us the output file. This may also help with the external drive issue if it is connected.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/5/4 11:13
Create PDF from Post Print
Top
  •  mahdi
      mahdi
Re: recover centos 6.2 after installing windows8
#13
Peeking in the Member Window
Joined: 2012/4/13
From
Posts: 12
unfortunately my windows partition also dont known in centos and like my external HDD dont recognize as a partition.
In disk utility its known as a unknown partition.
what can I do?
I also run the fdisk -l and got this

Disk /dev/sda: 250.1 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc96b2927

Device----Boot---Start-----End------Blocks-------Id----System
/dev/sda1-----------1------5737------46080000---83----Linux
/dev/sda2----------5737----5992-----2048000 ----82----Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3----*-----5992-----6037-----358400--- 7---- HPFS/NTFS
/dev/sda4----------6037------9817----30361600---7---- HPFS/NTFS


but it dosent exist in Computer on Centos.
I also run the grub-install /dev/sda3 and grub-install /dev/sda4 on the rescue shell.
Posted on: 2012/5/4 18:15
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: recover centos 6.2 after installing windows8
#14
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
What are you trying to accomplish by running grub-install on random partitions, such as your Windows NTFS partitions? It can't help anything and may be causing damage.

You still have not shown grub.conf, or anything about the external disk.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/5/4 19:15
Create PDF from Post Print
Top
  •  mahdi
      mahdi
Re: recover centos 6.2 after installing windows8
#15
Peeking in the Member Window
Joined: 2012/4/13
From
Posts: 12
I connect my external HDD to another computer by windows.
In that computer my external HDD show as a partition in my computer but when I double click on it it say to format the device.
In the Disk Managment the hard show correctly and has an active partition.
Posted on: 2012/5/4 19:23
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: recover centos 6.2 after installing windows8
#16
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Was the external hard disk formatted as NTFS? If so Windows probably did not take kindly to having grub boot code placed in its boot record. I'd try installing ntfs-3g following TipsAndTricks/NTFS and see if CentOS will mount it. You seem to have very little to lose by trying.

You may also want to try a google on NTFS recovery Linux tools.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/5/4 19:32
Create PDF from Post Print
Top
  •  mahdi
      mahdi
Re: recover centos 6.2 after installing windows8
#17
Peeking in the Member Window
Joined: 2012/4/13
From
Posts: 12
I install these pakage befor and now I can mount any NTFS device like Flash drive, but My HDD dosnt work.
I think because I try to install grub boot loader to HDD and now it dosent work.
Is there any way to fix it?
Posted on: 2012/5/4 19:42
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: recover centos 6.2 after installing windows8
#18
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Did you try the google search recommended in my last post?
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/5/4 19:51
Create PDF from Post Print
Top
  •  YBellefeuille
      YBellefeuille
Re: recover centos 6.2 after installing windows8
#19
Regular Board Member
Joined: 2012/3/6
From Ottawa
Posts: 225
Quote:

Device----Boot---Start-----End------Blocks-------Id----System
/dev/sda1-----------1------5737------46080000---83----Linux
/dev/sda2----------5737----5992-----2048000 ----82----Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3----*-----5992-----6037-----358400--- 7---- HPFS/NTFS
/dev/sda4----------6037------9817----30361600---7---- HPFS/NTFS


There's a problem here; your partitions seem to overlap. Partition 1 should start on cylinder 1 and end on cylinder 5737; partition 2 should start on cylinder 5738, not 5737, and so on.

(I realize that partitions can begin and end in the middle of a cylinder, but then why does the warning "Partition 2 does not end on cylinder boundary" only appear for partition 2?)

To make sure, let's see the partition limits in blocks, not in cylinders. Please do fdisk -lu /dev/sda and post the results.

Did you create the partitions yourself using fdisk, or did the installation program do it automatically?
Posted on: 2012/5/4 23:22
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com