[SOLVED] Dual booting with Windows and Pop OS



f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,965
Reaction score
4,439
Credits
43,818
Hi there,

Thanks for responding.

I gave done:
Set prefix=(hd0,gpt3)/boot/grub
Set foot=(hd0,gpt3)
Insmod Linuxinsmod normalnormalas before, this gets the grub menu up.

Next, in Linux I do:

Sudo update-grub

After reboot again it goes to grub> command prompt
After you enter this do you have to enter a password to boot?
 
OP
H

Hbayram

Member
Joined
Aug 15, 2021
Messages
36
Reaction score
9
Credits
246
No password. It displays a blue grub menu any you can boot into either system with no problem. Upon reboot the menu is gone and again you are in grub> prompt.
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,965
Reaction score
4,439
Credits
43,818
Once you are booted into PopOS, can you share the output of the following?
Code:
lsblk
cat /etc/fstab
 
OP
H

Hbayram

Member
Joined
Aug 15, 2021
Messages
36
Reaction score
9
Credits
246
Thank you.
 

Attachments

  • Screenshot from 2021-08-16 15-31-10.png
    Screenshot from 2021-08-16 15-31-10.png
    139.4 KB · Views: 175
  • Screenshot from 2021-08-16 15-31-53.png
    Screenshot from 2021-08-16 15-31-53.png
    135.1 KB · Views: 175

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,965
Reaction score
4,439
Credits
43,818
Can you please share it as text and with code tags, also can you share the output of the following as well.
Code:
sudo cat /etc/crypttab
efibootmgr
 
OP
H

Hbayram

Member
Joined
Aug 15, 2021
Messages
36
Reaction score
9
Credits
246
Sure. This is the first one:

[email protected]:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 81.8M 1 loop /snap/bluemail/100
loop1 7:1 0 81.8M 1 loop /snap/bluemail/101
loop2 7:2 0 55.4M 1 loop /snap/core18/2074
loop3 7:3 0 337.5M 1 loop /snap/wine-platform-runtime/232
loop4 7:4 0 303.1M 1 loop /snap/wine-platform-5-stable/16
loop5 7:5 0 99.4M 1 loop /snap/core/11420
loop6 7:6 0 219M 1 loop /snap/gnome-3-34-1804/72
loop7 7:7 0 164.8M 1 loop /snap/gnome-3-28-1804/161
loop8 7:8 0 85M 1 loop /snap/netflix-viewer/18
loop9 7:9 0 337.4M 1 loop /snap/wine-platform-runtime/233
loop10 7:10 0 55.4M 1 loop /snap/core18/2128
loop11 7:11 0 65.1M 1 loop /snap/gtk-common-themes/1515
mmcblk0 179:0 0 183.3G 0 disk
└─mmcblk0p1 179:1 0 183.3G 0 part /media/huso/200Gb_MSD
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 498M 0 part /boot/efi
├─nvme0n1p2 259:2 0 4G 0 part /recovery
├─nvme0n1p3 259:3 0 393.9G 0 part /run/timeshift/backup
├─nvme0n1p4 259:4 0 16M 0 part
├─nvme0n1p5 259:5 0 74.5G 0 part
└─nvme0n1p6 259:6 0 4G 0 part
└─cryptswap 253:0 0 4G 0 crypt [SWAP]
nvme1n1 259:7 0 27.3G 0 disk
[email protected]:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
#PARTUUID=5142cec2-d485-4563-8c75-a5cf4bbd3d5e /boot/efi vfat umask=0077 0 0
PARTUUID=9a9854ec-afad-41c6-aa7e-cb438532e499 /recovery vfat umask=0077 0 0
UUID=3fe5911f-18d3-456f-9f71-6a27e3eb8b62 / ext4 noatime,errors=remount-ro 0 0
/dev/mapper/cryptswap none swap defaults 0 0
#UUID=5100-A6CA /boot/efi vfat defaults 0 1
#UUID=5100-A6CA /boot/efi vfat defaults 0 1
#UUID=5100-A6CA /boot/efi vfat defaults 0 1
#UUID=5100-A6CA /boot/efi vfat defaults 0 1
UUID=5100-A6CA /boot/efi vfat defaults 0 1
 
