Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 08-14-2012, 09:02 AM   #1
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 09:05 AM.
Old 08-14-2012, 11:19 AM   #2
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,332

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
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:
Old 08-15-2012, 02:44 AM   #3
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, 12:36 PM   #4
Senior Member
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,677

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


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

All times are GMT -5. The time now is 03:48 AM.

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