LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2020, 08:01 PM   #1
bruno labonté
LQ Newbie
 
Registered: Apr 2016
Posts: 29

Rep: Reputation: Disabled
Question grub installation


Hi everyone!
I have a dual boot laptop with windows 7 and ubuntu 18.04
I just upgraded my laptop with a new 7200 rpm hard drive.
I backed up my entire old drive to an image with aeomi backupper.
Then I restored it on my new drive.
Then I booted my laptop and got a blinking cursor and nothing more happened.

I had to rebuild my mbr with aeomi partition assitant and after that I could boot successfully but lost grub, it booted directly in windows.

Is there a way to reinstall grub and make it recognize my ntfs windows partition and the ext4 ubuntu partition?

Thank you for any help.

bruno
 
Old 11-15-2020, 08:43 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,354

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
go here https://sourceforge.net/projects/boot-repair-cd/ download iso, put on usb and boot, when ask select "create boot info summary" and post the bootinfo file when done.
 
Old 11-19-2020, 01:56 PM   #3
bruno labonté
LQ Newbie
 
Registered: Apr 2016
Posts: 29

Original Poster
Rep: Reputation: Disabled
Thank you for the reply!
I also attached the txt file
here is the report:

Bruno





boot-info-4ppa125 [20201119_1416]

============================== Boot Info Summary ===============================

=> Windows 7/8/2012 is installed in the MBR of /dev/sda.
=> Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows 8/2012: 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 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /Windows/System32/winload.exe

sda3: __________________________________________________________________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 18.04.1 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img

sdb1: __________________________________________________________________________

File system: vfat
Boot sector type: SYSLINUX 6.03
Boot sector info: Syslinux looks at sector 32784 of /dev/sdb1 for its
second stage. The integrity check of Syslinux failed.
No errors found in the Boot Parameter Block.
Operating System:
Boot files: /boot/grub/grub.cfg /syslinux.cfg
/efi/BOOT/grubx64.efi /ldlinux.sys


================================ 3 OS detected =================================

OS#1: Windows 7 (boot) on sda1
OS#2: Ubuntu 18.04.1 LTS on sda6
OS#3: Windows 7 on sda2

============================ Architecture/Host Info ============================

CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)


===================================== UEFI =====================================

This live-session is not in EFI-mode.



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

Disks info: ____________________________________________________________________

sda : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, has-os, 63 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda2 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda6 : is-os, 32, apt-get, grub-pc , grub2, grub-install, grubenv-ok, update-grub, farbios
sda5 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios

Partitions info (2/3): _________________________________________________________

sda1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, bootmgr, is-winboot
sda2 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
sda6 : isnotESP, fstab-without-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda5 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot

Partitions info (3/3): _________________________________________________________

sda1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda2 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda6 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
sda5 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 0x0d02160f
Boot Start End Sectors Size Id Type
sda1 * 63 1012094 1012032 494.2M 7 HPFS/NTFS/exFAT
sda2 1012095 762734069 761721975 363.2G 7 HPFS/NTFS/exFAT
sda3 762736641 976764630 214027990 102.1G f W95 Ext'd (LBA)
sda5 762736704 782268479 19531776 9.3G 1 FAT12
sda6 782268543 976764630 194496088 92.8G 83 Linux
Disk sdb: 14.7 GiB, 15728640000 bytes, 30720000 sectors
Disk identifier: 0x00a585a6
Boot Start End Sectors Size Id Type
sdb1 * 2048 30719999 30717952 14.7G c W95 FAT32 (LBA)
Disk zram0: 982 MiB, 1029734400 bytes, 251400 sectors
Disk zram1: 982 MiB, 1029734400 bytes, 251400 sectors
Disk zram2: 982 MiB, 1029734400 bytes, 251400 sectors
Disk zram3: 982 MiB, 1029734400 bytes, 251400 sectors

parted -lm (filtered): _________________________________________________________

sda:500GB:scsi:512:4096:msdos:ATA ST500LM034-2GH17:;
1:32.3kB:518MB:518MB:ntfs::boot;
2:518MB:391GB:390GB:ntfs::;
3:391GB:500GB:110GB:::lba;
5:391GB:401GB:10.0GB:::;
6:401GB:500GB:99.6GB:ext4::;
sdb:15.7GB:scsi:512:512:msdos:VendorCo ProductCode:;
1:1049kB:15.7GB:15.7GB:fat32::boot, lba;
zram3:1030MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:1030MB:1030MB:linux-swap(v1)::;
zram1:1030MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:1030MB:1030MB:linux-swap(v1)::;
zram2:1030MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:1030MB:1030MB:linux-swap(v1)::;
zram0:1030MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:1030MB:1030MB:linux-swap(v1)::;

blkid (filtered): ______________________________________________________________

NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
??sda1 ntfs 505C0D845C0D65D6 0d02160f-01 BDEDrive
??sda2 ntfs C05A0F5A5A0F4C9A 0d02160f-02 OSDisk
??sda3 0d02160f-03
??sda5 0d02160f-05
??sda6 ext4 2427a2a8-5120-439f-b697-d8b5f77d7211 0d02160f-06
sdb
??sdb1 vfat AA32-778E 00a585a6-01 BOOT-REPAIR
zram0
zram1
zram2
zram3

df (filtered): _________________________________________________________________

Avail Use% Mounted on
sda1 449.1M 9% /mnt/boot-sav/sda1
sda2 208.7G 43% /mnt/boot-sav/sda2
sda6 77.9G 9% /mnt/boot-sav/sda6
sdb1 13.8G 6% /cdrom

Mount options: __________________________________________________________________

sda1 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda2 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda6 rw,relatime
sdb1 ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

====================== sda6/boot/grub/grub.cfg (filtered) ======================

Ubuntu 2427a2a8-5120-439f-b697-d8b5f77d7211
Ubuntu, with Linux 4.15.0-34-generic 2427a2a8-5120-439f-b697-d8b5f77d7211
Ubuntu, with Linux 4.4.0-135-generic 2427a2a8-5120-439f-b697-d8b5f77d7211
Ubuntu, with Linux 3.13.0-158-generic 2427a2a8-5120-439f-b697-d8b5f77d7211
Windows 7 (on sda1) 505C0D845C0D65D6
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda6/etc/fstab (filtered) ===========================

# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=2427a2a8-5120-439f-b697-d8b5f77d7211 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation

======================= sda6/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

==================== sda6: Location of files loaded by Grub ====================

GiB - GB File Fragment(s)
443.600432873 = 476.312337920 boot/grub/grub.cfg 2
443.698295116 = 476.417416704 boot/grub/i386-pc/core.img 1
376.262404919 = 404.008680960 boot/vmlinuz-3.13.0-158-generic 1
381.299071789 = 409.416760832 boot/vmlinuz-4.15.0-34-generic 1
383.338813305 = 411.606916608 boot/vmlinuz-4.4.0-135-generic 1
381.299071789 = 409.416760832 vmlinuz 1
383.338813305 = 411.606916608 vmlinuz.old 1
382.087066174 = 410.262863360 boot/initrd.img-3.13.0-158-generic 1
382.352134228 = 410.547478016 boot/initrd.img-4.15.0-34-generic 1
382.302917004 = 410.494631424 boot/initrd.img-4.4.0-135-generic 2
382.352134228 = 410.547478016 initrd.img 1
382.302917004 = 410.494631424 initrd.img.old 2

===================== sda6: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 12693 Aug 23 2018 10_linux
-rwxr-xr-x 1 root root 11298 Aug 23 2018 20_linux_xen
-rwxr-xr-x 1 root root 12059 Aug 23 2018 30_os-prober
-rwxr-xr-x 1 root root 1418 Aug 15 2018 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Apr 11 2014 40_custom
-rwxr-xr-x 1 root root 216 Apr 11 2014 41_custom

====================== sdb1/boot/grub/grub.cfg (filtered) ======================

Boot-Repair-Disk session
Boot-Repair-Disk session (failsafe)

========================= sdb1/syslinux.cfg (filtered) =========================

DEFAULT loadconfig

LABEL loadconfig
CONFIG /isolinux/isolinux.cfg
APPEND /isolinux/

==================== sdb1: Location of files loaded by Grub ====================

GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1

================== sdb1: Location of files loaded by Syslinux ==================

GiB - GB File Fragment(s)
?? = ?? syslinux.cfg 1
?? = ?? ldlinux.sys 1


=============================== StdErr Messages ================================

File descriptor 63 (pipe:[52921]) leaked on lvs invocation. Parent PID 18956: /bin/bash

Error code 12
mount -r /dev/sda5 /mnt/boot-sav/sda5

mount -r /dev/sda5 : Error code 12
Error code 12
mount -r /dev/sda5 /mnt/boot-sav/sda5

mount -r /dev/sda5 : Error code 12
Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub2 of
sda6 into the MBR of sda.
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix
Attached Files
File Type: txt analysis report.txt (12.0 KB, 10 views)
 
Old 11-19-2020, 02:43 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,354

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
from the boot-repair-cd click on "recommended repair" and follow the prompts. When done reboot
 
2 members found this post helpful.
Old 11-21-2020, 07:44 AM   #5
bruno labonté
LQ Newbie
 
Registered: Apr 2016
Posts: 29

Original Poster
Rep: Reputation: Disabled
problem 100% solved, thank you!

Bruno
 
  


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
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
Grub errors...grub errors...grub errors smattmac Linux - Newbie 1 06-13-2005 02:07 PM
Grub, Grub and Grub ZeroEffect Linux - Newbie 11 10-07-2004 01:33 PM
GRUB GRUB GRUB GRUB "Whats Going on?" Gaweph Linux - Newbie 6 03-26-2004 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:06 PM.

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