User avatar
HawaiianPi
Posts: 2334
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Pi3 - USB boot

Sat Apr 28, 2018 5:41 pm

Gavinmc42 wrote:
Sat Apr 28, 2018 12:28 pm
We have some now and a new one is being built locally, now have excuse to check it out ;)
Never would have gone to Costco for electronics.
While Costco's selection of Electronics is limited, sometimes you can find awesome deals there. We buy a lot of our cell phones there because they are cheaper than anywhere else (plus they throw in some accessories), and I recently got a ridiculously great deal on a gaming laptop. The SanDisk 2x64GB card price is good, but not a super deal.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

User avatar
ab1jx
Posts: 625
Joined: Thu Sep 26, 2013 1:54 pm
Location: Heath, MA USA
Contact: Website

Re: Pi3 - USB boot

Sun Apr 29, 2018 2:58 am

I buy most stuff by starting at http://www.froogle.com

I have a hard drive with USB adapter but basically gave up on it as a boot device. It will boot OK and work fine in the short term. I think what happens is that when the drive spins down to a sleep mode from lack of activity the Pi doesn't realize that. If there's swap on the drive the Pi tries to access it and can't when the drive's asleep so it crashes. If a drive is connected the old fashioned way with IDE/ATA or SCSI the computer knows to wake the drive up when it needs it for something. That seems to not happen connecting via USB.

So I boot from a high-endurance SD and then manually mount the USB hard drive. If I reboot or halt it gets unmounted first. If the Pi crashes then the hard drive will need an fsck, but that's not usually very often, once every couple weeks or so. If I'm doing something with a high risk of crashing I unmount the drive first. It's been pretty stable using it this way for several months, as a boot drive it would crash once a day or more.

User avatar
Gavinmc42
Posts: 1944
Joined: Wed Aug 28, 2013 3:31 am

Re: Pi3 - USB boot

Sun Apr 29, 2018 4:36 am

Thanks guys, all input welcome.

When running Raspbian even Lite, my ratio of good to bad 16GB SD's is quite high, about 50%.
I even tried 16GB USB and had issues and I really need at least 32GB now.

Most older 8GB SD's worked fine for quite some time,95%, but that was years ago ;)
With Linux OS's getting bigger a reliable solution is need.
Especially if I want to move to Pi3B+ Aarch64 as a development tool.

How fast will a Pi3B+ boot from network?
Will it boot from a POE switch?
But that really is another post.
I have a lot of fun with Zero's booting from USB, time to try Netboot 3B+'s?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Remus66
Posts: 10
Joined: Wed May 23, 2018 8:08 am

Re: Pi3 - USB boot

Wed May 23, 2018 11:41 pm

Here is a question for you.

I am trying to have my Pi3 to boot from the mSATA SSD. I have gone through all the partitioning, etc, but how do I copy an image to the SSD?

All the sites say to use Etcher, but does Etcher work on Pi's? or do I have to utilise another PC?, or do is there another way.

User avatar
Gavinmc42
Posts: 1944
Joined: Wed Aug 28, 2013 3:31 am

Re: Pi3 - USB boot

Thu May 24, 2018 1:07 am

Yep, Etcher does not like USB SSD drives, I had to use Win32DiskImager on a Windows PC.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
ab1jx
Posts: 625
Joined: Thu Sep 26, 2013 1:54 pm
Location: Heath, MA USA
Contact: Website

Re: Pi3 - USB boot

Thu May 24, 2018 1:13 am

Assuming there's nothing else on the SSD you care about, I'd just use dd. The image contains 2 partitions, doing a dd to the drive will just overwrite what's there (almost) and give you 2 partitions on it.

See the dd man page but something like:

Code: Select all

dd if=myfile.img of=/dev/sdc
should work. Your drive may not be called /dev/sdc, that's just an example. Plug it in then look at the end of the dmesg output to see what it's called. Or look at sfdisk -l. Devices are assigned letters sequentially as they're found, it won't always be called exactly the same thing. That's why there are DUIDs and UUIDs.

Don't use a partition number like sda2 or sdb1, you want to write to the whole device. And if it's a blank device there's room to screw up, you can just do it again a different way. Writing it will take a few minutes at least, dd doesn't give any progress indication.

Remus66
Posts: 10
Joined: Wed May 23, 2018 8:08 am

Re: Pi3 - USB boot

Thu May 24, 2018 1:35 am

Check out my last post on this thread. It works now and I am unsure of what i did.

I suppose that is the beauty of the Pi, you learn by trying things.

viewtopic.php?f=91&t=214237&p=1319374#p1319374

daturach
Posts: 1
Joined: Sat May 26, 2018 12:07 pm

Re: Pi3 - USB boot

Sat May 26, 2018 12:55 pm

Hello

This is my experience booting from an external HDD, with a Pi3, model B, ver. 1.2, running latest raspbian stretch.
HDD is quite old, model PyroGate 50 GB, Hi-speed Business Drive, manufactured in 2008.

I went through all these intrications, enabling USB boot mode in config.txt, etc. So far so good.
I managed to boot from that HDD, but yesterday, when I tried to boot again, it did not work.

I spent "some" time figuring out the process to make it work again. I was about to give up, but luckily this process works for me.
It's a bit cumbersome, but as I intend to use that system as a server for recording data, I expect to let it run as long as it can...

The process is quite detailed, kind of for dummies but it's in case I need to do it in 3 or 4 years time...
The SD card is bootable, the one I used to configure "USB boot".
HDD has a separate power supply, something like 5V, 4A.

Anyway, here it is:

- Insert SD card and switch on Raspberry. Do not connect the HDD to the USB port of the Raspberry.
- Raspberry will boot.
- Switch on the HDD and connect the USB cable to the Raspberry.
- After about 3-4 secs, the HDD will be recognized by the Raspberry.
- Shutdown Raspberry but let HDD connected to Raspberry.
- Remove power from Raspberry and remove SD card.
- Switch on Raspberry (without SD card).
- Raspberry will boot from HDD.

Et voilà.

I don't know why it's that complicated. Maybe someone else has a similar HD.
In any case, I am not going to buy a new device for that application. Hey, it's a 50 GB HD with plenty of space for such a system.

Thanks

Walter

Return to “General discussion”

Who is online

Users browsing this forum: HawaiianPi, Heater, JorNotJ and 56 guests