Dual Boot GNU GRUB 2.02 change?
This appeared in my start up options:-
Windows 7 (loader) on /dev/sda1
Windows 7 (loader) on /dev/sdc1
Why 2 windows 7?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Can I remove the 2nd Windows 7 boot and how do I do this.
Thanks for any help
Rich.b
Revision history for this message
|
#2 |
Do you have Windows on sda and sdc?
Revision history for this message
|
#3 |
on a ssd sda
was the first to be installed
Revision history for this message
|
#4 |
Is the system branded? Does it have a recovery partition?
Revision history for this message
|
#5 |
Home built PC not branded. Window 7 Pro has a backup but not sure ware this is stored. Ubuntu I have copy of my file on a separate portable 2TB HD. Also I did an Windows backup to this same 2TB using Paragon programme.
I hope this information is what you are looking for - Thank you for your help.
Richard.
Details of my PC and it has Windows 7 Pro Dual Boot Ubuntu 15.10 installed.
PC Spec:-
ATX case with 500Watt PSU
Gigabyte Socket 1150 Micro ATX Motherboard - GA-H81M-S2H
Intel Pentium G3220 3.0GHz - BX80646G3220
8GB DDR3 1600MHz DIMM - PC3-12800
128GB SATA-III Solid State Drive - Kingston V300
500GB HDD Seagate Barracuda SATA3 - ST500DM002
Internal SATA Multi-format DVD Writer – SH2-244DB
Multi Card Reader – CR005V4
Windows 7 Professional – 64 Bit
Installation Type:-
/dev/sda format - Size - Used - Unused - Flags
/dev/sda1 ntfs 100mib 24.67mib 75.33mib boot (System Reserved)
/dev/sda2 ntfs 49.67Gib 39.85Gib 9.82Gib
/dev/sda3 ext4 49.67Gib 5.93Gib 43.Gib
/dev/sda4 extened 12.36Gib
/devsda5 linux-swap
/dev/sdb format - Size - Used - Unused - Flags
/dev/sdb1 ntfs New voulme 75.13Gib 50.19Gib 24.94Gib boot
/dev/sdb2 ext4 /home 390.63Gib 51.58Gib 339.05Gib
unallocated 1.02Mib
Revision history for this message
|
#6 |
Your output is somewhat inconsistent.
The original question talks about sda1 and sdc1, but now I see sda and sdb disks.
In any case, in your last output the partition /dev/sdb1 is listed as bootable with ntfs formatting. This might be some kind of Windows Boot loader, that is interpreted as "Windows 7" by grub, but can also be something else that is wrongly categorized by grub.
Running the boot-info-script would most probably show more details about that partition.
Revision history for this message
|
#7 |
Ran boot info script, but unable to locate "Results.txt"
richard@
Boot Info Script 0.61 [1 April 2012]
Identifying MBRs...
Computing Partition Table of /dev/sda...
Computing Partition Table of /dev/sdb...
Computing Partition Table of /dev/sdc...
Searching sda1 for information...
Searching sda2 for information...
Searching sda3 for information...
Searching sda4 for information...
Searching sda5 for information...
Searching sdb1 for information...
Searching sdb2 for information...
Searching sdc1 for information...
Searching sdc2 for information...
Searching sdc3 for information...
Finished. The results are in the file "RESULTS.txt"
located in "/home/richard/".
Revision history for this message
|
#8 |
It defiantly said
Windows 7 (loader) on /dev/sda1
Windows 7 (loader) on /dev/sdc1 (and does say sdc1 in Grub)
Any advice please.
Richard
Revision history for this message
|
#9 |
=======
=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
in partition 114 for .
=> Windows is installed in the MBR of /dev/sdb.
=> Windows is installed in the MBR of /dev/sdc.
sda1: _______
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD
sda2: _______
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /Windows/
sda3: _______
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 15.10
Boot files: /boot/grub/grub.cfg /etc/fstab
sda4: _______
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _______
File system: swap
Boot sector type: -
Boot sector info:
sdb1: _______
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sdb2: _______
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sdc1: _______
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD
sdc2: _______
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /Windows/
sdc3: _______
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
=======
Drive: sda _______
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
/dev/sda2 206,848 104,366,079 104,159,232 7 NTFS / exFAT / HPFS
/dev/sda3 104,366,080 208,523,263 104,157,184 83 Linux
/dev/sda4 208,525,310 234,440,703 25,915,394 5 Extended
/dev/sda5 208,525,312 234,440,703 25,915,392 82 Linux swap / Solaris
Drive: sdb _______
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 * 2,048 157,569,023 157,566,976 7 NTFS / exFAT / HPFS
/dev/sdb2 157,569,024 976,771,071 819,202,048 83 Linux
Drive: sdc _______
Disk /dev/sdc: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdc1 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
/dev/sdc2 208,896 104,368,127 104,159,232 7 NTFS / exFAT / HPFS
/dev/sdc3 108,464,128 1,337,264,127 1,228,800,000 7 NTFS / exFAT / HPFS
"blkid" output: _______
Device UUID TYPE LABEL
/dev/sda1 8AE611C9E611B683 ntfs System Reserved
/dev/sda2 8AA62C62A62C50CD ntfs
/dev/sda3 70ac6c90-
/dev/sda5 638fed9b-
/dev/sdb1 749875FB9875BBE4 ntfs New Volume
/dev/sdb2 10ed14f1-
/dev/sdc1 8AE611C9E611B683 ntfs System Reserved
/dev/sdc2 8AA62C62A62C50CD ntfs
/dev/sdc3 3726180A54D4BBA9 ntfs
=======
Device Mount_Point Type Options
/dev/sda3 / ext4 (rw,relatime,
/dev/sdb2 /home ext4 (rw,relatime,
/dev/sdc2 /media/
/dev/sdc3 /media/
=======
-------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default=
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_
menuentry_
else
menuentry_
fi
export menuentry_id_option
if [ "${prev_
set saved_entry=
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
if [ x$feature_
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 70ac6c90-
fi
font=
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_
set lang=en_GB
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_
set timeout_
set timeout=20
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 20 ; then
set timeout=0
fi
fi
### END /etc/grub.
### BEGIN /etc/grub.
set menu_color_
set menu_color_
if background_color 44,0,30,0; then
clear
fi
### END /etc/grub.
### BEGIN /etc/grub.
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}
if hwmatch ${prefix}
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 70ac6c90-
fi
linux /boot/vmlinuz-
initrd /boot/initrd.
}
submenu 'Advanced options for Ubuntu' $menuentry_
menuentry 'Ubuntu, with Linux 4.2.0-38-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 70ac6c90-
fi
echo 'Loading Linux 4.2.0-38-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 4.2.0-38-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 70ac6c90-
fi
echo 'Loading Linux 4.2.0-38-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 4.2.0-38-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 70ac6c90-
fi
echo 'Loading Linux 4.2.0-38-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 4.2.0-36-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 70ac6c90-
fi
echo 'Loading Linux 4.2.0-36-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 4.2.0-36-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 70ac6c90-
fi
echo 'Loading Linux 4.2.0-36-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 4.2.0-36-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 70ac6c90-
fi
echo 'Loading Linux 4.2.0-36-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 4.2.0-35-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 70ac6c90-
fi
echo 'Loading Linux 4.2.0-35-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 4.2.0-35-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 70ac6c90-
fi
echo 'Loading Linux 4.2.0-35-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
menuentry 'Ubuntu, with Linux 4.2.0-35-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 70ac6c90-
fi
echo 'Loading Linux 4.2.0-35-generic ...'
linux /boot/vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.
}
}
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
menuentry 'Memory test (memtest86+)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 70ac6c90-
fi
knetbsd /boot/memtest86
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
Windows 7 (loader) on /dev/sda1
Windows 7 (loader) on /dev/sdc1 if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 70ac6c90-
fi
linux16 /boot/memtest86
}
### END /etc/grub.
### BEGIN /etc/grub.
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 8AE611C9E611B683
fi
parttool ${root} hidden-
chainloader +1
}
menuentry 'Windows 7 (loader) (on /dev/sdc1)' --class windows --class os $menuentry_
insmod part_msdos
insmod ntfs
set root='hd2,msdos1'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root 8AE611C9E611B683
fi
parttool ${root} hidden-
chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.
### BEGIN /etc/grub.
if [ -f ${config_
source ${config_
elif [ -z "${config_
source $prefix/custom.cfg;
fi
### END /etc/grub.
-------
=======
-------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda3 during installation
UUID=70ac6c90-
# /home was on /dev/sdb2 during installation
UUID=10ed14f1-
# swap was on /dev/sda5 during installation
UUID=638fed9b-
-------
=================== sda3: Location of files loaded by Grub: =======
GiB - GB File Fragment(s)
=======
cat: /tmp/BootInfo-
Revision history for this message
|
#11 |
Note that ext HD 2TB was connected when above file was recorded.
Revision history for this message
|
#12 |
I think that I see the cause of your problem.
I assume that sdc is the external 2TB disk that you use for backup.
Part of the output
Device UUID TYPE LABEL
/dev/sda1 8AE611C9E611B683 ntfs System Reserved
/dev/sda2 8AA62C62A62C50CD ntfs
/dev/sda3 70ac6c90-
/dev/sda5 638fed9b-
/dev/sdb1 749875FB9875BBE4 ntfs New Volume
/dev/sdb2 10ed14f1-
/dev/sdc1 8AE611C9E611B683 ntfs System Reserved
/dev/sdc2 8AA62C62A62C50CD ntfs
/dev/sdc3 3726180A54D4BBA9 ntfs
shows that sda1 and sca1 as well as sda2 and sda3 have identical UUIDs. This is not good, because you cannot predict which device a program will access when using the UUID.
In your case this most probably was caused by cloning the Windows partitions during the backup creation.
The solution for your problem (double occurrence of Windows in Grub menu) probably is the following:
Perform a safe remove (eject) of the external disk
run the command
sudo update-grub
Revision history for this message
|
#13 |
Oops, mistyped the partitions, sda1 and sdc1, as well as sda2 and sdc2
but that does not change the proposed solution.
Revision history for this message
|
#14 |
Thank you Manfred -
Second entry of " Windows 7 (loader) on /dev/sdc1 "
Now gone.
Thanks again
Richard
Revision history for this message
|
#15 |
Thanks Manfred Hampl, that solved my question.