Can’t boot Ubuntu partition after replacing the motherboard

Computer specs:
Model: Dell XPS15 9550
Processor: Intel i7-6700HQ
Storage: 1TB SSD
Dual boot Ubuntu 18.04/Windows 10

After replacing the motherboard of the computer, the BIOS configuration was set to default and the Ubuntu partition was undetected. Windows partition remained intact and healthy. Following I made these changes to the BIOS in order to reestablish the partition:
-Disabled Secure Boot.
-In Boot List Option (set to UEFI), added a Boot Option Ubuntu with Filename: /EFI/ubunt/shimx64.efi

With those configurations I got the following error during boot:

ACPI Error: Method parse/execution failed \_T2.FN04._ON, AE_NOT_F   acpi PHPOCOB:04: Failed to set initial power state   ACPI Error: [\_SB_.PCIO.LPCB.H_EC.EC.ECAV] Namespace lookup failure,   ACPI Error: Method parse/execution failed \_T2.FN04._ON, AE_NOT_   ACPI Error: [\_SB_.PCIO.LPCB.H_EC.EC.ECAV] Namespace lookup failure,   ACPI Error: Method parse/execution failed \_T2.FN04._ON, AE_NOT_   ACPI Error: [\_SB_.PCIO.LPCB.H_EC.EC.ECAV] Namespace lookup failure,   ACPI Error: Method parse/execution failed \_T2.FN04._ON, AE_NOT_   ACPI Error: [\_SB_.PCIO.LPCB.H_EC.EC.ECAV] Namespace lookup failure,   ACPI Error: Method parse/execution failed \_T2.FN04._ON, AE_NOT_   Couldn't get size: 0x800000000000000e          PKCS#7 signature not signed with a trusted key   PKCS#7 signature not signed with a trusted key   PKCS#7 signature not signed with a trusted key   

After that I am prompted to a Busy Box v1.27.2 (ubuntu) built-in shell (ash)

Please advise on how to get my partition back up. From the Windows partition I can see that the partition is “healthy” I also tried by configuring the BIOS SATA Operation” from “RAID On” to “AHCI”, but I get a blue error screen instead.

GRUB menu not showing up on boot after replacing battery

I have an Asus F555L model with dual boot (Ubuntu 18.04 LTS and Windows 10). On starting my computer, I always get the option to choose between OS from the GRUB loader. However, my battery was swelling, and hence I removed it and replaced it with a new one.

Since I have done this, my computer directly goes into Windows. I do not get the option of choosing from the GRUB loader at all. Disabling Fast Boot from BIOS hasnt helped. I have also tried pressing, Shift, Space and ESC on start but none of them helped. I also tried putting the old battery back and it doesnt show up on that either.

What other options do I have to get my Ubuntu OS back with all my files and programs?

Replacing revoked SSL with a new cert but domain still showing old revoked cert

I bought and installed a SSL cert for my domain but then changed my mind and canceled the purchase and bought a slightly cheaper one. The old cert is then revoked and I proceed to install the new cert.

Here is when things got worse. The domain still showing old revoked SSL and that makes my site couldn’t be loaded on Firefox or any browser which are using OCSP. I tried reinstalling the new cert and even reissue it but to no avail.

Can anyone tell me how exactly can I purge the old revoked cert from getting in a way of the new cert? I believed this has caused downtime to my site.

Is this an issue with SSL provider or server side? The hosting company kept bouncing this and blaming SSL provider while the other one pointed me to the hosting company.

Replacing text in a string with recursion and regex

I am using tags to replace text before displaying output in a browser, similar to WordPress’ short codes.

Example string: Hi, this is a block of text {{block:welcome}} and this is a system variable {{variable:system_version}}

I have functions to replace these blocks accordingly, and I realize a foreach or while function will be the best way to deal with it, but unfortunately, replacing one {{...}} may introduce another. Hence, I opted for recursion until no more are found. Typical recursion is only once, but I have had two in one scenario. Maybe calling the function 3 times will work, but it sounds “wrong”.

Now that is where the problem occurs: I do NOT want to replace them when they appear in:

1) A page where the URL you are calling contains something 2) Any form element such as `<input>` or `<textarea>`. 

I need help on how to exclude from #2 above by means of a regex.

