You are not logged in.

#1 2016-03-28 02:30:29

kzpm
Member
Registered: 2014-12-25
Posts: 7

Archiso resize image

Following instructions on the Archiso wiki I successfully created a 'base' installation Arch Linux iso.
So far so good.

I copied the image with

dd if=archlinux-2016.03.27-x86_64.iso of=/dev/sdf;sync

onto a 32gB sdcard.

Booting the image works fine, however when I reviewed the partitions it showed:

sdb                   31.3G disk /run/archiso/bootmnt
|-sdb1              265M part
`-sdb2              31G    part
loop0              240.5M loop /run/archiso/sfs/airootfs    

The sdb2 part is not used, the complete filesystem is located in sdb1.

I would like to have Archiso use the whole disk.

After some research I found a forum post about resizing existing partitions, while mounted. They suggested to use

resize2fs

I tried to use

resize2fs /dev/sdb1

, however it ran into errors:

Device or resouce busy while trying to open /dev/sdb1

and

Couldn't find a valid filesystem superblock

.

What is the best way to have the Archiso to use all available diskspace?

Offline

#2 2016-03-28 05:13:18

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Archiso resize image

As far as I know, Archiso only creates live media. So the partition created on the sd card should be read-only. Hence my question is, why do you want it to use all of the space of the sd card?

Offline

#3 2016-03-28 08:45:48

kzpm
Member
Registered: 2014-12-25
Posts: 7

Re: Archiso resize image

The reason I want to use all diskspace or at least much more than the current size, is that 256M is too small to install extra packages like Xorg, Openbox,..

Last edited by kzpm (2016-03-28 08:46:12)

Offline

#4 2016-03-28 08:57:38

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: Archiso resize image

A live system is something else, is not like a normal installation. It is read-only and can't be changed.

Last edited by Ropid (2016-03-28 09:00:15)

Offline

#5 2016-03-28 09:13:54

kzpm
Member
Registered: 2014-12-25
Posts: 7

Re: Archiso resize image

Ok that is clear now!
Solved

Offline

#6 2016-03-28 11:14:28

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Archiso resize image

@kzpm,

Please mark the thread as solved.

Offline

Board footer

Powered by FluxBB