-
Notifications
You must be signed in to change notification settings - Fork 10
Is it possible to run post DD scripts #11
Comments
Hi @subbaraoganeshna , You should be able to mount the cards after DD. Only issue is that those are sudo commands. Currently it was hard to run the OSID as sudo (if I remember correctly). I did a work around and just created a bash script start the backend as sudo, then open chromium as the front end. It isn't possible right now with it's current design but you're welcome to fork and modify it! |
I am also interested, mainly in offering the ability push an image and expand the file system. Ex I have an image from a 1gb SD and I need to push onto a 2 GB. expand the partition to the end of 2 gb. Any tips or tricks on that? |
There is a discussion here: https://www.raspberrypi.org/forums/viewtopic.php?t=174434 And I found this blog post, haven't tested it myself though: https://pghpunkid.com/raspberry-pi-auto-expand-file-system-shell-script/ For my own project, I just use this script here to shrink my images. https://github.com/Drewsif/PiShrink/ But all these solutions are resize partition on first boot, not expand the filesystem after the cloning on the host machine. |
Yeah, unfortunately my project is just a data drive and it's being used on
a non Linux machine so it would have to be resized on imaging and not on
boot.
For now I've just made an image of the smallest drive that I could find
that advertise itself as the capacity and each of the remaining drives are
missing a few megabytes of space on the end which is fine.
…On Mon, Feb 22, 2021, 5:14 PM Aaron Nguyen ***@***.***> wrote:
There is a discussion here:
https://www.raspberrypi.org/forums/viewtopic.php?t=174434
And I found this blog post, haven't tested it myself though:
https://pghpunkid.com/raspberry-pi-auto-expand-file-system-shell-script/
For my own project, I just use this script here to shrink my images.
https://github.com/Drewsif/PiShrink/
In the process of shrinking the image, it re-enables auto expand using
it's own script.
But all these solutions are resize partition on first boot, *not* expand
the filesystem after the cloning on the host machine.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIJP47JSPOFLQNEFIPHF3CTTALXOFANCNFSM4TL3NJ4A>
.
|
Hi @aaronnguyen ,
thanks for the project.
I wonder if I can mount each of the sdcard after DD, to change a few files inside each card.
those files would be like
/etc/hosts
different for each card.I would fork and modify it, but I want to know if it's possible with the current design.
thanks.
The text was updated successfully, but these errors were encountered: