Portable Apps as Built-in's

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

User avatar
mikewalsh
Moderator
Posts: 6185
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 803 times
Been thanked: 1994 times

Re: Portable Apps as Built-in's

Post by mikewalsh »

@AQUAR :-

AQUAR wrote: Wed Aug 28, 2024 12:34 pm

Not the end though, as I have more to sort out (like UUID based mounting of the ext4 drive!).

When you say about 'UUID-based mounting', are you talking about a way to make sure your flash drive always mounts to the same mount-point (so as to preserve sym-links)?

If this is the case, what you need is 'Udev-rules'. One of our veteran members put his considering cap on a few years back, and came up with a way to use 'udev' to create permanent, 'udev-rules'-based mount points for any USB drive the user may want to connect & run stuff from at all regularly.

jafadmin originally posted about it here, on the old Forum:-

https://oldforum.puppylinux.com/viewtopic.php?t=112558

================================

Originally, it was just a bunch of scripts, with instructions as to where to put everything. I just packaged 'em up into a .pet to make things simpler. The 'README' - explaining how to use it - can be found in /root after installation.

(I, too, had issues with running stuff from an external USB 3.0 portable HDD; the 'mount-point' kept changing on me, and made it impossible to set anything up permanently. This wee package solved all that.)

I've attached it to this post. Let us know if it will do what you want; when created, your permanent mount-point will be found under '/' (the top level). After installation & mount-point creation, you then drag'n'drop your sym-links to & from this location in future.

Mike. ;)

Attachments
Udev_Rules-1.1-noarch.pet
Creates permanent mount-points for external drives...
(1.87 KiB) Downloaded 9 times
AQUAR
Posts: 46
Joined: Fri Jun 25, 2021 12:09 pm
Has thanked: 26 times
Been thanked: 10 times

Re: Portable Apps as Built-in's

Post by AQUAR »

mikewalsh wrote: Wed Aug 28, 2024 4:03 pm

@AQUAR :-

AQUAR wrote: Wed Aug 28, 2024 12:34 pm

Not the end though, as I have more to sort out (like UUID based mounting of the ext4 drive!).

When you say about 'UUID-based mounting', are you talking about a way to make sure your flash drive always mounts to the same mount-point (so as to preserve sym-links)?

Mike. ;)

Yes, that is exactly the goal that I was going to investigate viz the possibility to always mount this flash drive at a fixed place under root using something fixed to this flash drive like this "unique" drive identifier (just didn't have the linux vocab to be clear!).
Will digest the info by jadamin on the old forum, as it would be good to have symlinks on the pinboard that always point to these portables on this ext4 formatted flash drive, regardless of when or what the devices mount order.

I should have mentioned that I also created an adrv.sfs file with portable Edge in it, also works good, but its contents shows up under new folders like opt1 & etc1.
Probably better if I start another thread about what to expect when creating these read only squash files from the save file using the nicOS utility suite.

AQUAR
Posts: 46
Joined: Fri Jun 25, 2021 12:09 pm
Has thanked: 26 times
Been thanked: 10 times

Re: Portable Apps as Built-in's

Post by AQUAR »

@mikewalsh

Appreciate the insight as to what I was looking for, and the udev rules method works great for me.
Very interesting approach, I see that it identifies the usb flash drive based on its in-bedded i/Manufacturer/Product/Serial fields.
Has to be more definitive than using its UUID descriptor for a fixed mount point.
Only thought I have is that these field are not always set, but they are for my SanDisk flash drives.

Post Reply

Return to “Users”