Solved Source Tree and Ports on USB stick

I am building a GENERIC-MMCCAM-NODEBUG kernel for my Arm64 platform on microSD. I am building this with a USB3 USB stick.

I have questions. My process was format stick as ufs with single partition. I used the distro files and extracted ports.txz and src.txz to USB.

Ended up with what I wanted with /ports and /src directories on USB stick.

So when I go to mount this arrangment it didn't work great. My thoughts were to mount them at /usr/ as an overlay.

Did not work that way. When mounted it took over /usr/and nothing is found on system. umount and regroup.
example: mount /dev/da0p1 /usr/
another fail: mount /dev/da0p1/src/ /usr/src/

I did get it to mount like this /usr/src/src/ and that was fail. I want default locations.

So I broke down copied /src/ into root / of USB which is how I have done this on RPi and that works.
mount /dev/da0p1 /usr/src

But I would like to use both directories.

Show me how you have ports and source mounted on USB

I don't want symbolic links either. Works but I don't like it.

Thanks
 
More directories that need adding to USB stick and mounting = /usr/obj/

Hammering my poor little card.
 
What if I had just put the default extraction location on my USB stick.
The whole path properly extracted on USB stick would have been /usr/src and /usr/ports.

Then mount it how?

The amount of time it took to copy to USB stick was crazy over USB2. Over 24 hours for ports tree copy..

Small files wreck havoc it seems. So I have not tried alot of different methods.
 
Kinda stupid afterthought but why not make seperate partitions for each needed mount.
Problem solved better than symlinks. I don't need both ports and src mounted at the same time really.
 
What if having a distinct partition on the USB stick for each directory you want to mount? That is one partition for src, one for ports, etc.

Oops, you already suggested that, sorry :)
 
Back
Top