On 20/08/2020 23.48, David C. Rankin wrote:
On 8/20/20 10:22 AM, jdd@dodin.org wrote:
I did them with Dolphin. Given my data structure it's pretty hard to make them in cli :-(
That is like "Tap Dancing On Landmines", or "Playing Russian Roulette". Perhaps I'm just jaded, or perhaps it's from 20 years of Linux experience, but you always want to create a maintain your data layout from the command line. There is never any ambiguity whether absolute or relative links are used, etc..
What you need to do on the new disk is figure out where all the file live relative to your "links directory" and then simply replace all absolute links with relative ones. Use the -f option to overwrite the absolute link with relative ones. E.g.
$ ln -sf ../relative/path/to/target linkname
'mc' allows direct edit of the target of a symlink. If you get it wrong, it tells you instantly that it is wrong by displaying it in red and with a '!' in front instead of '~'. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)