Article 5CYTJ How to resize disk partitions from netinstall amd64 image

How to resize disk partitions from netinstall amd64 image

by
MeNotSure
from LinuxQuestions.org on (#5CYTJ)
Ok!

I'll try to be as precise as possible with my problem.

My usecase is that I am trying to flash a device with OpenWRT with the help of Debian netinst, amd64 image
1) I have downloaded the debian-10.7.0-amd64-netinst.iso
2) I have "burned" the ISO to a USB-stick with the Rufus utility (Windows)
3) I have booted my device with the USB-stick and are trying to do this through PuTTY (the device has no graphic card)
4) My plan was to ...

a) Boot with the USB-disk
b) Use ctrl + n + 2 to get a shell
c) Use wget to download the latest relevant image of OpenWRT to the Debian USB boot stick
d) Unpack the .gz image and flush the device SSD disk with the OpenWRT image with the dd command utility

---- It seems to work regarding my plan so far ---

e) Use the parted utility to resize the partition to use the whole SSD-disk
f) Use the resize2fs utility to resize the file system
g) Reboot the device and configure whatever needs to be configured in OpenWRT from there

My problem is that I can't figure out how to get the parted package to my USB-stick. It doesn't seem to be installed or accessible from that shell. I have tried to install it with the apt-get install parted command, but apt-get is not accessible from that shell.

This is probably pretty easy for you guys to solve, but I am not a linux expert, so any tips on how to proceed would be greatly appreciated.latest?d=yIl2AUoC8zA latest?i=hDXJuJ2m74w:lev4WzODaLU:F7zBnMy latest?i=hDXJuJ2m74w:lev4WzODaLU:V_sGLiP latest?d=qj6IDK7rITs latest?i=hDXJuJ2m74w:lev4WzODaLU:gIN9vFwhDXJuJ2m74w
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments