LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-17-2021, 10:47 AM   #1
MeNotSure
LQ Newbie
 
Registered: Jan 2021
Posts: 3

Rep: Reputation: Disabled
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.

Last edited by MeNotSure; 01-17-2021 at 01:46 PM.
 
Old 01-17-2021, 01:18 PM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,490

Rep: Reputation: Disabled
Likely you have fdisk or cfdisk available on 'net install' .iso - you will probably need to use it.
 
Old 01-17-2021, 01:46 PM   #3
MeNotSure
LQ Newbie
 
Registered: Jan 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fatmac View Post
Likely you have fdisk or cfdisk available on 'net install' .iso - you will probably need to use it.
Thank you for your answer.
I have already tried both fdisk and cfdisk.
Both just gives the message: /bin/sh: fdisk/cfdisk Not found.

:-\
 
Old 01-18-2021, 03:58 AM   #4
MeNotSure
LQ Newbie
 
Registered: Jan 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux-image-amd64 depends on linux-image-3.2.0-2-amd64 Abumii Linux - Software 2 06-24-2012 08:24 AM
Installing Debian amd64 netinstall phoenix_wolf Linux - Distributions 3 02-11-2009 06:18 PM
Debian Lenny AMD64 netinstall not detecting ethernet correctly the trooper Debian 6 07-28-2008 01:13 PM
etch beta 2 amd64 netinstall broken? mnotgninnep Debian 3 04-19-2006 07:17 PM
AMD64 Sarge Netinstall failure llamalein Debian 2 05-24-2005 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration