02 July 2022, 02:49 | #1 |
Banned
Join Date: Feb 2022
Location: Anywhere and everywhere I have a contract
Posts: 822
|
Assign a volume name to another volume name
Hi Bromigos!
I’m currently using A Jaz Drive (2GB) to backup my AmigaOS files which is also bootable. At the moment I have the main AmigaOS volume set as OS39 and the Jaz Cassette labelled up as OS39-BUP. Now I’m looking into a way to setup an Assign in my startup-sequence which is on the lines of; If VolumeName=OS39-BUP: then Assign OS39: OS39-BUP: EndIf That way I can keep the Assign on my main AmigaOS and if I boot from Jaz it will auto assign the volume correctly. Is this doable? Thanks Mangs! |
02 July 2022, 03:55 | #2 |
Registered User
Join Date: Oct 2021
Location: England
Posts: 1,167
|
maybe just do
Assign OS39: IS39-BUP: >NIL: that way if OS39 already exists the assign will fail, >NIL: will suppress the error message and your startup-sequence will carry on as usual, however if this was a boot from OS39-BUP: then OS39 would not exist meaning the assign would work and OS39-BUP: would also successfully be refered to as OS39: The If Exists stuff here isnt really needed, i do the same thing for my emulated Amiga setups, i have a part that does exactly what i listed above but for RUN >NIL: Assign Games: SYS:Games >NIL: RUN >NIL: Assign Music: SYS:Music >NIL: I have actual Devices filled with LOTS of music/games, but if theres not enough room to copy all of that into say an emulator for my Pi400 or PS Vita, then i have folders in SYS: also called Games and Music, and they contain a much smaller selection, if the Games: and Music: devices arent setup then assign just creates the equivalent in my 2 folders in SYS: and all is well, if the devices do exist then the assigns just silently fail and carry on normally. Cant remember if the FailAt value needs to be changed or not, but using RUN >NIL: at the start can get past that small issue. |
02 July 2022, 12:12 | #3 | |
Banned
Join Date: Feb 2022
Location: Anywhere and everywhere I have a contract
Posts: 822
|
Quote:
Will give it a go |
|
04 July 2022, 15:35 | #4 | |
Banned
Join Date: Feb 2022
Location: Anywhere and everywhere I have a contract
Posts: 822
|
Quote:
If I use the RUN command as described above, I still get the messages but then my RTG stops working and I go into standard Amiga workbench graphics mode. I can cancel this, but it’s something I’m trying to avoid Any other ideas? Should I be including a failAT somewhere? Thanks Bromigos! Last edited by Leon Besson; 04 July 2022 at 15:41. |
|
04 July 2022, 16:07 | #5 |
Bit Copying Bard
Join Date: Jan 2017
Location: Kelty, Fife, Scotland
Age: 41
Posts: 1,293
|
Not all my own work, based on code someone else wrote that I've used myself to check if a volume exists:
Code:
assign >NIL: AmigaOS: exists if not warn echo "AmigaOS: exists" else echo "AmigaOS: unavailable" endif Code:
assign >NIL: OS39: exists if warn Assign OS39: OS39-BUP: >NIL: endif Last edited by indigolemon; 04 July 2022 at 16:19. Reason: Added working example |
04 July 2022, 17:26 | #6 | |
Banned
Join Date: Feb 2022
Location: Anywhere and everywhere I have a contract
Posts: 822
|
Quote:
|
|
04 July 2022, 17:40 | #7 | |
Registered User
Join Date: Oct 2021
Location: England
Posts: 1,167
|
Quote:
Assign OS39: IS39-BUP: >NIL: to Assign OS39: IS39-BUP: DEFER >NIL: The assign should again fail (silently i hope) if OS39 exists, but this time will set the assign as Deferred, so it wont become active unless OS39 is indeed successfully assigned due to OS39 not already existing, and only THEN will IS39-BUP become used when the new assign is referenced/used, the assign will remain hidden/unused until it is accessed, this should avoid a requester (at least it is on OS3.2 atm). Btw, when you said "boot from the jaz drive" and your booting from it, does that mean you are disabling the OS39 boot drive? or literally just booting from the jaz with OS39 still active? Because the above assumes OS39 does not exist/was disabled. If you arent disabling it, then that would be better cured by finding any reference on your OS39 to OS39: and changing everything to SYS: that way it wouldnt matter if you booted from OS39 or the Jaz, SYS: is literally a reference to whatever you booted from. I change a lot of my programs/preferences to use SYS: instead of the drive/device name, its just easier for stuff like this and when copying installations in emulators |
|
04 July 2022, 18:22 | #8 | |
Banned
Join Date: Feb 2022
Location: Anywhere and everywhere I have a contract
Posts: 822
|
Quote:
The use of the Jazz drive is when I have a catastrophic failure and need to restore the System files back to a clean SD card. Unfortunately I have some old associates that use the actual volume name such as AmiDock and other programs which some how have attached this too. Yes I know the standard given name should be Sys: But it’s how it is at the moment. Will try both methods and report back. Thanks for the replies |
|
04 July 2022, 18:50 | #9 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
If I understand correctly what you want to do, try this or vice versa:
Path ADD OS39-BUP: OS39: >NIL: |
04 July 2022, 20:13 | #10 | |
Bit Copying Bard
Join Date: Jan 2017
Location: Kelty, Fife, Scotland
Age: 41
Posts: 1,293
|
Quote:
See http://jaruzel.com/amiga/amiga-os-co...help/path.html |
|
04 July 2022, 21:17 | #11 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,985
|
Try
Assign >NIL: OS39: SYS: If you boot from OS39-BUP it will work, if you boot from OS39 it will fail but continue. |
04 July 2022, 21:37 | #12 |
Registered User
Join Date: Oct 2021
Location: England
Posts: 1,167
|
yeah that look like a way better version of what i was looking for
|
04 July 2022, 22:42 | #13 |
Banned
Join Date: Feb 2022
Location: Anywhere and everywhere I have a contract
Posts: 822
|
So at the moment I’m using the DEFER option which appears to do what I want it to do. But will have a look at the other suggestions as well.
Thanks Bromigos! |
04 July 2022, 22:52 | #14 | |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
Quote:
If I set an Icon to a program located in DH0:Extras, if someone moves the Extras folder to DH1 (provided by InstallAROS), the program will no longer be found. With my command the Extras folder will be found even if moved to DH1:Extras |
|
05 July 2022, 18:31 | #15 | ||
Rumpig
Join Date: Aug 2006
Location: The bottom of the bottle
Age: 92
Posts: 243
|
Quote:
Quote:
So in other words you do not understand correctly. (or vise versa) |
||
05 July 2022, 22:52 | #16 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
Excuse me but I didn't understand anything about what you wrote !
|
06 July 2022, 19:55 | #17 |
Banned
Join Date: Feb 2022
Location: Anywhere and everywhere I have a contract
Posts: 822
|
I feel a cleaning job coming on
To keep this post on track, the “Defer” option seems to be working out for me Thanks to those Bromigos! Who knowledge shared |
07 July 2022, 15:50 | #18 |
Rumpig
Join Date: Aug 2006
Location: The bottom of the bottle
Age: 92
Posts: 243
|
|
30 July 2023, 11:33 | #19 |
Ex nihilo nihil
Join Date: Oct 2017
Location: CH
Posts: 4,856
|
If this can be of any help : https://eab.abime.net/showthread.php?t=108682
|
30 July 2023, 13:42 | #20 |
Registered User
Join Date: Oct 2021
Location: England
Posts: 1,167
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
integrating cd volume in master volume | honx | request.UAE Wishlist | 2 | 14 June 2020 22:43 |
Can I use # in volume name? | Foebane | support.Apps | 3 | 29 January 2018 16:08 |
Get volume name of a device | rare_j | support.Apps | 5 | 06 March 2017 21:02 |
CD audio volume change is not applied if Paula volume is changed, too | thomas | support.WinUAE | 1 | 21 March 2014 16:50 |
cd volume (iso) | turrican3 | support.WinUAE | 1 | 01 October 2012 16:46 |
|
|