My regex currently look like this: ^\{\{((?!keep).)*$ (I realize it may still be wrong, or need modification – does not quite work yet).

If the item contains “keep”, e.g., {{block:welcome:keep}} it should not be replaced, but when doing so, the recursion never stops, as I keep finding items to replace, and thus run out of memory, or get maximum nested level errors.

The reason why I want to do this, is because I do not want the content replaced when on an ADMIN page, or when you are editing form content.

Someone willing to give it a crack? I am using PHP, if that matters.


16.04 replacing folders instead of merging them

When I try to copy a folder into a directory where an older version of that folder already exists, say when backing up a folder to an external hard drive, this window pops up:

enter image description here

Is there a way to also have a Replace option? Because merging will keep all the files in the older folder that I have deleted in the newer one, which is not always preferable.

I use Ubuntu 16.04 with Cinnamon and Nemo as the default file manager.

Replacing the SSIS Sharepoint List Source

Hi I’ve been trying at this now for a day or so but it’s proving really difficult. I’ve got a basic SSIS package which essentially queries some sharepoint lists (lists with files) and drags out the data in a SQL table for reporting.

Previously this was done with the SSIS sharepoint list adapater, but I’ve been told to now go for the Odata or perhaps the web api.

All is well, however I’m missing serveral properties in the Odata.

  • Check In Comment
  • Edit
  • File Size
  • Folder Child Count
  • Item Child Count
  • Type
  • Some custom fields.

I’ve been a bit stuck on the check in comments but even something like expanding the checked out to URL/DocumentTypes?$ select=CheckedOutTo&$ expand=CheckedOutTo

Seems to remove the information that was previously there and also seems to naff up the odata source editor in the SSIS package. I was hoping for a nice editor to help me out with this but there doesn’t seem to be one.

Any help out there?

Featured images duplicating and replacing next image

Took over a project, and one of the errors is the featured images (and certain others rendered in a similar way) are duplicating themselves and replacing the next image thumbnail.

      <a href="<?php echo get_permalink(); ?>" class="snack__thumb snack__thumb--featured" style="background-image:url('<?php echo get_the_post_thumbnail_url( $  post->ID, 'medium' ); ?>');"> <?php   if (has_category('whitepaper')) { ?>     <div class="snack__banner"><span>whitepaper</span></div>   <?php    }  ?>  

I’ve read that not ending a loop with something like wp_reset_postdata(); can cause this type of error however I haven’t been able to get it solved.

Relevant plugins installed are
NS Featured Posts Ajax-Load-More (Error happening within Load-more field)

This happens on the home page as well in this loop

<?php while ($  latest_posts->have_posts()) : ?>   <div class="col-md-4">     ?php        $  latest_posts->the_post();       include(locate_template('loop-templates/content-snack.php'));     ?>   </div>   <?php endwhile; wp_reset_query(); ?>   </div>   <?php      if ($  latest_posts->max_num_pages > 1) {       echo(do_shortcode('[ajax_load_more id="posts-loader" container_type="div" post_type="post" posts_per_page="6" post_format="standard" pause="true" post__not_in="'.implode(",",$  special_ids).'" scroll="false" transition_container_classes="row" button_label="See more posts"]'));     }   ?>  

Replacing data in Google Sheets

I am new to coding! I have data in Sheet 1 of a Larger Spreadsheet that looks like this


and wish to change it to look like


I have tried to write a macro:

function Dated() {   var sheet = SpreadsheetApp.getActiveSheet();   var range = sheet.getRange("ac7:ag24");   var to_replace = ".";   var replace_with = "/";   replaceInSheet(sheet,range, to_replace, replace_with);  }; 

However, I get an error:

ReferenceError: “replaceInSheet” is not defined.

It is possibly quite simple but cannot solve it!

Replacing hard drive in RAID 5 array on HP ProLiant DL380p Gen8 Server

I’m a relatively new (and the only) system admin at my organization. We have an HP ProLiant DL380p Gen8 Server that is no longer under any sort of support contract from HP. We’re using it as a Hyper-V host to 4 virtual servers. The virtual host itself isn’t being backed up, but the virtual servers running on it are backed up to Azure. (We only need the physical server to last a few more months until I move the last remaining app server to the cloud, and switch all our users/machines to Azure AD from on premise AD). The server’s RAID controller is a Smart Array P420i Controller.

Yesterday, one of the 300 GB drives in the server’s RAID 5 array (there’s three drives in the array in total) started to alternately flash green and amber. According to page 102 of the manual and the server’s iLO interface, this drive is in a “Degraded (Predictive failure)” state.

This is literally my first time ever replacing a RAID drive on a production server, and I want to make sure I don’t screw it up. As the only admin, I don’t have anyone that I can ask for help.

  1. Do I have to wait for the drive to actually fail before swapping it out? Or can I swap it out now, pre-emptively?

  2. Can the drive simply be hot swapped out (as in push the eject button, pull it out, and pop the new drive in)? Will the RAID array begin to rebuild automatically, or do I need to tell the controller/Windows about the existence of the new drive?

  3. Is there any risk/benefit to cold swapping the drive instead? The server technically doesn’t need to stay up during off hours, so I could stay behind to cold swap it. BUT, this answer says that there’s a danger to cold swapping and “that this must be done while the system is running”… It’s an older server model, but I don’t understand why there would be a problem cold swapping.

  4. I’ve read about additional drives failing when trying to rebuild a RAID 5 array. Since this drive technically isn’t failed, but is only “predicted to fail”, does this in any way lessen the likelihood of another drive failing (since if they were to fail soon, they would be in the same state as this one, and not in a healthy state)? This is more for my own peace of mind lol…

Thanks for all your help!