Login  •  Register


The time is now: Sat Jul 11, 2020 3:22 pm

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 7 posts ]
Print view Previous topic  |  Next topic
Author Message
PostPosted: Mon Jun 29, 2020 9:01 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 6017
Location: Amsterdam, Netherlands
How to create a disk image file from a HFS CD-ROM in macOS 10.15 (Catalina).

This procedure assumes you are logged in as Admin user.

1. Make sure your shell is bash (the default shell in Catalina is zsh)
- Open System Preferences > Users & Groups
- Click the lock and enter your password to allow changes
- In the list with users, right-click (or control-click) on the current user (you) and choose Advanced Options...
- In the Advanced Options dialog see the "Login shell" menu
- If it shows "/bin/bash", you can click the Cancel button and close Preferences
- If it shows a different shell, choose "/bin/bash" in the menu (The item "/bin/bash" may not be shown at first sight, it is at the top of the menu.)
- DO NOT CHANGE ANYTHING ELSE!
- Click the OK button
- Close Preferences
- No need to restart

2. Insert the CD-ROM in the CD/DVD drive (I used the Apple USB SuperDrive)
- The CD will not be mounted, wait till the drive settles down

3. Find the volume name
- Open Disk Utility (in Apps/Utilities)
- In the Device and Volumes list at the left, the CD volume is shown greyed
- Select that greyed CD volume
- Now you will see in the bottom-right corner the device name*
- Note that name and close Disk Utility
* In my test the device name was "disk5s1s2", it can be different in your case. In the command below replace disk5s1s2 with the name you found.

4. Create the disk image file
- Open Terminal (in Apps/Utilities)
- Ignore the message about the default shell now being zsh and about how to update to use zsh.
- At the prompt enter the command below, replacing disk5s1s2 with the device name you found and replacing Disk 1 with the name you want the image file to have:
Code:
sudo dd if=/dev/disk5s1s2 of=~/Desktop/"Disk 1.iso"
- Hit Return
- Enter your password (note that you will see nothing happening while typing your password)
- Hit Return

The disk image is now being created on your desktop. It will take some time. Do not interrupt.
When the process has finished, you will see a message in Terminal window similar to this one:
Code:
348426+0 records in
348426+0 records out
178394112 bytes transferred in 106.781745 secs (1670642 bytes/sec)
- Enter this command to eject the CD:
Code:
drutil tray eject
- Hit Return
The CD will be ejected
- Close Terminal


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jun 30, 2020 7:01 am 
Offline
Master Emulator
User avatar

Joined: Wed Apr 10, 2013 9:32 am
Posts: 316
Ronald,

As always, your guide is very clear and detailed.

There’s something I’d like to add, however:
As described under https://daoyuan.li/solution-dd-too-slow-on-mac-os-x/ and https://unix.stackexchange.com/question ... 091#189091 it will speed up things when using rdisk instead of disk and setting the block size to a multiple of 2 MB when reading a CD-ROM. That would result in the following amended command:
Code:
sudo dd if=/dev/rdisk5s1s2 of=~/Desktop/"Disk 1.iso" bs=6m


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jun 30, 2020 3:40 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 6017
Location: Amsterdam, Netherlands
Thanks. But when I try this, the whole process does not take less time:

$ sudo dd if=/dev/disk5s1s2 of=~/Desktop/"Disk 1.iso"
Password:
1333683+0 records in
1333683+0 records out
682845696 bytes transferred in 606.767548 secs (1125383 bytes/sec)

$ sudo dd if=/dev/rdisk5s1s2 of=~/Desktop/"Disk 1.iso" bs=6m
Password:
108+1 records in
108+1 records out
682845696 bytes transferred in 606.794664 secs (1125332 bytes/sec)


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jun 30, 2020 5:04 pm 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4908
Location: Sittard, The Netherlands
Hi,

Should that not be "sudo dd if=/dev/disk5" of=~/Desktop/"Disk 1.iso" to copy the whole disk?

Best,
Cat_7


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jun 30, 2020 5:58 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 6017
Location: Amsterdam, Netherlands
Cat_7 wrote:
Should that not be "sudo dd if=/dev/disk5" of=~/Desktop/"Disk 1.iso" to copy the whole disk?
When you do that, you will get a file that BasiliskII cannot read. It is the mountable HFS volume that you want for the image. For the CD-ROM that I used, it is the HFS volume named "MW 01/97" (the Macworld January 1997 disk).
Code:
/dev/disk5 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:        CD_partition_scheme                        *784.9 MB   disk5
   1:     Apple_partition_scheme                         683.5 MB   disk5s1
   2:        Apple_partition_map                         1.0 KB     disk5s1s1
   3:                  Apple_HFS MW 01/97                682.8 MB   disk5s1s2

When Disk Utility (on pre-Catalina macOS) is used to create the image, it is also only that volume that is used for the disk image. To find the ID for that volume one can still use Disk Utility in Catalina. See instruction #3 above.


Last edited by Ronald P. Regensburg on Tue Jun 30, 2020 6:01 pm, edited 2 times in total.
 


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jun 30, 2020 8:49 pm 
Offline
Master Emulator
User avatar

Joined: Wed Apr 10, 2013 9:32 am
Posts: 316
Ronald P. Regensburg wrote:
Thanks. But when I try this, the whole process does not take less time:

$ sudo dd if=/dev/disk5s1s2 of=~/Desktop/"Disk 1.iso"
Password:
1333683+0 records in
1333683+0 records out
682845696 bytes transferred in 606.767548 secs (1125383 bytes/sec)

$ sudo dd if=/dev/rdisk5s1s2 of=~/Desktop/"Disk 1.iso" bs=6m
Password:
108+1 records in
108+1 records out
682845696 bytes transferred in 606.794664 secs (1125332 bytes/sec)

So what is supposed to be faster theoretically, in fact is even a fraction of a second slower practically.

Sorry, should have tried it myself before posting.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jul 07, 2020 5:25 pm 
Online
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2998
Location: Emaculation.com
So if you read the entire disk, you should save it as a <filename>.bin and create a cuefile with the track sizes as indicated via diskutil.

Then you have a bin/cue pair that should work with the recent bin/cue patches for BII/SheepShaver :) If you don't want to go through all this effort and only need the HFS partition, then you're better off just imaging the HFS partition.


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 7 posts ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group