Partition 1 does not end on cylinder boundary Warnung unter fdisk

Aus Thomas-Krenn-Wiki
Zur Navigation springen Zur Suche springen
Hinweis: Bitte beachten Sie, dass dieser Artikel / diese Kategorie sich entweder auf ältere Software/Hardware Komponenten bezieht oder aus sonstigen Gründen nicht mehr gewartet wird.
Diese Seite wird nicht mehr aktualisiert und ist rein zu Referenzzwecken noch hier im Archiv abrufbar.

Ältere Versionen des Programms fdisk des Pakets util-linux zeigen im DOS-Kompatibilitätsmodus eine Warnung bei Partitionen die mit einem korrekten Partition Alignment etwa für SSDs eingerichtet wurden.

Die Warnung Partition 1 does not end on cylinder boundary ist nur für DOS-Umgebungen relevant, die aber praktisch nicht mehr anzutreffen sind. Die Warnung kann daher ignoriert werden. Der Aufruf von fdisk mit dem Parameter -c unterbindet die Warnung (damit wird der DOS-Kompatibilitätsmodus deaktiviert). (Anmerkung: bei gnu-fdisk gibt es die Option -c nicht.)

Bei Partitionen mit einem korrekten Partition Alignment zeigt fdisk -lu eine Warnmeldung, bei fdisk -lcu kommt keine Warnung.

Warnung bei fdisk -l

user@ubuntu-10-10:~$ sudo fdisk -l /dev/sda

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x9349dd6c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         153     1227776    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2             153        3801    29296875    7  HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3            3801        5017     9764864   83  Linux
Partition 3 does not end on cylinder boundary.
/dev/sda4            5017       19458   115998720   83  Linux
Partition 4 does not end on cylinder boundary.

Warnung bei fdisk -l -u

user@ubuntu-10-10:~$ sudo fdisk -l -u /dev/sda

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x9349dd6c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2457599     1227776    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2         2457600    61051349    29296875    7  HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3        61052928    80582655     9764864   83  Linux
Partition 3 does not end on cylinder boundary.
/dev/sda4        80582656   312580095   115998720   83  Linux
Partition 4 does not end on cylinder boundary.

keine Warnung bei fdisk -l -c -u

user@ubuntu-10-10:~$ sudo fdisk -l -c -u /dev/sda

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x9349dd6c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2457599     1227776    7  HPFS/NTFS
/dev/sda2         2457600    61051349    29296875    7  HPFS/NTFS
/dev/sda3        61052928    80582655     9764864   83  Linux
/dev/sda4        80582656   312580095   115998720   83  Linux
user@ubuntu-10-10:~$ 

Manpage fdisk

Manpage fdisk aus util-linux 2.17.2-9 (Debian 6.0.6)

OPTIONS
[...]
       -c     Switch off DOS-compatible mode. (Recommended)
[...]

Manpage fdisk aus util-linux 2.20.1-1ubuntu3 (Ubuntu 12.04 LTS)

Neuere Versionen von fdisk haben den bisherigen DOS-compatible mode in der Standardeinstellung abgeschaltet (The default is non-DOS mode.):

OPTIONS
[...]
       -c[=mode]
              Specify the compatiblity mode, 'dos' or 'nondos'.   The  default
              is  non-DOS mode.  For backward compatibility, it is possible to
              use the option without the <mode> argument -- then  the  default
              is used.  Note that the optional <mode> argument cannot be sepa‐
              rated from the -c option by a space, the  correct  form  is  for
              example '-c=dos'.
[...]


Foto Werner Fischer.jpg

Autor: Werner Fischer

Werner Fischer arbeitet im Product Management Team von Thomas-Krenn. Er evaluiert dabei neueste Technologien und teilt sein Wissen in Fachartikeln, bei Konferenzen und im Thomas-Krenn Wiki. Bereits 2005 - ein Jahr nach seinem Abschluss des Studiums zu Computer- und Mediensicherheit an der FH Hagenberg - heuerte er beim bayerischen Server-Hersteller an. Als Öffi-Fan nutzt er gerne Bus & Bahn und genießt seinen morgendlichen Spaziergang ins Büro.


Das könnte Sie auch interessieren

Fedora 11 Linux Desktop Installation
Heartbeat v2 Einträge in CIB entfernen
Rccmd USV Shutdown Client Installation unter Linux