Dual Boot CentOS 6 and Windows 7 Pro - lost dual boot

Issues related to applications and software problems
Post Reply
PCnetMD
Posts: 3
Joined: 2017/08/08 19:44:10

Dual Boot CentOS 6 and Windows 7 Pro - lost dual boot

Post by PCnetMD » 2017/08/08 20:15:24

I upgraded the CentOS kernel on my dual boot laptop from the 6.2 kernel to the 6.8 (Final) kernel and now I've lost my Windows 7 selection from my grub menu.

Code: Select all

# cat menu.lst 
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_delllapt-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-642.11.1.el6.x86_64)
	root (hd0,0)
	kernel /vmlinuz-2.6.32-642.11.1.el6.x86_64 ro root=/dev/mapper/vg_delllapt-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg_delllapt/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=128M rd_LVM_LV=vg_delllapt/lv_root  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
	initrd /initramfs-2.6.32-642.11.1.el6.x86_64.img
title CentOS 6 (2.6.32-642.el6.x86_64)
	root (hd0,0)
	kernel /vmlinuz-2.6.32-642.el6.x86_64 ro root=/dev/mapper/vg_delllapt-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg_delllapt/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=128M rd_LVM_LV=vg_delllapt/lv_root  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
	initrd /initramfs-2.6.32-642.el6.x86_64.img
I can't even find the partition that Windows 7 was on:

Code: Select all

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_delllapt-lv_root
                       50G  8.3G   39G  18% /
tmpfs                 3.8G  228K  3.8G   1% /dev/shm
/dev/sda1             477M   85M  367M  19% /boot
/dev/mapper/vg_delllapt-lv_home
                      402G  433M  381G   1% /home
r510ftp:/ftp          4.4T  2.0T  2.2T  49% /ftp
r510ftp:/ftp1         5.0T  1.9T  2.9T  40% /ftp1
r510ftp:/ftp2         4.4T  2.4T  1.8T  58% /ftp2
r510ftp:/ftp3         5.0T  2.5T  2.3T  52% /ftp3


# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x98926166

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2   *          64       60802   487873536   8e  Linux LVM

Disk /dev/mapper/vg_delllapt-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_delllapt-lv_swap: 8304 MB, 8304721920 bytes
255 heads, 63 sectors/track, 1009 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_delllapt-lv_home: 437.6 GB, 437587542016 bytes
255 heads, 63 sectors/track, 53200 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Any suggestions on how to get my dual-boot and Windows 7 NTFS partition back?

Thank you.

Whoever
Posts: 1114
Joined: 2013/09/06 03:12:10

Re: Dual Boot CentOS 6 and Windows 7 Pro - lost dual boot

Post by Whoever » 2017/08/09 01:28:11

What does the following show:

Code: Select all

fdisk -l /dev/sda

User avatar
TrevorH
Forum Moderator
Posts: 28523
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Dual Boot CentOS 6 and Windows 7 Pro - lost dual boot

Post by TrevorH » 2017/08/09 08:36:30

How did you do this "upgrade"?

What it looks like is that you reinstalled from scratch and repartitioned your disk and wiped everything out :-(
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

PCnetMD
Posts: 3
Joined: 2017/08/08 19:44:10

Re: Dual Boot CentOS 6 and Windows 7 Pro - lost dual boot

Post by PCnetMD » 2017/08/09 18:52:44

TrevorH,
I used YUM to update the kernel

Code: Select all

yum update kernel

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Dual Boot CentOS 6 and Windows 7 Pro - lost dual boot

Post by gerald_clark » 2017/08/09 19:35:45

What did you do before you ran "yum update kernel"?
Your information indicates a fresh install followed by an update.

User avatar
TrevorH
Forum Moderator
Posts: 28523
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Dual Boot CentOS 6 and Windows 7 Pro - lost dual boot

Post by TrevorH » 2017/08/09 20:16:34

Your fdisk output shows that you only have 2 partitions on your disk and they take up all available space. Both are Linux partitions. No sign of Windows anywhere there.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

PCnetMD
Posts: 3
Joined: 2017/08/08 19:44:10

Re: Dual Boot CentOS 6 and Windows 7 Pro - lost dual boot

Post by PCnetMD » 2017/08/09 21:25:31

Whoever,

Code: Select all

# fdisk -l /dev/sda

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x98926166

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2   *          64       60802   487873536   8e  Linux LVM

gerald_clark,

We attempted to installed Nessus software, but it would not run with the CentOS 6.2 kernel.
Other than some changes to some of our system management bash and perl scripts, nothing else changed.


TrevorH,

Therein lies the crux of the problem.
This laptop was procured, with Win 7 Pro, and was configured to dual boot about 5 years ago, before I worked here.
The engineer that configured the dual-boot says that all he did was use the CentOS DVD to resize the windows partition and then installed CentOS 6.2. He then modified the grub menu title for "Other OS" to "Windows 7". He doesn't remember doing anything else to it.

I'm hoping I don't have to reload the entire laptop.

Thanks, for all your inputs.

User avatar
jlehtone
Posts: 2781
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Dual Boot CentOS 6 and Windows 7 Pro - lost dual boot

Post by jlehtone » 2017/08/11 06:57:32

PCnetMD wrote:The engineer that configured the dual-boot says that all he did was use the CentOS DVD to resize the windows partition and then installed CentOS 6.2. He then modified the grub menu title for "Other OS" to "Windows 7". He doesn't remember doing anything else to it.
You state that you had a working dual boot and then you did

Code: Select all

yum update kernel
Those two steps cannot possibly produce the result that you do show.

There are more information gathering commands:

Code: Select all

blkid
lsblk
pvs
vgs
lvs
With the fdisk I'd prefer options '-luc' over mere '-l'.


PS. If I had a "6.2", I would not start with updating just the kernel. I would update everything else before the kernel, and update the yum before everything else. Some of the other packages do contain tools that are used when installing kernel.

User avatar
TrevorH
Forum Moderator
Posts: 28523
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Dual Boot CentOS 6 and Windows 7 Pro - lost dual boot

Post by TrevorH » 2017/08/11 08:29:37

The engineer that configured the dual-boot says that all he did was use the CentOS DVD to resize the windows partition and then installed CentOS 6.2. He then modified the grub menu title for "Other OS" to "Windows 7". He doesn't remember doing anything else to it.
Let's be charitable and say that he's mistaken...
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - Software Support”