I was using Linux mint and windows 10 together(in different partitions). Few months I was using freely. Today I got a message in windows 10(new updates available or shutdown and update) then, I clicked on shutdown and update. After finishing the update 50% automatically restarted my laptop. It happens multiple times when we install windows 10. Since than I am unable to start my laptop
I am not sure why this happens as far as I know this happens when there's no grub loader.
I was watching some videos and searching on Google how to fix it. I got an solution I amt not sure it will work or not they took a live USB and they had windows on there USB but, I have Linux mint in my USB will it work? https://youtu.be/xx2CFufykB0
I am using live USB(Linux mint). I was trying to mount linux disk. sudo mount /dev/sda4 /mnt
. Then, I get an error mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sda4, missing codepage or helper program, or other error.
Device Boot Start End Sectors Size Id Type /dev/sda1 * 1026048 272532369 271506322 129.5G 7 HPFS/NTFS/exFAT /dev/sda2 272533504 273694719 1161216 567M 27 Hidden NTFS WinRE /dev/sda3 273696768 274747391 1050624 513M b W95 FAT32 /dev/sda4 274749438 625141759 350392322 167.1G 5 Extended /dev/sda5 623144960 625141759 1996800 975M 82 Linux swap / Solaris
/dev/sda4 is linux. I am sure for disk size
When I use Windows 10 above disk are visible without linux mint disk. When I use Linux Mint every disks are visible. Here something happening like this.
grub-install
andupdate-grub
to re-install and re-configure GRUB. – Hermann Feb 26 '21 at 09:12sudo mount /dev/sda4 /mnt
to mount my linux disk. Then, I get an errormount: /mnt: wrong fs type, bad option, bad superblock on /dev/sda4, missing codepage or helper program, or other error.
Even, I was trying to mount it manually from file manager but, there's no disk like this. But, I found windows 10. When I triedgrub-install
from terminal I get an error.Installing for i386-pc platform. grub-install: error: install device isn't specified.
– Feb 26 '21 at 09:26sudo grub-install /dev/sda4
Error :Installing for i386-pc platform. grub-install: error: failed to get canonical path of
/cow'.` I tried it also. Then, what to do? – Feb 26 '21 at 09:34set prefix=(hd0,msdos6)/boot/grub
you mustset root=(hd0,msdos7)
, i wrotemsdos7
as example you have to find your real root partition. take a look at this link: https://paolozaino.wordpress.com/2017/12/09/how-to-fix-grub-boot-loader-after-a-windows-update-on-dual-boot-systems/ – D'Arcy Nader Feb 26 '21 at 10:07sfdisk -l /dev/sda
output. – Jonas Berlin Feb 26 '21 at 10:09sda4
is not your Linux partition. Please usefdisk -l
orsudo blkid
to find it. Also please find out whether you really use legacy BIOS MBR boot style or UEFI boot style. – Hermann Feb 26 '21 at 10:09ls
only. Then, there was no disk(or whatever it called i don't know)(hd0,msdos7)
– Feb 26 '21 at 10:16no such partition
– Feb 26 '21 at 10:26ls
from the grub rescue , like if you are booting normally. then you see what your grub rescue see. – D'Arcy Nader Feb 26 '21 at 10:34ls
from grub rescue. and, did as you said. although I got same error. So, I came again in live usb – Feb 26 '21 at 10:36ls
from grub rescue and let us help you to guess the right partition. a picture as you did before. – D'Arcy Nader Feb 26 '21 at 10:46sda
it looks like your Linux partition is gone — assuming it used to be onsda
. There's a big approx 166 gigabyte slice of the extended partition that is not in use at the moment. Do you know what size your linux partition used to be? In case my guess is correct (it might not), I want to clarify that by "gone" I don't mean it can't be recovered, but it might involve a bit of work. – Jonas Berlin Feb 26 '21 at 11:48windows-subsystem-for-linux
, so it popped up in my watched-tags list, but there's no WSL involved here - Just pure Windows and pure Linux dual-boot, right? If so, can you remove the incorrect tag? – NotTheDr01ds Feb 26 '21 at 16:59dd if=/devsda bs=512 skip=274749438 count=1 | tail -c 66 | hexdump -C
? It will dump the first partition table of the extended partition so I can see if there are any traces of the original partition definition there.. – Jonas Berlin Feb 26 '21 at 21:27