gipsyshadow
February 22nd, 2019, 01:33 PM
Hi, In my new PC I firstly managed a dual boot windows 10 pro - ubuntu 18.04.1lts dual boot with success. Yesterday I wanted to try a different win10 release (enterprise) and I installed it, then I tried to upgrade grub but I'm sure I messed up lots of things and now Ubuntu doesn't boot anymore.
In my MB's bios if I set boot order (1.win, 2.ubuntu) win starts as ubuntu was not present, I mean no grub display. If I set the boot order (1.ubuntu, 2.win) grub menu is displayed but there's no windows boot option, I mean only ubuntu, and if I select ubuntu I get black screen and led monitor gets yellow as if the PC was switched off. So I can run only ubuntu from live usb.
Here're some command outputs I guess could be useful to see the mess I've done:
ubuntu@ubuntu:~$ sudo fdisk -l
[...]
Device Start End Sectors Size Type
/dev/sda1 2048 1023999 1021952 499M Windows recovery environment
/dev/sda2 1024000 1228799 204800 100M EFI System
/dev/sda3 1228800 1261567 32768 16M Microsoft reserved
/dev/sda4 103561216 266242047 162680832 77.6G Microsoft basic data
/dev/sda5 266242048 286722047 20480000 9.8G Microsoft basic data
/dev/sda6 286722048 1953523711 1666801664 794.8G Microsoft basic data
/dev/sda7 1261568 103560396 102298829 48.8G Linux filesystem
Partition table entries are not in disk order.
[...]
Device Boot Start End Sectors Size Id Type
/dev/sdc1 1701998450 3638285201 1936286752 923.3G d unknown
/dev/sdc2 1701995885 2246105740 544109856 259.5G a OS/2 Boot Manager
/dev/sdc3 1769087090 3538458322 1769371233 843.7G 6f unknown
/dev/sdc4 2885681152 2885734849 53698 26.2M a OS/2 Boot Manager
Partition table entries are not in disk order.
ubuntu@ubuntu:~$ sudo parted -l
Model: ATA WDC WD1003FZEX-0 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 524MB 523MB ntfs Basic data partition hidden, diag
2 524MB 629MB 105MB fat32 EFI system partition boot, esp
3 629MB 646MB 16.8MB Microsoft reserved partition msftres
7 646MB 53.0GB 52.4GB ext4
4 53.0GB 136GB 83.3GB ntfs Basic data partition msftdata
5 136GB 147GB 10.5GB ext4 msftdata
6 147GB 1000GB 853GB ntfs msftdata
ubuntu@ubuntu:~$ sudo sfdisk -d /dev/sda
label: gpt
label-id: 80053721-D476-46FF-BDF8-55738A46C5DA
device: /dev/sda
unit: sectors
first-lba: 34
last-lba: 1953525134
/dev/sda1 : start= 2048, size= 1021952, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=54980FB0-BAC4-4CE1-A798-59457D9ED9DC, name="Basic data partition", attrs="RequiredPartition"
/dev/sda2 : start= 1024000, size= 204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=55A5E162-F205-4BAA-A392-B50D8540D604, name="EFI system partition"
/dev/sda3 : start= 1228800, size= 32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=27F3ECB1-A3D7-4165-B101-04B86B764FA8, name="Microsoft reserved partition"
/dev/sda4 : start= 103561216, size= 162680832, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=87152797-7668-4EBF-9530-82AAB43456FF, name="Basic data partition"
/dev/sda5 : start= 266242048, size= 20480000, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=39E42FAA-A7CD-4E13-B2F4-A839480FE995
/dev/sda6 : start= 286722048, size= 1666801664, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=69DC3608-16E8-496F-9743-E56ABAD0F423
/dev/sda7 : start= 1261568, size= 102298829, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=609DAA35-6C30-4BE0-974D-0E0C9B6DDEBE
I attach a gparted live screenshot too. Consider that sda7 (48.78G) is ROOT, sda5 (9.77G) is HOME and sda4 (77.57G) is win10. Also consider that it takes very few time to reinstall both OOSS with my hardware therefore I think we can consider this option too if it's the fastest one to solve the mess I made :)
In my MB's bios if I set boot order (1.win, 2.ubuntu) win starts as ubuntu was not present, I mean no grub display. If I set the boot order (1.ubuntu, 2.win) grub menu is displayed but there's no windows boot option, I mean only ubuntu, and if I select ubuntu I get black screen and led monitor gets yellow as if the PC was switched off. So I can run only ubuntu from live usb.
Here're some command outputs I guess could be useful to see the mess I've done:
ubuntu@ubuntu:~$ sudo fdisk -l
[...]
Device Start End Sectors Size Type
/dev/sda1 2048 1023999 1021952 499M Windows recovery environment
/dev/sda2 1024000 1228799 204800 100M EFI System
/dev/sda3 1228800 1261567 32768 16M Microsoft reserved
/dev/sda4 103561216 266242047 162680832 77.6G Microsoft basic data
/dev/sda5 266242048 286722047 20480000 9.8G Microsoft basic data
/dev/sda6 286722048 1953523711 1666801664 794.8G Microsoft basic data
/dev/sda7 1261568 103560396 102298829 48.8G Linux filesystem
Partition table entries are not in disk order.
[...]
Device Boot Start End Sectors Size Id Type
/dev/sdc1 1701998450 3638285201 1936286752 923.3G d unknown
/dev/sdc2 1701995885 2246105740 544109856 259.5G a OS/2 Boot Manager
/dev/sdc3 1769087090 3538458322 1769371233 843.7G 6f unknown
/dev/sdc4 2885681152 2885734849 53698 26.2M a OS/2 Boot Manager
Partition table entries are not in disk order.
ubuntu@ubuntu:~$ sudo parted -l
Model: ATA WDC WD1003FZEX-0 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 524MB 523MB ntfs Basic data partition hidden, diag
2 524MB 629MB 105MB fat32 EFI system partition boot, esp
3 629MB 646MB 16.8MB Microsoft reserved partition msftres
7 646MB 53.0GB 52.4GB ext4
4 53.0GB 136GB 83.3GB ntfs Basic data partition msftdata
5 136GB 147GB 10.5GB ext4 msftdata
6 147GB 1000GB 853GB ntfs msftdata
ubuntu@ubuntu:~$ sudo sfdisk -d /dev/sda
label: gpt
label-id: 80053721-D476-46FF-BDF8-55738A46C5DA
device: /dev/sda
unit: sectors
first-lba: 34
last-lba: 1953525134
/dev/sda1 : start= 2048, size= 1021952, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=54980FB0-BAC4-4CE1-A798-59457D9ED9DC, name="Basic data partition", attrs="RequiredPartition"
/dev/sda2 : start= 1024000, size= 204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=55A5E162-F205-4BAA-A392-B50D8540D604, name="EFI system partition"
/dev/sda3 : start= 1228800, size= 32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=27F3ECB1-A3D7-4165-B101-04B86B764FA8, name="Microsoft reserved partition"
/dev/sda4 : start= 103561216, size= 162680832, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=87152797-7668-4EBF-9530-82AAB43456FF, name="Basic data partition"
/dev/sda5 : start= 266242048, size= 20480000, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=39E42FAA-A7CD-4E13-B2F4-A839480FE995
/dev/sda6 : start= 286722048, size= 1666801664, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=69DC3608-16E8-496F-9743-E56ABAD0F423
/dev/sda7 : start= 1261568, size= 102298829, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=609DAA35-6C30-4BE0-974D-0E0C9B6DDEBE
I attach a gparted live screenshot too. Consider that sda7 (48.78G) is ROOT, sda5 (9.77G) is HOME and sda4 (77.57G) is win10. Also consider that it takes very few time to reinstall both OOSS with my hardware therefore I think we can consider this option too if it's the fastest one to solve the mess I made :)