LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-03-2015, 05:29 PM   #1
Legaboss
LQ Newbie
 
Registered: Aug 2015
Location: Hampton Roads, VA
Distribution: Kali Linux
Posts: 6

Rep: Reputation: Disabled
Put my dual boot hard drive in a different older laptop and now only Linux boots.


Okay so I had a newer HP pavilion and I had Kali Linux dual booted with Windows 8.1, well I sold the HP and put a different hard drive in it and put my dual booted hard drive into my ASUS X54C. Now when I start up my computer my Linux loads and Grub pops up however it doesn't show my Windows on it. It does however show my windows recovery but when I select it a screen pops up and says that a recent hardware change has made it unable to boot properly. So does anyone have any ideas? I was thinking maybe I needed a BIOS update since this is an older laptop that came with windows 7 installed. I am very new to Linux but not to computers in general, I have never messed with dual booted hard drives however so I am a bit lost.
 
Old 08-03-2015, 05:46 PM   #2
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
You probably want to run grub-mkconfig to see if Kali can detect Windows. If that fails, (creds to yancek), you can try running this bootinfoscript available from the link below and post the output file from the to show us what's going on:

http://sourceforge.net/projects/boot-repair-cd/files/
 
Old 08-03-2015, 06:19 PM   #3
Legaboss
LQ Newbie
 
Registered: Aug 2015
Location: Hampton Roads, VA
Distribution: Kali Linux
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Generating grub.cfg ...
#
# 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.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_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_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_gpt
insmod ext2
set root='(hd0,gpt7)'
search --no-floppy --fs-uuid --set=root 61110269-32be-4b52-8193-e6d3a616bcca
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt7)'
search --no-floppy --fs-uuid --set=root 61110269-32be-4b52-8193-e6d3a616bcca
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='(hd0,gpt7)'
search --no-floppy --fs-uuid --set=root 61110269-32be-4b52-8193-e6d3a616bcca
Found background image: /usr/share/images/desktop-base/desktop-grub.png
insmod png
if background_image /usr/share/images/desktop-base/kali-grub.png; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
Found linux image: /boot/vmlinuz-3.18.0-kali3-amd64
Found initrd image: /boot/initrd.img-3.18.0-kali3-amd64
menuentry 'Kali GNU/Linux, with Linux 3.18.0-kali3-amd64' --class kali --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt7)'
search --no-floppy --fs-uuid --set=root 61110269-32be-4b52-8193-e6d3a616bcca
echo 'Loading Linux 3.18.0-kali3-amd64 ...'
linux /boot/vmlinuz-3.18.0-kali3-amd64 root=UUID=61110269-32be-4b52-8193-e6d3a616bcca ro initrd=/install/gtk/initrd.gz quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.18.0-kali3-amd64
}
menuentry 'Kali GNU/Linux, with Linux 3.18.0-kali3-amd64 (recovery mode)' --class kali --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt7)'
search --no-floppy --fs-uuid --set=root 61110269-32be-4b52-8193-e6d3a616bcca
echo 'Loading Linux 3.18.0-kali3-amd64 ...'
linux /boot/vmlinuz-3.18.0-kali3-amd64 root=UUID=61110269-32be-4b52-8193-e6d3a616bcca ro single initrd=/install/gtk/initrd.gz
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.18.0-kali3-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
No volume groups found
Found Windows Recovery Environment (loader) on /dev/sda5
menuentry "Windows Recovery Environment (loader) (on /dev/sda5)" --class windows --class os {
insmod part_gpt
insmod ntfs
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root DEB0BFC8B0BFA585
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# 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.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
done
It seems it cant detect it, Im downloading the program now and I will post the results as soon as it is done.
 
Old 08-03-2015, 06:19 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,820

Rep: Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960
Welcome to LinuxQuestions.

Starting with Windows 7 MS implemented an anti-pirating feature whereby a major hardware change requires re-authorization. If you can get it re-authorized it might be difficult getting it running due to it being an HP OEM version.
 
Old 08-03-2015, 07:26 PM   #5
Legaboss
LQ Newbie
 
Registered: Aug 2015
Location: Hampton Roads, VA
Distribution: Kali Linux
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector
1183421488 of the same hard drive for core.img. core.img is at this
location and looks for (,gpt7)/boot/grub on this drive.

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:

sda2: __________________________________________________________________________

File system: vfat
Boot sector type: Unknown
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

sda3: __________________________________________________________________________

File system:
Boot sector type: -
Boot sector info:
Mounting failed: mount: unknown filesystem type ''

sda4: __________________________________________________________________________

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 /Windows/System32/winload.exe

sda5: __________________________________________________________________________

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

sda7: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
mount: /dev/sda7 already mounted or sda7 busy

sda8: __________________________________________________________________________

File system: swap
Boot sector type: -
Boot sector info:

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 1,953,525,167 1,953,525,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 1,333,247 1,331,200 Windows Recovery Environment (Windows)
/dev/sda2 1,333,248 1,865,727 532,480 EFI System partition
/dev/sda3 1,865,728 2,127,871 262,144 Microsoft Reserved Partition (Windows)
/dev/sda4 2,127,872 1,165,455,359 1,163,327,488 Data partition (Windows/Linux)
/dev/sda5 1,901,754,368 1,953,513,471 51,759,104 Data partition (Windows/Linux)
/dev/sda7 1,165,455,360 1,899,653,119 734,197,760 Data partition (Windows/Linux)
/dev/sda8 1,899,657,216 1,901,754,367 2,097,152 Swap partition (Linux)

"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 5C1827EF1827C6BC ntfs WINRE
/dev/sda2 747F-FDD9 vfat
/dev/sda4 F41C68E81C68A6F8 ntfs Windows
/dev/sda5 DEB0BFC8B0BFA585 ntfs RECOVERY
/dev/sda7 61110269-32be-4b52-8193-e6d3a616bcca ext4
/dev/sda8 c6261183-877e-40b1-9409-49b1a39ad8ea swap
/dev/sr0 udf UDF Volume

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/disk/by-uuid/61110269-32be-4b52-8193-e6d3a616bcca / ext4 (rw,relatime,errors=remount-ro,data=ordered)
/dev/sda1 /media/WINRE fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)


