Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running on raspbian buster - The location is outside of the device /dev/mmcblk0 #151

Open
choeecs27 opened this issue Jul 19, 2019 · 6 comments

Comments

@choeecs27
Copy link

Error when running ./setup-teslausb: The location is outside of the device /dev/mmcblk0. Any idea?

Downloaded /root/configure.sh ...
~ ~
Fixing the modules-load parameter in /boot/cmdline.txt...
Fixed cmdline.txt.
Starting to create backing files partition...
Checking existing partitions...
Modifying partition table for backing files partition...
Error: The location 32395755520 is outside of the device /dev/mmcblk0.

@divahno
Copy link

divahno commented Jul 28, 2019

+1 the same

@divahno
Copy link

divahno commented Jul 28, 2019

Problem was that I had an initial boot before applying patch for autoresize. Once I re-flashed SD and patched cmdline.txt correctly (before boot), then ./setup-teslausb.sh run without an error.

@justinporterfield
Copy link

Specifically remove the init=/usr/lib/raspi-config/init_resize.sh text at the end of the cmdline.txt file.

@oliverkurth
Copy link

I am getting the same error. How does cmdline.txt have to look? How is this even related to the error?

Fixing the modules-load parameter in /boot/cmdline.txt...
Fixed cmdline.txt.
Starting to create backing files partition...
Checking existing partitions...
Modifying partition table for backing files partition...
Error: The location 7948206080 is outside of the device /dev/mmcblk0.
# cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait

@oliverkurth
Copy link

This happened (in my case at least) because the whole disk was already allocated for the /boot and the root partitions, so the script tried to start the new partitions beyond the end of the last one.

@tills13
Copy link

tills13 commented Nov 3, 2019

👍 Thanks @justinporterfield / @divahno. You must edit the cmdline.txt before first boot, removing the init part at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants