cimryan / teslausb

Steps and scripts for turning a Raspberry Pi into a useful USB drive for a Tesla
MIT License
580 stars 492 forks source link

Issue: outside of the device /dev/mmcblk0. #158

Open roastduckkiller opened 5 years ago

roastduckkiller commented 5 years ago

When running ./setup-teslausb, I got following error message, how could I troubleshoot this problem. Thanks


Updating package index files... Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease Hit:2 http://archive.raspberrypi.org/debian buster InRelease Reading package lists... Done Verifying that the requested configuration is valid... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 693 100 693 0 0 813 0 --:--:-- --:--:-- --:--:-- 814 Downloaded /tmp/verify-configuration.sh ... Verifying that there is sufficient space available on the MicroSD card... There is sufficient space available. Downloading additional setup scripts. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2134 100 2134 0 0 2350 0 --:--:-- --:--:-- --:--:-- 2350 Downloaded /tmp/create-backingfiles-partition.sh ... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1474 100 1474 0 0 1904 0 --:--:-- --:--:-- --:--:-- 1904 Downloaded /tmp/create-backingfiles.sh ... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2194 100 2194 0 0 2952 0 --:--:-- --:--:-- --:--:-- 2952 Downloaded /tmp/make-root-fs-readonly.sh ... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5660 100 5660 0 0 6247 0 --:--:-- --:--:-- --:--:-- 6240 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 32105299968 is outside of the device /dev/mmcblk0.

jgimbel commented 5 years ago

I had the same issue with export campercent=100. I installed Raspbian and set export campercent=90. It was able to make both partitions properly that time. Maybe the script is trying to create a partition that is 0 bytes long? I couldn't quite tell which partition it failed to make.

maynardpa commented 4 years ago

Tried a 32GB and 128GB card, in both cases, I am unable to partition this properly by letting the script do what it should. I have tried multiple values for campercent, 60%, 80%, 90% and 100% without success. This is a showstopper for me as the Teslacam partition is unusable.

ryanm7780 commented 4 years ago

Same here on a 32GB drive. Bummed. This is a really cool idea.

Tried a 32GB and 128GB card, in both cases, I am unable to partition this properly by letting the script do what it should. I have tried multiple values for campercent, 60%, 80%, 90% and 100% without success. This is a showstopper for me as the Teslacam partition is unusable.

maynardpa commented 4 years ago

Hi, I have eventually figured out the root cause of the issue on my end. In etcher and similar apps there is a setting to auto expand the last partition. This needs to be turned off to work properly with the partitioning.

Cheers

(Sent from mobile)

Pier-André Maynard


De : RyanM notifications@github.com Envoyé : Thursday, January 30, 2020 3:20:49 PM À : cimryan/teslausb teslausb@noreply.github.com Cc : Pier-André Maynard pier-andre.maynard@autodesk.com; Comment comment@noreply.github.com Objet : Re: [cimryan/teslausb] Issue: outside of the device /dev/mmcblk0. (#158)

Same here on a 32GB drive. Bummed. This is a really cool idea.

Tried a 32GB and 128GB card, in both cases, I am unable to partition this properly by letting the script do what it should. I have tried multiple values for campercent, 60%, 80%, 90% and 100% without success. This is a showstopper for me as the Teslacam partition is unusable.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_cimryan_teslausb_issues_158-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DACEY5DMPWTY23URO4XNKWUDRAMZCDA5CNFSM4IZ6BI32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKMNQFA-23issuecomment-2D580442132&d=DwMCaQ&c=76Q6Tcqc-t2x0ciWn7KFdCiqt6IQ7a_IF9uzNzd_2pA&r=zpvkmSCNwH7yjX4GllT20xYGYvUTp5_Ms7q1PLl6LAk&m=kW7g9ei1OKcDpDC8oPFw0wt98rc2-LBJqbJYgfNdsUI&s=FCpJuR9TwT2Uwezv8CJ-YOkXHQ619tOhd3jbQlX7oX4&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ACEY5DO2ZNHDGOAVZ5UPZLLRAMZCDANCNFSM4IZ6BI3Q&d=DwMCaQ&c=76Q6Tcqc-t2x0ciWn7KFdCiqt6IQ7a_IF9uzNzd_2pA&r=zpvkmSCNwH7yjX4GllT20xYGYvUTp5_Ms7q1PLl6LAk&m=kW7g9ei1OKcDpDC8oPFw0wt98rc2-LBJqbJYgfNdsUI&s=LCYg72x0hWj4I8tEXr8tdyLRZyl0bZ6nGYTpRe5-6PQ&e=.