Read-only volumes and disk images
Moderators: Cat_7, Ronald P. Regensburg, ClockWise
Read-only volumes and disk images
I just have a few questions and small feature requests for SheepShaver (it is still being developed, right?).
1. Is it possible to make the Unix root read-only? (If not, such a feature would be nice)
2. How come read-only disk images that I create with Disk Utility are read-write within SheepShaver? I want to have some read-only volumes and I can do this by locking the image file, but this is annoying if I want the move the file around.
3. What are all the disk image formats that SheepShaver supports and what exactly is the ".dsk" format? (Support compressed images, or in fact anything that OS X can handle natively, would be really useful)
4. One last request: Drag-and-drop rearrangement of disks in the prefs would make it really easy to set boot order (unless it doesn't work that way).
Many thanks in advance,
Gannet
1. Is it possible to make the Unix root read-only? (If not, such a feature would be nice)
2. How come read-only disk images that I create with Disk Utility are read-write within SheepShaver? I want to have some read-only volumes and I can do this by locking the image file, but this is annoying if I want the move the file around.
3. What are all the disk image formats that SheepShaver supports and what exactly is the ".dsk" format? (Support compressed images, or in fact anything that OS X can handle natively, would be really useful)
4. One last request: Drag-and-drop rearrangement of disks in the prefs would make it really easy to set boot order (unless it doesn't work that way).
Many thanks in advance,
Gannet
- Ronald P. Regensburg
- Expert User
- Posts: 7830
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Re: Read-only volumes and disk images
Regrettably no, not really. Regular development stopped almost four years ago and recently the original web site was even removed. In the past years, several users with developer skills have contributed to the source code with bug fixes and some improvements. Others (like myself) have created new builds from source for use by those who do not know how to build from source themselves. (Note that the version number is still 2.3, the 2006 version. We started adding the build date to the version number to avoid confusion.)Gannet wrote:I just have a few questions and small feature requests for SheepShaver (it is still being developed, right?).
Why is that? Most people would find it very inconvenient, not to be able to use the feature for moving or saving files from within SheepShaver to the shared folder in the host environment. (You did set up the shared folder as described in the setup manual?)1. Is it possible to make the Unix root read-only? (If not, such a feature would be nice)
I do not know. In which MacOSX version did you use Disk Utility to create the disk image and exactly which format did you choose? So far, it has been my experience that only non-compressed read-write disk images created in Disk Utility will mount in SheepShaver.2. How come read-only disk images that I create with Disk Utility are read-write within SheepShaver? I want to have some read-only volumes and I can do this by locking the image file, but this is annoying if I want the move the file around.
SheepShaver supports any HFS and (with MacOS 8.1 and later) HFS+ disk image that is in read-write and uncompressed format. The .dsk extension is just an extension, does not say anything about the format. In the manual is mentioned that the extension is irrelevant. If you change the .dsk extension to .dmg, the image will mount in MacOSX when double clicked. (Note: Never mount a disk image in SheepShaver and in MacOSX at the same time, you will risk file system corruption and file loss.)3. What are all the disk image formats that SheepShaver supports and what exactly is the ".dsk" format? (Support compressed images, or in fact anything that OS X can handle natively, would be really useful)
Yes, would be nice. When you rearrange disks frequently, it is easier to edit the prefs file manually. Use Terminal to open the file in a text editor. The file will open in TextEdit when you enter in Terminal:4. One last request: Drag-and-drop rearrangement of disks in the prefs would make it really easy to set boot order (unless it doesn't work that way).
Code: Select all
open ~/.sheepshaver_prefs
Re: Read-only volumes and disk images
Thanks for all the info, Ronald!
P.S. When did OS X drop write support for HFS standard?
Ah, I see. Don't suppose said developers drop by here occasionally? :-)Ronald P. Regensburg wrote:Regrettably no, not really. Regular development stopped almost four years ago and recently the original web site was even removed. In the past years, several users with developer skills have contributed to the source code with bug fixes and some improvements. Others (like myself) have created new builds from source for use by those who do not know how to build from source themselves. (Note that the version number is still 2.3, the 2006 version. We started adding the build date to the version number to avoid confusion.)
Well it's just as useful as having any other read-only volume, I guess. I'm not suggesting it should always be read-only, just some ability to make it read-only when you need to would be kinda handy.Why is that? Most people would find it very inconvenient, not to be able to use the feature for moving or saving files from within SheepShaver to the shared folder in the host environment. (You did set up the shared folder as described in the setup manual?)
Sorry, you're right. If you give it a file it doesn't understand the guest OS will initialise it and the original file (whatever it may have been) will be completely overwritten. The result is unreadable by OS X but works fine in the vm. Guess the only way to have read-only volumes is to lock the image files.I do not know. In which MacOSX version did you use Disk Utility to create the disk image and exactly which format did you choose? So far, it has been my experience that only non-compressed read-write disk images created in Disk Utility will mount in SheepShaver.
Right, I was just wondering because it seems to support NDIF read-write (RdWr) as well as UDRO and UDTO but also these funny ".dsk" files of its own creation, which hdiutil identifies as "RAW*". Plus whatever the messed up format from my comment above is.SheepShaver supports any HFS and (with MacOS 8.1 and later) HFS+ disk image that is in read-write and uncompressed format. The .dsk extension is just an extension, does not say anything about the format. In the manual is mentioned that the extension is irrelevant. If you change the .dsk extension to .dmg, the image will mount in MacOSX when double clicked. (Note: Never mount a disk image in SheepShaver and in MacOSX at the same time, you will risk file system corruption and file loss.)
Yeah thanks, I guess I can just keep the file open when I expect to be rearranging a lot.Yes, would be nice. When you rearrange disks frequently, it is easier to edit the prefs file manually. Use Terminal to open the file in a text editor. The file will open in TextEdit when you enter in Terminal:The disk lines are at the top. Just select the line for the boot volume and drag it to the top.Code: Select all
open ~/.sheepshaver_prefs
P.S. When did OS X drop write support for HFS standard?
- Ronald P. Regensburg
- Expert User
- Posts: 7830
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
You can make the "Unix" disk read-only by locking the shared folder in MacOSX. When you then try to make changes to the "Unix" disk, you will get erroneous error messages about files being in use, but the result wil be the same as when the disk would be read-only.
Write support for HFS standard was dropped in Snow Leopard.
Write support for HFS standard was dropped in Snow Leopard.
-
- Forum All-Star
- Posts: 1726
- Joined: Tue Oct 14, 2008 12:12 am
Re: Read-only volumes and disk images
This isn't quite the same as drag-and-drop, but almost as easy. On the Basilisk II wiki pages you'll find a link to my Applescript-based "Emulator Disk Image Chooser." If you open that in the AppleScript editor and change a clearly-marked variable at the top of the file from "Basiisk II" to "SheepShaver", the script will let you select a boot disk image by clicking on it, and will also let you add or remove boot disk images, and create new .DSK images.Gannet wrote:4. One last request: Drag-and-drop rearrangement of disks in the prefs would make it really easy to set boot order (unless it doesn't work that way).
Actually no need to open the script in the Applescript editor; I've made the change and posted the Sheepshaver version here:
http://dl.dropbox.com/u/271144/Emulator ... r%20SS.zip
Moderators: please feel free to distribute, post, or link to this file if you think anyone might find it useful.
Note: If you use this script to modify a prefs file in which you did not originally specify the full path of an existing disk image (because the image is in the same folder with the Sheepshaver application), the script will prompt you to remove the entry for the disk that has no full path, because the script doesn't know what to do with it. This may limit its usefulness in some situations.
This only applies to the root of the unix disk, unless you recursively lock everything inside it. Still, better than nothing so I guess it will do.Ronald P. Regensburg wrote:You can make the "Unix" disk read-only by locking the shared folder in MacOSX. When you then try to make changes to the "Unix" disk, you will get erroneous error messages about files being in use, but the result wil be the same as when the disk would be read-only.
Thanks for the script, emendelson!
Some developers drop in here regularly.
If you want to contact the developers that still contribute to SheepShaver, you can leave a line at:
basilisk-devel@lists.sourceforge.net.
Best,
Cat_7
If you want to contact the developers that still contribute to SheepShaver, you can leave a line at:
basilisk-devel@lists.sourceforge.net.
Best,
Cat_7
-
- Tinkerer
- Posts: 83
- Joined: Sat Apr 12, 2008 8:22 pm
- Ronald P. Regensburg
- Expert User
- Posts: 7830
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Thank you! Why didn't we know that?kelvin31415 wrote:In your .sheepshaver_prefs, if you prefix the pathname of a disk image with an asterisk, it will be mounted as a locked, write-protected disk. For example:
disk */Users/kd/Classic/SheepShaver-2.3/Main.dmg
(Does work also for files that are in the same folder with SheepShaver and are referred to in the prefs with the file name only.)
-
- Forum All-Star
- Posts: 1726
- Joined: Tue Oct 14, 2008 12:12 am
Because we (that includes me) never read all of this file, which explains exactly this detail:Ronald P. Regensburg wrote:Thank you! Why didn't we know that?kelvin31415 wrote:In your .sheepshaver_prefs, if you prefix the pathname of a disk image with an asterisk, it will be mounted as a locked, write-protected disk. For example:
disk */Users/kd/Classic/SheepShaver-2.3/Main.dmg
http://basilisk.cebix.net/README