EnglishFrenchSpanish

Ad


OnWorks favicon

hformat - Online in the Cloud

Run hformat in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command hformat that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

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 partition information. Since this will
destroy all the partitions, the -f option must be specified to force this operation if the
medium currently 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 volume 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.

Use hformat online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 2
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 3
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 4
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 5
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • 6
    Shadowsocks
    Shadowsocks
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    https://sourceforge.net/projects/shadowsocksgui/.
    It ha...
    Download Shadowsocks
  • More »

Linux commands

Ad