[SOLVED] How to resize disk partitions from netinstall amd64 image
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to resize disk partitions from netinstall amd64 image
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 + a + n 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.
Ok ... so when doing this an essential part is important.
When the Debian bootloader loads, you are supposed to boot into rescue mode to get a working set of tools available, and of course without anything being locked or in use at filesystem level.
Instead of:
install console=ttyS0,115200n8
You start it as:
rescue console=ttyS0,115200n8
The screens appear to be the same as in the installer, but they are not. After choosing language, nic and a few more things, you are asked what file system you want to use as the root file system.
You choose to not use a root file system, and after that you get a shell where parted, resize2fs and other tools are available without installing any packages.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.