test if external usb is bootable

January 6, 2024, 04:47

nectar.0108

so I got a external USB drive with the intent to boot off of it for my rasberry pi 3 B HA install (HA = Home Assistant, an image the rasberry pi imager supports). I set the usb boot flag using sd card on my pi3, but it wasn't booting off my external usb drive or giving any image on my monitor. The pi3 boots the HA image from microSD no problem, and the external usb drive is recognized by windows 10 no problem (as a data drive anyways). The external USB drive only shows 1 partition in disk management, but who knows. So I want to rule out that the external usb drive is the problem... by booting off it on a regular computer. Any suggestion on what/how I should image it? I tried rufus imaging reactOS onto it but that failed to boot... before I give up on this drive any other suggestion for how to image it or tips to make it work? I suspect it has something to do with its embedded USB to SATA controller.. which I know nothing about. edit1: I was able to boot ubuntu iso off the external usb drive. edit2: booting off the microsd card into pi, I was able to usb mount the external drive, so the drive is mountable in the pi edit3: I double checked the boot flag, it's fine edit4: I saw a video where they booted off a usb key, so I tried that. no go. I think I can eliminate the external drive and say my rasbery pi 3 B isn't botting off USB properly without a sdcard.

kutuptilkisi

<@1042497999714127952>

kutuptilkisi

as far as i know there is a utility image to change boot priority on rpi on rpi imager

kutuptilkisi

you might have to use it

oops.se

1. You don't see two partition on a Windows PC. The reason for this is that "Windows explorer" can only display partitions with FAT or NTFS filesystem and the second partition created by "Raspberry Pi Imager" is a Linux file system of the type "ext4". The windows PC can show it if you install a ext4 driver in windows or you can see it in Windows "Disk manager". 2. Please describe how you changed the boot flag on your Raspberry Pi 3. And there is a verification procedure to check if the USB boot flag has been set, did you try that?

nectar.0108

I found a few articles, they all describe the same procedure

nectar.0108

echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt to turn it on after reboot

nectar.0108

and vcgencmd otp_dump | grep 17: with a result of 17:3020000a that it worked

nectar.0108

that is all good, my Rasbery Pie 3 B reports that

nectar.0108

I tried both a usb external drive, and a usb stick, both imaged with the Rabery Pie Imager, with regular pi os, neither worked to boot without a sd card

nectar.0108

sd card works fine

oops.se

Do you have a USSB2 flash drive you could test with?

nectar.0108

ooooo! I had an epiphony, I tried the sd card in a USB Card reader, and that worked!

nectar.0108

lol is that what you just suggested? 😄

oops.se

All USB3 are not compatible to boot with and thats not only with Raspberry Pi's

oops.se

Nice, then I can say its your USB disk!

nectar.0108

and my usb drive too?

oops.se

and it is not compatible with Raspberry Pi

nectar.0108

does it have to be MBR or can it be GPT?

oops.se

MBR i think

nectar.0108

or I guess the rasberry pi imager takes care of that?

nectar.0108

I was able to boot off these keys/drives on a regular windows pc, but as you say maybe they are incompatible with the pi

nectar.0108

I will try reformatting and making sure they are MBR

nectar.0108

but good to know the boot from usb works if I use a USB flash reader

oops.se

And Im unsure, have never been into that issue

nectar.0108

though now it means I proved everything works independently from each toher 😄

nectar.0108

thanks for dropping in to suggest stuff!

oops.se

Or as I would say "With a compatible USB device"

oops.se

Your welcome

oops.se

Next time, when you have a issue, dont just say "I tried" be more detailed from the beginning. That increase the chance to get help.

oops.se

Just an advice.

nectar.0108

okay, thank you.

nectar.0108

will do