LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-14-2012, 08:02 AM   #1
rupeshm62
LQ Newbie
 
Registered: Jul 2012
Posts: 15

Rep: Reputation: Disabled
CentOS & Windows7 dual boot problem


I had installed First windows 7 & then CentOS 5.5 on my system. It was working fine that time. Today I formatted only windows drive (ie. C:/) & reinstalled windows 7 on the system, but its not showing CentOS option at boot screen. I know NTLDR got replaced with previous grub bootloader. So I boot to linux rescue mode from CentOS CD and tried to reinstall grub bootloader (grub-install /dev/sda) but it showing error as "could not find device or not a block device"

Please help me on this

Thanks & Regards,
Rupesh Thakur

Last edited by rupeshm62; 08-14-2012 at 08:05 AM.
 
Old 08-14-2012, 10:19 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,503

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Probably the simplest way to get help is to go to the site below, read the instructions for and download and run the bootinfoscript. This will give a lot of information on your drives/partitions and boot files. If that doesn't help, post the results.txt file here and someone will assist you:

http://sourceforge.net/projects/bootinfoscript/
 
Old 08-15-2012, 01:44 AM   #3
rupeshm62
LQ Newbie
 
Registered: Jul 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
The problem has been resolved. Below are the steps taken to troubleshoot:

1) When I tried to go Linux Rescue mode it was giving me error like as "An error occurred trying to mount some or all of your system. Some of it may be mounted under /mnt/sysimage. Press <return> to get default shell"
2) I press enter to go to shell prompt.
3) I tried fdisk -l command to check partition. I was able to see linux partition.
4) Then tried command "chroot /mnt/sysimage" & the command got successful.
5) Then I checked mount point by df -h command.
6) I checked all the things like fdisk partition, fstab, grub.conf etc.
7) Then I realized that the partition no for / partition automatically got changed after reinstallation of Windows 7.
8) I changed the entries in fstab. Change /dev/sda10 for / partition & /dev/sda8 for /boot partition.
9) Then tried to boot linux. It showed me grub splash image screen. I entered on CentOS partition but it given me error 17:Cannot mount selected partition
10) Again I gone to rescue mode and checked all the things and done changes to (hd0,7) instead (hd0,9) in grub.conf
11) Now I am able to boot in CentOS successfully.

Rupesh Thakur
 
Old 08-15-2012, 11:36 AM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,140

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
I've always thought the use of UUIDs instead of device names was an accident waiting to happen: thank you for confirming my prejudices!
 
  


Reply



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
Dual Boot Windows7 and Fedora14 Subrat6 Linux - Newbie 1 09-02-2011 02:52 AM
Problem of dual OS of Windows7 and CentOS 5.5.. TonyGh Linux - Newbie 2 01-26-2011 04:34 PM
trying to uninstall debian5 or dual boot with windows7 one2know Linux - Software 2 08-26-2010 03:08 PM
New windows7 netbook, how to set up dual boot? sls54 Linux - Newbie 16 08-09-2010 11:02 PM
dual boot problem: windows7 and ubuntu baxzius Linux - Newbie 2 02-03-2010 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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