Lines Matching defs:disk
30 #include <sys/disk.h>
76 static char *disk;
118 static int I_flag = 0; /* use entire disk for FreeBSD */
161 [0x41] = "Linux/MINIX (sharing disk with DRDOS)",
162 [0x42] = "SFS or Linux swap (sharing disk with DRDOS)",
163 [0x43] = "Linux native (sharing disk with DRDOS)",
167 [0x50] = "DM (disk manager)",
172 [0x55] = "EZ-Drive (disk manager)",
173 [0x56] = "Golden Bow (disk manager)",
174 [0x5c] = "Priam Edisk (disk manager)", /* according to S. Widlake */
185 [0x81] = "Minix since 1.4b, early Linux partition or Mitac disk manager",
323 disk = get_rootdisk();
325 disk = g_device_path(argv[0]);
326 if (disk == NULL)
330 err(1, "cannot open disk %s", disk);
334 err(1, "cannot allocate buffer to determine disk sector size");
344 printf("# %s\n", disk);
365 printf("%s: %d cyl %d hd %d sec\n", disk, dos_cyls, dos_heads,
380 printf("******* Working on device %s *******\n",disk);
453 "usage: fdisk [-BIaipqstu] [-b bootcode] [-1234] [disk]\n",
454 " fdisk -f configfile [-itv] [disk]\n");
733 fd = g_open(disk, rwmode);
736 fd = g_open(disk, 0);
740 warnx("can't open device %s", disk);
744 warnx("can't get disk parameters on %s", disk);
809 warn("Error getting providername for %s", disk);
825 * Try to write MBR directly. This may help when disk
1100 (must be within 1-1024 for normal BIOS operation, unless the entire disk\n\
1499 * Try figuring out the root device's canonical disk name.