fdisk \- Partition table manipulator for Linux
.SH SYNOPSIS
.B fdisk
-.RB [ \-u ]
+.RB [ \-uc ]
.RB [ \-b
.IR sectorsize ]
.RB [ \-C
.BI \-h
Print help and then exit.
.TP
+.BI \-c
+Switch off DOS-compatible mode. (Recommended)
+.TP
.BI "\-C " cyls
Specify the number of cylinders of the disk.
I have no idea why anybody would want to do so.
" fdisk -s <partition> give partition size(s) in blocks\n"
"\nOptions:\n"
" -b <size> sector size (512, 1024, 2048 or 4096)\n"
+" -c switch off DOS-compatible mode\n"
" -h print help\n"
" -u <size> give sizes in sectors instead of cylinders\n"
" -v print version\n"
" sectors (command 'u').\n"));
else
fprintf(stderr, ".\n");
- }
+
+ } else if (display_in_cyl_units)
+ fprintf(stderr, _("\n"
+"WARNING: cylinders as display units are deprecated. Use command 'u' to\n"
+" change units to sectors.\n"));
+
}
static void
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
- while ((c = getopt(argc, argv, "b:C:hH:lsS:uvV")) != -1) {
+ while ((c = getopt(argc, argv, "b:cC:hH:lsS:uvV")) != -1) {
switch (c) {
case 'b':
/* Ugly: this sector size is really per device,
case 'C':
user_cylinders = atoi(optarg);
break;
+ case 'c':
+ dos_compatible_flag = 0;
+ break;
case 'h':
fatal(help);
break;