[arm-allstar] Arch Linux Partition Size, Need to Increaas in ReInstall

Jeffrey Messikian c172jeff at comcast.net
Mon Feb 19 17:08:24 EST 2024


I have been looking into parted as well as gparted and have had no such
luck.  The big problem I see is that the root partition is mounted.  
I am not a linux expert, so there is that too.  I am able to resize the
partition, but extending the file system is the real problem.  For that I
have been looking into resize2fs.  

fdisk -l
Disk /dev/mmcblk0: 14.9 GiB, 15931539456 bytes, 31116288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5e8c3e13

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1        2048   206847   204800  100M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      206848 31115263 30908416 14.8G 83 Linux
[root at N1JEM-607230 ~]#


resize2fs /dev/mmcblk0
resize2fs 1.42.13 (17-May-2015)
resize2fs: Device or resource busy while trying to open /dev/mmcblk0
Couldn't find valid filesystem superblock.
[root at N1JEM-607230 ~]#


No Joy.
Jeff 

-----Original Message-----
From: ARM-allstar [mailto:arm-allstar-bounces at hamvoip.org] On Behalf Of
Patrick Perdue via ARM-allstar
Sent: Monday, February 19, 2024 2:06 PM
To: ARM Allstar
Cc: Patrick Perdue
Subject: Re: [arm-allstar] Arch Linux Partition Size, Need to Increaas in
ReInstall

Hmm. Seems I've done live root partition resizing on a HamVoIP system 
before while it is running using parted. I'll have to go back and look 
at what I did. I've definitely done it on stock Raspbian without using a 
second device. The partition boundaries take effect on reboot. The 
safest option here would be to resize the partition on another system. I 
was doing this on a data center hosted Pi 1000 miles away running 
HamVoIP, so I didn't have that option. Could have added a second 
partition in the unallocated space, which also would have been safer, 
but I chose to resize the root partition and did so successfully without 
anything bad happening.




On 2/19/2024 11:20 AM, David McGough via ARM-allstar wrote:
> Jeff,
>
> Do you have a separate linux box available?  If so, this resizing process
> is simple. If you only have the one RPi4B, then you can use it, booted
> with a second (different) SD card, used to resize the first SD card, via a
> USB card reader.
>
> As a first step, tell my more about your setup?
>
> 73, David K4FXC
>
>
> On Mon, 19 Feb 2024, Jeffrey Messikian via ARM-allstar wrote:
>
>> Hi,
>>
>>    On my Raspberry Pi4, 8G unit, I burned the 1.7 HAMVOIP Image.
>>
>>    This Raspberry Pi has a Touch Screen display and can run more software
>> than is in the initial HamVoip Arch image.
>>
>>    For instance, I wish to install DVSwitch, the drivers for my display,
>> libcamera, a browser, etc etc
>>
>>   
>>
>>    My root partition is about 3.6G and is too full to install firefox.
>>
>>   
>>
>>    What is the easiest way to expand the  partition? Or, after another
>> install/flash, how can I give the root partition the full space of the sd
>> card.
>>
>>   
>>
>> I have 1.7 installed on a 16G card.  Why would only 3.6G be allocated
>> instead of the whole 16G?  I thought that for wear levelling of sd cards,
>> you would want the full partition allocated.  What benefit does leaving
most
>> space free have on the 1.7 image install have?
>>
>>   
>>
>> Really just need to increase my root size at the moment..
>>
>>   
>>
>>   
>>
>> Thanks,
>>
>> Jeff
>>
>>   
>>
>>   
>>
>> _______________________________________________
>>
>> ARM-allstar mailing list
>> ARM-allstar at hamvoip.org
>> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>>
>> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
>>
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
_______________________________________________

ARM-allstar mailing list
ARM-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB and RPi2/3/4 web page - http://hamvoip.org



More information about the ARM-allstar mailing list