======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda2

00000000 eb 58 90 4d 53 44 4f 53 35 2e 30 00 02 08 fe 1b |.X.MSDOS5.0.....|
00000010 02 00 00 00 00 f8 00 00 3f 00 ff 00 00 58 14 00 |........?....X..|
00000020 00 20 08 00 01 02 00 00 00 00 00 00 02 00 00 00 |. ..............|
00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 80 01 29 d9 fd 7f 74 4e 4f 20 4e 41 4d 45 20 20 |..)...tNO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 33 c9 8e d1 bc f4 | FAT32 3.....|
00000060 7b 8e c1 8e d9 bd 00 7c 88 56 40 88 4e 02 8a 56 |{......|.V@.N..V|
00000070 40 b4 41 bb aa 55 cd 13 72 10 81 fb 55 aa 75 0a |@.A..U..r...U.u.|
00000080 f6 c1 01 74 05 fe 46 02 eb 2d 8a 56 40 b4 08 cd |...t..F..-.V@...|
00000090 13 73 05 b9 ff ff 8a f1 66 0f b6 c6 40 66 0f b6 |.s......f...@f..|
000000a0 d1 80 e2 3f f7 e2 86 cd c0 ed 06 41 66 0f b7 c9 |...?.......Af...|
000000b0 66 f7 e1 66 89 46 f8 83 7e 16 00 75 39 83 7e 2a |f..f.F..~..u9.~*|
000000c0 00 77 33 66 8b 46 1c 66 83 c0 0c bb 00 80 b9 01 |.w3f.F.f........|
000000d0 00 e8 2c 00 e9 a8 03 a1 f8 7d 80 c4 7c 8b f0 ac |..,......}..|...|
000000e0 84 c0 74 17 3c ff 74 09 b4 0e bb 07 00 cd 10 eb |..t.<.t.........|
000000f0 ee a1 fa 7d eb e4 a1 7d 80 eb df 98 cd 16 cd 19 |...}...}........|
00000100 66 60 80 7e 02 00 0f 84 20 00 66 6a 00 66 50 06 |f`.~.... .fj.fP.|
00000110 53 66 68 10 00 01 00 b4 42 8a 56 40 8b f4 cd 13 |Sfh.....B.V@....|
00000120 66 58 66 58 66 58 66 58 eb 33 66 3b 46 f8 72 03 |fXfXfXfX.3f;F.r.|
00000130 f9 eb 2a 66 33 d2 66 0f b7 4e 18 66 f7 f1 fe c2 |..*f3.f..N.f....|
00000140 8a ca 66 8b d0 66 c1 ea 10 f7 76 1a 86 d6 8a 56 |..f..f....v....V|
00000150 40 8a e8 c0 e4 06 0a cc b8 01 02 cd 13 66 61 0f |@............fa.|
00000160 82 74 ff 81 c3 00 02 66 40 49 75 94 c3 42 4f 4f |.t.....f@Iu..BOO|
00000170 54 4d 47 52 20 20 20 20 00 00 00 00 00 00 00 00 |TMGR ........|
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 0d 0a 44 69 |..............Di|
000001b0 73 6b 20 65 72 72 6f 72 ff 0d 0a 50 72 65 73 73 |sk error...Press|
000001c0 20 61 6e 79 20 6b 65 79 20 74 6f 20 72 65 73 74 | any key to rest|
000001d0 61 72 74 0d 0a 00 00 00 00 00 00 00 00 00 00 00 |art.............|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 ac 01 b9 01 00 00 55 aa |..............U.|
00000200


=============================== StdErr Messages: ===============================

xz: (stdin): Compressed data is corrupt
No volume groups found
This is what the bootinfoscprit brought up. grub-mkconfig brought up this...

Quote:
Generating grub.cfg ...
#
# 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.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_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_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_gpt
insmod ext2
set root='(hd0,gpt7)'
search --no-floppy --fs-uuid --set=root 61110269-32be-4b52-8193-e6d3a616bcca
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt7)'
search --no-floppy --fs-uuid --set=root 61110269-32be-4b52-8193-e6d3a616bcca
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='(hd0,gpt7)'
search --no-floppy --fs-uuid --set=root 61110269-32be-4b52-8193-e6d3a616bcca
Found background image: /usr/share/images/desktop-base/desktop-grub.png
insmod png
if background_image /usr/share/images/desktop-base/kali-grub.png; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
Found linux image: /boot/vmlinuz-3.18.0-kali3-amd64
Found initrd image: /boot/initrd.img-3.18.0-kali3-amd64
menuentry 'Kali GNU/Linux, with Linux 3.18.0-kali3-amd64' --class kali --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt7)'
search --no-floppy --fs-uuid --set=root 61110269-32be-4b52-8193-e6d3a616bcca
echo 'Loading Linux 3.18.0-kali3-amd64 ...'
linux /boot/vmlinuz-3.18.0-kali3-amd64 root=UUID=61110269-32be-4b52-8193-e6d3a616bcca ro initrd=/install/gtk/initrd.gz quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.18.0-kali3-amd64
}
menuentry 'Kali GNU/Linux, with Linux 3.18.0-kali3-amd64 (recovery mode)' --class kali --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt7)'
search --no-floppy --fs-uuid --set=root 61110269-32be-4b52-8193-e6d3a616bcca
echo 'Loading Linux 3.18.0-kali3-amd64 ...'
linux /boot/vmlinuz-3.18.0-kali3-amd64 root=UUID=61110269-32be-4b52-8193-e6d3a616bcca ro single initrd=/install/gtk/initrd.gz
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.18.0-kali3-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
No volume groups found
Found Windows Recovery Environment (loader) on /dev/sda5
menuentry "Windows Recovery Environment (loader) (on /dev/sda5)" --class windows --class os {
insmod part_gpt
insmod ntfs
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root DEB0BFC8B0BFA585
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# 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.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
done

Last edited by Legaboss; 08-03-2015 at 07:28 PM.
 
Old 08-03-2015, 07:38 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,820

Rep: Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960
It isn't a boot loader problem.
 
Old 08-03-2015, 07:39 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,023

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
You can't take a windows 8 OEM install and move it.
 
Old 08-03-2015, 07:39 PM   #8
Legaboss
LQ Newbie
 
Registered: Aug 2015
Location: Hampton Roads, VA
Distribution: Kali Linux
Posts: 6

Original Poster
Rep: Reputation: Disabled
I'm thinking that Windows 8.1 just isn't compatable with my computer. I'm thinking about just formatting the windows partition and installing Windows 7 if nothing else works. I already have a backup of my important files so losing my windows 8.1 won't concern me. If not for a lot of games I play only working on windows I would just get rid of it all together and strictly use Linux.
 
Old 08-03-2015, 08:29 PM   #9
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
Ahh yes Windows and its fun non-transferrable EULAS - plus Win8 probably is set up to work with UEFI. Better of switching Windows to 7, and perhaps upgrade that to 10 (it's pretty nice, as far as Windows goes)
 
Old 08-03-2015, 08:57 PM   #10
Legaboss
LQ Newbie
 
Registered: Aug 2015
Location: Hampton Roads, VA
Distribution: Kali Linux
Posts: 6

Original Poster
Rep: Reputation: Disabled
Yeah I'm still waiting on my email from microsoft about the windows 10 i reserved. im just going to install windows 7 then update to 10..Okay well thanks everyone for the help. This was my first thread here and I couldn't be happier that I got all the responses that I did. I'm going to go ahead and mark this solved.
 
  


Reply


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
How to partition dual boot laptop's hard drive..? smdaudhilbe Linux - Newbie 4 02-25-2013 11:36 PM
Put Hard Drive in different laptop - now wireless and sound don't work? checkmate3001 Linux - Hardware 1 02-10-2009 04:39 PM
dual boot but can't see linux hard drive from XP battlezonehawk Linux - General 15 06-10-2007 03:01 PM
Dual boot win xp and linux on second hard drive metallicafan_316 Linux - Newbie 3 10-06-2005 09:38 PM
how do i install linux to second hard drive and dual boot to my first keeisha Linux - Newbie 1 11-29-2001 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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