how to fix grub for dual boot after installing windows 8?Moving encrypted home folder to a new hard driveDual...

How were servants to the Kaiser of Imperial Germany treated and where may I find more information on them

How would a solely written language work mechanically

How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?

Anime with legendary swords made from talismans and a man who could change them with a shattered body

In One Punch Man, is King actually weak?

Why is the sun approximated as a black body at ~ 5800 K?

Personal or impersonal in a technical resume

Overlapping circles covering polygon

Should I warn a new PhD Student?

Do you waste sorcery points if you try to apply metamagic to a spell from a scroll but fail to cast it?

Why would five hundred and five be same as one?

Review your own paper in Mathematics

Language involving irrational number is not a CFL

ContourPlot — How do I color by contour curvature?

Should I assume I have passed probation?

Why does the Persian emissary display a string of crowned skulls?

Why is participating in the European Parliamentary elections used as a threat?

Why do Radio Buttons not fill the entire outer circle?

How to leave product feedback on macOS?

Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?

Ways of geometrical multiplication

SOQL query causes internal Salesforce error

Given this phrasing in the lease, when should I pay my rent?

Check if object is null and return null



how to fix grub for dual boot after installing windows 8?


Moving encrypted home folder to a new hard driveDual boot disaster. Professional help neededBoot linux on external hard disk - Send Grub RescueDual Boot - Windows does not showslow boot up in ubuntu 16.04 LTS 64 bitGRUB doesn't show Win XP after Install with “alongside” optionHow to install grub after fatal error on failed RAID system?Ubuntu windows 10 Dual boot problemunable to boot to windows 10 after installing kubuntu 18.04 on second hdd using lvmUbuntu on Second Drive Windows 10













0















i ran in dualboot an encrypted ubuntu 16.04lts with a windows 8.1..after reinstalling windows i lost the grub menu..i tried fixing it by running bootrepair using recommended repair button but it didnt work..i think because the partition is encrypted.



from a live cd :



ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 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


Disk /dev/loop0: 1.3 GiB, 1433468928 bytes, 2799744 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


Disk /dev/sda: 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
Disk identifier: 0x8448020a

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 567158783 567156736 270.5G 7 HPFS/NTFS/exFAT
/dev/sda2 567158784 568135679 976896 477M 83 Linux
/dev/sda3 568137726 764157951 196020226 93.5G 5 Extended
/dev/sda4 771971445 976768064 204796620 97.7G 7 HPFS/NTFS/exFAT
/dev/sda5 568137728 764157951 196020224 93.5G 83 Linux

Partition 3 does not start on physical sector boundary.
Partition 4 does not start on physical sector boundary.
Partition table entries are not in disk order.




Disk /dev/sdb: 3.8 GiB, 4089970688 bytes, 7988224 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
Disk identifier: 0x00255f71

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 7988223 7986176 3.8G c W95 FAT32 (LBA)


Disk /dev/mapper/encrypted-volume: 93.5 GiB, 100360257536 bytes, 196016128 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


the sda4:noname3 is a partition without any OS, and
the sda1 has the windows 8.



ubuntu@ubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 270.5G 0 part
├─sda2 8:2 0 477M 0 part /mnt
├─sda3 8:3 0 1K 0 part
├─sda4 8:4 0 97.7G 0 part /media/ubuntu/NoName3
└─sda5 8:5 0 93.5G 0 part
└─encrypted-volume 252:0 0 93.5G 0 crypt
sdb 8:16 1 3.8G 0 disk
└─sdb1 8:17 1 3.8G 0 part /cdrom
sr0 11:0 1 1024M 0 rom
loop0 7:0 0 1.3G 1 loop /rofs


here are the errors i ran to :



