teslausb icon indicating copy to clipboard operation
teslausb copied to clipboard

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

Open choeecs27 opened this issue 5 years ago • 6 comments

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.

choeecs27 avatar Jul 19 '19 07:07 choeecs27

+1 the same

divahno avatar Jul 28 '19 20:07 divahno

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.

divahno avatar Jul 28 '19 21:07 divahno

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

justinporterfield avatar Aug 17 '19 12:08 justinporterfield

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 avatar Aug 24 '19 01:08 oliverkurth

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.

oliverkurth avatar Aug 24 '19 20:08 oliverkurth

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

tills13 avatar Nov 03 '19 21:11 tills13