~ubuntu-branches/ubuntu/lucid/loop-aes-utils/lucid-security

« back to all changes in this revision

Viewing changes to fdisk/fdisk.8

  • Committer: Bazaar Package Importer
  • Author(s): Max Vozeler
  • Date: 2009-07-06 02:08:18 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090706020818-11pxao7bhgjenfv9
Tags: 2.15.1~rc1-2
Disable ncurses (--without-ncurses), not used in
mount/. Fixes FTBFS (closes: #535676).

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
The
51
51
.I device
52
 
is usually one of the following:
53
 
.br
54
 
.nf
55
 
.RS
56
 
/dev/hda
57
 
/dev/hdb
58
 
/dev/sda
59
 
/dev/sdb
60
 
.RE
61
 
.fi
62
 
(/dev/hd[a-h] for IDE disks, /dev/sd[a-p] for SCSI disks,
63
 
/dev/ed[a-d] for ESDI disks, /dev/xd[ab] for XT disks).
64
 
A device name refers to the entire disk.
 
52
is usually /dev/sda, /dev/sdb or so. A device name refers to the entire disk.
 
53
The old systems without libata (a library used inside the Linux kernel to
 
54
support ATA host controllers and devices) make a difference between IDE and
 
55
SCSI disks. In such a case the device name will be /dev/hd* (IDE) or /dev/sd*
 
56
(SCSI).
65
57
 
66
58
The
67
59
.I partition
68
60
is a
69
61
.I device
70
62
name followed by a partition number.  For example,
71
 
.B /dev/hda1
72
 
is the first partition on the first IDE hard disk in the system.
73
 
IDE disks can have up to 63 partitions, SCSI disks up to 15.
74
 
See also
75
 
.IR /usr/src/linux/Documentation/devices.txt .
 
63
.B /dev/sda1
 
64
is the first partition on the first hard disk in the system.
 
65
See also Linux kernel documentation (the Documentation/devices.txt file).
76
66
 
77
67
A BSD/SUN type disklabel can describe 8 partitions,
78
68
the third of which should be a `whole disk' partition.
159
149
.B dd
160
150
to zero the first 512 bytes of that partition before using DOS FORMAT to
161
151
format the partition.  For example, if you were using cfdisk to make a DOS
162
 
partition table entry for /dev/hda1, then (after exiting fdisk or cfdisk
 
152
partition table entry for /dev/sda1, then (after exiting fdisk or cfdisk
163
153
and rebooting Linux so that the partition table information is valid) you
164
 
would use the command "dd if=/dev/zero of=/dev/hda1 bs=512 count=1" to zero
 
154
would use the command "dd if=/dev/zero of=/dev/sda1 bs=512 count=1" to zero
165
155
the first 512 bytes of the partition.
166
156
 
167
157
.B BE EXTREMELY CAREFUL
176
166
.SH OPTIONS
177
167
.TP
178
168
.BI "\-b " sectorsize
179
 
Specify the sector size of the disk. Valid values are 512, 1024, or 2048.
 
169
Specify the sector size of the disk. Valid values are 512, 1024, 2048 or 4096.
180
170
(Recent kernels know the sector size. Use this only on old kernels or
181
171
to override the kernel's ideas.)
182
172
.TP
253
243
.\" and many others.
254
244
.SH "SEE ALSO"
255
245
.BR cfdisk (8),
 
246
.BR sfdisk (8),
256
247
.BR mkfs (8),
257
248
.BR parted (8),
258
 
.BR sfdisk (8)
 
249
.BR partprobe (8),
 
250
.BR kpartx (8)
259
251
.SH AVAILABILITY
260
252
The fdisk command is part of the util-linux-ng package and is available from
261
253
ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.