OP
H

Hbayram

Member
Joined
Aug 15, 2021
Messages
36
Reaction score
9
Credits
246
and the second:

[email protected]:~$ sudo cat /etc/crypttab
[sudo] password for huso:
cryptswap UUID=df7841a6-87e8-4f95-bafc-ffe587b3e5b9 /dev/urandom swap,plain,offset=1024,cipher=aes-xts-plain64,size=512
[email protected]:~$ efibootmgr
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0002,0001,0000,0003
Boot0000* Pop!_OS 21.04
Boot0001* UEFI OS
Boot0002* pop
Boot0003* Windows Boot Manager
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,965
Reaction score
4,439
Credits
43,818
I'm getting the idea that grub doesn't know which partition your root partition is on. I did install PopOS in a vm with uefi boot and by default it installs systemd-boot. Did you install grub yourself or was grub installed during the installation process? On which disk and partition do you have Windows installed?
 
OP
H

Hbayram

Member
Joined
Aug 15, 2021
Messages
36
Reaction score
9
Credits
246
No, grub does not come with pop os out of the box, I installed it myself.

İt was a nightmare on my Asus UX325JA laptop. I reduced the size of the windows partition to make room for Linux. Upon booting to the installer, it would not see the free space. I then unencrypted windows which was using bitlocker. I also disabled secure boot in the bios and changed to uefi. Again Linux could not see the free space.

So, after days without luck I wiped the machine fully and installed pop as the only os. İt then installed fine. I then made free space for Windows and successfully installed it too.

I then followed instructions to setup grub and this is where I am now. İf i press ESC when booting the matchine I can boot into windows or Linux no problem. However, if i just switch it on and leave it alone it always goes back to grub>

İf i type in the grub commands in my initial post the grub menu does appear and both os boot up. But, if i rebook I am back on the grub> prompt!
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,965
Reaction score
4,439
Credits
43,818
I thought so, thanks for verifying that. On which disk and partition is your Windows installation located at?
Code:
mmcblk0 179:0 0 183.3G 0 disk
└─mmcblk0p1 179:1 0 183.3G 0 part /media/huso/200Gb_MSD
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 498M 0 part /boot/efi
├─nvme0n1p2 259:2 0 4G 0 part /recovery
├─nvme0n1p3 259:3 0 393.9G 0 part /run/timeshift/backup
├─nvme0n1p4 259:4 0 16M 0 part
├─nvme0n1p5 259:5 0 74.5G 0 part
└─nvme0n1p6 259:6 0 4G 0 part
└─cryptswap 253:0 0 4G 0 crypt [SWAP]
nvme1n1 259:7 0 27.3G 0 disk
Is your Windows installation on mmcblk0 and you PopOS installation on nvme0n1?
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,965
Reaction score
4,439
Credits
43,818
Why did you actually install grub if systemd-boot was working?
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,965
Reaction score
4,439
Credits
43,818
Did you install Windows or PopOS first?
 
OP
H

Hbayram

Member
Joined
Aug 15, 2021
Messages
36
Reaction score
9
Credits
246
Due to the problem I had adding pop to windows, I wiped it and first installed pop and then windows.
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,965
Reaction score
4,439
Credits
43,818
Due to the problem I had adding pop to windows, I wiped it and first installed pop and then windows.
Usually it's better to first install Windows and then Linux. I'll try to see if I create a dual boot system with PopOS and Windows with grub as bootloader on a virtual system.
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,965
Reaction score
4,439
Credits
43,818
And at what point did you install grub, after you had install both PopOS and Windows?
 
OP
H

Hbayram

Member
Joined
Aug 15, 2021
Messages
36
Reaction score
9
Credits
246
Thanks mate. I really appreciate your help. I tried to do it that way, but Linux refused to see my drive as available and usable.
 
OP
H

Hbayram

Member
Joined
Aug 15, 2021
Messages
36
Reaction score
9
Credits
246
Yes. First Linux, then windows and finally grub. İf you do sudo update-grub, it sees every partition. 3 for Linux and 3 for Windows.
 

Staff online


Top