Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

HP Pavilion ak085na - no bootable device.

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
samames
Posts: 14
Joined: 2015-12-13 09:15

HP Pavilion ak085na - no bootable device.

#1 Post by samames »

Abstract: i have tried to install both Debian and Ubuntu more times than I can remember and I cannot get either work. The installation appears to work successfully but when I restart the machine it displays the following error message: No bootable device -- insert boot disk and press any key

Background:
The machine originally operated with Windows 10, but the hard drive failed and I switched it out for a SanDisk SSD that I was using successfully in another machine. I want to use Debian as the only operating system on this machine (HP Pavilion ak085na).

When the original hard disc failed error messages displayed during the boot processes alerting the user that "smart HD check failed" and that no operating system was found. Since replacing the hard drive and installing Linux these error messages are still displayed on every reboot. to get past the errors I have to press f9 to see boot options; when I select the item pertaining to the Debian/SSD the error above is displayed (no bootable device...)

In BIOS I have enabled Legacy Mode and disabled Secure Boot.

I posted on the Hewlett-Packard forum about 2 days ago and have no response from any employee, which is brilliant of course (not)! I am sincerely hoping that users here will be more helpful, as has been the case in the past. :)

I'm desperate to find a solution!

Thanks for reading,
Samuel.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: HP Pavilion ak085na - no bootable device.

#2 Post by debiman »

my guess is that it's not a linux issue, but that your hard drive is not installed properly.

- go into bios and see if it recognizes the new drive
- during installation, did you install to that drive?
- are there any other drives?

boot debian live and post the output of

Code: Select all

sudo fdisk -l

User avatar
grumpy_geek
Posts: 22
Joined: 2017-01-20 16:03

Re: HP Pavilion ak085na - no bootable device.

#3 Post by grumpy_geek »

The main cause for the no boot device issue is when the MBR is damaged or missing.
(Source: HP Support Forum)

I'd give this tool / howto a try...

samames
Posts: 14
Joined: 2015-12-13 09:15

Re: HP Pavilion ak085na - no bootable device.

#4 Post by samames »

- go into bios and see if it recognizes the new drive
- during installation, did you install to that drive?
- are there any other drives?
BIOS appears to be recognising the new drive - please see screen photoImage

Yes - to the best of my knowledge I did install to the Sandisk SSD

The only other drive is a Lexar USB drive containing installation ISO.

Here is the output of $ sudo fdisk -l

Code: Select all

Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/loop0: 1.4 GiB, 1459982336 bytes, 2851528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 7.5 GiB, 8009023488 bytes, 15642624 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x40a863e7

Device     Boot   Start     End Sectors  Size Id Type
/dev/sda1  *          0 2955679 2955680  1.4G  0 Empty
/dev/sda2       2927216 2931951    4736  2.3M ef EFI (FAT-12/16/32)


The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Disk /dev/sdb: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 61DBEDDC-86BC-4797-979B-9D869EE0B236

Device         Start       End   Sectors   Size Type
/dev/sdb1       2048   1050623   1048576   512M EFI System
/dev/sdb2    1050624 217995263 216944640 103.5G Linux filesystem
/dev/sdb3  217995264 234440703  16445440   7.9G Linux swap
Thank you so much for your support Debiman and grumpy geek, I will continue to look into the links GG provided. Please let me know if my fdisk output looks okay (im a newb!) :)

Sam.

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: HP Pavilion ak085na - no bootable device.

#5 Post by Segfault »

In order to boot GPT disk in CSM mode you probably need to create protective (fake) MBR, and, some BIOS'es require it marked bootable as well. Is there gdisk utility on the installation CD? It will create protective MBR for you.

samames
Posts: 14
Joined: 2015-12-13 09:15

Re: HP Pavilion ak085na - no bootable device.

#6 Post by samames »

Segfault wrote:In order to boot GPT disk in CSM mode you probably need to create protective (fake) MBR, and, some BIOS'es require it marked bootable as well. Is there gdisk utility on the installation CD? It will create protective MBR for you.
I'm using a live Ubuntu atm (as I only have the Netinst of Jessie). It has gdisk, but I've never used it before and am a little out of my depth. I did a quick google for "gdisk create protective mbr" and nothing obvious was contained in the results. Please could you provide some pointers?

Thank you!

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: HP Pavilion ak085na - no bootable device.

#7 Post by Segfault »

Just run gdisk on your drive and it will create fake MBR automatically,

Code: Select all

gdisk /dev/sdb
? for help

Code: Select all

gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.1

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sda: 250069680 sectors, 119.2 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): CC6A6AD5-A398-4C16-A414-82EEC5E08E01
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 250069646
Partitions will be aligned on 2048-sector boundaries
Total free space is 4061 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          409600   199.0 MiB   EF00  EFI System
   2          411648       250069646   119.0 GiB   8300  Linux filesystem

Command (? for help): ?
b       back up GPT data to a file
c       change a partition's name
d       delete a partition
i       show detailed information on a partition
l       list known partition types
n       add a new partition
o       create a new empty GUID partition table (GPT)
p       print the partition table
q       quit without saving changes
r       recovery and transformation options (experts only)
s       sort partitions
t       change a partition's type code
v       verify disk
w       write table to disk and exit
x       extra functionality (experts only)
?       print this menu

samames
Posts: 14
Joined: 2015-12-13 09:15

Re: HP Pavilion ak085na - no bootable device.

#8 Post by samames »

Please excuse my naivety, but how do I adress the issues highlighted by the 'caution' section? I think it's successfully generaten the protective MBR now... ?

Thank you, Segfault :)

Sam

Code: Select all

$ sudo gdisk /dev/sdb
GPT fdisk (gdisk) version 1.0.1

Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************

Command (? for help): 

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: HP Pavilion ak085na - no bootable device.

#9 Post by Segfault »

Try writing with w, if this does not suffice go r and b. If you break it you get to keep the pieces. :P You can use the b from main menu to back up first.

http://rodsbooks.com/gdisk/gdisk.html

samames
Posts: 14
Joined: 2015-12-13 09:15

Re: HP Pavilion ak085na - no bootable device.

#10 Post by samames »

Segfault wrote:Try writing with w, if this does not suffice go r and b. If you break it you get to keep the pieces. :P You can use the b from main menu to back up first.

http://rodsbooks.com/gdisk/gdisk.html
I have no idea what you mean lol, I'll read the link now... When you say keep the pieces, I can't do any permanent damage here, can I? Just format, reinstall and i'll be in the same position again?

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: HP Pavilion ak085na - no bootable device.

#11 Post by Segfault »

Hit '?' followed by 'Enter', you will see the possible commands. No permanent damage. :)

samames
Posts: 14
Joined: 2015-12-13 09:15

Re: HP Pavilion ak085na - no bootable device.

#12 Post by samames »

Segfault wrote:Hit '?' followed by 'Enter', you will see the possible commands. No permanent damage. :)

Code: Select all

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sdb.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
..... Ill reboot now!

samames
Posts: 14
Joined: 2015-12-13 09:15

Re: HP Pavilion ak085na - no bootable device.

#13 Post by samames »

Unfortunately nothing significant appears to have changed. Please see the video I have created showing exactly what happens during the start-up procedures. I dropped my phone at the end so sorry about that!) Http://youtu.be/BDYvx2Nrffk[/url]

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: HP Pavilion ak085na - no bootable device.

#14 Post by bw123 »

http://h30434.www3.hp.com/t5/Notebook-O ... -p/5968941
HP Pavilion Notebook - 15-ak085na (ENERGY STAR) Product ...
HP Pavilion Gaming Notebook - 15-ak085na (ENERGY STAR) Microprocessor. Intel® Core™ i7-6700HQ with Intel® HD Graphics 530 (2.6 GHz, up to 3.5 GHz, 6 MB cache, 4 ...
http://support.hp.com/us-en/document/c04958163
resigned by AI ChatGPT

samames
Posts: 14
Joined: 2015-12-13 09:15

Re: HP Pavilion ak085na - no bootable device.

#15 Post by samames »

bw123 wrote:http://h30434.www3.hp.com/t5/Notebook-O ... -p/5968941
HP Pavilion Notebook - 15-ak085na (ENERGY STAR) Product ...
HP Pavilion Gaming Notebook - 15-ak085na (ENERGY STAR) Microprocessor. Intel® Core™ i7-6700HQ with Intel® HD Graphics 530 (2.6 GHz, up to 3.5 GHz, 6 MB cache, 4 ...
http://support.hp.com/us-en/document/c04958163
You have linked me to my own unanswered post on the HP forum and another post detailing the specifications of my computer. If there is something you are trying to tell me, I am not sure what it is?

Thanks,
Sam

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: HP Pavilion ak085na - no bootable device.

#16 Post by Head_on_a_Stick »

To boot a disk with a GUID partition table in non-UEFI mode with the GRUB bootloader, a BIOS boot partition is needed.

You can use gdisk to create this — use sectors 34-2047 (these will be empty in a correctly-aligned drive) and select partition type EF02 when prompted; *do not* attempt to apply a filesystem to this new partition, it should be un-formatted.

The usual `grub-install` can then be used and the Debian installer should also then proceed on that drive without error.

However, non-UEFI booting with a GPT disk is not guaranteed and is entirely firmware-dependent.

For full support, use a GPT disk with a UEFI installation or have a non-UEFI system on a traditional "MBR-style" (msdos) partition table.
deadbang

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: HP Pavilion ak085na - no bootable device.

#17 Post by Segfault »

I'd use some other bootloader. Grub2 just does not make sense to me, maybe because none of my boxes dual-boot. To boot a single OS Grub2 is an overkill, IMHO.
One of my computers boots GPT disk in CSM mode, I had to use regular fdisk to mark partition bootable, otherwise the firmware didn't boot it. I could not find this function in gdisk, FYI fdisk supports GPT now.

Code: Select all

FDISK(8)                                   System Administration                                   FDISK(8)

NAME
       fdisk - manipulate disk partition table

SYNOPSIS
       fdisk [options] device

       fdisk -l [device...]

DESCRIPTION
       fdisk  is a dialog-driven program for creation and manipulation of partition tables.  It understands
       GPT, MBR, Sun, SGI and BSD partition tables.

Post Reply