ubuntu@ubuntu:~$ sudo update-grub
/usr/sbin/grub-probe: error: failed to get canonical path of `/cow'.

ubuntu@ubuntu:~$ sudo cryptsetup luksOpen /dev/sda5 encrypted-volume
Enter passphrase for /dev/sda5:
Cannot use device /dev/sda5 which is in use (already mapped or mounted)

ubuntu@ubuntu:~$ sudo vgchange -ay
ubuntu@ubuntu:~$ sudo lvscan
ubuntu@ubuntu:~$ sudo ls /dev/mapper/
control encrypted-volume
ubuntu@ubuntu:~$ sudo mount /dev/mapper/sda5 /mnt/system/
mount: special device /dev/mapper/sda5 does not exist
ubuntu@ubuntu:~$ sudo mount /dev/sda2 /mnt/system/boot/
mount: mount point /mnt/system/boot/ does not exist

ubuntu@ubuntu:~$ sudo mount /dev/mapper/sda5 /mnt
mount: special device /dev/mapper/sda5 does not exist

ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
mount: unknown filesystem type 'crypto_LUKS'


i got to be honest i am a noob when it comes to linux but i really enjoyed working with ubuntu this past 2 years..i hope someone can help me fix it..thank you in advance.









share







New contributor




aramu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    i ran in dualboot an encrypted ubuntu 16.04lts with a windows 8.1..after reinstalling windows i lost the grub menu..i tried fixing it by running bootrepair using recommended repair button but it didnt work..i think because the partition is encrypted.



    from a live cd :



    ubuntu@ubuntu:~$ sudo fdisk -l
    Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 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


    Disk /dev/loop0: 1.3 GiB, 1433468928 bytes, 2799744 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


    Disk /dev/sda: 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
    Disk identifier: 0x8448020a

    Device Boot Start End Sectors Size Id Type
    /dev/sda1 * 2048 567158783 567156736 270.5G 7 HPFS/NTFS/exFAT
    /dev/sda2 567158784 568135679 976896 477M 83 Linux
    /dev/sda3 568137726 764157951 196020226 93.5G 5 Extended
    /dev/sda4 771971445 976768064 204796620 97.7G 7 HPFS/NTFS/exFAT
    /dev/sda5 568137728 764157951 196020224 93.5G 83 Linux

    Partition 3 does not start on physical sector boundary.
    Partition 4 does not start on physical sector boundary.
    Partition table entries are not in disk order.




    Disk /dev/sdb: 3.8 GiB, 4089970688 bytes, 7988224 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
    Disk identifier: 0x00255f71

    Device Boot Start End Sectors Size Id Type
    /dev/sdb1 * 2048 7988223 7986176 3.8G c W95 FAT32 (LBA)


    Disk /dev/mapper/encrypted-volume: 93.5 GiB, 100360257536 bytes, 196016128 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


    the sda4:noname3 is a partition without any OS, and
    the sda1 has the windows 8.



    ubuntu@ubuntu:~$ lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 465.8G 0 disk
    ├─sda1 8:1 0 270.5G 0 part
    ├─sda2 8:2 0 477M 0 part /mnt
    ├─sda3 8:3 0 1K 0 part
    ├─sda4 8:4 0 97.7G 0 part /media/ubuntu/NoName3
    └─sda5 8:5 0 93.5G 0 part
    └─encrypted-volume 252:0 0 93.5G 0 crypt
    sdb 8:16 1 3.8G 0 disk
    └─sdb1 8:17 1 3.8G 0 part /cdrom
    sr0 11:0 1 1024M 0 rom
    loop0 7:0 0 1.3G 1 loop /rofs


    here are the errors i ran to :



    ubuntu@ubuntu:~$ sudo update-grub
    /usr/sbin/grub-probe: error: failed to get canonical path of `/cow'.

    ubuntu@ubuntu:~$ sudo cryptsetup luksOpen /dev/sda5 encrypted-volume
    Enter passphrase for /dev/sda5:
    Cannot use device /dev/sda5 which is in use (already mapped or mounted)

    ubuntu@ubuntu:~$ sudo vgchange -ay
    ubuntu@ubuntu:~$ sudo lvscan
    ubuntu@ubuntu:~$ sudo ls /dev/mapper/
    control encrypted-volume
    ubuntu@ubuntu:~$ sudo mount /dev/mapper/sda5 /mnt/system/
    mount: special device /dev/mapper/sda5 does not exist
    ubuntu@ubuntu:~$ sudo mount /dev/sda2 /mnt/system/boot/
    mount: mount point /mnt/system/boot/ does not exist

    ubuntu@ubuntu:~$ sudo mount /dev/mapper/sda5 /mnt
    mount: special device /dev/mapper/sda5 does not exist

    ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
    mount: unknown filesystem type 'crypto_LUKS'


    i got to be honest i am a noob when it comes to linux but i really enjoyed working with ubuntu this past 2 years..i hope someone can help me fix it..thank you in advance.









    share







    New contributor




    aramu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      i ran in dualboot an encrypted ubuntu 16.04lts with a windows 8.1..after reinstalling windows i lost the grub menu..i tried fixing it by running bootrepair using recommended repair button but it didnt work..i think because the partition is encrypted.



      from a live cd :



      ubuntu@ubuntu:~$ sudo fdisk -l
      Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/loop0: 1.3 GiB, 1433468928 bytes, 2799744 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


      Disk /dev/sda: 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
      Disk identifier: 0x8448020a

      Device Boot Start End Sectors Size Id Type
      /dev/sda1 * 2048 567158783 567156736 270.5G 7 HPFS/NTFS/exFAT
      /dev/sda2 567158784 568135679 976896 477M 83 Linux
      /dev/sda3 568137726 764157951 196020226 93.5G 5 Extended
      /dev/sda4 771971445 976768064 204796620 97.7G 7 HPFS/NTFS/exFAT
      /dev/sda5 568137728 764157951 196020224 93.5G 83 Linux

      Partition 3 does not start on physical sector boundary.
      Partition 4 does not start on physical sector boundary.
      Partition table entries are not in disk order.




      Disk /dev/sdb: 3.8 GiB, 4089970688 bytes, 7988224 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
      Disk identifier: 0x00255f71

      Device Boot Start End Sectors Size Id Type
      /dev/sdb1 * 2048 7988223 7986176 3.8G c W95 FAT32 (LBA)


      Disk /dev/mapper/encrypted-volume: 93.5 GiB, 100360257536 bytes, 196016128 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


      the sda4:noname3 is a partition without any OS, and
      the sda1 has the windows 8.



      ubuntu@ubuntu:~$ lsblk
      NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
      sda 8:0 0 465.8G 0 disk
      ├─sda1 8:1 0 270.5G 0 part
      ├─sda2 8:2 0 477M 0 part /mnt
      ├─sda3 8:3 0 1K 0 part
      ├─sda4 8:4 0 97.7G 0 part /media/ubuntu/NoName3
      └─sda5 8:5 0 93.5G 0 part
      └─encrypted-volume 252:0 0 93.5G 0 crypt
      sdb 8:16 1 3.8G 0 disk
      └─sdb1 8:17 1 3.8G 0 part /cdrom
      sr0 11:0 1 1024M 0 rom
      loop0 7:0 0 1.3G 1 loop /rofs


      here are the errors i ran to :



      ubuntu@ubuntu:~$ sudo update-grub
      /usr/sbin/grub-probe: error: failed to get canonical path of `/cow'.

      ubuntu@ubuntu:~$ sudo cryptsetup luksOpen /dev/sda5 encrypted-volume
      Enter passphrase for /dev/sda5:
      Cannot use device /dev/sda5 which is in use (already mapped or mounted)

      ubuntu@ubuntu:~$ sudo vgchange -ay
      ubuntu@ubuntu:~$ sudo lvscan
      ubuntu@ubuntu:~$ sudo ls /dev/mapper/
      control encrypted-volume
      ubuntu@ubuntu:~$ sudo mount /dev/mapper/sda5 /mnt/system/
      mount: special device /dev/mapper/sda5 does not exist
      ubuntu@ubuntu:~$ sudo mount /dev/sda2 /mnt/system/boot/
      mount: mount point /mnt/system/boot/ does not exist

      ubuntu@ubuntu:~$ sudo mount /dev/mapper/sda5 /mnt
      mount: special device /dev/mapper/sda5 does not exist

      ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
      mount: unknown filesystem type 'crypto_LUKS'


      i got to be honest i am a noob when it comes to linux but i really enjoyed working with ubuntu this past 2 years..i hope someone can help me fix it..thank you in advance.









      share







      New contributor




      aramu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      i ran in dualboot an encrypted ubuntu 16.04lts with a windows 8.1..after reinstalling windows i lost the grub menu..i tried fixing it by running bootrepair using recommended repair button but it didnt work..i think because the partition is encrypted.



      from a live cd :



      ubuntu@ubuntu:~$ sudo fdisk -l
      Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 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


      Disk /dev/loop0: 1.3 GiB, 1433468928 bytes, 2799744 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


      Disk /dev/sda: 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
      Disk identifier: 0x8448020a

      Device Boot Start End Sectors Size Id Type
      /dev/sda1 * 2048 567158783 567156736 270.5G 7 HPFS/NTFS/exFAT
      /dev/sda2 567158784 568135679 976896 477M 83 Linux
      /dev/sda3 568137726 764157951 196020226 93.5G 5 Extended
      /dev/sda4 771971445 976768064 204796620 97.7G 7 HPFS/NTFS/exFAT
      /dev/sda5 568137728 764157951 196020224 93.5G 83 Linux

      Partition 3 does not start on physical sector boundary.
      Partition 4 does not start on physical sector boundary.
      Partition table entries are not in disk order.




      Disk /dev/sdb: 3.8 GiB, 4089970688 bytes, 7988224 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
      Disk identifier: 0x00255f71

      Device Boot Start End Sectors Size Id Type
      /dev/sdb1 * 2048 7988223 7986176 3.8G c W95 FAT32 (LBA)


      Disk /dev/mapper/encrypted-volume: 93.5 GiB, 100360257536 bytes, 196016128 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


      the sda4:noname3 is a partition without any OS, and
      the sda1 has the windows 8.



      ubuntu@ubuntu:~$ lsblk
      NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
      sda 8:0 0 465.8G 0 disk
      ├─sda1 8:1 0 270.5G 0 part
      ├─sda2 8:2 0 477M 0 part /mnt
      ├─sda3 8:3 0 1K 0 part
      ├─sda4 8:4 0 97.7G 0 part /media/ubuntu/NoName3
      └─sda5 8:5 0 93.5G 0 part
      └─encrypted-volume 252:0 0 93.5G 0 crypt
      sdb 8:16 1 3.8G 0 disk
      └─sdb1 8:17 1 3.8G 0 part /cdrom
      sr0 11:0 1 1024M 0 rom
      loop0 7:0 0 1.3G 1 loop /rofs


      here are the errors i ran to :



      ubuntu@ubuntu:~$ sudo update-grub
      /usr/sbin/grub-probe: error: failed to get canonical path of `/cow'.

      ubuntu@ubuntu:~$ sudo cryptsetup luksOpen /dev/sda5 encrypted-volume
      Enter passphrase for /dev/sda5:
      Cannot use device /dev/sda5 which is in use (already mapped or mounted)

      ubuntu@ubuntu:~$ sudo vgchange -ay
      ubuntu@ubuntu:~$ sudo lvscan
      ubuntu@ubuntu:~$ sudo ls /dev/mapper/
      control encrypted-volume
      ubuntu@ubuntu:~$ sudo mount /dev/mapper/sda5 /mnt/system/
      mount: special device /dev/mapper/sda5 does not exist
      ubuntu@ubuntu:~$ sudo mount /dev/sda2 /mnt/system/boot/
      mount: mount point /mnt/system/boot/ does not exist

      ubuntu@ubuntu:~$ sudo mount /dev/mapper/sda5 /mnt
      mount: special device /dev/mapper/sda5 does not exist

      ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
      mount: unknown filesystem type 'crypto_LUKS'


      i got to be honest i am a noob when it comes to linux but i really enjoyed working with ubuntu this past 2 years..i hope someone can help me fix it..thank you in advance.







      boot dual-boot grub2 encryption





      share







      New contributor




      aramu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      aramu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      aramu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 1 min ago









      aramuaramu

      11




      11




      New contributor




      aramu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      aramu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      aramu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          aramu is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1127389%2fhow-to-fix-grub-for-dual-boot-after-installing-windows-8%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          aramu is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          aramu is a new contributor. Be nice, and check out our Code of Conduct.













          aramu is a new contributor. Be nice, and check out our Code of Conduct.












          aramu is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1127389%2fhow-to-fix-grub-for-dual-boot-after-installing-windows-8%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          List of shipwrecks in 1808...

          Is there a lightweight tool to crop images quickly?Cropping Images using Command Line Tools OnlyHow to crop...

          How do I enter a file or directory with special characters in its name?How to write the path of a folder with...