You are not logged in.
Hi,
I have used archiso to create a custom 1.6gb ISO which I have dd'ed to a 4gb USB stick. Is there anyway to gain access to the remaining space both when in the live session and also when the stick is plugged into another installed arch machine? Bonus points if it can be read by windows too.
I have attempted to use gparted so far to resize, but it reports no partitions and just a 4gb drive on /dev/sdb whereas df -h reports a 1.6gb partition on /dev/sdb1. sfdisk -l shows /dev/sdb1 as 1.6gb and /dev/sdb2 as 165mb EFI
Last edited by fozid (2024-06-17 08:34:09)
Offline
There are two ways to add an additional partition:
1. Create a file system image of the desired size and attach it to the ISO using xorriso (before writing the ISO to the drive). https://wiki.archlinux.org/title/Instal … lash_drive has an example.
2. Create a new MBR partition with fdisk:
# fdisk -t mbr --wipe never /dev/disk/by-id/usb-Your_flash_driveCreate a new primary partition (partition 3). Change the partition type ID to 0c "W95 FAT32 (LBA)" or 07 "HPFS/NTFS/exFAT" and format it with whatever file system you want afterwards.
The backup GPT header of the invalid GPT will be destroyed (when you write data to the new partition), but that shouldn't matter.
Edit: I added the instructions to https://wiki.archlinux.org/title/USB_fl … _the_drive.
Last edited by nl6720 (2024-06-17 07:20:05)
Offline
Cool, thanks. I actually found another solution already on the same webpage under manual formatting. https://wiki.archlinux.org/title/USB_fl … formatting
Offline