-
I burned a raspbian lite to my SD card, and enable USB boot mode
-
I burned hassio rpi3 image to my USB stick
-
try to boot with only USB device -> no boot
-
boot from SD card with USB stick is plugged in -> rasbian started
-
I changed the cmdline.txt on SD card and USB stick
-
boot from SD card with USB stick is plugged in -> resin OS started (but docker has an error)
I used ssh to see logs:.............$ ssh root@pi -p 22222 root@hassio:~# docker ps Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
-
remove SD card and boot again -> resin OS and docker is running
-
wating
-
hass.io has an error: disk full
root@hassio:~# journalctl -f ... Aug 13 12:14:20 hassio dockerd[766]: 2017/08/13 14:14:20 [alert] 27#27: *2 write() to "/var/lib/nginx/logs/access.log" was incomplete: 117 of 215 while logging request, client: ::ffff:192.168.100.114, server: , request: "GET / HTTP/1.1", host: "hassio.local:8123", referrer: "http://hassio.local:8123/" Aug 13 12:15:02 hassio dockerd[766]: time="2017-08-13T12:15:02.567164650Z" level=error msg="Not continuing with pull after error: failed to register layer: Error processing tar file(exit status 1): write /usr/lib/perl5/core_perl/auto/Encode/JP/JP.so: no space left on device" ...
-
shutdown with ssh
-
I used gparted to resize resin-data partition
-
boot from USB
-
wating
-
Home Assistant is now runnning
I got this also working. Thanks for the advices.
Here is what I did:
- flashed hass.io image to usb thumb drive
- used gparted to increase the resin-data partion (I added ~1GB more space)
2.1 modified the files like instructed - connected the usb drive to rpi and bootted it up
Some challenges with debug ssh access thou. When trying to connect, I get following error:
Disconnected: No supported authentication methods available (server sent: publickey)
I have created a public key with putty and copied (id_rsa.pub) that to the root of resin-boot partition.
Did you add your Private Key to be used by Putty as well? You have to add that in the left pane of putty under SSH - Auth.
Yes, I did. I will create new pair of keys and try it again.
I now see in your post that you copied the key file itself to the resin-boot partition. You have to create a file called ’ authorized_keys’ there and paste the key in it.
Excuse me but does anyone take a Look to my post Hass.io Features proposal ?
The rebus a script poster to raspberry forum tha may help u
I have used this method sucessfully with hasbian but with hasio i get the following error
core-ssh:~/Adafruit-Pi-ExternalRoot-Helper# ./adafruit-pi-externalroot-helper -d /dev/sda
Target drive = /dev/sda
[error] Target /dev/sda must be existing device (use -d /dev/foo to specify)
tried sda1 as well but it doesnt seem to work. Anyone having any ideas?
Hi. I tried using gparted to increase resin-data (sda6) and it wouldn’t let me go beyond 1027Mb (from 1024) even though I had >11GB of unused space. Stuck now.
First you have to resize the main partition and after that you can increase the size of subpartitions. Some cases you have to even change the order of different subparttions but if remember right resin-data partition was the last subparttion. I hope this helps.
Are you sure that usb is mounted to sda? When I have multiple usb drives hooked to my rpi, every one is mounted to different path, like sdb, sdc, etc. This is just pure guessing…
Thanks but the other 5 partitions are all tiny so there is not much to steal from in order to make the data partition go from 1GB to say 2GB. I’m doing it with a gparted live USB drive under Windows.
Below is the file system of a Hassio image flashed to a 16GB thumb drive. Wondering if you can advise where you stole the space from?
First increase the size /dev/sdb4 and after that you can increase size of /dev/sdb6.
Thanks! Although that made no sense, it worked a treat as I have a 8.6GB data partition. Now to try and boot!
Thanks for all your help. Got it working tonight using the following steps for anyone else trying to piece it all together.
- Installed Raspbian Lite (2017-04-10) on a MicroSD card and followed the instructions here to enable USB boot mode.
- Rebooted Pi then shut down a few minutes later.
- Burned hassio Pi3 image to a 16GB USB drive.
- Booted PC into Gparted to re-partition hassio image.
- Increased /dev/sdb4 from 1GB to around 4GB (must do first otherwise you can’t expand the resin-data partition).
- Increased /dev/sdb6 from 1GB to pretty much whatever was left.
-
With the modified thumb drive back in my PC, I added the following located in the resin-boot drive and also in the resin-rootA partition inside the resin-boot folder:
I changed the “root” option in cmdline.txt to:
root=/dev/sda2
and I added the usb boot line below to config.txt, right at the end:
program_usb_boot_mode=1
-
I then put the reworked thumb drive back in my Pi3 without the MicroSD card and after about 1 minute, the Home Assistant logo appeared so I knew we were underway. 20 mins later, working Hassio system with no MicroSD card. Yay.
Hi Guys!
@sanyatuning Your guide run only on a rip 3 on the 2, 1 or 0 you need always the sd card. So I think that rootwait
param is necessary to wait until all usb devices is correctly recognized
Does sb4 partion size should be 4gb or can do whatever you want to set. In my case i have 32gb flash drive can i do more than 10gb ?
Arbitrary. Can be any size whatever allows you to extend resin-data beyond 2GB.
Yes, boot from USB only is supported on Pi3. You can still boot from USB on older models but you must have the SD card in place.
Works great thank you