Win7/Mint18.3 Dual Booting into "wrong" grub/bootloader
At startup system stalls for a blink, then searches 1-2 sec for grub, loads grub stage 1.5 and boots Linux on hd0,6.
Grub installation directory seems to be /boot/grub/dev/sda (as hd0)
Traditional Grub menu with option to boot either Linux or Win7 does not appear anymore and W7 can only
be booted with the help of a grub rescue DVD.
Under Grub rescue disk, both W7 and Linux show up as available Operating systems and can be booted.
hd1,msdos5 = W7 loader
hd1,msdos7 = Linux Loader
# sudo os-prober returns
/dev1/sda1 Windows Recovery environment loader
/dev1/sda5 Windows7 loader
Obviously, grub is not properly booting from hd0 and the links to the winloaders on hd1 are broken. How can
I fix that?
Goal is to have classic grub loader menu in mbr/hd0 appear at startup with available selection of
Linux or W7, as was the case before fixing an issue with GParted (error message and stall)
Have tried for days to recover old status. Among other booted into Linux, then
erased files cfg.grub, menu.lst and had rebuilt these with
sudo grub-install dev/sda, sudo update-grub, grub-mkconfig. etc.
Nothing worked. How can I reinstall/reactivate classic dual-boot grub menu/loader and integrate boot links to W7 on hd1.
Thanks for any help.
rme@rme-Q330 ~ $ inxi -po
Partition: ID-1: / size: 33G used: 16G (52%) fs: ext4 dev: /dev/sda7
ID-2: /home size: 48G used: 6.5G (15%) fs: ext4 dev: /dev/sda10
ID-3: swap-1 size: 6.49GB used: 0.00GB (0%) fs: swap dev: /dev/sda8
Unmounted: ID-1: /dev/sda1 size: 21.74G label: RECOVERY uuid: 01D494C09DC17500
ID-2: /dev/sda5 size: 0.24G label: SYSTEM uuid: 01D494C0A5F2A000
ID-3: /dev/sda6 size: 127.40G label: WinBoot uuid: 01D494D128C0D9B0
ID-4: /dev/sda9 size: 167.78G label: DATA uuid: 01D4956B51367630
ID-5: /dev/sda11 size: 22.32G label: FATDATA uuid: C2B5-7D90
rme@rme-Q330 ~ $ inxi -po | grep sd ; sudo parted -l
Partition: ID-1: / size: 33G used: 16G (52%) fs: ext4 dev: /dev/sda7
ID-2: /home size: 48G used: 6.5G (15%) fs: ext4 dev: /dev/sda10
ID-3: swap-1 size: 6.49GB used: 0.00GB (0%) fs: swap dev: /dev/sda8
Unmounted: ID-1: /dev/sda1 size: 21.74G label: RECOVERY uuid: 01D494C09DC17500
ID-2: /dev/sda5 size: 0.24G label: SYSTEM uuid: 01D494C0A5F2A000
ID-3: /dev/sda6 size: 127.40G label: WinBoot uuid: 01D494D128C0D9B0
ID-4: /dev/sda9 size: 167.78G label: DATA uuid: 01D4956B51367630
ID-5: /dev/sda11 size: 22.32G label: FATDATA uuid: C2B5-7D90
[sudo] Passwort für rme:
Modell: ATA KINGSTON SA400S3 (scsi)
Festplatte /dev/sda: 480GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: msdos
Disk-Flags:
Nummer Anfang Ende Größe Typ Dateisystem Flags
1 1049kB 21.7GB 21.7GB primary ntfs
2 21.7GB 436GB 414GB extended LBA
5 21.7GB 22.0GB 240MB logical ntfs
6 22.0GB 149GB 127GB logical ntfs
7 149GB 185GB 35.7GB logical ext4
8 185GB 192GB 6485MB logical linux-swap(v1)
9 192GB 359GB 168GB logical ntfs
10 361GB 414GB 52.4GB logical ext4
11 414GB 436GB 22.3GB logical fat32
Win7/Mint18.3 Dual Booting into "wrong" grub/bootloader
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Win7/Mint18.3 Dual Booting into "wrong" grub/bootloader
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Win7/Mint18.3 Dual Booting into "wrong" grub/bootloader
Windows may be corrupted. Run
Code: Select all
sudo ntfsfix -b -d /dev/sda5
sudo ntfsfix -b -d /dev/sda6
sudo os-prober
Re: Win7/Mint18.3 Dual Booting into "wrong" grub/bootloader
Thanks for your quick reply. No change though.
suggested Cmds reported all fixed, no errors, os-prober output identical as above.
When rebooted again short search, then finds grub stage 1.5 and loads into (hd0,6) ext4 Linux. Traditional grub loader with boot choice does not appear.
Sidenote: Found, that the drive is properly booting, with no problems and with proper Traditional grub bootloader selection menu when ssd is booted via usb. as soon as ssd reinstalled in notebook, same old problem. Strange.
suggested Cmds reported all fixed, no errors, os-prober output identical as above.
When rebooted again short search, then finds grub stage 1.5 and loads into (hd0,6) ext4 Linux. Traditional grub loader with boot choice does not appear.
Sidenote: Found, that the drive is properly booting, with no problems and with proper Traditional grub bootloader selection menu when ssd is booted via usb. as soon as ssd reinstalled in notebook, same old problem. Strange.
Re: Win7/Mint18.3 Dual Booting into "wrong" grub/bootloader
Have "solved" the problem by reinstalling Mint partition, then sudo grub-install /dev/sda and then update-grub.
Thanks for any help.
Thanks for any help.