English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   support.Apps (https://eab.abime.net/forumdisplay.php?f=8)
-   -   disk.info (ram disk) - directory?!? (https://eab.abime.net/showthread.php?t=90251)

honx 15 January 2018 20:00

disk.info (ram disk) - directory?!?
 
1 Attachment(s)
today i encountered something very strange on amigaos 3.9, boingbag 2 and inofficial bb3/4:
ramdisk in shell shows disk.info as directory. why, what's wrong? see attached image.

AMIGASYSTEM 15 January 2018 20:23

Try to delete the file Disk.info from the Ram Disk, it may be that you have associated directory icon.

honx 15 January 2018 20:35

if i delete it, it's back after reboot. same problem, disk.info as directory.

PeterK 15 January 2018 21:11

Maybe you have a buggy link instruction in your startup-sequence for Ram Disk?

AMIGASYSTEM 15 January 2018 21:17

Quote:

Originally Posted by honx (Post 1212149)
if i delete it, it's back after reboot. same problem, disk.info as directory.

You must delete or replace the icon that the system copies into Ram Disk, es. "SYS:Prefs/Env-Archive/Sys/Def_Ram.info", or "S:disk.info" (depending on your method)

daxb 15 January 2018 21:28

Or maybe the icon type has changed for some reason. Check the type of the original icon.

honx 15 January 2018 21:33

startup-sequence: "SYS:C/MakeLink Ram:disk.info ENVARC:SYS/def_RAM.info SOFT"
despite being an icon file (.info) def_RAM.info icon is only listed in cli but not as icon.
made new drawer, moved def_RAM.info there. on workbench drawer is shown empty.
even when listed as filename instead of icons. of course, all files shown is activated.
this leads to the next problem that i am not able to check any tooltypes on this icon.
a file must be shown in order to being able to highlight a file for amiga+i or rightclick.

if i move it somewhere else, problem gone. but ramdisk has no ramdisk icon anymore.
so how can i fix this problem and keep ramdisk icon?

PeterK 15 January 2018 22:37

As I already said, the directory RAM:disk.info is probably created by the MakeLink instruction. I don't remember if this is a bug of only some MakeLink instructions or happens only with softlinks. Check the version of the MakeLink command. I don't know which versions are working correctly, because I never use MakeLink, since Amber-Ram-handler doesn't support links.

In case you have my icon.library installed you would not need that MakeLink instruction in your startup-sequence at all. You just need ENVARC:Sys/def_RAM.info. If you don't like ghosted Ram Disk icons, there is a short guide in my readme file how to disable the ghosting.

AMIGASYSTEM 16 January 2018 00:44

Quote:

Originally Posted by honx (Post 1212172)
startup-sequence: "SYS:C/MakeLink Ram:disk.info ENVARC:SYS/def_RAM.info SOFT"
despite being an icon file (.info) def_RAM.info icon is only listed in cli but not as icon.

Disable startup-sequence: "SYS:C/MakeLink Ram:disk.info ENVARC:SYS/def_RAM.info SOFT" and leave def_RAM.info in "SYS:Prefs/Env-Archive/Sys/Def_Ram.info"

Quote:

made new drawer, moved def_RAM.info there. on workbench drawer is shown empty.
This is normal, the icon "disk" from the Workbench it is not visible in the folder, you can only see Project, Program and Folder icons.

I am attaching one Def_RAM.info copy it into"SYS:Prefs/Env-Archive/Sys/Def_Ram.info"

PeterK 16 January 2018 01:31

1 Attachment(s)
Quote:

Originally Posted by AMIGASYSTEM (Post 1212221)
I am attaching one Def_RAM.info copy it into"SYS:Prefs/Env-Archive/Sys/Def_Ram.info"

Thanks AMIGASYSTEM, but why is that Ram Disk icon sooo ugly ? :p

Better try the Ram Disk icon designed by Ken Lester :) (the tooltype "noghost" is already added).

AMIGASYSTEM 16 January 2018 03:02

Quote:

Originally Posted by PeterK (Post 1212226)
Thanks AMIGASYSTEM, but why is that Ram Disk icon sooo ugly ? :p

I have attached something simple ;)

I have created two hours I hope you enjoy it :agree

PeterK 16 January 2018 05:51

Yes, I enjoy it! :)

Ram3 is a good choice for OS4, but Ram4 and Ram5 need a heat sink! :D

thomas 16 January 2018 08:54

Quote:

Originally Posted by PeterK (Post 1212192)
In case you have my icon.library installed you would not need that MakeLink instruction in your startup-sequence at all. You just need ENVARC:Sys/def_RAM.info. If you don't like ghosted Ram Disk icons, there is a short guide in my readme file how to disable the ghosting.

What happens if the user drags the icon somewhere or resizes the window and tries to snapshot it? Does your library save the changes to the def icon?

The link allows just that. The icon behaves like a normal icon and all changes are saved to harddisk.

PeterK 16 January 2018 09:41

@thomas
Yes, you're right, my library won't save the position and window settings to the def icon. You would have to copy RAM:disk.info ENVARC:Sys/def_RAM.info manually. But honx wanted to get rid of this annoying disk.info directory, and that is probably a side effect of the soft link. I'm not sure if every MakeLink command causes this effect?

With RAWBInfo installed you can use "save as ... (def icon)". That's easier than copying by hand. Ok, one small "problem" remains: icon.library always removes the icon position when loading def icons.

idrougge 16 January 2018 10:04

Aren't soft links too buggy to be useful?

AMIGASYSTEM 16 January 2018 10:13

Quote:

Originally Posted by PeterK (Post 1212238)
but Ram4 and Ram5 need a heat sink! :D

From the translation i do not understand :)

The command "SYS:C/MakeLink Ram:disk.info ENVARC:SYS/def_RAM.info SOFT" it is very useful for snapshot icon, i first in the startup-sequence i used the command "Copy" but you could not snapshot the icons you had to do it first.

mark_k 16 January 2018 12:48

Soft links are a bit weird in AmigaDOS. Some programs which weren't designed to handle them think they are directories. I guess that includes C:Dir!

Rather than use MakeLink, maybe use a command like this instead?
Copy ENVARC:SYS/def_RAM.info RAM:Disk.info

AMIGASYSTEM 16 January 2018 14:55

Quote:

Originally Posted by mark_k (Post 1212300)
Rather than use MakeLink, maybe use a command like this instead?
Copy ENVARC:SYS/def_RAM.info RAM:Disk.info

Even I used many years ago "Copy ENVARC:SYS/def_RAM.info RAM:disk.info", but this method does not allow automatic snapshot icon you do with normal icons :sad method MakeLink yes :agree

PeterK 16 January 2018 15:02

If you are so happy with MakeLink is there a disk.info directory shown with dir or list on your system, too?

And if not, which version is your MakeLink command then?

AMIGASYSTEM 16 January 2018 15:52

Quote:

Originally Posted by PeterK (Post 1212328)
If you are so happy with MakeLink is there a disk.info directory shown with dir or list on your system, too?

Yes also tried other versions, MakeLink WB OS2/OS3 it works for this command


All times are GMT +2. The time now is 03:02.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04781 seconds with 11 queries