grub2 – Why won’t GRUB see any partitions other than Boot? Can’t mount an ISO image and menuentry doesn’t work

sudo grub-install -V
grub-install (GRUB) 2.04-1ubuntu26.7

Ubuntu Release 20.04.1 LTS

from the grub > ls will display drives but only the contents of the boot partition. No other partitions are recognized.
Needless to say, my menuentries for the /etc/grub.d/40_custom files go Nowhere.

This worked before in Ubuntu Release 18.04 I’m trying to get back there as the application I need to run is not supported by this release. Can I install the older GRUB version?

boot – No Operating System Found following Ubuntu Server 20.10

I have tried 16 ways to Sunday to install Ubuntu Server on this machine I have. Its an IBM 8 gigs of ram blah blah should work machine.

  • installing from USB stick and DVD Rom with the exact same problem.
  • The BIOS is set to UEFI (tried all configs on this)
  • I have tried to manually select the boot device and also let it run through in automatic mode, no dice

The end result is this, install appears to be fine, I tell it to use the entire disk, all the settings throughout the install are default I change NOTHING.

At the end, when it tells me to reboot, I remove the stick or Disc and hit enter. There is then an error about “unable to eject the CD ROM Media or USB media” I ignore it remove the install media and hit enter.

The machine comes up, finds an ip address and and bang “no operating system found”

Coincidentally, every bloody tutorial on the internet shows installing using a VM via Windows, which by the way works fine on my other machine running windows 10 and Virtual Box.

I do not know much about Linux.

Is it installed? Yes it is, because when I tried yet again to install using Ubuntu Desktop 20.04 version it confirmed that another version of Ubuntu is residing on the hard drive???

What I do not need is for someone to tell me to check the BIOS again. I have tried it in every possible configuration and nothing is working. So just leave that be please. I have read all the other posts on this board related to what I am struggling with.

What I believe is going on is the MBR or bootloader or whatever boots the OS is not pointing to the correct mount point or something to that effect.

So I need some step by step tutorial on how to modify “GRUB?” or whatever is telling this machine where to boot from on the hard drive. If you can do that for me, I will buy you a beer.

Please help!

How do i find and boot from windows boot manager in Grub 2 after deleting Ubuntu partition

Question:
Is it possible to find, locate, or install the windows 10 boot manager through the grub 2 command line?
If so, what are those commands?

I cannot boot into windows of course and i can not enter ubuntu either. If the questions above are not possible, what are my options? I only want/need windows.

Situation:
I have a dual boot (windows 10 & Ubuntu) installation on my laptop HDD, and no longer wanted to keep ubuntu on my hdd. I wanted to erase all trace of ubuntu so that i could safely transfer data to an ssd.

So Naturally, as someone new to linux, i thought it made sense to simply delete the linux partition from Windows’ Disk Manager since windows was (pre)installed first. Then migrate the data over to the clean ssd.

Problem:
After deleting the linux partition and extending the c drive to take over unallocated space, I can no longer boot windows. As soon as i turn on my laptop, the GNU GRUB ver 2.04 shows up. In the command line it displays: “grub> ”
(It is Not grub rescue)

Typing “exit” simply brings me back to the same screen. The UEFI menu that i have doesnt have any option change the boot back to windows bootmgr. I dont have a windows installation disk, or any external windows backup device that was recommended. And I dont currently have but could make another ubuntu live usb, if necessary. But it would be cool if i could do this in grub

Neither the hdd nor the ssd can boot windows nor ubuntu. But both devices bring up the GRUB> command line. I now know that data migration moves everything except the boot manager itself. Ive also learned that installing ubuntu gave the booting reigns to ubuntu and took that control away from windows. Which is why uninstalling ubuntu from windows caused this issue..

So my question is, since ubuntu is gone, is windows boot manager also erased? Or is it possible to locate it through GRUB?

2016 MacBook Pro Touch Bar (A1706) Doesn’t Boot When Battery is Plugged In

First time posting here so I’m sorry if I mess anything up.

I have a 2016 MacBook Pro Touch Bar 13″ that refuses to charge or boot when the battery is connected (It will boot when plugged into the charger and even with the battery data cable plugged in, just not when the battery power is connected). With it booted (battery disconnected) everything works normal. The computer is not receiving power when the battery is connected (no haptic feedback on trackpad, lights, fans, etc.).

Opening up the computer and giving it a visual inspection shows no physical damage, corrosion or water damage on either side of the logic board. On one of the USB-C ports I noticed what looked like a little bit of corrosion so I cleaned it off.

What I’ve tried:

  1. Different charger cable/block (OEM)
  2. New battery (OEM)
  3. Reset SMC
    This one is a little weird. When I try to reset the SMC, per Apple’s instructions (T1 with non-removable battery-I leave the battery plugged in and charger connected) the computer refuses to boot unless I disconnect the battery. So I’m not sure if it’s actually resetting or not.

