creating an image file that can be used to mount on the emmc on a rockpi-s #55
-
Describe the bug To Reproduce Expected behavior Harware (please complete the following information): Additional context
|
Beta Was this translation helpful? Give feedback.
Replies: 42 comments 5 replies
-
More from the log, Why is LOCAL_AUTORESIZE_MIN set to 6.5G? Where did it get LOCAL_USED_SPACE to be 5.3G?
|
Beta Was this translation helpful? Give feedback.
-
Please provide the entire log. A quick glance tells me the storage device is 58G, and why
The exact line is at 398 in shrink-backup:
Your root path gets detected as So the line used is: I have no control of how See if the "manually added space" method works first for you and we go from there. |
Beta Was this translation helpful? Give feedback.
-
I tried it again earlier, and was able to get an image created. However, what I was looking to do was to "burn" it to the eMMC on a rockpi-s, so without really knowing what I was doing, I dd'd it there, and it didn't boot. |
Beta Was this translation helpful? Give feedback.
-
That is exactly how it should work, if it doesn't, it IS a bug and you are not wasting my time. :) The img file you create should be the same files as on the original system. The difference is the partition size gets shrunk. If it does not work, I consider that a bug. Unless you want to dd the entire system into a 64G img file, I have not found any other backup utility that can do this with rsync without a boot partition. :) |
Beta Was this translation helpful? Give feedback.
-
Cool. Appreciate the willingness to help! What I have is a rockpi-s that has a µSD slot and eMMC. I typically use |
Beta Was this translation helpful? Give feedback.
-
Oh, NOW I think I understand what you mean. I saw an email about a comment on armbian forums, was that you? (I need to find credentials to log in there) |
Beta Was this translation helpful? Give feedback.
-
No problem. That was me on the forum. I figured there was the place to have a discussion, and just report bugs here. This bug was most likely operator error on my part. |
Beta Was this translation helpful? Give feedback.
-
Thank you! ❤️ I am trying to find Edit: But it would be useful to see what it is exactly you are working with. |
Beta Was this translation helpful? Give feedback.
-
Yeah, very odd that |
Beta Was this translation helpful? Give feedback.
-
Fair warning, it's REALLY convoluted with not much in the way of commenting. |
Beta Was this translation helpful? Give feedback.
-
Sounds like what we are looking for. :) I will look closer at this.
Edit: Just a quick question to make sure you actually need all of this. Important If you have 2 devices with the same When trying, create the img and include
I do not own a armbian device with an emmc, only normal sd-card devices so I have never done anything like this (except for on raspberry pi os, I have confirmed it works to move between |
Beta Was this translation helpful? Give feedback.
-
I'm not sure how you "select emmc as boot device". The way it works is that it boots from the eMMC if there's no SD card inserted. If there's an SD card inserted and it has a bootable image, it boots from that. |
Beta Was this translation helpful? Give feedback.
-
Then I'm confused. (I thought you had to select boot device in |
Beta Was this translation helpful? Give feedback.
-
It doesn't boot. But, I never really found out if I was doing the procedure correctly.
Does not boot, or at least I cannot SSH to it - not sure what it's doing because it has no monitor. If I knew how to read a |
Beta Was this translation helpful? Give feedback.
-
I guess another way to test would be to copy the image file to my computer, use Balena to burn it to an SD card, and then try booting with that SD card. I would assume that would work. Not sure if my |
Beta Was this translation helpful? Give feedback.
-
Success! Was it the auto expansion? Why did you suggest to not allow the auto expansion? |
Beta Was this translation helpful? Give feedback.
-
I suggested it to minimize the risk, because I actually do not know if there are things happening on hardware level when you switch from one boot device to another. |
Beta Was this translation helpful? Give feedback.
-
Ok. Certainly having matching UUID's looks to be an issue. It's taking quite a bit of work to try and get the rp to boot from the SD card while it has a matching UUID. Had to run |
Beta Was this translation helpful? Give feedback.
-
Good news! I did an image without the -e and it booted! It's not using ALL of the available space, but it's close, so that's very cool! |
Beta Was this translation helpful? Give feedback.
-
My guess is that you'd have to make a copy of |
Beta Was this translation helpful? Give feedback.
-
Not sure what issue you are referring to, can you clarify? |
Beta Was this translation helpful? Give feedback.
-
Oh, I expect it was operator error on my part the first time. The script does what it's supposed to and quite well!
I understand that these improvements may be out of the scope of what you wish to do with your program, and if so, I'll see if I can figure that out. |
Beta Was this translation helpful? Give feedback.
-
Line 1380 in 7870444 - if ! output=$(mkfs.ext4 -U "$UUID" -L "$LABEL" "$IMG_DEV_ROOT_PATH" 2>&1 | tee "$TTY_AVAILABILITY" ); then
+ if ! output=$(mkfs.ext4 -L "$LABEL" "$IMG_DEV_ROOT_PATH" 2>&1 | tee "$TTY_AVAILABILITY" ); then You then have to use Edit Since you came up with the idea, I let you select what letter I should use for the option.. 🥳 |
Beta Was this translation helpful? Give feedback.
-
Re:
|
Beta Was this translation helpful? Give feedback.
-
In my case...
|
Beta Was this translation helpful? Give feedback.
-
With only 4G I need every inch of it! But, not a showstopper. If the UUID thing gets addressed, I'll be very happy! |
Beta Was this translation helpful? Give feedback.
-
Guess you are correct, I have never noticed that. Line 1843 in 7870444 You can read the content of what is being inserted into the file and then ran at boot. You can just manually run those commands exchanging the variables to what fits on your system. Good luck! Edit |
Beta Was this translation helpful? Give feedback.
-
If you are just going to be silly about it, lets just close the thread. |
Beta Was this translation helpful? Give feedback.
If you are just going to be silly about it, lets just close the thread.
I have already spent HOURS on you, for a bug that never existed.