File: acorn-fdisk.8

package info (click to toggle)
acorn-fdisk 3.0.6-9
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,060 kB
  • sloc: ansic: 5,422; makefile: 90
file content (172 lines) | stat: -rw-r--r-- 4,203 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
.\" Copyright (c) 2009, 2010
.\"	Thorsten Glaser <tg@mirbsd.org>
.\"
.\" Provided that these terms and disclaimer and all copyright notices
.\" are retained or reproduced in an accompanying document, permission
.\" is granted to deal in this work without restriction, including un-
.\" limited rights to use, publicly perform, distribute, sell, modify,
.\" merge, give away, or sublicence.
.\"
.\" This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
.\" the utmost extent permitted by applicable law, neither express nor
.\" implied; without malicious intent or gross negligence. In no event
.\" may a licensor, author or contributor be held liable for indirect,
.\" direct, other damage, loss, or other issues arising in any way out
.\" of dealing in the work, even if advised of the possibility of such
.\" damage or existence of a defect, except proven that it results out
.\" of said person's immediate fault when using the work as intended.
.\"-
.Dd October 2, 2010
.Dt FDISK 8
.Os
.Sh NAME
.Nm acorn\-fdisk
.Nd partition editor for Acorn/RISC OS machines
.Sh SYNOPSIS
.Nm
.Fl h \*(Ba \-help \*(Ba
.Fl v \*(Ba Fl \-version
.Pp
.Nm
.Oo
.Fl t Ar scheme \*(Ba
.Fl \-type Ar scheme
.Oc
.Fl l \*(Ba Fl \-list
.Op Ar device ...
.Pp
.Nm
.Oo
.Fl t Ar scheme \*(Ba
.Fl \-type Ar scheme
.Oc
.Fl s \*(Ba Fl \-size
.Ar partition
.Pp
.Nm
.Oo
.Fl t Ar scheme \*(Ba
.Fl \-type Ar scheme
.Oc
.Op Ar device
.Sh DESCRIPTION
The
.Nm
utility allows one to display or interactively edit partition
tables for Acorn/RISC OS machines in various formats.
Using the
.Dv PC/BIOS
format, standard IBM PC (i386) partition tables can also be accessed.
When no optional
.Ar device
is given, it defaults to
.Pa /dev/hda
or
.Pa /dev/sda .
.Pp
The options are as follows:
.Bl -tag -width xlxxxxxlist
.It Fl h \*(Ba \-help
Display a short usage and exit immediately.
.It Fl l \*(Ba Fl \-list
Display the partition table(s) of all
.Ar device Ns s .
.It Fl s \*(Ba Fl \-size
Display the size of
.Ar partition .
.It Fl t \*(Ba Fl \-type
Select the partitioning scheme to use.
Valid schemes are:
.Bl -tag -width FilecorexRISCiX
.It EESOX
Eesox SCSI on the Acorn machines.
.It ICSIDEFS
ICS IDE.
.It Filecore/Linux
Linux on Filecore.
This uses the non-ADFS descriptor to point to the start of the disc to
be partitioned.
The first two sectors contain a partition table to
identify the Linux partitions contained within.
.It PC/BIOS
PC/BIOS partitioning scheme.
This consists of a partition table in the first sector of the disk which
contains both CHS and LBA values for the partitions.
There can be up to four entries in the primary partition table.
One of these can be an extended partition containing up to four extra
partitions.
.It PowerTec
PowerTec SCSI on the Acorn machines.
.It Filecore/RISCiX
RiscIX on Filecore.
.El
.It Fl v \*(Ba Fl \-version
Display the version of
.Nm
and exit immediately.
.El
.Pp
If neither
.Fl l \*(Ba Fl \-list
or
.Fl s \*(Ba Fl \-size
are given, the partition table of the given
.Ar device
will be edited interactively.
.Sh EXAMPLES
Display the default device's partition table on a PC:
.Bd -ragged -offset indent
.Nm
.Fl \-type Ar PC/BIOS
.Fl l
.Ed
.Pp
Display the PC partition table of
.Pa /dev/sda :
.Bd -ragged -offset indent
.Nm
.Fl \-type Ar PC/BIOS
.Fl \-list Ar /dev/sda
.Ed
.Pp
Display the size in blocks of the partition
.Pa /dev/sda1 :
.Bd -ragged -offset indent
.Nm
.Fl \-type Ar PC/BIOS
.Fl \-size Ar /dev/sda1
.Ed
.Pp
Edit the MBR partition table interactively:
.Bd -ragged -offset indent
.Nm
.Fl \-type Ar PC/BIOS
.Ed
.Pp
Display the partition table of an MBR backed up to a file:
.Bd -ragged -offset indent
.Nm
.Fl t Ar PC/BIOS
.Fl l Ar mbrdump.bin
.Ed
.Pp
Display the size of the first partition on a device where
the MBR would be restored from the backup file
.Pa mbrdump.bin :
.Bd -ragged -offset indent
.Nm
.Fl t Ar PC/BIOS
.Fl s Ar mbrdump.bin1
.Ed
.Sh AUTHORS
.Nm arm\-fdisk
was written by
.An Russell King Aq rmk@arm.uk.linux.org
based on util-linux
.Nm fdisk ,
which was written at least partially by
.An A. V. Le Blanc Aq LeBlanc@mcc.ac.uk .
.Pp
This manual page was written for the Debian system by
.An Thorsten Glaser Aq tg@debian.org
but may be used by others.