MacOS says battery – “Service Recommended”, the diagnostic (Hold R while booting) shows no problems- Reference Code:APD000 (it used to give a Service Battery before I put the new battery in), and I’ve attached a screenshot of CoconutBattery.

If anybody has any ideas of what else to check or to try that would be huge help. If there’s any other info. that you need me to provide that I didn’t please let me know. Thank you!

CoconutBattery with replacement battery installed

boot – Not booting up at times

When i start my laptop running ubuntu 20.10 [updated form 20.04 LTS], it takes 5 minutes or more to to run through some texts like “[ok] started daemon” and more texts like that. At times the computer wont boot up it just repeats those texts infinitely. This existed since when i installed ubuntu 20.04 LTS for the first time.

grub2 – Computer stops during boot sequence, boot-repair did not work

Hello fellow ubuntu users,

I am using 20.04 on this computer. it was shutdown normally and next day did not complete boot sequence. I tried using a start up disk to do boot repair, the dump from that utility is here: https://paste.ubuntu.com/p/StNQQcQFvK/

Please let me know if you need more details, I will provide.

thanks for looking.

partitioning – Ubuntu 20.04 took a very long tome to boot after hibernation

I installed Ubuntu 20.04 from scratch on a laptop.

The laptop has 6Gram and the swap partition has more than 12 GRam.

The swap partition is after the file system on the disk.

If I shut down, the system goes down in a few second and boot next time in less than a minute.

If I want to hibernate the system, it would take around 5 minutes to hibernate and more than that to come back from Hibernate.

When the system goes to hibernate, the screen became black relatively quick, but hard disk works for a long time before the laptop goes off.

When the system returns back from hibernation, the screen will appear in around 1 minute but it is not responsive for a very long time and hard disk light is on.

What is the problem and how I can fix it?

tablet – how to boot in recovery mode without volume buttons and reset hole

Im having a chinese tablet Allwinner QuadCore A33
The Tablet has only POWER and HOME buttons. No Volume buttons, No reset hole.

When it boots it freeze on Company logo.

The ADB devices command see no devices.

I am trying to boot in recovery mode holding down POWER and HOME button then release POWER button but nothing happens. (like presssing POWER and Volume Up button in other devices).

Please if someone can help me to boot in recovery mode.
Thanks

dual boot – Ubuntu MBR issue

I have a Lenovo ThinkPad e14 gen 2 AMD which came with 250 gb WD NVME ssd. I decided to install Ubuntu 18.04 in dual boot with windows in a separate drive. So, I bought a second ssd (Kingston 250gb NVME) to install Ubuntu 18.04 on.

I did the following steps before installing Ubuntu:

  • Disable Bitlocker
  • Disable fast startup
  • Disable secure boot in BIOS

I then created a live USB using balena etcher and this Ubuntu iso image

From the boot menu I chose the usb and proceeded with the installation normally.

In the disk partition part, I left the first ssd labelled /dev/nvme0n1 (Windows drive) untouched and to the new ssd (/dev/nvme1n1) I made the following partitions.

  • efi – 512 mb Primary – Beginning
  • swap – 16000 mb Primary – Beginning
  • / – 60000 mb Primary – Beginning – /ext4
  • /home – 173547 mb Primary – Beginning – /ext4

For the device for bootloader installation I picked the new drive (/dev/nvme1n1)
I proceeded with the installation and rebooted and removed the usb.
I intended to install grub in the efi partition.
After rebooting I was presented with the grub menu and I realized that the new ssd was partitioned as MBR, because of which I think the bootloader was in MBR and not efi partition.
I can boot into both windows and Ubuntu but the times are not syncing.
I’m not sure if what I have done is correct.

My question is:

  • Why did Ubuntu install as MBR and not gpt even though my laptop is uefi and windows is uefi?
  • Why does the efi partition in ssd 2 show up as local disk D in windows 10?
  • Will Ubuntu in proper efi mode solve the time sync issue?
  • If I need to reinstall Ubuntu how can I do it safely?
  • What change should I make during installation or the bios to install Ubuntu correctly(UEFI with correct bootloader)?

ssd1 windows partition
ssd2_ubuntu_partitions
partitions
partition_on_windows
thinkpad_boot_menu

spring boot – CE_CLASS_ENVY Method excessively uses methods of another class Java

Spotbug is giving the violation for the below code

 @SpringBootTest
    @ActiveProfiles("test")
    class LocationServiceTest {
    
    @MockBean
    LocationService locationService;
    
    @Test 
    void shouldFetchAllLocation_whenQueried() {
       when(locationService.findAll(any(),any()).thenReturn(List.of(location("LOC1"), location("LOC2"))
    }
    
   private Location location(String id) {
        return Location.builder()
               .id(id)
               .name("name"+id)
               .postalAddress("PostalAddress")
               .region("region")
               .build();       
}
    }

This method(location) makes extensive use of methods from another class over methods of its own, but the method location(String id) calling in the same class only not in any other Test class but still gives this spotbug violation .

Thanks for your help !!