You are not logged in.

#1 2019-10-26 04:07:12

stdcerr
Member
Registered: 2019-08-28
Posts: 19

[SOLVED] resize root partition on USB thumb drive

Hi,

I have a 128GB thumb drive and would like to use it as a root partition for a new (temporary) Arch system  on my PC. I would mount an existing /home and a couple of data partitions from the system's internal disks. For that though, I would need to extend the drive's USB partition ('/'), I attempted a "pacman -Syyu" and it wasn't able to finish because it ran out of space.
df now looks like:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
dev             7.8G     0  7.8G   0% /dev
run             7.9G   94M  7.8G   2% /run
/dev/sdd1       627M  627M     0 100% /run/archiso/bootmnt
cowspace        256M   13M  244M   5% /run/archiso/cowspace
/dev/loop0      514M  514M     0 100% /run/archiso/sfs/airootfs
airootfs        256M   13M  244M   5% /
tmpfs           7.9G     0  7.9G   0% /dev/shm
tmpfs           7.9G     0  7.9G   0% /sys/fs/cgroup
tmpfs           7.9G     0  7.9G   0% /tmp
tmpfs           7.9G  1.5M  7.9G   1% /etc/pacman.d/gnupg
tmpfs           1.6G     0  1.6G   0% /run/user/0
tmpfs           1.6G     0  1.6G   0% /run/user/1000

Can i resize / airootfs (not sure what that is yet)to use it as a root for a new temporaey system?
(I want to get aproper SSD drive and would then mirror / from the thumb drive across to the new drive)

Last edited by stdcerr (2019-10-26 15:15:41)

Offline

#2 2019-10-26 09:55:38

ChaManO
Member
Registered: 2015-09-22
Posts: 22

Re: [SOLVED] resize root partition on USB thumb drive

Hello,

Could you show us your /proc/mounts and the output of

 lsblk 

please?
You have booted from the official ISO and also have your USB drive connected to the same machine, right? The ISO was burnt to the same drive?

Offline

#3 2019-10-26 14:45:06

stdcerr
Member
Registered: 2019-08-28
Posts: 19

Re: [SOLVED] resize root partition on USB thumb drive

ChaManO wrote:

Hello,

Could you show us your /proc/mounts and the output of

 lsblk 

please?

$ cat /proc/mounts 
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
dev /dev devtmpfs rw,nosuid,relatime,size=8167096k,nr_inodes=2041774,mode=755 0 0
run /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
/dev/sdd1 /run/archiso/bootmnt iso9660 ro,relatime,nojoliet,check=s,map=n,blocksize=2048 0 0
cowspace /run/archiso/cowspace tmpfs rw,relatime,size=262144k,mode=755 0 0
/dev/loop0 /run/archiso/sfs/airootfs squashfs ro,relatime 0 0
airootfs / overlay rw,relatime,lowerdir=/run/archiso/sfs/airootfs,upperdir=/run/archiso/cowspace/persistent_ARCH_201910/x86_64/upperdir,workdir=/run/archiso/cowspace/persistent_ARCH_201910/x86_64/workdir 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup2 /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=systemd 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/rdma cgroup rw,nosuid,nodev,noexec,relatime,rdma 0 0
cgroup /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=20257 0 0
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,relatime,pagesize=2M 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /etc/pacman.d/gnupg tmpfs rw,relatime,mode=755 0 0
tmpfs /run/user/0 tmpfs rw,nosuid,nodev,relatime,size=1638040k,mode=700 0 0
tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=1638040k,mode=700,uid=1000,gid=985 0 0
[ron@archiso ~]$ lsblk
NAME      MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0       7:0    0 513.1M  1 loop  /run/archiso/sfs/airootfs
sda         8:0    0 698.7G  0 disk  
├─sda1      8:1    0  14.2G  0 part  
├─sda2      8:2    0  46.6G  0 part  
├─sda3      8:3    0     1K  0 part  
├─sda5      8:5    0 165.2G  0 part  
├─sda6      8:6    0     8G  0 part  
├─sda7      8:7    0 207.4G  0 part  
└─sda8      8:8    0     8G  0 part  
sdb         8:16   0 931.5G  0 disk  
├─sdb1      8:17   0  93.1G  0 part  
├─sdb2      8:18   0     1K  0 part  
├─sdb3      8:19   0 372.5G  0 part  
│ └─md127   9:127  0 372.5G  0 raid1 
├─sdb5      8:21   0   5.7G  0 part  
├─sdb6      8:22   0 232.8G  0 part  
│ └─md126   9:126  0 232.8G  0 raid1 
└─sdb7      8:23   0 227.3G  0 part  
  └─md125   9:125  0 227.3G  0 raid1 
sdc         8:32   0 931.5G  0 disk  
├─sdc1      8:33   0  93.1G  0 part  
├─sdc2      8:34   0     1K  0 part  
├─sdc3      8:35   0 372.5G  0 part  
│ └─md127   9:127  0 372.5G  0 raid1 
├─sdc5      8:37   0   5.7G  0 part  
├─sdc6      8:38   0 232.8G  0 part  
│ └─md126   9:126  0 232.8G  0 raid1 
└─sdc7      8:39   0 227.3G  0 part  
  └─md125   9:125  0 227.3G  0 raid1 
sdd         8:48   1 119.3G  0 disk  
├─sdd1      8:49   1   627M  0 part  /run/archiso/bootmnt
└─sdd2      8:50   1    64M  0 part  
sr0        11:0    1  1024M  0 rom 
ChaManO wrote:

You have booted from the official ISO and also have your USB drive connected to the same machine, right? The ISO was burnt to the same drive?

Yes, the thumb drive I bootd from is still connected to the machine. I thought I might be able to resize the partition on a different system (that's not booted from the USB drive)

Offline

#4 2019-10-26 14:50:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 22,284
Website

Re: [SOLVED] resize root partition on USB thumb drive

The iso is a read only system (with temporary writes to memory).  You can, I believe, resize the overlay used for the temporary filesystem, but this is limited to RAM and is not written to the usb drive.

Just install arch to the flash drive and you can have partition sizes you want (that fit on the device).  But I don't know how any of this relates to your stated goal of "I want to get aproper SSD drive and would then mirror / from the thumb drive across to the new drive".  When you get the SSD drive, install to that, then copy over anything from the current drive that you wanted.

Last edited by Trilby (2019-10-26 14:51:19)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2019-10-26 15:14:15

stdcerr
Member
Registered: 2019-08-28
Posts: 19

Re: [SOLVED] resize root partition on USB thumb drive

Trilby wrote:

The iso is a read only system (with temporary writes to memory).  You can, I believe, resize the overlay used for the temporary filesystem, but this is limited to RAM and is not written to the usb drive.

Ah okay, I didn't realize that!

Trilby wrote:

Just install arch to the flash drive and you can have partition sizes you want (that fit on the device).

Yes, that's what I'll do then!

Trilby wrote:

But I don't know how any of this relates to your stated goal of "I want to get aproper SSD drive and would then mirror / from the thumb drive across to the new drive".  When you get the SSD drive, install to that, then copy over anything from the current drive that you wanted.

Yes true, I'll get to this, once I have my SSD wink Thanks!

Offline

Board footer

Powered by FluxBB