Josheli
  • Home
  • Blog
    • Knob
    • Running
    • Soccer
    • Technology
  • About
Knob , Technology

Install Ubuntu on HP Laptop with UEFI and new SSD Hard Drive

by dv November 22, 2016 2 Comments

It shouldn’t be this hard. I must have installed and re-installed Ubuntu 16.04 twenty times before I found the magic combination to allow my old-ish HP laptop to boot straight into Ubuntu (or boot at all).

My son got a new laptop and discarded the beast that was his HP Pavilion. The thing must weigh 10 pounds, the fan is always on, and it was slow as molasses to boot and operate. The laptop had Windows 8.1 and who knows how many viruses after years of kid gaming usage. So I figured I’d just swap out the HDD with an old SSD I had laying around, put Ubuntu on it, and boom have a fairly useful extra computer for the family.

There are lots of tutorials about installing Linux on “Windows” laptops with UEFI and Secure Boot. If those tutorials don’t use an HP laptop, they’re useless because HP Bios and firmware is a special kind of hell.

This tutorial helped me the most. The key part (I think) was the “use gparted to wipe the hard drive”. I tried so many times to install Ubuntu that I’m actually not sure what the vital part was, but I think that helped. Certainly the first 18 times I tried, the laptop just wouldn’t boot at all, with the dreaded message haunting my dreams: “Boot device not found. Please install an operating system.”

A lot of the tutorials mention turning off UEFI (don’t) and turning on Legacy mode (don’t). I think it is vital that you turn off Secure Boot (but I’m not entirely sure).

Some tutorials will tell you to create your own Boot Partition (Don’t. I tried and the Ubuntu install crashed). Forum posts will talk about copying over existing boot files and creating new directories under /boot (don’t.).

In the end, this is roughly the process that worked for me. In all, it took me 3 days to figure this out, so some of my recollection isn’t spot on, but I hope this helps someone in the future.

1. Access the crappy HP Bios by booting into Windows and hold shift while click Restart
2. Turn off Secure Boot in the Bios
3. Alter the order of boot media so you can boot from USB or DVD
4. Leave the UEFI and Legacy boot options as is (no need for Legacy)
5. Save Bios changes and shut down
6. Here’s where I swapped out the existing hard drive for a SSD. Do that now.
7. On another computer, create a Live USB stick using Unetbootin. I put Ubuntu 16.04 on the USB but feel free to go wild
8. Insert your fresh Live USB stick in your HP laptop. On my stupid laptop, only one of the USB ports (the one on the left side, the right side ports didn’t work) was “active” at boot time and would allow the computer to boot off the USB stick.
9. Hopefully, after powering on your laptop, you should be taken to the GRUB boot screen. Choose the option to Try Ubuntu. Don’t install as you need to wipe the drive.
10. Once in Ubuntu Live, open Gparted and erase everything on your hard drive. For me it was /dev/sdb as the USB stick was /dev/sda.
11. Still in Ubuntu Live, choose Install Ubuntu.
12. When you get to the “What do you want to do?” just choose “Erase everything and install Ubuntu”.
13. At this point, I got a popup dialog stating something like, “Blah blah firmware blah blah. If you choose to force UEFI you may not be able to install other Bios OSs in the future. Blah Blah”. Make sure you force the UEFI install, continue the UEFI install, or whatever it asks you. Don’t “Go Back” or you’ll have to re-install.
14. From here it’s a regular Ubuntu install, and when you’re done, restart, remove the USB stick and you should boot straight into Ubuntu.

Easy peasy. Now I have an Ubuntu laptop my wife won’t use!

Related Content:

  • Running a Plex Media Server on an Old Laptop by Dv December 17, 2015 I've been running a Plex Media Server off on old laptop for more than a year now without a hiccup.…
  • A New, Old Hobby: Self-hosted Services by Dv February 21, 2021 I've recently returned to a hobby of mine ... self-hosting various software services and web applications on a server I…
  • Five O'Clock Sun by Dv September 4, 2008 Yeah, so I ran home from work on Tuesday. Why the hell not? Roughly eleven miles, give or take some…
  • MariaDB or MySQL Root Password Struggles on Debian/Ubuntu by Dv March 14, 2018 Had a difficult time authenticating to a newly installed MariaDB 10.1 instance on Debian 9 (Stretch) recently, wasting a couple…
  • What game? Dot Game! by Dv December 8, 2006 This really has turned into a lame blog, a mere log of running. Where did all my creativity go? Why,…
It's only fair to share...Share on facebook
Facebook
Share on twitter
Twitter
Share on email
Email
  • Previous Westminster Neighborhood 5K Race Report: It’s Been a Long Time8 years ago
  • Next Laravel: Simple Method for Modules8 years ago

2 Replys to “Install Ubuntu on HP Laptop with UEFI and new SSD Hard Drive”

  1. Juiskie says:
    November 30, 2016 at 10:59 am

    I’ll use that laptop.

  2. Caranthir Telemnar says:
    June 9, 2018 at 11:26 am

    Thanks.
    This helped tremendously well.
    Saved lots of time.
    GOOD.

Leave a Reply

Your email address will not be published. Required fields are marked *

Popular Posts

  • Josheli, What Happened? (55,009)
  • Stupidly Simple, Static, Startpage for Self-hosted Services (29,606)
  • Running a Plex Media Server on an Old Laptop (25,802)
  • Simple Google Photos: A WordPress Plugin (22,731)
  • Only Say True Things (22,075)

Random Read

The act of blogging is inherently self-centered
That title up there, those are Andre's words, and of course he's correct. So enough…

Read More

Google Photo
Google Photo
Google Photo
Google Photo

Social Things

  • Family Vance
  • Texas Longhorns News

RSS From Familyvance

  • Snowshoeing at Brainard Lake
  • Fishing and Hiking at Golden Gate Canyon State Park
  • Rainbow Trout Fishing Report at Waneka Lake
  • Weightless Texas-Rig Plastic Worms at Sawhill Ponds and Coot Lake
  • Sawhill Ponds Fishing Report
2025 Josheli. Donna Theme powered by WordPress