martyn_hill wrote: Sat Apr 20, 2024 6:03 pm
Hi Per
I don't have the answer, but wondered if you were trying to do what I wanted-to recently, i.e. to change the embedded Volume name of a WIN Container file - you'd expect to be able to set the Volume name at point of FORMAT, but you seem only able to set the volume size in the format string and the Volume name always ends up as simply WIN1 or whatever the container was mounted at at the time of format.
Is that what you were trying to do, as well?
Hi Martyn,
No, that one was sorted long ago. The hack below works on QPC2 and SMSQmulator and possibly elsewhere. (Use at own risk!)
But Q68 is different in that its virtual container files dont appear to be accessible in the same way. On the Atari, which uses real hard disks, sector #0 led you to the partition table, which you had to navigate in order to get to the QLWA disk partition, but youd end up with a routine similar to this one.
pjw wrote: Sat Apr 20, 2024 7:38 pm
Thanks, but its getting to the image file that is the problem. I'll check with Wolfgang when he's back.
I'm all for QL side programming, but if all you want is to change is the volume name of a few images, why not use the hex editor on a PC?
I dont see why Id want to do that considering the routine I just posted (above) which does exactly that. It is safe and just does the job. For users who may not know where to poke, it requires no specialist knowledge.
Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
Hi Derek, that seems rather OTT. Use my routine instead of recreating the WIN drive any time you wish to alter the name.
As you say, on Q68 you get to specify a sensible name when you format the disk, however, there is no (easy) way to change that name once its set - for now.
Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
pjw wrote: Sun Apr 21, 2024 7:13 pm
Hi Derek, that seems rather OTT. Use my routine instead of recreating the WIN drive any time you wish to alter the name.
As you say, on Q68 you get to specify a sensible name when you format the disk, however, there is no (easy) way to change that name once its set - for now.
Just trying to use existing solutions to the problems.
I do appreciate all your efforts in trying to find a solution.
pjw wrote: Sun Apr 21, 2024 7:12 pm
I dont see why Id want to do that considering the routine I just posted (above) which does exactly that. It is safe and just does the job. For users who may not know where to poke, it requires no specialist knowledge.
I wasn't aware that you want a smooth solution for others, not just rename one or two filesystems yourself.
It would be relatively easy for me to provide a low level C Program which bypasses the OS and does the renaming.
But if direct sector access could be added to SMSQ/E, that's obviously the better approach.
Let's see what Wolfgang thinks about it.
I think there IS direct sector access, its just that I dont understand the partition table (if thats what Im seeing). It may just be FAT32 and available somewhere on the Internet - or even in the SMSQ/Q68 source code. But I have neither the time nor inclination to hack it if there is an easier option.
It is for Qwirc, my WIN manager software, which is sorely in need of an update as the underlying platform workings it relies on to do its work have changed over the past 20+ years. Qwirc2 is compatible with QPC2 and SMSQmulator (both on Windows and Linux hosts), and apart from the renaming issue in question, also Q68.
Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
There is direct sector access in smsq/e ie winX_*d2d if I remember correctly. The QXLwin file format has the win file name embedded 6 bytes from the start. Wolfgang Lenerz WinEd program allows access and editing of the hard drive.