02-13-2019
Quote:
Originally Posted by
Don Cragun
Without knowing what you're doing it is very hard to suggest ways to do it in fewer steps! My crystal ball just isn't working that clearly this morning.
What steps did you perform to complete your task? (Please don't include a series of steps that includes rain dancing... From experience, we have found rain dancing produces random results. And, water and electronics don't mix well together.)
Hi, Don. Thanks for getting back to me.
I have a drive which I use to install macOS 10.14 containing an HFS+ volume and a FAT32, custom EFI volume. I have an image of that installer drive which I'd like to restore onto a USB drive. I was able to accomplish a partial restore by using Disk Utility on my Mac to format and partition the USB drive. I then manually restored the HFS+ volume from the disk image, but received an error when trying to restore the FAT32 volume saying the volume couldn't be repartitioned. And that's as far as I've been able to get.
Using dd only restores the HFS+ volume and seems to ignore the FAT32 volume.
I'd like to use the command line to do a byte-for-byte restore of the image to the disk to accomplish my goal in one step, but I haven't been successful in finding such a method.
Let me know if you need more information. Thanks!
10 More Discussions You Might Find Interesting
1. Solaris
Hello all..
I have a Verbatim 2 GB flash drive. I also have Solaris 10 running on my workstation. If I am in the Windows environment, it detects the flash drive. But when I plug it while I am in solaris, nothing happens. How will solaris 10 detect my flash drive? What do I have to do?
any... (4 Replies)
Discussion started by: vr76413
4 Replies
2. UNIX for Dummies Questions & Answers
hello forum..
i am using RHEL 4.0 and my system is dual boot.normally the usb flash drive should be auto mount , but in my system i am unable to mount the drive plz help...
i am a new user so plz give me in detail.
thank u in advance. (5 Replies)
Discussion started by: manoranjan
5 Replies
3. SCO
Can anybody help me out to mount USB flash /floppy drive in sco openserver 6.0 . (5 Replies)
Discussion started by: sureshdrajan
5 Replies
4. UNIX for Dummies Questions & Answers
Where can I get a driver that support usb flash drives for my unix machines. I need a solution to transfer data easily for techs. I am running C3750 and c8000 HP equipment.
Or is there a way to mount them and use them without adding drivers? thanks! (0 Replies)
Discussion started by: jkend12
0 Replies
5. Solaris
# rmformat
Looking for devices...
1. Logical Node: /dev/rdsk/c0t0d0p0
Physical Node: /pci@0,0/pci-ide@1f,1/ide@0/sd@0,0
Connected Device: HL-DT-ST DVD+-RW GWA4164B E113
Device Type: DVD Reader/Writer
2. Logical Node: /dev/rdsk/c2t0d0p0
Physical Node:... (26 Replies)
Discussion started by: seyiisq
26 Replies
6. Ubuntu
I am working on an Ubuntu Linux 8.10 system that I do not want to reboot. For some reason, USB flash drives (mass storage devices) now no longer automount. I want to restore that functionality without rebooting. I can manually mount and unmount these things by doing:
cd /media
sudo mkdir thing... (4 Replies)
Discussion started by: ropers
4 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I have an 8gb usb flash drive that I had high aspirations of using for a recovery/install/messing around multipurpose drive.
fdisk shows:
$ sudo fdisk -l /dev/sdb
password for woodnt:
Disk /dev/sdb: 8036 MB, 8036285952 bytes
255 heads, 63 sectors/track, 977 cylinders
Units =... (0 Replies)
Discussion started by: Narnie
0 Replies
8. Boot Loaders
I wanna install grub on my flash drive for rescue usage.
My computer installs winxp, and I have fedora12 installed in vmware. I did like this:
step1: format the flash drive as FAT in winXP.
step2: in fedora12, mount the flash drive on /media/flash
step3: excute the command: grub-install... (10 Replies)
Discussion started by: vistastar
10 Replies
9. UNIX for Advanced & Expert Users
Hello All,
I faced a unique issue. I have written a script for transferring backup data on my host machine to a USB Flash drive. The Flash drive must be of 16GB size. So, my script creates two primary partitionon the USB flash drive. I require approx 5900 cylinders for the first partition on... (8 Replies)
Discussion started by: Pkumar Sachin
8 Replies
10. Ubuntu
I'd like to make bootable USB flash with 12.04 desktop on it with some additional packages and customizations, such as added language.
What I tried so far - I went through pendrivelinux.com ISO to USB program and have working bootable USB with 12.04 desktop on it. The problem is all my changes... (8 Replies)
Discussion started by: migurus
8 Replies
HFORMAT(1) General Commands Manual HFORMAT(1)
NAME
hformat - create a new HFS filesystem and make it current
SYNOPSIS
hformat [-f] [-l label] destination-path [partition-no]
DESCRIPTION
hformat is used to write a new HFS filesystem to a volume. A UNIX pathname to the volume's destination must be specified. The destination
may be either a block device or a regular file, but it must already exist and be writable.
An optional label can be specified to name the volume. The name must be between 1-27 characters and cannot contain a colon (:). By default,
the volume will be named Untitled.
If the destination medium is partitioned, one partition must be selected to receive the filesystem. If there is only one HFS partition on
the medium, it will be selected by default. Otherwise, the desired partition number must be specified (as the ordinal nth HFS partition) on
the command-line. The size of the partition determines the size of the resulting volume.
Partition number 0 can be specified to format the entire medium as a single filesystem without a partition map, erasing any existing parti-
tion information. Since this will destroy all the partitions, the -f option must be specified to force this operation if the medium cur-
rently contains a partition map.
If the medium is not partitioned (or if partition 0 is specified), the size or capacity of the medium determines the size of the resulting
volume.
The new volume will be empty and will become "current" so subsequent commands will refer to it. The current working directory for the vol-
ume is set to the root of the volume.
EXAMPLES
% hformat /dev/fd0
If a floppy disk is available as /dev/fd0, this formats the disk as an HFS volume named Untitled. (N.B. The floppy must already
have received a low-level format by other means.)
% dd if=/dev/zero of=disk.hfs bs=1k count=800
% hformat -l "Test Disk" disk.hfs
This sequence creates an 800K HFS volume image in the file disk.hfs in the current directory, and names it Test Disk.
% hformat -l "Loma Prieta" /dev/sd2 1
If a SCSI disk is available as /dev/sd2, this initializes the first HFS partition on the disk (which must already exist) with a new
filesystem, naming the resulting volume Loma Prieta.
% hformat -f /dev/sd2 0
This causes the medium accessible as /dev/sd2 to be reformatted as a single HFS volume, ignoring and erasing any existing partition
information on the medium. The -f option must be specified if the medium is currently partitioned; otherwise the command will fail.
NOTES
This command does not create or alter partition maps, although it can erase them (as described above). Any partition number specified on
the command line must already exist.
The smallest volume size which can be formatted with hformat is 800K.
SEE ALSO
hfsutils(1), hmount(1)
FILES
$HOME/.hcwd
AUTHOR
Robert Leslie <rob@mars.org>
HFSUTILS
08-Nov-1997 HFORMAT(1)